@jimiford/channel-webex 1.0.0
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/LICENSE +21 -0
- package/README.md +314 -0
- package/dist/channel.d.ts +98 -0
- package/dist/channel.js +224 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +47 -0
- package/dist/send.d.ts +92 -0
- package/dist/send.js +304 -0
- package/dist/types.d.ts +223 -0
- package/dist/types.js +6 -0
- package/dist/webhook.d.ts +64 -0
- package/dist/webhook.js +297 -0
- package/openclaw.plugin.json +73 -0
- package/package.json +66 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "webex",
|
|
3
|
+
"channels": ["webex"],
|
|
4
|
+
"name": "Webex Channel",
|
|
5
|
+
"description": "Cisco Webex messaging integration for OpenClaw",
|
|
6
|
+
"configSchema": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"token": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Webex Bot access token"
|
|
13
|
+
},
|
|
14
|
+
"webhookUrl": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Public URL where webhooks will be received"
|
|
17
|
+
},
|
|
18
|
+
"dmPolicy": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["allow", "deny", "allowlisted"],
|
|
21
|
+
"default": "allow",
|
|
22
|
+
"description": "Policy for handling direct messages"
|
|
23
|
+
},
|
|
24
|
+
"allowFrom": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": { "type": "string" },
|
|
27
|
+
"description": "List of allowed person IDs or emails (used when dmPolicy is 'allowlisted')"
|
|
28
|
+
},
|
|
29
|
+
"webhookSecret": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Webhook secret for payload verification"
|
|
32
|
+
},
|
|
33
|
+
"apiBaseUrl": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": "https://webexapis.com/v1",
|
|
36
|
+
"description": "Base URL for Webex API"
|
|
37
|
+
},
|
|
38
|
+
"maxRetries": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"default": 3,
|
|
41
|
+
"description": "Maximum retry attempts for failed requests"
|
|
42
|
+
},
|
|
43
|
+
"retryDelayMs": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"default": 1000,
|
|
46
|
+
"description": "Retry delay in milliseconds"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": ["token", "webhookUrl"]
|
|
50
|
+
},
|
|
51
|
+
"uiHints": {
|
|
52
|
+
"token": {
|
|
53
|
+
"label": "Bot Access Token",
|
|
54
|
+
"sensitive": true,
|
|
55
|
+
"placeholder": "Your Webex bot token"
|
|
56
|
+
},
|
|
57
|
+
"webhookUrl": {
|
|
58
|
+
"label": "Webhook URL",
|
|
59
|
+
"placeholder": "https://your-domain.com/webhooks/webex"
|
|
60
|
+
},
|
|
61
|
+
"webhookSecret": {
|
|
62
|
+
"label": "Webhook Secret",
|
|
63
|
+
"sensitive": true,
|
|
64
|
+
"placeholder": "Optional secret for webhook verification"
|
|
65
|
+
},
|
|
66
|
+
"dmPolicy": {
|
|
67
|
+
"label": "DM Policy"
|
|
68
|
+
},
|
|
69
|
+
"allowFrom": {
|
|
70
|
+
"label": "Allowed Senders"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jimiford/channel-webex",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenClaw channel plugin for Cisco Webex messaging",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"openclaw.plugin.json"
|
|
10
|
+
],
|
|
11
|
+
"openclaw": {
|
|
12
|
+
"extensions": ["./dist/index.js"],
|
|
13
|
+
"channel": {
|
|
14
|
+
"id": "webex",
|
|
15
|
+
"label": "Webex",
|
|
16
|
+
"selectionLabel": "Cisco Webex",
|
|
17
|
+
"docsPath": "/channels/webex",
|
|
18
|
+
"blurb": "Cisco Webex messaging via bot webhooks.",
|
|
19
|
+
"aliases": ["cisco-webex"]
|
|
20
|
+
},
|
|
21
|
+
"install": {
|
|
22
|
+
"npmSpec": "@jimiford/channel-webex",
|
|
23
|
+
"defaultChoice": "npm"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc",
|
|
28
|
+
"dev": "tsc --watch",
|
|
29
|
+
"lint": "eslint src --ext .ts",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"test:coverage": "vitest run --coverage",
|
|
33
|
+
"prepublishOnly": "npm run build"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"openclaw",
|
|
37
|
+
"webex",
|
|
38
|
+
"cisco",
|
|
39
|
+
"channel",
|
|
40
|
+
"messaging",
|
|
41
|
+
"bot"
|
|
42
|
+
],
|
|
43
|
+
"author": "",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@openclaw/core": "^1.0.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependenciesMeta": {
|
|
49
|
+
"@openclaw/core": {
|
|
50
|
+
"optional": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"node-fetch": "^2.7.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^20.10.0",
|
|
58
|
+
"@types/node-fetch": "^2.6.9",
|
|
59
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
60
|
+
"typescript": "^5.3.0",
|
|
61
|
+
"vitest": "^4.0.18"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=18.0.0"
|
|
65
|
+
}
|
|
66
|
+
}
|