Skip to content

Commit

Permalink
Merge pull request #1139 from stevengill/issue-1137
Browse files Browse the repository at this point in the history
added auth.teams.list method
  • Loading branch information
stevengill authored Jan 4, 2021
2 parents 73bb9f6 + a837085 commit 53866de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export abstract class Methods extends EventEmitter<WebClientEvent> {

public readonly auth = {
revoke: bindApiCall<AuthRevokeArguments, WebAPICallResult>(this, 'auth.revoke'),
teams: {
list: bindApiCall<AuthTeamsListArguments, WebAPICallResult>(this, 'auth.teams.list'),
},
test: bindApiCall<AuthTestArguments, WebAPICallResult>(this, 'auth.test'),
};

Expand Down Expand Up @@ -796,6 +799,10 @@ export interface AppsUninstallArguments extends WebAPICallOptions {
export interface AuthRevokeArguments extends WebAPICallOptions, TokenOverridable {
test: boolean;
}
export interface AuthTeamsListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled {
include_icon?: boolean;
}
cursorPaginationEnabledMethods.add('auth.teams.list');
export interface AuthTestArguments extends WebAPICallOptions, TokenOverridable { }

/*
Expand Down

0 comments on commit 53866de

Please sign in to comment.