@yaoyuanchao/dingtalk 1.4.16 → 1.4.17
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/package.json +1 -1
- package/src/channel.ts +5 -0
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -349,6 +349,11 @@ export const dingtalkPlugin = {
|
|
|
349
349
|
|
|
350
350
|
// Handle message actions (sendAttachment, etc.)
|
|
351
351
|
actions: {
|
|
352
|
+
// List supported actions for this channel - SDK uses this to tell agent what's available
|
|
353
|
+
listActions({ cfg }: { cfg: any }) {
|
|
354
|
+
return ['send', 'sendAttachment'];
|
|
355
|
+
},
|
|
356
|
+
|
|
352
357
|
supportsAction({ action }: { action: string }) {
|
|
353
358
|
return action === 'sendAttachment' || action === 'send';
|
|
354
359
|
},
|