Skip to content

Commit

Permalink
adds admin.users.session.reset method
Browse files Browse the repository at this point in the history
  • Loading branch information
aoberoi committed Aug 23, 2019
1 parent 6d9ba38 commit 4df6999
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/web-api/src/WebClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ export class WebClient extends EventEmitter<WebClientEvent> {
},
restrict: (this.apiCall.bind(this, 'admin.apps.restrict')) as Method<methods.AdminAppsRestrictArguments>,
},
users: {
session: {
reset:
(this.apiCall.bind(this, 'admin.users.session.reset')) as Method<methods.AdminUsersSessionResetArguments>,
},
},
};

/**
Expand Down
5 changes: 5 additions & 0 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export interface AdminAppsRestrictArguments extends WebAPICallOptions, TokenOver
request_id?: string;
team_id: string;
}
export interface AdminUsersSessionResetArguments extends WebAPICallOptions, TokenOverridable {
user_id: string;
mobile_only?: boolean;
web_only?: boolean;
}

/*
* `api.*`
Expand Down

0 comments on commit 4df6999

Please sign in to comment.