@ever-works/discord-connector-plugin 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/README.md +42 -0
- package/dist/index.cjs +862 -0
- package/dist/index.d.cts +36 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +859 -0
- package/package.json +108 -0
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ever-works/discord-connector-plugin",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Discord connector plugin for Ever Works platform (bidirectional; outbound channel-message posting via discord.js REST)",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Ever Co. LTD",
|
|
7
|
+
"email": "ever@ever.co",
|
|
8
|
+
"url": "https://ever.co"
|
|
9
|
+
},
|
|
10
|
+
"license": "AGPL-3.0",
|
|
11
|
+
"private": false,
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc --noEmit && tsup",
|
|
28
|
+
"dev": "tsup --watch",
|
|
29
|
+
"clean": "rm -rf dist",
|
|
30
|
+
"type-check": "tsc --noEmit",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:watch": "vitest"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@ever-works/plugin": "^1.2.0",
|
|
36
|
+
"discord.js": "^14.16.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^22.0.0",
|
|
40
|
+
"tsup": "^8.0.0",
|
|
41
|
+
"typescript": "^5.9.3",
|
|
42
|
+
"vitest": "^4.1.0"
|
|
43
|
+
},
|
|
44
|
+
"everworks": {
|
|
45
|
+
"plugin": {
|
|
46
|
+
"id": "discord-connector",
|
|
47
|
+
"name": "Discord Connector",
|
|
48
|
+
"version": "1.0.0",
|
|
49
|
+
"category": "connector",
|
|
50
|
+
"capabilities": [
|
|
51
|
+
"connector",
|
|
52
|
+
"connector-discord"
|
|
53
|
+
],
|
|
54
|
+
"description": "Bidirectional Discord connector. Outbound posts messages to a Discord channel with a bot token via the discord.js REST client (embeds supported). Inbound Interactions API routing lands in a follow-up.",
|
|
55
|
+
"systemPlugin": false,
|
|
56
|
+
"builtIn": false,
|
|
57
|
+
"isDefault": false,
|
|
58
|
+
"autoEnable": false,
|
|
59
|
+
"settings": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": [
|
|
62
|
+
"botToken"
|
|
63
|
+
],
|
|
64
|
+
"properties": {
|
|
65
|
+
"botToken": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"title": "Bot token",
|
|
68
|
+
"x-secret": true,
|
|
69
|
+
"x-envVar": "DISCORD_BOT_TOKEN"
|
|
70
|
+
},
|
|
71
|
+
"publicKey": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"title": "Application public key (for inbound Interactions API — used in a follow-up)",
|
|
74
|
+
"x-secret": true,
|
|
75
|
+
"x-envVar": "DISCORD_PUBLIC_KEY"
|
|
76
|
+
},
|
|
77
|
+
"applicationId": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"title": "Discord application (client) id"
|
|
80
|
+
},
|
|
81
|
+
"guildId": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"title": "Default guild/server id"
|
|
84
|
+
},
|
|
85
|
+
"defaultChannelId": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"title": "Default channel id (e.g. 123456789012345678)"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"distribution": "registry"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"repository": {
|
|
95
|
+
"type": "git",
|
|
96
|
+
"url": "git+https://github.com/ever-works/ever-works.git",
|
|
97
|
+
"directory": "packages/plugins/discord-connector"
|
|
98
|
+
},
|
|
99
|
+
"homepage": "https://github.com/ever-works/ever-works/tree/main/packages/plugins/discord-connector#readme",
|
|
100
|
+
"bugs": {
|
|
101
|
+
"url": "https://github.com/ever-works/ever-works/issues"
|
|
102
|
+
},
|
|
103
|
+
"everworksRelease": {
|
|
104
|
+
"contentHash": "sha256:edde04a01b41f0dc7b1ed21d4615a77527ffe91adebb434ccac2605c3e3f0366",
|
|
105
|
+
"commit": "6628882fbf102716a412f7d9a66d8387bd6a784c",
|
|
106
|
+
"source": "https://github.com/ever-works/ever-works/tree/6628882fbf102716a412f7d9a66d8387bd6a784c/packages/plugins/discord-connector"
|
|
107
|
+
}
|
|
108
|
+
}
|