@leash/integration-slack
v0.1.0
Published
Typed Slack integration for Leash
Readme
@leash/integration-slack
Typed Slack integration for Leash — auto-generated by
leash-codegen.
Installation
npm install @leash/integration-slackRequires @leash/sdk >= 0.2.0 as a peer dependency.
Usage
import { LeashIntegrations } from '@leash/sdk/integrations'
import { createSlackClient } from '@leash/integration-slack'
const leash = new LeashIntegrations({ apiKey: process.env.LEASH_API_KEY! })
const slack = createSlackClient(leash)
// Example: call slackListChannels
const result = await slack.slackListChannels({ limit: 0, cursor: '...' })Available Methods
slackListChannels(params)— List public or pre-defined channels in the workspace with paginationslackPostMessage(params)— Post a new message to a Slack channelslackReplyToThread(params)— Reply to a specific message thread in SlackslackAddReaction(params)— Add a reaction emoji to a messageslackGetChannelHistory(params)— Get recent messages from a channelslackGetThreadReplies(params)— Get all replies in a message threadslackGetUsers(params)— Get a list of all users in the workspace with their basic profile informationslackGetUserProfile(params)— Get detailed profile information for a specific user
License
Apache-2.0
