Skip to content

Commit 7b2a6d1

Browse files
authored
Automated Spec Update (#1020)
18963b8a29fe125f6495d36c38eda5db2710d0dd Change Notes: openid_openid_types Namespace - Add OpenIdError, UserInfoError unions - Remove UserInfoError structs - Remove AuthError unions - Update UserInfoArgs struct to include documentation team_policies Namespace - Add examples Co-authored-by: Brent Bumann <bbumann@dropbox.com> c36ba27d8d56648555d3068bb3826e1d3a44d92b Co-authored-by: DropboxBot <DropboxBot@users.noreply.github.com>
1 parent dcc134d commit 7b2a6d1

File tree

7 files changed

+569
-73
lines changed

7 files changed

+569
-73
lines changed

lib/routes.js

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,20 @@ routes.filesUploadSessionStartBatch = function (arg) {
14991499
return this.request('files/upload_session/start_batch', arg, 'user', 'api', 'rpc', 'files.content.write');
15001500
};
15011501

1502+
/**
1503+
* This route is used for refreshing the info that is found in the id_token
1504+
* during the OIDC flow. This route doesn't require any arguments and will use
1505+
* the scopes approved for the given access token.
1506+
* Route attributes:
1507+
* scope: openid
1508+
* @function Dropbox#openidUserinfo
1509+
* @arg {OpenidUserInfoArgs} arg - The request parameters.
1510+
* @returns {Promise.<DropboxResponse<OpenidUserInfoResult>, DropboxResponseError.<OpenidUserInfoError>>}
1511+
*/
1512+
routes.openidUserinfo = function (arg) {
1513+
return this.request('openid/userinfo', arg, 'user', 'api', 'rpc', 'openid');
1514+
};
1515+
15021516
/**
15031517
* Marks the given Paper doc as archived. This action can be performed or undone
15041518
* by anyone with edit permissions to the doc. Note that this endpoint will
@@ -3472,6 +3486,66 @@ routes.teamReportsGetStorage = function (arg) {
34723486
return this.request('team/reports/get_storage', arg, 'team', 'api', 'rpc', 'team_info.read');
34733487
};
34743488

3489+
/**
3490+
* Endpoint adds Approve List entries. Changes are effective immediately.
3491+
* Changes are committed in transaction. In case of single validation error -
3492+
* all entries are rejected. Valid domains (RFC-1034/5) and emails
3493+
* (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000
3494+
* entries per team. Maximum 100 entries per call is allowed.
3495+
* Route attributes:
3496+
* scope: team_info.write
3497+
* @function Dropbox#teamSharingAllowlistAdd
3498+
* @arg {TeamSharingAllowlistAddArgs} arg - The request parameters.
3499+
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistAddResponse>, DropboxResponseError.<TeamSharingAllowlistAddError>>}
3500+
*/
3501+
routes.teamSharingAllowlistAdd = function (arg) {
3502+
return this.request('team/sharing_allowlist/add', arg, 'team', 'api', 'rpc', 'team_info.write');
3503+
};
3504+
3505+
/**
3506+
* Lists Approve List entries for given team, from newest to oldest, returning
3507+
* up to `limit` entries at a time. If there are more than `limit` entries
3508+
* associated with the current team, more can be fetched by passing the returned
3509+
* `cursor` to sharing_allowlist/list/continue.
3510+
* Route attributes:
3511+
* scope: team_info.read
3512+
* @function Dropbox#teamSharingAllowlistList
3513+
* @arg {TeamSharingAllowlistListArg} arg - The request parameters.
3514+
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistListResponse>, DropboxResponseError.<TeamSharingAllowlistListError>>}
3515+
*/
3516+
routes.teamSharingAllowlistList = function (arg) {
3517+
return this.request('team/sharing_allowlist/list', arg, 'team', 'api', 'rpc', 'team_info.read');
3518+
};
3519+
3520+
/**
3521+
* Lists entries associated with given team, starting from a the cursor. See
3522+
* sharing_allowlist/list.
3523+
* Route attributes:
3524+
* scope: team_info.read
3525+
* @function Dropbox#teamSharingAllowlistListContinue
3526+
* @arg {TeamSharingAllowlistListContinueArg} arg - The request parameters.
3527+
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistListResponse>, DropboxResponseError.<TeamSharingAllowlistListContinueError>>}
3528+
*/
3529+
routes.teamSharingAllowlistListContinue = function (arg) {
3530+
return this.request('team/sharing_allowlist/list/continue', arg, 'team', 'api', 'rpc', 'team_info.read');
3531+
};
3532+
3533+
/**
3534+
* Endpoint removes Approve List entries. Changes are effective immediately.
3535+
* Changes are committed in transaction. In case of single validation error -
3536+
* all entries are rejected. Valid domains (RFC-1034/5) and emails
3537+
* (RFC-5322/822) are accepted. Entries being removed have to be present on the
3538+
* list. Maximum 1000 entries per call is allowed.
3539+
* Route attributes:
3540+
* scope: team_info.write
3541+
* @function Dropbox#teamSharingAllowlistRemove
3542+
* @arg {TeamSharingAllowlistRemoveArgs} arg - The request parameters.
3543+
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistRemoveResponse>, DropboxResponseError.<TeamSharingAllowlistRemoveError>>}
3544+
*/
3545+
routes.teamSharingAllowlistRemove = function (arg) {
3546+
return this.request('team/sharing_allowlist/remove', arg, 'team', 'api', 'rpc', 'team_info.write');
3547+
};
3548+
34753549
/**
34763550
* Sets an archived team folder's status to active. Permission : Team member
34773551
* file access.

lib/types.js

Lines changed: 134 additions & 30 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dropbox",
3-
"version": "10.32.0",
3+
"version": "10.33.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",

0 commit comments

Comments
 (0)