@kodelyth/twitch 2026.5.39
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/api.js +7 -0
- package/channel-plugin-api.js +7 -0
- package/index.js +7 -0
- package/klaw.plugin.json +232 -0
- package/package.json +50 -0
- package/runtime-api.js +7 -0
- package/setup-entry.js +7 -0
- package/setup-plugin-api.js +7 -0
package/api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/twitch/api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/twitch/api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/twitch/channel-plugin-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/twitch/channel-plugin-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/twitch/index.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/twitch/index.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/klaw.plugin.json
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "twitch",
|
|
3
|
+
"activation": {
|
|
4
|
+
"onStartup": false
|
|
5
|
+
},
|
|
6
|
+
"channels": [
|
|
7
|
+
"twitch"
|
|
8
|
+
],
|
|
9
|
+
"channelEnvVars": {
|
|
10
|
+
"twitch": [
|
|
11
|
+
"KLAW_TWITCH_ACCESS_TOKEN"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
"configSchema": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {}
|
|
18
|
+
},
|
|
19
|
+
"channelConfigs": {
|
|
20
|
+
"twitch": {
|
|
21
|
+
"schema": {
|
|
22
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
23
|
+
"anyOf": [
|
|
24
|
+
{
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"name": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"enabled": {
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
"markdown": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"tables": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"off",
|
|
40
|
+
"bullets",
|
|
41
|
+
"code",
|
|
42
|
+
"block"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
"defaultAccount": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"username": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"accessToken": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"clientId": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"channel": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1
|
|
63
|
+
},
|
|
64
|
+
"allowFrom": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"allowedRoles": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"items": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"enum": [
|
|
75
|
+
"moderator",
|
|
76
|
+
"owner",
|
|
77
|
+
"vip",
|
|
78
|
+
"subscriber",
|
|
79
|
+
"all"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"requireMention": {
|
|
84
|
+
"type": "boolean"
|
|
85
|
+
},
|
|
86
|
+
"responsePrefix": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"clientSecret": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"refreshToken": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"expiresIn": {
|
|
96
|
+
"anyOf": [
|
|
97
|
+
{
|
|
98
|
+
"type": "number"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "null"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"obtainmentTimestamp": {
|
|
106
|
+
"type": "number"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"username",
|
|
111
|
+
"accessToken",
|
|
112
|
+
"channel"
|
|
113
|
+
],
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"name": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"enabled": {
|
|
123
|
+
"type": "boolean"
|
|
124
|
+
},
|
|
125
|
+
"markdown": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"tables": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"enum": [
|
|
131
|
+
"off",
|
|
132
|
+
"bullets",
|
|
133
|
+
"code",
|
|
134
|
+
"block"
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"additionalProperties": false
|
|
139
|
+
},
|
|
140
|
+
"defaultAccount": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"accounts": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"propertyNames": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"additionalProperties": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"username": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"accessToken": {
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
"clientId": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"channel": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"minLength": 1
|
|
163
|
+
},
|
|
164
|
+
"enabled": {
|
|
165
|
+
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"allowFrom": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"items": {
|
|
170
|
+
"type": "string"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"allowedRoles": {
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"enum": [
|
|
178
|
+
"moderator",
|
|
179
|
+
"owner",
|
|
180
|
+
"vip",
|
|
181
|
+
"subscriber",
|
|
182
|
+
"all"
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"requireMention": {
|
|
187
|
+
"type": "boolean"
|
|
188
|
+
},
|
|
189
|
+
"responsePrefix": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"clientSecret": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
"refreshToken": {
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
"expiresIn": {
|
|
199
|
+
"anyOf": [
|
|
200
|
+
{
|
|
201
|
+
"type": "number"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"type": "null"
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"obtainmentTimestamp": {
|
|
209
|
+
"type": "number"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"username",
|
|
214
|
+
"accessToken",
|
|
215
|
+
"channel"
|
|
216
|
+
],
|
|
217
|
+
"additionalProperties": false
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": [
|
|
222
|
+
"accounts"
|
|
223
|
+
],
|
|
224
|
+
"additionalProperties": false
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"label": "Twitch",
|
|
229
|
+
"description": "Twitch chat integration"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kodelyth/twitch",
|
|
3
|
+
"version": "2026.5.39",
|
|
4
|
+
"description": "Klaw Twitch channel plugin",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/kodelyth/klaw"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@twurple/api": "8.1.4",
|
|
12
|
+
"@twurple/auth": "8.1.4",
|
|
13
|
+
"@twurple/chat": "8.1.4",
|
|
14
|
+
"zod": "4.4.3"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@kodelyth/plugin-sdk": "1.0.1"
|
|
18
|
+
},
|
|
19
|
+
"klaw": {
|
|
20
|
+
"extensions": [
|
|
21
|
+
"./index.js"
|
|
22
|
+
],
|
|
23
|
+
"setupEntry": "./setup-entry.js",
|
|
24
|
+
"install": {
|
|
25
|
+
"npmSpec": "@kodelyth/twitch",
|
|
26
|
+
"defaultChoice": "npm",
|
|
27
|
+
"minHostVersion": ">=2026.4.10"
|
|
28
|
+
},
|
|
29
|
+
"compat": {
|
|
30
|
+
"pluginApi": ">=2026.5.39"
|
|
31
|
+
},
|
|
32
|
+
"build": {
|
|
33
|
+
"klawVersion": "2026.5.39"
|
|
34
|
+
},
|
|
35
|
+
"channel": {
|
|
36
|
+
"id": "twitch",
|
|
37
|
+
"label": "Twitch",
|
|
38
|
+
"selectionLabel": "Twitch (Chat)",
|
|
39
|
+
"docsPath": "/channels/twitch",
|
|
40
|
+
"blurb": "Twitch chat integration",
|
|
41
|
+
"aliases": [
|
|
42
|
+
"twitch-chat"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"release": {
|
|
46
|
+
"publishToClawHub": true,
|
|
47
|
+
"publishToNpm": true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
package/runtime-api.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/twitch/runtime-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/twitch/runtime-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
package/setup-entry.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/twitch/setup-entry.js";
|
|
2
|
+
import defaultModule from "../../../dist/extensions/twitch/setup-entry.js";
|
|
3
|
+
let defaultExport = defaultModule;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../../dist/extensions/twitch/setup-plugin-api.js";
|
|
2
|
+
import * as module from "../../../dist/extensions/twitch/setup-plugin-api.js";
|
|
3
|
+
let defaultExport = "default" in module ? module.default : module;
|
|
4
|
+
for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
|
|
5
|
+
defaultExport = defaultExport.default;
|
|
6
|
+
}
|
|
7
|
+
export { defaultExport as default };
|