@glodon-aiot/chat-app-sdk 0.0.1-alpha.0 → 0.0.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -6
- package/libs/cn/370.index.esm.js +1 -0
- package/libs/cn/499.index.esm.js +1 -0
- package/libs/cn/index.esm.js +33 -0
- package/libs/cn/index.js +1 -1
- package/package.json +8 -6
- package/src/index.ts +0 -56
package/README.md
CHANGED
|
@@ -74,8 +74,10 @@ const client = new WebChatClient({
|
|
|
74
74
|
// Bot 配置
|
|
75
75
|
config: {
|
|
76
76
|
type: ChatType.APP,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
appInfo: {
|
|
78
|
+
appId: 'your-app-id',
|
|
79
|
+
workflowId: 'your-workflow-id',
|
|
80
|
+
},
|
|
79
81
|
// 可选:自定义 API 地址
|
|
80
82
|
apiUrl: 'https://your-api-domain.com/api',
|
|
81
83
|
},
|
|
@@ -175,8 +177,10 @@ function ChatPage() {
|
|
|
175
177
|
mode: 'inlay',
|
|
176
178
|
getContainer: () => containerRef.current,
|
|
177
179
|
config: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
+
appInfo: {
|
|
181
|
+
appId: 'your-app-id',
|
|
182
|
+
workflowId: 'your-workflow-id',
|
|
183
|
+
},
|
|
180
184
|
},
|
|
181
185
|
auth: {
|
|
182
186
|
type: AuthType.TOKEN,
|
|
@@ -223,8 +227,10 @@ function ChatPage() {
|
|
|
223
227
|
mode: 'inlay',
|
|
224
228
|
getContainer: () => document.getElementById('chat-container'),
|
|
225
229
|
config: {
|
|
226
|
-
|
|
227
|
-
|
|
230
|
+
appInfo: {
|
|
231
|
+
appId: 'your-app-id',
|
|
232
|
+
workflowId: 'your-workflow-id',
|
|
233
|
+
},
|
|
228
234
|
},
|
|
229
235
|
auth: {
|
|
230
236
|
type: 'token',
|