@theowlops/channelhub 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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +179 -0
  3. package/bin/cli.ts +36 -0
  4. package/dist/bridges/mcp/index.d.ts +14 -0
  5. package/dist/bridges/mcp/index.js +96 -0
  6. package/dist/bridges/webhook/index.d.ts +32 -0
  7. package/dist/bridges/webhook/index.js +123 -0
  8. package/dist/channels/discord/adapter.d.ts +24 -0
  9. package/dist/channels/discord/index.d.ts +1 -0
  10. package/dist/channels/discord/index.js +130 -0
  11. package/dist/channels/slack/adapter.d.ts +20 -0
  12. package/dist/channels/slack/index.d.ts +1 -0
  13. package/dist/channels/slack/index.js +122 -0
  14. package/dist/channels/telegram/adapter.d.ts +21 -0
  15. package/dist/channels/telegram/index.d.ts +2 -0
  16. package/dist/channels/telegram/index.js +179 -0
  17. package/dist/channels/telegram/types.d.ts +6 -0
  18. package/dist/channels/zalo/adapter.d.ts +22 -0
  19. package/dist/channels/zalo/index.d.ts +5 -0
  20. package/dist/channels/zalo/index.js +38337 -0
  21. package/dist/commands/modules/general.d.ts +4 -0
  22. package/dist/commands/modules/group.d.ts +4 -0
  23. package/dist/commands/modules/reaction.d.ts +4 -0
  24. package/dist/commands/router.d.ts +7 -0
  25. package/dist/commands/types.d.ts +15 -0
  26. package/dist/config/env.d.ts +13 -0
  27. package/dist/core/adapter.d.ts +12 -0
  28. package/dist/core/bus.d.ts +12 -0
  29. package/dist/core/context.d.ts +9 -0
  30. package/dist/core/hub.d.ts +14 -0
  31. package/dist/core/index.d.ts +5 -0
  32. package/dist/core/index.js +99 -0
  33. package/dist/core/types.d.ts +63 -0
  34. package/dist/index.cjs +39235 -0
  35. package/dist/index.d.ts +16 -0
  36. package/dist/index.js +39191 -0
  37. package/dist/login_personal.js +60 -0
  38. package/dist/oa/client.d.ts +25 -0
  39. package/dist/oa/index.d.ts +3 -0
  40. package/dist/oa/index.js +556 -0
  41. package/dist/personal/client.d.ts +162 -0
  42. package/dist/personal/index.d.ts +5 -0
  43. package/dist/personal/index.js +37098 -0
  44. package/package.json +107 -0
package/package.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "name": "@theowlops/channelhub",
3
+ "version": "1.0.0",
4
+ "description": "ChannelHub SDK - Unified multi-channel messaging toolkit (Zalo, Telegram, Discord, Slack) for AI agents, standalone bots, and enterprise automation.",
5
+ "module": "dist/index.js",
6
+ "main": "dist/index.cjs",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "bin": {
10
+ "channelhub": "bin/cli.ts",
11
+ "zalohub": "bin/cli.ts"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs",
17
+ "types": "./dist/index.d.ts"
18
+ },
19
+ "./core": {
20
+ "import": "./dist/core/index.js",
21
+ "types": "./dist/core/index.d.ts"
22
+ },
23
+ "./zalo": {
24
+ "import": "./dist/channels/zalo/index.js",
25
+ "types": "./dist/channels/zalo/index.d.ts"
26
+ },
27
+ "./telegram": {
28
+ "import": "./dist/channels/telegram/index.js",
29
+ "types": "./dist/channels/telegram/index.d.ts"
30
+ },
31
+ "./discord": {
32
+ "import": "./dist/channels/discord/index.js",
33
+ "types": "./dist/channels/discord/index.d.ts"
34
+ },
35
+ "./slack": {
36
+ "import": "./dist/channels/slack/index.js",
37
+ "types": "./dist/channels/slack/index.d.ts"
38
+ },
39
+ "./mcp": {
40
+ "import": "./dist/bridges/mcp/index.js",
41
+ "types": "./dist/bridges/mcp/index.d.ts"
42
+ },
43
+ "./webhook": {
44
+ "import": "./dist/bridges/webhook/index.js",
45
+ "types": "./dist/bridges/webhook/index.d.ts"
46
+ },
47
+ "./personal": {
48
+ "import": "./dist/personal/index.js",
49
+ "types": "./dist/personal/index.d.ts"
50
+ },
51
+ "./oa": {
52
+ "import": "./dist/oa/index.js",
53
+ "types": "./dist/oa/index.d.ts"
54
+ }
55
+ },
56
+ "files": [
57
+ "dist/",
58
+ "bin/",
59
+ "README.md",
60
+ "LICENSE"
61
+ ],
62
+ "scripts": {
63
+ "login:personal": "bun run scripts/login_personal.ts",
64
+ "start": "bun run src/index.ts",
65
+ "dev": "bun --watch run src/index.ts",
66
+ "build": "bun run scripts/build.ts",
67
+ "build:check": "bun x tsc --noEmit",
68
+ "prepublishOnly": "bun run build"
69
+ },
70
+ "keywords": [
71
+ "channelhub",
72
+ "messaging",
73
+ "multi-channel",
74
+ "zalo",
75
+ "telegram",
76
+ "discord",
77
+ "slack",
78
+ "mcp",
79
+ "ai-agent",
80
+ "hermes",
81
+ "openclaw",
82
+ "chatbot",
83
+ "webhook",
84
+ "sdk"
85
+ ],
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "git+https://github.com/TheOwlOps/ChannelHub.git"
89
+ },
90
+ "bugs": {
91
+ "url": "https://github.com/TheOwlOps/ChannelHub/issues"
92
+ },
93
+ "homepage": "https://github.com/TheOwlOps/ChannelHub#readme",
94
+ "license": "MIT",
95
+ "dependencies": {
96
+ "dotenv": "^16.4.7",
97
+ "zca-js": "^2.2.0"
98
+ },
99
+ "devDependencies": {
100
+ "@types/node": "^22.0.0",
101
+ "bun-types": "latest",
102
+ "typescript": "^5.7.0"
103
+ },
104
+ "engines": {
105
+ "node": ">=18.0.0"
106
+ }
107
+ }