@slack/web-api
Advanced tools
Comparing version 5.3.0 to 5.4.0
@@ -50,2 +50,47 @@ /// <reference types="node" /> | ||
} | ||
export interface AdminTeamsAdminsListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled { | ||
team_id: string; | ||
} | ||
export interface AdminTeamsCreateArguments extends WebAPICallOptions, TokenOverridable { | ||
team_domain: string; | ||
team_name: string; | ||
team_description?: string; | ||
team_discoverability?: string; | ||
} | ||
export interface AdminTeamsOwnersListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled { | ||
team_id: string; | ||
} | ||
export interface AdminUsersAssignArguments extends WebAPICallOptions, TokenOverridable { | ||
team_id: string; | ||
user_id: string; | ||
is_restricted?: boolean; | ||
is_ultra_restricted?: boolean; | ||
} | ||
export interface AdminUsersInviteArguments extends WebAPICallOptions, TokenOverridable { | ||
channel_ids: string; | ||
email: string; | ||
team_id: string; | ||
custom_message?: string; | ||
guest_expiration_ts?: string; | ||
is_restricted?: boolean; | ||
is_ultra_restricted?: boolean; | ||
real_name?: string; | ||
resend?: boolean; | ||
} | ||
export interface AdminUsersRemoveArguments extends WebAPICallOptions, TokenOverridable { | ||
team_id: string; | ||
user_id: string; | ||
} | ||
export interface AdminUsersSetAdminArguments extends WebAPICallOptions, TokenOverridable { | ||
team_id: string; | ||
user_id: string; | ||
} | ||
export interface AdminUsersSetOwnerArguments extends WebAPICallOptions, TokenOverridable { | ||
team_id: string; | ||
user_id: string; | ||
} | ||
export interface AdminUsersSetRegularArguments extends WebAPICallOptions, TokenOverridable { | ||
team_id: string; | ||
user_id: string; | ||
} | ||
export interface AdminUsersSessionResetArguments extends WebAPICallOptions, TokenOverridable { | ||
@@ -52,0 +97,0 @@ user_id: string; |
@@ -98,2 +98,11 @@ /// <reference types="node" /> | ||
}; | ||
teams: { | ||
admins: { | ||
list: Method<methods.AdminTeamsAdminsListArguments>; | ||
}; | ||
owners: { | ||
list: Method<methods.AdminTeamsOwnersListArguments>; | ||
}; | ||
create: Method<methods.AdminTeamsCreateArguments>; | ||
}; | ||
users: { | ||
@@ -103,2 +112,8 @@ session: { | ||
}; | ||
assign: Method<methods.AdminUsersAssignArguments>; | ||
invite: Method<methods.AdminUsersInviteArguments>; | ||
remove: Method<methods.AdminUsersRemoveArguments>; | ||
setAdmin: Method<methods.AdminUsersSetAdminArguments>; | ||
setOwner: Method<methods.AdminUsersSetOwnerArguments>; | ||
setRegular: Method<methods.AdminUsersSetRegularArguments>; | ||
}; | ||
@@ -105,0 +120,0 @@ }; |
@@ -75,2 +75,11 @@ "use strict"; | ||
}, | ||
teams: { | ||
admins: { | ||
list: (this.apiCall.bind(this, 'admin.teams.admins.list')), | ||
}, | ||
owners: { | ||
list: (this.apiCall.bind(this, 'admin.teams.owners.list')), | ||
}, | ||
create: (this.apiCall.bind(this, 'admin.teams.create')), | ||
}, | ||
users: { | ||
@@ -80,2 +89,8 @@ session: { | ||
}, | ||
assign: (this.apiCall.bind(this, 'admin.users.assign')), | ||
invite: (this.apiCall.bind(this, 'admin.users.invite')), | ||
remove: (this.apiCall.bind(this, 'admin.users.remove')), | ||
setAdmin: (this.apiCall.bind(this, 'admin.users.setAdmin')), | ||
setOwner: (this.apiCall.bind(this, 'admin.users.setOwner')), | ||
setRegular: (this.apiCall.bind(this, 'admin.users.setRegular')), | ||
}, | ||
@@ -82,0 +97,0 @@ }; |
{ | ||
"name": "@slack/web-api", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"description": "Official library for using the Slack Platform's Web API", | ||
@@ -74,4 +74,3 @@ "author": "Slack Technologies, Inc.", | ||
"typescript": "^3.3.3333" | ||
}, | ||
"gitHead": "b63136447de12dc1c309b847168fe1e753fce2bb" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
164741
2210
34