/// /// declare module DropboxTypes { class DropboxTeam extends DropboxBase { /** * The DropboxTeam SDK class. */ constructor(options: DropboxOptions); /** * Returns an instance of Dropbox that can make calls to user api endpoints on * behalf of the passed user id, using the team access token. Only relevant for * team endpoints. */ actAsUser(userId: string): Dropbox; /** * List all device sessions of a team's member. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamDevicesListMemberDevices(arg: team.ListMemberDevicesArg): Promise; /** * List all device sessions of a team. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamDevicesListMembersDevices(arg: team.ListMembersDevicesArg): Promise; /** * List all device sessions of a team. * * When an error occurs, the route rejects the promise with type * Error. * @deprecated * @param arg The request parameters. */ public teamDevicesListTeamDevices(arg: team.ListTeamDevicesArg): Promise; /** * Revoke a device session of a team's member. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamDevicesRevokeDeviceSession(arg: team.RevokeDeviceSessionArg): Promise; /** * Revoke a list of device sessions of team members. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamDevicesRevokeDeviceSessionBatch(arg: team.RevokeDeviceSessionBatchArg): Promise; /** * Get the values for one or more featues. This route allows you to check * your account's capability for what feature you can access or what value * you have for certain features. Permission : Team information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamFeaturesGetValues(arg: team.FeaturesGetValuesBatchArg): Promise; /** * Retrieves information about a team. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGetInfo(arg: void): Promise; /** * Creates a new, empty group, with a requested name. Permission : Team * member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsCreate(arg: team.GroupCreateArg): Promise; /** * Deletes a group. The group is deleted immediately. However the revoking * of group-owned resources may take additional time. Use the * groupsJobStatusGet() to determine whether this process has completed. * Permission : Team member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsDelete(arg: team.GroupSelector): Promise; /** * Retrieves information about one or more groups. Note that the optional * field GroupFullInfo.members is not returned for system-managed groups. * Permission : Team Information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsGetInfo(arg: team.GroupsSelector): Promise; /** * Once an async_job_id is returned from groupsDelete(), groupsMembersAdd() * , or groupsMembersRemove() use this method to poll the status of * granting/revoking group members' access to group-owned resources. * Permission : Team member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsJobStatusGet(arg: async.PollArg): Promise; /** * Lists groups on a team. Permission : Team Information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsList(arg: team.GroupsListArg): Promise; /** * Once a cursor has been retrieved from groupsList(), use this to paginate * through all groups. Permission : Team Information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsListContinue(arg: team.GroupsListContinueArg): Promise; /** * Adds members to a group. The members are added immediately. However the * granting of group-owned resources may take additional time. Use the * groupsJobStatusGet() to determine whether this process has completed. * Permission : Team member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsMembersAdd(arg: team.GroupMembersAddArg): Promise; /** * Lists members of a group. Permission : Team Information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsMembersList(arg: team.GroupsMembersListArg): Promise; /** * Once a cursor has been retrieved from groupsMembersList(), use this to * paginate through all members of the group. Permission : Team information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsMembersListContinue(arg: team.GroupsMembersListContinueArg): Promise; /** * Removes members from a group. The members are removed immediately. * However the revoking of group-owned resources may take additional time. * Use the groupsJobStatusGet() to determine whether this process has * completed. This method permits removing the only owner of a group, even * in cases where this is not possible via the web client. Permission : Team * member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsMembersRemove(arg: team.GroupMembersRemoveArg): Promise; /** * Sets a member's access type in a group. Permission : Team member * management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsMembersSetAccessType(arg: team.GroupMembersSetAccessTypeArg): Promise; /** * Updates a group's name and/or external ID. Permission : Team member * management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamGroupsUpdate(arg: team.GroupUpdateArgs): Promise; /** * List all linked applications of the team member. Note, this endpoint does * not list any team-linked applications. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamLinkedAppsListMemberLinkedApps(arg: team.ListMemberAppsArg): Promise; /** * List all applications linked to the team members' accounts. Note, this * endpoint does not list any team-linked applications. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamLinkedAppsListMembersLinkedApps(arg: team.ListMembersAppsArg): Promise; /** * List all applications linked to the team members' accounts. Note, this * endpoint doesn't list any team-linked applications. * * When an error occurs, the route rejects the promise with type * Error. * @deprecated * @param arg The request parameters. */ public teamLinkedAppsListTeamLinkedApps(arg: team.ListTeamAppsArg): Promise; /** * Revoke a linked application of the team member. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamLinkedAppsRevokeLinkedApp(arg: team.RevokeLinkedApiAppArg): Promise; /** * Revoke a list of linked applications of the team members. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamLinkedAppsRevokeLinkedAppBatch(arg: team.RevokeLinkedApiAppBatchArg): Promise; /** * Add users to member space limits excluded users list. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsExcludedUsersAdd(arg: team.ExcludedUsersUpdateArg): Promise; /** * List member space limits excluded users. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsExcludedUsersList(arg: team.ExcludedUsersListArg): Promise; /** * Continue listing member space limits excluded users. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsExcludedUsersListContinue(arg: team.ExcludedUsersListContinueArg): Promise; /** * Remove users from member space limits excluded users list. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsExcludedUsersRemove(arg: team.ExcludedUsersUpdateArg): Promise; /** * Get users custom quota. Returns none as the custom quota if none was set. * A maximum of 1000 members can be specified in a single call. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsGetCustomQuota(arg: team.CustomQuotaUsersArg): Promise>; /** * Remove users custom quota. A maximum of 1000 members can be specified in * a single call. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsRemoveCustomQuota(arg: team.CustomQuotaUsersArg): Promise>; /** * Set users custom quota. Custom quota has to be at least 15GB. A maximum * of 1000 members can be specified in a single call. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMemberSpaceLimitsSetCustomQuota(arg: team.SetCustomQuotaArg): Promise>; /** * Adds members to a team. Permission : Team member management A maximum of * 20 members can be specified in a single call. If no Dropbox account * exists with the email address specified, a new Dropbox account will be * created with the given email address, and that account will be invited to * the team. If a personal Dropbox account exists with the email address * specified in the call, this call will create a placeholder Dropbox * account for the user on the team and send an email inviting the user to * migrate their existing personal account onto the team. Team member * management apps are required to set an initial given_name and surname for * a user to use in the team invitation and for 'Perform as team member' * actions taken on the user before they become 'active'. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersAdd(arg: team.MembersAddArg): Promise; /** * Once an async_job_id is returned from membersAdd() , use this to poll the * status of the asynchronous request. Permission : Team member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersAddJobStatusGet(arg: async.PollArg): Promise; /** * Returns information about multiple team members. Permission : Team * information This endpoint will return MembersGetInfoItem.id_not_found, * for IDs (or emails) that cannot be matched to a valid team member. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersGetInfo(arg: team.MembersGetInfoArgs): Promise; /** * Lists members of a team. Permission : Team information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersList(arg: team.MembersListArg): Promise; /** * Once a cursor has been retrieved from membersList(), use this to paginate * through all team members. Permission : Team information. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersListContinue(arg: team.MembersListContinueArg): Promise; /** * Recover a deleted member. Permission : Team member management Exactly one * of team_member_id, email, or external_id must be provided to identify the * user account. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersRecover(arg: team.MembersRecoverArg): Promise; /** * Removes a member from a team. Permission : Team member management Exactly * one of team_member_id, email, or external_id must be provided to identify * the user account. Accounts can be recovered via membersRecover() for a 7 * day period or until the account has been permanently deleted or * transferred to another account (whichever comes first). Calling * membersAdd() while a user is still recoverable on your team will return * with MemberAddResult.user_already_on_team. Accounts can have their files * transferred via the admin console for a limited time, based on the * version history length associated with the team (120 days for most * teams). This endpoint may initiate an asynchronous job. To obtain the * final result of the job, the client should periodically poll * membersRemoveJobStatusGet(). * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersRemove(arg: team.MembersRemoveArg): Promise; /** * Once an async_job_id is returned from membersRemove() , use this to poll * the status of the asynchronous request. Permission : Team member * management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersRemoveJobStatusGet(arg: async.PollArg): Promise; /** * Sends welcome email to pending team member. Permission : Team member * management Exactly one of team_member_id, email, or external_id must be * provided to identify the user account. No-op if team member is not * pending. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersSendWelcomeEmail(arg: team.UserSelectorArg): Promise; /** * Updates a team member's permissions. Permission : Team member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersSetAdminPermissions(arg: team.MembersSetPermissionsArg): Promise; /** * Updates a team member's profile. Permission : Team member management. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersSetProfile(arg: team.MembersSetProfileArg): Promise; /** * Suspend a member from a team. Permission : Team member management Exactly * one of team_member_id, email, or external_id must be provided to identify * the user account. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersSuspend(arg: team.MembersDeactivateArg): Promise; /** * Unsuspend a member from a team. Permission : Team member management * Exactly one of team_member_id, email, or external_id must be provided to * identify the user account. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamMembersUnsuspend(arg: team.MembersUnsuspendArg): Promise; /** * Returns a list of all team-accessible namespaces. This list includes team * folders, shared folders containing team members, team members' home * namespaces, and team members' app folders. Home namespaces and app * folders are always owned by this team or members of the team, but shared * folders may be owned by other users or other teams. Duplicates may occur * in the list. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamNamespacesList(arg: team.TeamNamespacesListArg): Promise; /** * Once a cursor has been retrieved from namespacesList(), use this to * paginate through all team-accessible namespaces. Duplicates may occur in * the list. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamNamespacesListContinue(arg: team.TeamNamespacesListContinueArg): Promise; /** * When an error occurs, the route rejects the promise with type * Error. * @deprecated * @param arg The request parameters. */ public teamPropertiesTemplateAdd(arg: file_properties.AddTemplateArg): Promise; /** * When an error occurs, the route rejects the promise with type * Error. * @deprecated * @param arg The request parameters. */ public teamPropertiesTemplateGet(arg: file_properties.GetTemplateArg): Promise; /** * When an error occurs, the route rejects the promise with type * Error. * @deprecated * @param arg The request parameters. */ public teamPropertiesTemplateList(arg: void): Promise; /** * When an error occurs, the route rejects the promise with type * Error. * @deprecated * @param arg The request parameters. */ public teamPropertiesTemplateUpdate(arg: file_properties.UpdateTemplateArg): Promise; /** * Retrieves reporting data about a team's user activity. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamReportsGetActivity(arg: team.DateRange): Promise; /** * Retrieves reporting data about a team's linked devices. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamReportsGetDevices(arg: team.DateRange): Promise; /** * Retrieves reporting data about a team's membership. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamReportsGetMembership(arg: team.DateRange): Promise; /** * Retrieves reporting data about a team's storage usage. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamReportsGetStorage(arg: team.DateRange): Promise; /** * Sets an archived team folder's status to active. Permission : Team member * file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderActivate(arg: team.TeamFolderIdArg): Promise; /** * Sets an active team folder's status to archived and removes all folder * and file members. Permission : Team member file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderArchive(arg: team.TeamFolderArchiveArg): Promise; /** * Returns the status of an asynchronous job for archiving a team folder. * Permission : Team member file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderArchiveCheck(arg: async.PollArg): Promise; /** * Creates a new, active, team folder with no members. Permission : Team * member file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderCreate(arg: team.TeamFolderCreateArg): Promise; /** * Retrieves metadata for team folders. Permission : Team member file * access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderGetInfo(arg: team.TeamFolderIdListArg): Promise>; /** * Lists all team folders. Permission : Team member file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderList(arg: team.TeamFolderListArg): Promise; /** * Once a cursor has been retrieved from teamFolderList(), use this to * paginate through all team folders. Permission : Team member file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderListContinue(arg: team.TeamFolderListContinueArg): Promise; /** * Permanently deletes an archived team folder. Permission : Team member * file access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderPermanentlyDelete(arg: team.TeamFolderIdArg): Promise; /** * Changes an active team folder's name. Permission : Team member file * access. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderRename(arg: team.TeamFolderRenameArg): Promise; /** * Updates the sync settings on a team folder or its contents. Use of this * endpoint requires that the team has team selective sync enabled. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTeamFolderUpdateSyncSettings(arg: team.TeamFolderUpdateSyncSettingsArg): Promise; /** * Returns the member profile of the admin who generated the team access * token used to make the call. * * When an error occurs, the route rejects the promise with type * Error. * @param arg The request parameters. */ public teamTokenGetAuthenticatedAdmin(arg: void): Promise; } }