Skip to content

Commit

Permalink
Automated Spec Update (#1020)
Browse files Browse the repository at this point in the history
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 <[email protected]>

 c36ba27d8d56648555d3068bb3826e1d3a44d92b

Co-authored-by: DropboxBot <[email protected]>
  • Loading branch information
DropboxBot and DropboxBot authored Oct 11, 2022
1 parent dcc134d commit 7b2a6d1
Show file tree
Hide file tree
Showing 7 changed files with 569 additions and 73 deletions.
74 changes: 74 additions & 0 deletions lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,20 @@ routes.filesUploadSessionStartBatch = function (arg) {
return this.request('files/upload_session/start_batch', arg, 'user', 'api', 'rpc', 'files.content.write');
};

/**
* This route is used for refreshing the info that is found in the id_token
* during the OIDC flow. This route doesn't require any arguments and will use
* the scopes approved for the given access token.
* Route attributes:
* scope: openid
* @function Dropbox#openidUserinfo
* @arg {OpenidUserInfoArgs} arg - The request parameters.
* @returns {Promise.<DropboxResponse<OpenidUserInfoResult>, DropboxResponseError.<OpenidUserInfoError>>}
*/
routes.openidUserinfo = function (arg) {
return this.request('openid/userinfo', arg, 'user', 'api', 'rpc', 'openid');
};

/**
* Marks the given Paper doc as archived. This action can be performed or undone
* by anyone with edit permissions to the doc. Note that this endpoint will
Expand Down Expand Up @@ -3472,6 +3486,66 @@ routes.teamReportsGetStorage = function (arg) {
return this.request('team/reports/get_storage', arg, 'team', 'api', 'rpc', 'team_info.read');
};

/**
* Endpoint adds Approve List entries. Changes are effective immediately.
* Changes are committed in transaction. In case of single validation error -
* all entries are rejected. Valid domains (RFC-1034/5) and emails
* (RFC-5322/822) are accepted. Added entries cannot overflow limit of 10000
* entries per team. Maximum 100 entries per call is allowed.
* Route attributes:
* scope: team_info.write
* @function Dropbox#teamSharingAllowlistAdd
* @arg {TeamSharingAllowlistAddArgs} arg - The request parameters.
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistAddResponse>, DropboxResponseError.<TeamSharingAllowlistAddError>>}
*/
routes.teamSharingAllowlistAdd = function (arg) {
return this.request('team/sharing_allowlist/add', arg, 'team', 'api', 'rpc', 'team_info.write');
};

/**
* Lists Approve List entries for given team, from newest to oldest, returning
* up to `limit` entries at a time. If there are more than `limit` entries
* associated with the current team, more can be fetched by passing the returned
* `cursor` to sharing_allowlist/list/continue.
* Route attributes:
* scope: team_info.read
* @function Dropbox#teamSharingAllowlistList
* @arg {TeamSharingAllowlistListArg} arg - The request parameters.
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistListResponse>, DropboxResponseError.<TeamSharingAllowlistListError>>}
*/
routes.teamSharingAllowlistList = function (arg) {
return this.request('team/sharing_allowlist/list', arg, 'team', 'api', 'rpc', 'team_info.read');
};

/**
* Lists entries associated with given team, starting from a the cursor. See
* sharing_allowlist/list.
* Route attributes:
* scope: team_info.read
* @function Dropbox#teamSharingAllowlistListContinue
* @arg {TeamSharingAllowlistListContinueArg} arg - The request parameters.
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistListResponse>, DropboxResponseError.<TeamSharingAllowlistListContinueError>>}
*/
routes.teamSharingAllowlistListContinue = function (arg) {
return this.request('team/sharing_allowlist/list/continue', arg, 'team', 'api', 'rpc', 'team_info.read');
};

/**
* Endpoint removes Approve List entries. Changes are effective immediately.
* Changes are committed in transaction. In case of single validation error -
* all entries are rejected. Valid domains (RFC-1034/5) and emails
* (RFC-5322/822) are accepted. Entries being removed have to be present on the
* list. Maximum 1000 entries per call is allowed.
* Route attributes:
* scope: team_info.write
* @function Dropbox#teamSharingAllowlistRemove
* @arg {TeamSharingAllowlistRemoveArgs} arg - The request parameters.
* @returns {Promise.<DropboxResponse<TeamSharingAllowlistRemoveResponse>, DropboxResponseError.<TeamSharingAllowlistRemoveError>>}
*/
routes.teamSharingAllowlistRemove = function (arg) {
return this.request('team/sharing_allowlist/remove', arg, 'team', 'api', 'rpc', 'team_info.write');
};

/**
* Sets an archived team folder's status to active. Permission : Team member
* file access.
Expand Down
164 changes: 134 additions & 30 deletions lib/types.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dropbox",
"version": "10.32.0",
"version": "10.33.0",
"registry": "npm",
"description": "The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.",
"main": "cjs/index.js",
Expand Down
Loading

0 comments on commit 7b2a6d1

Please sign in to comment.