@yuniruyuni/n8n-nodes-twitch 0.1.1
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.md +19 -0
- package/README.ja.md +243 -0
- package/README.md +243 -0
- package/dist/credentials/TwitchApi.credentials.d.ts +10 -0
- package/dist/credentials/TwitchApi.credentials.js +47 -0
- package/dist/credentials/TwitchApi.credentials.js.map +1 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.d.ts +10 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.js +434 -0
- package/dist/credentials/TwitchOAuth2Api.credentials.js.map +1 -0
- package/dist/icons/twitch.dark.svg +1 -0
- package/dist/icons/twitch.svg +1 -0
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.d.ts +4 -0
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js +196 -0
- package/dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js.map +1 -0
- package/dist/nodes/TwitchAnnouncements/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchAnnouncements/twitch.svg +1 -0
- package/dist/nodes/TwitchBans/TwitchBans.node.d.ts +4 -0
- package/dist/nodes/TwitchBans/TwitchBans.node.js +354 -0
- package/dist/nodes/TwitchBans/TwitchBans.node.js.map +1 -0
- package/dist/nodes/TwitchBans/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchBans/twitch.svg +1 -0
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.d.ts +4 -0
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js +202 -0
- package/dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js.map +1 -0
- package/dist/nodes/TwitchBitsLeaderboard/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchBitsLeaderboard/twitch.svg +1 -0
- package/dist/nodes/TwitchChannels/TwitchChannels.node.d.ts +4 -0
- package/dist/nodes/TwitchChannels/TwitchChannels.node.js +124 -0
- package/dist/nodes/TwitchChannels/TwitchChannels.node.js.map +1 -0
- package/dist/nodes/TwitchChannels/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchChannels/twitch.svg +1 -0
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.d.ts +4 -0
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js +160 -0
- package/dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js.map +1 -0
- package/dist/nodes/TwitchChatMessages/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchChatMessages/twitch.svg +1 -0
- package/dist/nodes/TwitchChatters/TwitchChatters.node.d.ts +4 -0
- package/dist/nodes/TwitchChatters/TwitchChatters.node.js +148 -0
- package/dist/nodes/TwitchChatters/TwitchChatters.node.js.map +1 -0
- package/dist/nodes/TwitchChatters/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchChatters/twitch.svg +1 -0
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.d.ts +4 -0
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js +113 -0
- package/dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js.map +1 -0
- package/dist/nodes/TwitchCheermotes/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchCheermotes/twitch.svg +1 -0
- package/dist/nodes/TwitchClips/TwitchClips.node.d.ts +4 -0
- package/dist/nodes/TwitchClips/TwitchClips.node.js +308 -0
- package/dist/nodes/TwitchClips/TwitchClips.node.js.map +1 -0
- package/dist/nodes/TwitchClips/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchClips/twitch.svg +1 -0
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.d.ts +4 -0
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js +606 -0
- package/dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js.map +1 -0
- package/dist/nodes/TwitchCustomRewards/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchCustomRewards/twitch.svg +1 -0
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.d.ts +4 -0
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js +125 -0
- package/dist/nodes/TwitchEmotes/TwitchEmotes.node.js.map +1 -0
- package/dist/nodes/TwitchEmotes/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchEmotes/twitch.svg +1 -0
- package/dist/nodes/TwitchGames/TwitchGames.node.d.ts +4 -0
- package/dist/nodes/TwitchGames/TwitchGames.node.js +260 -0
- package/dist/nodes/TwitchGames/TwitchGames.node.js.map +1 -0
- package/dist/nodes/TwitchGames/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchGames/twitch.svg +1 -0
- package/dist/nodes/TwitchModerators/TwitchModerators.node.d.ts +4 -0
- package/dist/nodes/TwitchModerators/TwitchModerators.node.js +310 -0
- package/dist/nodes/TwitchModerators/TwitchModerators.node.js.map +1 -0
- package/dist/nodes/TwitchModerators/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchModerators/twitch.svg +1 -0
- package/dist/nodes/TwitchPolls/TwitchPolls.node.d.ts +4 -0
- package/dist/nodes/TwitchPolls/TwitchPolls.node.js +452 -0
- package/dist/nodes/TwitchPolls/TwitchPolls.node.js.map +1 -0
- package/dist/nodes/TwitchPolls/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchPolls/twitch.svg +1 -0
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.d.ts +4 -0
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js +408 -0
- package/dist/nodes/TwitchPredictions/TwitchPredictions.node.js.map +1 -0
- package/dist/nodes/TwitchPredictions/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchPredictions/twitch.svg +1 -0
- package/dist/nodes/TwitchRaids/TwitchRaids.node.d.ts +4 -0
- package/dist/nodes/TwitchRaids/TwitchRaids.node.js +192 -0
- package/dist/nodes/TwitchRaids/TwitchRaids.node.js.map +1 -0
- package/dist/nodes/TwitchRaids/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchRaids/twitch.svg +1 -0
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.d.ts +4 -0
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js +301 -0
- package/dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js.map +1 -0
- package/dist/nodes/TwitchRedemptions/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchRedemptions/twitch.svg +1 -0
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.d.ts +4 -0
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js +457 -0
- package/dist/nodes/TwitchSchedule/TwitchSchedule.node.js.map +1 -0
- package/dist/nodes/TwitchSchedule/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchSchedule/twitch.svg +1 -0
- package/dist/nodes/TwitchSearch/TwitchSearch.node.d.ts +4 -0
- package/dist/nodes/TwitchSearch/TwitchSearch.node.js +164 -0
- package/dist/nodes/TwitchSearch/TwitchSearch.node.js.map +1 -0
- package/dist/nodes/TwitchSearch/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchSearch/twitch.svg +1 -0
- package/dist/nodes/TwitchStreams/TwitchStreams.node.d.ts +4 -0
- package/dist/nodes/TwitchStreams/TwitchStreams.node.js +124 -0
- package/dist/nodes/TwitchStreams/TwitchStreams.node.js.map +1 -0
- package/dist/nodes/TwitchStreams/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchStreams/twitch.svg +1 -0
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.d.ts +4 -0
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js +232 -0
- package/dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js.map +1 -0
- package/dist/nodes/TwitchSubscriptions/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchSubscriptions/twitch.svg +1 -0
- package/dist/nodes/TwitchTeams/TwitchTeams.node.d.ts +4 -0
- package/dist/nodes/TwitchTeams/TwitchTeams.node.js +219 -0
- package/dist/nodes/TwitchTeams/TwitchTeams.node.js.map +1 -0
- package/dist/nodes/TwitchTeams/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchTeams/twitch.svg +1 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.d.ts +12 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js +418 -0
- package/dist/nodes/TwitchTrigger/TwitchTrigger.node.js.map +1 -0
- package/dist/nodes/TwitchTrigger/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchTrigger/twitch.svg +1 -0
- package/dist/nodes/TwitchUsers/TwitchUsers.node.d.ts +4 -0
- package/dist/nodes/TwitchUsers/TwitchUsers.node.js +124 -0
- package/dist/nodes/TwitchUsers/TwitchUsers.node.js.map +1 -0
- package/dist/nodes/TwitchUsers/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchUsers/twitch.svg +1 -0
- package/dist/nodes/TwitchVideos/TwitchVideos.node.d.ts +4 -0
- package/dist/nodes/TwitchVideos/TwitchVideos.node.js +371 -0
- package/dist/nodes/TwitchVideos/TwitchVideos.node.js.map +1 -0
- package/dist/nodes/TwitchVideos/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchVideos/twitch.svg +1 -0
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.d.ts +4 -0
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js +105 -0
- package/dist/nodes/TwitchWhispers/TwitchWhispers.node.js.map +1 -0
- package/dist/nodes/TwitchWhispers/twitch.dark.svg +1 -0
- package/dist/nodes/TwitchWhispers/twitch.svg +1 -0
- package/dist/package.json +86 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TwitchVideos = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class TwitchVideos {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'Twitch Videos',
|
|
9
|
+
name: 'twitchVideos',
|
|
10
|
+
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
14
|
+
description: 'Interact with Twitch Videos API',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'Twitch Videos',
|
|
17
|
+
},
|
|
18
|
+
usableAsTool: true,
|
|
19
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'twitchApi',
|
|
24
|
+
required: true,
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
authentication: ['clientCredentials'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'twitchOAuth2Api',
|
|
33
|
+
required: true,
|
|
34
|
+
displayOptions: {
|
|
35
|
+
show: {
|
|
36
|
+
authentication: ['oAuth2'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
requestDefaults: {
|
|
42
|
+
baseURL: 'https://api.twitch.tv/helix',
|
|
43
|
+
headers: {
|
|
44
|
+
Accept: 'application/json',
|
|
45
|
+
'Content-Type': 'application/json',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
properties: [
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Authentication',
|
|
51
|
+
name: 'authentication',
|
|
52
|
+
type: 'options',
|
|
53
|
+
options: [
|
|
54
|
+
{
|
|
55
|
+
name: 'Client Credentials',
|
|
56
|
+
value: 'clientCredentials',
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'OAuth2',
|
|
60
|
+
value: 'oAuth2',
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
default: 'oAuth2',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Operation',
|
|
67
|
+
name: 'operation',
|
|
68
|
+
type: 'options',
|
|
69
|
+
noDataExpression: true,
|
|
70
|
+
options: [
|
|
71
|
+
{
|
|
72
|
+
name: 'Get Videos',
|
|
73
|
+
value: 'getVideos',
|
|
74
|
+
action: 'Get videos',
|
|
75
|
+
description: 'Get videos by user ID, game ID, or video ID',
|
|
76
|
+
routing: {
|
|
77
|
+
request: {
|
|
78
|
+
method: 'GET',
|
|
79
|
+
url: '/videos',
|
|
80
|
+
},
|
|
81
|
+
send: {
|
|
82
|
+
preSend: [
|
|
83
|
+
async function (requestOptions) {
|
|
84
|
+
const queryBy = this.getNodeParameter('queryBy', 0);
|
|
85
|
+
const qs = {};
|
|
86
|
+
if (queryBy === 'userId') {
|
|
87
|
+
const userId = this.getNodeParameter('userId', 0);
|
|
88
|
+
qs.user_id = userId;
|
|
89
|
+
}
|
|
90
|
+
else if (queryBy === 'gameId') {
|
|
91
|
+
const gameId = this.getNodeParameter('gameId', 0);
|
|
92
|
+
qs.game_id = gameId;
|
|
93
|
+
}
|
|
94
|
+
else if (queryBy === 'videoId') {
|
|
95
|
+
const videoIds = this.getNodeParameter('videoIds', 0);
|
|
96
|
+
qs.id = videoIds;
|
|
97
|
+
}
|
|
98
|
+
const additionalFields = this.getNodeParameter('additionalFields', 0, {});
|
|
99
|
+
if (additionalFields.first) {
|
|
100
|
+
qs.first = additionalFields.first;
|
|
101
|
+
}
|
|
102
|
+
if (additionalFields.language) {
|
|
103
|
+
qs.language = additionalFields.language;
|
|
104
|
+
}
|
|
105
|
+
if (additionalFields.period) {
|
|
106
|
+
qs.period = additionalFields.period;
|
|
107
|
+
}
|
|
108
|
+
if (additionalFields.sort) {
|
|
109
|
+
qs.sort = additionalFields.sort;
|
|
110
|
+
}
|
|
111
|
+
if (additionalFields.type) {
|
|
112
|
+
qs.type = additionalFields.type;
|
|
113
|
+
}
|
|
114
|
+
requestOptions.qs = qs;
|
|
115
|
+
return requestOptions;
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
output: {
|
|
120
|
+
postReceive: [
|
|
121
|
+
{
|
|
122
|
+
type: 'rootProperty',
|
|
123
|
+
properties: {
|
|
124
|
+
property: 'data',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'Delete Videos',
|
|
133
|
+
value: 'deleteVideos',
|
|
134
|
+
action: 'Delete videos',
|
|
135
|
+
description: 'Delete one or more videos (requires OAuth2 with channel:manage:videos scope)',
|
|
136
|
+
routing: {
|
|
137
|
+
request: {
|
|
138
|
+
method: 'DELETE',
|
|
139
|
+
url: '/videos',
|
|
140
|
+
},
|
|
141
|
+
send: {
|
|
142
|
+
preSend: [
|
|
143
|
+
async function (requestOptions) {
|
|
144
|
+
const videoIds = this.getNodeParameter('deleteVideoIds', 0);
|
|
145
|
+
requestOptions.qs = {
|
|
146
|
+
id: videoIds,
|
|
147
|
+
};
|
|
148
|
+
return requestOptions;
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
default: 'getVideos',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Query By',
|
|
159
|
+
name: 'queryBy',
|
|
160
|
+
type: 'options',
|
|
161
|
+
displayOptions: {
|
|
162
|
+
show: {
|
|
163
|
+
operation: ['getVideos'],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
options: [
|
|
167
|
+
{
|
|
168
|
+
name: 'User ID',
|
|
169
|
+
value: 'userId',
|
|
170
|
+
description: 'Get videos by user ID',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'Game ID',
|
|
174
|
+
value: 'gameId',
|
|
175
|
+
description: 'Get videos by game ID',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: 'Video ID',
|
|
179
|
+
value: 'videoId',
|
|
180
|
+
description: 'Get videos by video ID(s)',
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
default: 'userId',
|
|
184
|
+
required: true,
|
|
185
|
+
description: 'How to query for videos (at least one required)',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
displayName: 'User ID',
|
|
189
|
+
name: 'userId',
|
|
190
|
+
type: 'string',
|
|
191
|
+
displayOptions: {
|
|
192
|
+
show: {
|
|
193
|
+
operation: ['getVideos'],
|
|
194
|
+
queryBy: ['userId'],
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
default: '',
|
|
198
|
+
required: true,
|
|
199
|
+
placeholder: 'e.g. 123456789',
|
|
200
|
+
description: 'ID of the user who owns the videos',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
displayName: 'Game ID',
|
|
204
|
+
name: 'gameId',
|
|
205
|
+
type: 'string',
|
|
206
|
+
displayOptions: {
|
|
207
|
+
show: {
|
|
208
|
+
operation: ['getVideos'],
|
|
209
|
+
queryBy: ['gameId'],
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
default: '',
|
|
213
|
+
required: true,
|
|
214
|
+
placeholder: 'e.g. 493057',
|
|
215
|
+
description: 'ID of the game the videos are of',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
displayName: 'Video IDs',
|
|
219
|
+
name: 'videoIds',
|
|
220
|
+
type: 'string',
|
|
221
|
+
displayOptions: {
|
|
222
|
+
show: {
|
|
223
|
+
operation: ['getVideos'],
|
|
224
|
+
queryBy: ['videoId'],
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
default: '',
|
|
228
|
+
required: true,
|
|
229
|
+
placeholder: 'e.g. 234482848 or 234482848,234482850',
|
|
230
|
+
description: 'ID(s) of the video(s). Separate multiple IDs with commas. Maximum 100 IDs.',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
displayName: 'Additional Fields',
|
|
234
|
+
name: 'additionalFields',
|
|
235
|
+
type: 'collection',
|
|
236
|
+
placeholder: 'Add Field',
|
|
237
|
+
default: {},
|
|
238
|
+
displayOptions: {
|
|
239
|
+
show: {
|
|
240
|
+
operation: ['getVideos'],
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
options: [
|
|
244
|
+
{
|
|
245
|
+
displayName: 'First',
|
|
246
|
+
name: 'first',
|
|
247
|
+
type: 'number',
|
|
248
|
+
default: 20,
|
|
249
|
+
typeOptions: {
|
|
250
|
+
minValue: 1,
|
|
251
|
+
maxValue: 100,
|
|
252
|
+
},
|
|
253
|
+
description: 'Maximum number of videos to return. Default: 20. Max: 100.',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
displayName: 'Language',
|
|
257
|
+
name: 'language',
|
|
258
|
+
type: 'string',
|
|
259
|
+
default: '',
|
|
260
|
+
placeholder: 'e.g. en',
|
|
261
|
+
description: 'Language of the videos to return (ISO 639-1 two-letter code)',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
displayName: 'Period',
|
|
265
|
+
name: 'period',
|
|
266
|
+
type: 'options',
|
|
267
|
+
options: [
|
|
268
|
+
{
|
|
269
|
+
name: 'All',
|
|
270
|
+
value: 'all',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: 'Day',
|
|
274
|
+
value: 'day',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: 'Month',
|
|
278
|
+
value: 'month',
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: 'Week',
|
|
282
|
+
value: 'week',
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
default: 'all',
|
|
286
|
+
description: 'Period during which the videos were created',
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
displayName: 'Sort',
|
|
290
|
+
name: 'sort',
|
|
291
|
+
type: 'options',
|
|
292
|
+
options: [
|
|
293
|
+
{
|
|
294
|
+
name: 'Time',
|
|
295
|
+
value: 'time',
|
|
296
|
+
description: 'Sort by creation time (newest first)',
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: 'Trending',
|
|
300
|
+
value: 'trending',
|
|
301
|
+
description: 'Sort by trending',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'Views',
|
|
305
|
+
value: 'views',
|
|
306
|
+
description: 'Sort by view count (highest first)',
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
default: 'time',
|
|
310
|
+
description: 'Sort order of the videos',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
displayName: 'Type',
|
|
314
|
+
name: 'type',
|
|
315
|
+
type: 'options',
|
|
316
|
+
options: [
|
|
317
|
+
{
|
|
318
|
+
name: 'All',
|
|
319
|
+
value: 'all',
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
name: 'Archive',
|
|
323
|
+
value: 'archive',
|
|
324
|
+
description: 'Past broadcasts',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
name: 'Highlight',
|
|
328
|
+
value: 'highlight',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: 'Upload',
|
|
332
|
+
value: 'upload',
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
default: 'all',
|
|
336
|
+
description: 'Type of videos to return',
|
|
337
|
+
},
|
|
338
|
+
],
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
displayName: 'Video IDs',
|
|
342
|
+
name: 'deleteVideoIds',
|
|
343
|
+
type: 'string',
|
|
344
|
+
displayOptions: {
|
|
345
|
+
show: {
|
|
346
|
+
operation: ['deleteVideos'],
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
default: '',
|
|
350
|
+
required: true,
|
|
351
|
+
placeholder: 'e.g. 234482848 or 234482848,234482850',
|
|
352
|
+
description: 'ID(s) of the video(s) to delete. Separate multiple IDs with commas. Maximum 5 IDs.',
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
displayName: 'Note',
|
|
356
|
+
name: 'deleteNote',
|
|
357
|
+
type: 'notice',
|
|
358
|
+
default: '',
|
|
359
|
+
displayOptions: {
|
|
360
|
+
show: {
|
|
361
|
+
operation: ['deleteVideos'],
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
description: 'Requires OAuth2 authentication with channel:manage:videos scope. You can only delete videos owned by the authenticated user.',
|
|
365
|
+
},
|
|
366
|
+
],
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
exports.TwitchVideos = TwitchVideos;
|
|
371
|
+
//# sourceMappingURL=TwitchVideos.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TwitchVideos.node.js","sourceRoot":"","sources":["../../../nodes/TwitchVideos/TwitchVideos.node.ts"],"names":[],"mappings":";;;AAAA,+CAAgH;AAEhH,MAAa,YAAY;IAAzB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,eAAe;YAC5B,IAAI,EAAE,cAAc;YACpB,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE;gBACT,IAAI,EAAE,eAAe;aACrB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,cAAc,EAAE,CAAC,mBAAmB,CAAC;yBACrC;qBACD;iBACD;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C,IAAI,EAAE,KAAK;oCACX,KAAK,EAAE,KAAK;iCACZ;gCACD;oCACC,IAAI,EAAE,SAAS;oCACf,KAAK,EAAE,SAAS;oCAChB,WAAW,EAAE,iBAAiB;iCAC9B;gCACD;oCACC,IAAI,EAAE,WAAW;oCACjB,KAAK,EAAE,WAAW;iCAClB;gCACD;oCACC,IAAI,EAAE,QAAQ;oCACd,KAAK,EAAE,QAAQ;iCACf;6BACD;4BACD,OAAO,EAAE,KAAK;4BACd,WAAW,EAAE,0BAA0B;yBACvC;qBACD;iBACD;gBAED;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,QAAQ;oBACd,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,cAAc,CAAC;yBAC3B;qBACD;oBACD,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,uCAAuC;oBACpD,WAAW,EAAE,oFAAoF;iBACjG;gBACD;oBACC,WAAW,EAAE,MAAM;oBACnB,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,cAAc,EAAE;wBACf,IAAI,EAAE;4BACL,SAAS,EAAE,CAAC,cAAc,CAAC;yBAC3B;qBACD;oBACD,WAAW,EAAE,8HAA8H;iBAC3I;aACD;SACD,CAAC;IACH,CAAC;CAAA;AApXD,oCAoXC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path fill="#FFFFFF" d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TwitchWhispers = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
class TwitchWhispers {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.description = {
|
|
8
|
+
displayName: 'Twitch Whispers',
|
|
9
|
+
name: 'twitchWhispers',
|
|
10
|
+
icon: { light: 'file:twitch.svg', dark: 'file:twitch.dark.svg' },
|
|
11
|
+
group: ['transform'],
|
|
12
|
+
version: 1,
|
|
13
|
+
subtitle: '={{$parameter["operation"]}}',
|
|
14
|
+
description: 'Interact with Twitch Whispers API',
|
|
15
|
+
defaults: {
|
|
16
|
+
name: 'Twitch Whispers',
|
|
17
|
+
},
|
|
18
|
+
usableAsTool: true,
|
|
19
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
20
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
+
credentials: [
|
|
22
|
+
{
|
|
23
|
+
name: 'twitchOAuth2Api',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
requestDefaults: {
|
|
28
|
+
baseURL: 'https://api.twitch.tv/helix',
|
|
29
|
+
headers: {
|
|
30
|
+
Accept: 'application/json',
|
|
31
|
+
'Content-Type': 'application/json',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
properties: [
|
|
35
|
+
{
|
|
36
|
+
displayName: 'Operation',
|
|
37
|
+
name: 'operation',
|
|
38
|
+
type: 'options',
|
|
39
|
+
noDataExpression: true,
|
|
40
|
+
options: [
|
|
41
|
+
{
|
|
42
|
+
name: 'Send Whisper',
|
|
43
|
+
value: 'sendWhisper',
|
|
44
|
+
action: 'Send a whisper',
|
|
45
|
+
description: 'Send a whisper message to a user',
|
|
46
|
+
routing: {
|
|
47
|
+
request: {
|
|
48
|
+
method: 'POST',
|
|
49
|
+
url: '/whispers',
|
|
50
|
+
},
|
|
51
|
+
send: {
|
|
52
|
+
preSend: [
|
|
53
|
+
async function (requestOptions) {
|
|
54
|
+
const fromUserId = this.getNodeParameter('fromUserId', 0);
|
|
55
|
+
const toUserId = this.getNodeParameter('toUserId', 0);
|
|
56
|
+
const message = this.getNodeParameter('message', 0);
|
|
57
|
+
requestOptions.qs = {
|
|
58
|
+
from_user_id: fromUserId,
|
|
59
|
+
to_user_id: toUserId,
|
|
60
|
+
};
|
|
61
|
+
requestOptions.body = {
|
|
62
|
+
message,
|
|
63
|
+
};
|
|
64
|
+
return requestOptions;
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
default: 'sendWhisper',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'From User ID',
|
|
75
|
+
name: 'fromUserId',
|
|
76
|
+
type: 'string',
|
|
77
|
+
required: true,
|
|
78
|
+
default: '',
|
|
79
|
+
placeholder: 'e.g. 123456789',
|
|
80
|
+
description: 'The ID of the user sending the whisper',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
displayName: 'To User ID',
|
|
84
|
+
name: 'toUserId',
|
|
85
|
+
type: 'string',
|
|
86
|
+
required: true,
|
|
87
|
+
default: '',
|
|
88
|
+
placeholder: 'e.g. 987654321',
|
|
89
|
+
description: 'The ID of the user to receive the whisper',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
displayName: 'Message',
|
|
93
|
+
name: 'message',
|
|
94
|
+
type: 'string',
|
|
95
|
+
required: true,
|
|
96
|
+
default: '',
|
|
97
|
+
placeholder: 'e.g. Hello from n8n!',
|
|
98
|
+
description: 'The whisper message to send (maximum 500 characters)',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.TwitchWhispers = TwitchWhispers;
|
|
105
|
+
//# sourceMappingURL=TwitchWhispers.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TwitchWhispers.node.js","sourceRoot":"","sources":["../../../nodes/TwitchWhispers/TwitchWhispers.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAE9F,MAAa,cAAc;IAA3B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,iBAAiB;YAC9B,IAAI,EAAE,gBAAgB;YACtB,IAAI,EAAE,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAChE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8BAA8B;YACxC,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE;gBACT,IAAI,EAAE,iBAAiB;aACvB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,iBAAiB;oBACvB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,6BAA6B;gBACtC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI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EAAE,IAAI;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,sBAAsB;oBACnC,WAAW,EAAE,sDAAsD;iBACnE;aACD;SACD,CAAC;IACH,CAAC;CAAA;AAnGD,wCAmGC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path fill="#FFFFFF" d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path d="M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z"/></svg>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yuniruyuni/n8n-nodes-twitch",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n node for Twitch API integration. Supports Twitch operations and EventSub triggers.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/yuniruyuni/n8n-nodes-twitch",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"n8n-community-node-package",
|
|
9
|
+
"n8n",
|
|
10
|
+
"twitch",
|
|
11
|
+
"eventsub",
|
|
12
|
+
"websocket",
|
|
13
|
+
"streaming",
|
|
14
|
+
"chat",
|
|
15
|
+
"raid",
|
|
16
|
+
"subscription"
|
|
17
|
+
],
|
|
18
|
+
"author": {
|
|
19
|
+
"name": "yuniruyuni",
|
|
20
|
+
"email": "yuniruyuni@gmail.com"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/yuniruyuni/n8n-nodes-twitch.git"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "n8n-node build",
|
|
28
|
+
"build:watch": "tsc --watch",
|
|
29
|
+
"dev": "n8n-node dev",
|
|
30
|
+
"lint": "n8n-node lint",
|
|
31
|
+
"lint:fix": "n8n-node lint --fix",
|
|
32
|
+
"release": "n8n-node release",
|
|
33
|
+
"prepublishOnly": "n8n-node prerelease"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"n8n": {
|
|
39
|
+
"n8nNodesApiVersion": 1,
|
|
40
|
+
"strict": true,
|
|
41
|
+
"credentials": [
|
|
42
|
+
"dist/credentials/TwitchApi.credentials.js",
|
|
43
|
+
"dist/credentials/TwitchOAuth2Api.credentials.js"
|
|
44
|
+
],
|
|
45
|
+
"nodes": [
|
|
46
|
+
"dist/nodes/TwitchAnnouncements/TwitchAnnouncements.node.js",
|
|
47
|
+
"dist/nodes/TwitchBans/TwitchBans.node.js",
|
|
48
|
+
"dist/nodes/TwitchBitsLeaderboard/TwitchBitsLeaderboard.node.js",
|
|
49
|
+
"dist/nodes/TwitchChannels/TwitchChannels.node.js",
|
|
50
|
+
"dist/nodes/TwitchChatMessages/TwitchChatMessages.node.js",
|
|
51
|
+
"dist/nodes/TwitchChatters/TwitchChatters.node.js",
|
|
52
|
+
"dist/nodes/TwitchCheermotes/TwitchCheermotes.node.js",
|
|
53
|
+
"dist/nodes/TwitchClips/TwitchClips.node.js",
|
|
54
|
+
"dist/nodes/TwitchCustomRewards/TwitchCustomRewards.node.js",
|
|
55
|
+
"dist/nodes/TwitchEmotes/TwitchEmotes.node.js",
|
|
56
|
+
"dist/nodes/TwitchGames/TwitchGames.node.js",
|
|
57
|
+
"dist/nodes/TwitchModerators/TwitchModerators.node.js",
|
|
58
|
+
"dist/nodes/TwitchPolls/TwitchPolls.node.js",
|
|
59
|
+
"dist/nodes/TwitchPredictions/TwitchPredictions.node.js",
|
|
60
|
+
"dist/nodes/TwitchRaids/TwitchRaids.node.js",
|
|
61
|
+
"dist/nodes/TwitchRedemptions/TwitchRedemptions.node.js",
|
|
62
|
+
"dist/nodes/TwitchSchedule/TwitchSchedule.node.js",
|
|
63
|
+
"dist/nodes/TwitchSearch/TwitchSearch.node.js",
|
|
64
|
+
"dist/nodes/TwitchStreams/TwitchStreams.node.js",
|
|
65
|
+
"dist/nodes/TwitchSubscriptions/TwitchSubscriptions.node.js",
|
|
66
|
+
"dist/nodes/TwitchTeams/TwitchTeams.node.js",
|
|
67
|
+
"dist/nodes/TwitchTrigger/TwitchTrigger.node.js",
|
|
68
|
+
"dist/nodes/TwitchUsers/TwitchUsers.node.js",
|
|
69
|
+
"dist/nodes/TwitchVideos/TwitchVideos.node.js",
|
|
70
|
+
"dist/nodes/TwitchWhispers/TwitchWhispers.node.js"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@n8n/node-cli": "*",
|
|
75
|
+
"eslint": "9.32.0",
|
|
76
|
+
"prettier": "3.6.2",
|
|
77
|
+
"release-it": "^19.0.4",
|
|
78
|
+
"typescript": "5.9.2"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"n8n-workflow": "*"
|
|
82
|
+
},
|
|
83
|
+
"publishConfig": {
|
|
84
|
+
"access": "public"
|
|
85
|
+
}
|
|
86
|
+
}
|