@slack/web-api
Advanced tools
Comparing version 5.1.0 to 5.2.0
/// <reference types="node" /> | ||
import { Stream } from 'stream'; | ||
import { Dialog, KnownBlock, Block, MessageAttachment, LinkUnfurls } from '@slack/types'; | ||
import { Dialog, View, KnownBlock, Block, MessageAttachment, LinkUnfurls, PlainTextElement } from '@slack/types'; | ||
import { WebAPICallOptions, WebAPICallResult } from './WebClient'; | ||
@@ -37,2 +37,20 @@ /** | ||
} | ||
export interface AdminAppsApproveArguments extends WebAPICallOptions, TokenOverridable { | ||
app_id?: string; | ||
request_id?: string; | ||
team_id?: string; | ||
} | ||
export interface AdminAppsRequestsListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled { | ||
team_id?: string; | ||
} | ||
export interface AdminAppsRestrictArguments extends WebAPICallOptions, TokenOverridable { | ||
app_id?: string; | ||
request_id?: string; | ||
team_id?: string; | ||
} | ||
export interface AdminUsersSessionResetArguments extends WebAPICallOptions, TokenOverridable { | ||
user_id: string; | ||
mobile_only?: boolean; | ||
web_only?: boolean; | ||
} | ||
export interface APITestArguments extends WebAPICallOptions { | ||
@@ -79,4 +97,4 @@ } | ||
export interface ChannelsListArguments extends WebAPICallOptions, TokenOverridable, CursorPaginationEnabled { | ||
exclude_archived: boolean; | ||
exclude_members: boolean; | ||
exclude_archived?: boolean; | ||
exclude_members?: boolean; | ||
} | ||
@@ -638,3 +656,19 @@ export interface ChannelsMarkArguments extends WebAPICallOptions, TokenOverridable { | ||
} | ||
export interface ViewsOpenArguments extends WebAPICallOptions, TokenOverridable { | ||
trigger_id: string; | ||
view: View; | ||
} | ||
export interface ViewsPushArguments extends WebAPICallOptions, TokenOverridable { | ||
trigger_id: string; | ||
view: View; | ||
} | ||
export interface ViewsUpdateArguments extends WebAPICallOptions, TokenOverridable { | ||
view_id: string; | ||
title: PlainTextElement; | ||
blocks: (KnownBlock | Block)[]; | ||
close?: PlainTextElement; | ||
submit?: PlainTextElement; | ||
private_metadata?: string; | ||
} | ||
export * from '@slack/types'; | ||
//# sourceMappingURL=methods.d.ts.map |
@@ -88,2 +88,19 @@ /// <reference types="node" /> | ||
/** | ||
* admin method family | ||
*/ | ||
readonly admin: { | ||
apps: { | ||
approve: Method<methods.AdminAppsApproveArguments>; | ||
requests: { | ||
list: Method<methods.AdminAppsRequestsListArguments>; | ||
}; | ||
restrict: Method<methods.AdminAppsRestrictArguments>; | ||
}; | ||
users: { | ||
session: { | ||
reset: Method<methods.AdminUsersSessionResetArguments>; | ||
}; | ||
}; | ||
}; | ||
/** | ||
* api method family | ||
@@ -167,2 +184,10 @@ */ | ||
/** | ||
* view method family | ||
*/ | ||
readonly views: { | ||
open: Method<methods.ViewsOpenArguments>; | ||
push: Method<methods.ViewsPushArguments>; | ||
update: Method<methods.ViewsUpdateArguments>; | ||
}; | ||
/** | ||
* dialog method family | ||
@@ -169,0 +194,0 @@ */ |
@@ -65,2 +65,19 @@ "use strict"; | ||
/** | ||
* admin method family | ||
*/ | ||
this.admin = { | ||
apps: { | ||
approve: (this.apiCall.bind(this, 'admin.apps.approve')), | ||
requests: { | ||
list: (this.apiCall.bind(this, 'admin.apps.requests.list')), | ||
}, | ||
restrict: (this.apiCall.bind(this, 'admin.apps.restrict')), | ||
}, | ||
users: { | ||
session: { | ||
reset: (this.apiCall.bind(this, 'admin.users.session.reset')), | ||
}, | ||
}, | ||
}; | ||
/** | ||
* api method family | ||
@@ -144,2 +161,10 @@ */ | ||
/** | ||
* view method family | ||
*/ | ||
this.views = { | ||
open: (this.apiCall.bind(this, 'views.open')), | ||
push: (this.apiCall.bind(this, 'views.push')), | ||
update: (this.apiCall.bind(this, 'views.update')), | ||
}; | ||
/** | ||
* dialog method family | ||
@@ -615,2 +640,3 @@ */ | ||
} | ||
exports.WebClient = WebClient; | ||
/** | ||
@@ -620,3 +646,2 @@ * The name used to prefix all logging generated from this object | ||
WebClient.loggerName = 'WebClient'; | ||
exports.WebClient = WebClient; | ||
exports.default = WebClient; | ||
@@ -623,0 +648,0 @@ var WebClientEvent; |
{ | ||
"name": "@slack/web-api", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Official library for using the Slack Platform's Web API", | ||
@@ -75,3 +75,3 @@ "author": "Slack Technologies, Inc.", | ||
}, | ||
"gitHead": "35b40af1dc28ef40cb00eb9a47f902e73c27b03f" | ||
"gitHead": "8a3f777519718ffb87cbde712f75b8d594255f84" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
160499
2130
0