Socket
Socket
Sign inDemoInstall

@slack/web-api

Package Overview
Dependencies
23
Maintainers
15
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.13.0 to 5.14.0

25

dist/methods.d.ts

@@ -98,2 +98,3 @@ /// <reference types="node" />

session: {
list: Method<AdminUsersSessionListArguments, WebAPICallResult>;
reset: Method<AdminUsersSessionResetArguments, WebAPICallResult>;

@@ -358,2 +359,3 @@ invalidate: Method<AdminUsersSessionInvalidateArguments, WebAPICallResult>;

sort_dir: 'asc' | 'desc';
team_id?: string;
}

@@ -598,2 +600,6 @@ export declare const cursorPaginationEnabledMethods: Set<string>;

}
export interface AdminUsersSessionListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled {
user_id?: string;
team_id?: string;
}
export interface AdminUsersSessionResetArguments extends WebAPICallOptions, TokenOverridable {

@@ -624,2 +630,3 @@ user_id: string;

bot?: string;
team_id?: string;
}

@@ -663,2 +670,3 @@ export interface CallsAddArguments extends WebAPICallOptions, TokenOverridable {

validate?: boolean;
team_id?: string;
}

@@ -691,2 +699,3 @@ export interface ChannelsHistoryArguments extends WebAPICallOptions, TokenOverridable, TimelinePaginationEnabled {

exclude_members?: boolean;
team_id?: string;
}

@@ -775,2 +784,3 @@ export interface ChannelsMarkArguments extends WebAPICallOptions, TokenOverridable {

unfurl_media?: boolean;
team_id?: string;
}

@@ -809,2 +819,3 @@ export interface ChatScheduledMessagesListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled {

is_private?: boolean;
team_id?: string;
}

@@ -834,2 +845,3 @@ export interface ConversationsHistoryArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled, TimelinePaginationEnabled {

types?: string;
team_id?: string;
}

@@ -900,2 +912,3 @@ export interface ConversationsMarkArguments extends WebAPICallOptions, TokenOverridable {

types?: string;
team_id?: string;
}

@@ -963,2 +976,3 @@ export interface FilesRevokePublicURLArguments extends WebAPICallOptions, TokenOverridable {

validate?: boolean;
team_id?: string;
}

@@ -990,2 +1004,3 @@ export interface GroupsCreateChildArguments extends WebAPICallOptions, TokenOverridable {

exclude_members?: boolean;
team_id?: string;
}

@@ -1044,2 +1059,3 @@ export interface GroupsMarkArguments extends WebAPICallOptions, TokenOverridable {

to_old?: boolean;
team_id?: string;
}

@@ -1112,2 +1128,3 @@ export interface MPIMCloseArguments extends WebAPICallOptions, TokenOverridable {

full?: boolean;
team_id?: string;
}

@@ -1173,5 +1190,7 @@ export interface ReactionsRemoveArguments extends WebAPICallOptions, TokenOverridable {

page?: number;
team_id?: string;
}
export interface TeamBillableInfoArguments extends WebAPICallOptions, TokenOverridable {
user?: string;
team_id?: string;
}

@@ -1187,5 +1206,7 @@ export interface TeamInfoArguments extends WebAPICallOptions, TokenOverridable {

user?: string;
team_id?: string;
}
export interface TeamProfileGetArguments extends WebAPICallOptions, TokenOverridable {
visibility?: 'all' | 'visible' | 'hidden';
team_id?: string;
}

@@ -1233,2 +1254,3 @@ export interface UsergroupsCreateArguments extends WebAPICallOptions, TokenOverridable {

user?: string;
team_id?: string;
}

@@ -1247,2 +1269,3 @@ export interface UsersDeletePhotoArguments extends WebAPICallOptions, TokenOverridable {

presence?: boolean;
team_id?: string;
}

@@ -1285,3 +1308,3 @@ export interface UsersLookupByEmailArguments extends WebAPICallOptions, TokenOverridable {

export interface ViewsUpdateArguments extends WebAPICallOptions, TokenOverridable {
view_id: string;
view_id?: string;
view: View;

@@ -1288,0 +1311,0 @@ external_id?: string;

@@ -123,2 +123,3 @@ "use strict";

session: {
list: bindApiCall(this, 'admin.users.session.list'),
reset: bindApiCall(this, 'admin.users.session.reset'),

@@ -390,2 +391,3 @@ invalidate: bindApiCall(this, 'admin.users.session.invalidate'),

exports.cursorPaginationEnabledMethods.add('admin.users.list');
exports.cursorPaginationEnabledMethods.add('admin.users.session.list');
exports.cursorPaginationEnabledMethods.add('apps.event.authorizations.list');

@@ -392,0 +394,0 @@ exports.cursorPaginationEnabledMethods.add('channels.list');

@@ -53,5 +53,9 @@ /// <reference types="node" />

/**
* This object's teamId value
*/
private teamId?;
/**
* @param token - An API token to authenticate/authorize with Slack (usually start with `xoxp`, `xoxb`)
*/
constructor(token?: string, { slackApiUrl, logger, logLevel, maxRequestConcurrency, retryConfig, agent, tls, rejectRateLimitedCalls, headers, }?: WebClientOptions);
constructor(token?: string, { slackApiUrl, logger, logLevel, maxRequestConcurrency, retryConfig, agent, tls, rejectRateLimitedCalls, headers, teamId, }?: WebClientOptions);
/**

@@ -119,2 +123,3 @@ * Generic method for calling a Web API method

headers?: object;
teamId?: string;
}

@@ -121,0 +126,0 @@ export declare type TLSOptions = Pick<SecureContextOptions, 'pfx' | 'key' | 'passphrase' | 'cert' | 'ca'>;

8

dist/WebClient.js

@@ -74,3 +74,3 @@ "use strict";

*/
constructor(token, { slackApiUrl = 'https://slack.com/api/', logger = undefined, logLevel = logger_1.LogLevel.INFO, maxRequestConcurrency = 3, retryConfig = retry_policies_1.default.tenRetriesInAboutThirtyMinutes, agent = undefined, tls = undefined, rejectRateLimitedCalls = false, headers = {}, } = {}) {
constructor(token, { slackApiUrl = 'https://slack.com/api/', logger = undefined, logLevel = logger_1.LogLevel.INFO, maxRequestConcurrency = 3, retryConfig = retry_policies_1.default.tenRetriesInAboutThirtyMinutes, agent = undefined, tls = undefined, rejectRateLimitedCalls = false, headers = {}, teamId = undefined, } = {}) {
super();

@@ -84,2 +84,3 @@ this.token = token;

this.rejectRateLimitedCalls = rejectRateLimitedCalls;
this.teamId = teamId;
// Logging

@@ -127,3 +128,6 @@ if (typeof logger !== 'undefined') {

}
const response = await this.makeRequest(method, Object.assign({ token: this.token }, options));
const response = await this.makeRequest(method, Object.assign({
token: this.token,
team_id: this.teamId,
}, options));
const result = this.buildResult(response);

@@ -130,0 +134,0 @@ // log warnings in response metadata

{
"name": "@slack/web-api",
"version": "5.13.0",
"version": "5.14.0",
"description": "Official library for using the Slack Platform's Web API",

@@ -5,0 +5,0 @@ "author": "Slack Technologies, Inc.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc