claude-api-slack
Advanced tools
Comparing version 1.0.19 to 1.0.20
{ | ||
"name": "claude-api-slack", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "slack Authentication Library for ClaudeAI.", | ||
@@ -16,11 +16,4 @@ "main": "./dist/index.js", | ||
"license": "MIT", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"default": "./dist/index.js" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
"build" | ||
], | ||
@@ -56,2 +49,3 @@ "source": "./src/index.ts", | ||
] | ||
} |
@@ -5,4 +5,2 @@ ### ClaudeAI for Node.js | ||
### Usage | ||
@@ -21,3 +19,3 @@ | ||
const authenticator = new Authenticator(token, bot) | ||
// 创建一个频道,已存在则直接返回频道ID | ||
// 创建一个频道,已存在则直接返回频道 ID | ||
const channel = await authenticator.newChannel('chat-7890') | ||
@@ -43,13 +41,13 @@ let result: ChatResponse = await authenticator.sendMessage({ | ||
### 授权以及获取user-token | ||
### 授权以及获取 user-token | ||
网页登录后[登录](https://app.slack.com), 进入api配置页面[点我跳转]([Claude - chat - Slack](https://api.slack.com/))。 | ||
网页登录后[登录](https://app.slack.com), 进入 api 配置页面[点我跳转]([Claude - chat - Slack](https://api.slack.com/))。 | ||
〉》点击 【Create an app】 | ||
〉》点击【Create an app】 | ||
〉》主页看见Your Apps并弹出窗口【Create an app】 〉》 点击【From scratch】 | ||
〉》主页看见 Your Apps 并弹出窗口【Create an app】 〉》点击【From scratch】 | ||
〉》填写app名称以及选择工作空间(例:name: Bot, workspace: chat) 〉》 点击【Create App】 | ||
〉》填写 app 名称以及选择工作空间(例:name: Bot, workspace: chat) 〉》点击【Create App】 | ||
〉》点击左侧边栏上的【OAuth & Permissions】 〉》 下拉至【Scopes】卡片,在 【User Token Scopes】 项下添加权限,如下: | ||
〉》点击左侧边栏上的【OAuth & Permissions】 〉》下拉至【Scopes】卡片,在【User Token Scopes】项下添加权限,如下: | ||
@@ -62,3 +60,3 @@ channels:history, channels:read, channels:write, groups:history, groups:read, groups:write, | ||
至此,获得拥有一定权限的user-token | ||
至此,获得拥有一定权限的 user-token | ||
@@ -65,0 +63,0 @@ <img src="static/截屏2023-04-18 09.10.56.png" alt="截屏2023-04-18 09.10.56" style="zoom:50%;" /> |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3413
2
0
78
2