@taskmagic/apps-vadoo-ai 0.0.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/README.md +3 -0
- package/package.json +47 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +37 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/generate-ai-captions.d.ts +5 -0
- package/src/lib/actions/generate-ai-captions.js +149 -0
- package/src/lib/actions/generate-ai-captions.js.map +1 -0
- package/src/lib/actions/generate-ai-image.d.ts +5 -0
- package/src/lib/actions/generate-ai-image.js +122 -0
- package/src/lib/actions/generate-ai-image.js.map +1 -0
- package/src/lib/actions/generate-podcast.d.ts +13 -0
- package/src/lib/actions/generate-podcast.js +339 -0
- package/src/lib/actions/generate-podcast.js.map +1 -0
- package/src/lib/actions/generate-video.d.ts +18 -0
- package/src/lib/actions/generate-video.js +406 -0
- package/src/lib/actions/generate-video.js.map +1 -0
- package/src/lib/auth.d.ts +1 -0
- package/src/lib/auth.js +10 -0
- package/src/lib/auth.js.map +1 -0
- package/src/lib/schemas.d.ts +43 -0
- package/src/lib/schemas.js +47 -0
- package/src/lib/schemas.js.map +1 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateVideo = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
6
|
+
const auth_1 = require("../auth");
|
|
7
|
+
const pieces_common_1 = require("@taskmagic/pieces-common");
|
|
8
|
+
const schemas_1 = require("../schemas");
|
|
9
|
+
const shared_1 = require("@taskmagic/shared");
|
|
10
|
+
exports.generateVideo = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: auth_1.vadooAiAuth,
|
|
12
|
+
name: 'generate_video',
|
|
13
|
+
displayName: 'Generate Video',
|
|
14
|
+
description: 'Create an AI-generated video from parameters',
|
|
15
|
+
props: {
|
|
16
|
+
topic: pieces_framework_1.Property.Dropdown({
|
|
17
|
+
displayName: 'Topic',
|
|
18
|
+
description: 'To create content for AI Video',
|
|
19
|
+
required: false,
|
|
20
|
+
refreshers: [],
|
|
21
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
22
|
+
if (!auth) {
|
|
23
|
+
return {
|
|
24
|
+
disabled: true,
|
|
25
|
+
options: [],
|
|
26
|
+
placeholder: 'Please authenticate first',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
31
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
32
|
+
url: 'https://viralapi.vadoo.tv/api/get_topics',
|
|
33
|
+
headers: {
|
|
34
|
+
'X-API-KEY': auth,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const topics = response.body;
|
|
38
|
+
const options = topics.map((topic) => ({
|
|
39
|
+
label: topic,
|
|
40
|
+
value: topic,
|
|
41
|
+
}));
|
|
42
|
+
// Add Custom option
|
|
43
|
+
options.push({ label: 'Custom', value: 'Custom' });
|
|
44
|
+
return {
|
|
45
|
+
disabled: false,
|
|
46
|
+
options: options,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
return {
|
|
51
|
+
disabled: true,
|
|
52
|
+
options: [],
|
|
53
|
+
placeholder: 'Failed to load topics',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
}),
|
|
58
|
+
prompt: pieces_framework_1.Property.LongText({
|
|
59
|
+
displayName: 'Custom Prompt',
|
|
60
|
+
description: "Prompt to generate a custom script (required when topic is 'Custom')",
|
|
61
|
+
required: false,
|
|
62
|
+
}),
|
|
63
|
+
voice: pieces_framework_1.Property.Dropdown({
|
|
64
|
+
displayName: 'Voice',
|
|
65
|
+
description: 'The voice for AI Video',
|
|
66
|
+
required: false,
|
|
67
|
+
refreshers: [],
|
|
68
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
69
|
+
if (!auth) {
|
|
70
|
+
return {
|
|
71
|
+
disabled: true,
|
|
72
|
+
options: [],
|
|
73
|
+
placeholder: 'Please authenticate first',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
78
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
79
|
+
url: 'https://viralapi.vadoo.tv/api/get_voices',
|
|
80
|
+
headers: {
|
|
81
|
+
'X-API-KEY': auth,
|
|
82
|
+
},
|
|
83
|
+
timeout: 10000, // 10 second timeout
|
|
84
|
+
});
|
|
85
|
+
if (response.body && Array.isArray(response.body)) {
|
|
86
|
+
const voices = response.body;
|
|
87
|
+
return {
|
|
88
|
+
disabled: false,
|
|
89
|
+
options: voices.map((voice) => ({
|
|
90
|
+
label: voice,
|
|
91
|
+
value: voice,
|
|
92
|
+
})),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
// Fallback to default voices if API response is unexpected
|
|
97
|
+
return {
|
|
98
|
+
disabled: false,
|
|
99
|
+
options: [
|
|
100
|
+
{ label: 'Charlie', value: 'Charlie' },
|
|
101
|
+
{ label: 'George', value: 'George' },
|
|
102
|
+
{ label: 'Callum', value: 'Callum' },
|
|
103
|
+
{ label: 'Sarah', value: 'Sarah' },
|
|
104
|
+
{ label: 'Laura', value: 'Laura' },
|
|
105
|
+
{ label: 'Charlotte', value: 'Charlotte' },
|
|
106
|
+
],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
// Fallback to default voices on error
|
|
112
|
+
return {
|
|
113
|
+
disabled: false,
|
|
114
|
+
options: [
|
|
115
|
+
{ label: 'Charlie', value: 'Charlie' },
|
|
116
|
+
{ label: 'George', value: 'George' },
|
|
117
|
+
{ label: 'Callum', value: 'Callum' },
|
|
118
|
+
{ label: 'Sarah', value: 'Sarah' },
|
|
119
|
+
{ label: 'Laura', value: 'Laura' },
|
|
120
|
+
{ label: 'Charlotte', value: 'Charlotte' },
|
|
121
|
+
],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}),
|
|
125
|
+
}),
|
|
126
|
+
theme: pieces_framework_1.Property.Dropdown({
|
|
127
|
+
displayName: 'Theme',
|
|
128
|
+
description: 'To display captions with style',
|
|
129
|
+
required: false,
|
|
130
|
+
refreshers: [],
|
|
131
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
132
|
+
if (!auth) {
|
|
133
|
+
return {
|
|
134
|
+
disabled: true,
|
|
135
|
+
options: [],
|
|
136
|
+
placeholder: 'Please authenticate first',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
try {
|
|
140
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
141
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
142
|
+
url: 'https://viralapi.vadoo.tv/api/get_themes',
|
|
143
|
+
headers: {
|
|
144
|
+
'X-API-KEY': auth,
|
|
145
|
+
},
|
|
146
|
+
});
|
|
147
|
+
const themes = response.body;
|
|
148
|
+
return {
|
|
149
|
+
disabled: false,
|
|
150
|
+
options: themes.map((theme) => ({
|
|
151
|
+
label: theme,
|
|
152
|
+
value: theme,
|
|
153
|
+
})),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
return {
|
|
158
|
+
disabled: true,
|
|
159
|
+
options: [],
|
|
160
|
+
placeholder: 'Failed to load themes',
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
}),
|
|
164
|
+
}),
|
|
165
|
+
style: pieces_framework_1.Property.ShortText({
|
|
166
|
+
displayName: 'Style',
|
|
167
|
+
description: 'AI image style',
|
|
168
|
+
required: false,
|
|
169
|
+
defaultValue: 'None',
|
|
170
|
+
}),
|
|
171
|
+
language: pieces_framework_1.Property.Dropdown({
|
|
172
|
+
displayName: 'Language',
|
|
173
|
+
description: 'To generate video in language you want',
|
|
174
|
+
required: false,
|
|
175
|
+
refreshers: [],
|
|
176
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
177
|
+
if (!auth) {
|
|
178
|
+
return {
|
|
179
|
+
disabled: true,
|
|
180
|
+
options: [],
|
|
181
|
+
placeholder: 'Please authenticate first',
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
try {
|
|
185
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
186
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
187
|
+
url: 'https://viralapi.vadoo.tv/api/get_languages',
|
|
188
|
+
headers: {
|
|
189
|
+
'X-API-KEY': auth,
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
const languages = response.body;
|
|
193
|
+
return {
|
|
194
|
+
disabled: false,
|
|
195
|
+
options: languages.map((language) => ({
|
|
196
|
+
label: language,
|
|
197
|
+
value: language,
|
|
198
|
+
})),
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
catch (error) {
|
|
202
|
+
return {
|
|
203
|
+
disabled: true,
|
|
204
|
+
options: [],
|
|
205
|
+
placeholder: 'Failed to load languages',
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
}),
|
|
209
|
+
}),
|
|
210
|
+
duration: pieces_framework_1.Property.StaticDropdown({
|
|
211
|
+
displayName: 'Duration',
|
|
212
|
+
description: 'Video Duration',
|
|
213
|
+
required: false,
|
|
214
|
+
defaultValue: '30-60',
|
|
215
|
+
options: {
|
|
216
|
+
options: [
|
|
217
|
+
{ label: '30-60 seconds', value: '30-60' },
|
|
218
|
+
{ label: '60-90 seconds', value: '60-90' },
|
|
219
|
+
{ label: '90-120 seconds', value: '90-120' },
|
|
220
|
+
{ label: '5 minutes', value: '5 min' },
|
|
221
|
+
{ label: '10 minutes', value: '10 min' },
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
}),
|
|
225
|
+
aspect_ratio: pieces_framework_1.Property.StaticDropdown({
|
|
226
|
+
displayName: 'Aspect Ratio',
|
|
227
|
+
description: 'Video aspect ratio',
|
|
228
|
+
required: false,
|
|
229
|
+
defaultValue: '9:16',
|
|
230
|
+
options: {
|
|
231
|
+
options: [
|
|
232
|
+
{ label: '9:16 (Portrait)', value: '9:16' },
|
|
233
|
+
{ label: '1:1 (Square)', value: '1:1' },
|
|
234
|
+
{ label: '16:9 (Landscape)', value: '16:9' },
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
}),
|
|
238
|
+
custom_instruction: pieces_framework_1.Property.LongText({
|
|
239
|
+
displayName: 'Custom Instructions',
|
|
240
|
+
description: 'Custom instructions to guide AI (character descriptions, image visuals, background styles, etc.)',
|
|
241
|
+
required: false,
|
|
242
|
+
}),
|
|
243
|
+
use_ai: pieces_framework_1.Property.StaticDropdown({
|
|
244
|
+
displayName: 'Use AI to Modify Script',
|
|
245
|
+
description: 'Modify script with AI',
|
|
246
|
+
required: false,
|
|
247
|
+
defaultValue: '1',
|
|
248
|
+
options: {
|
|
249
|
+
options: [
|
|
250
|
+
{ label: 'Yes', value: '1' },
|
|
251
|
+
{ label: 'No', value: '0' },
|
|
252
|
+
],
|
|
253
|
+
},
|
|
254
|
+
}),
|
|
255
|
+
include_voiceover: pieces_framework_1.Property.StaticDropdown({
|
|
256
|
+
displayName: 'Include Voiceover',
|
|
257
|
+
description: 'Include AI voiceover in the video',
|
|
258
|
+
required: false,
|
|
259
|
+
defaultValue: '1',
|
|
260
|
+
options: {
|
|
261
|
+
options: [
|
|
262
|
+
{ label: 'Yes', value: '1' },
|
|
263
|
+
{ label: 'No', value: '0' },
|
|
264
|
+
],
|
|
265
|
+
},
|
|
266
|
+
}),
|
|
267
|
+
size: pieces_framework_1.Property.ShortText({
|
|
268
|
+
displayName: 'Caption Size',
|
|
269
|
+
description: 'Size of captions (take reference values from dashboard)',
|
|
270
|
+
required: false,
|
|
271
|
+
}),
|
|
272
|
+
ypos: pieces_framework_1.Property.ShortText({
|
|
273
|
+
displayName: 'Caption Position',
|
|
274
|
+
description: 'Position of captions (take reference values from dashboard)',
|
|
275
|
+
required: false,
|
|
276
|
+
}),
|
|
277
|
+
url: pieces_framework_1.Property.ShortText({
|
|
278
|
+
displayName: 'Blog URL',
|
|
279
|
+
description: 'URL input for Blog to Video',
|
|
280
|
+
required: false,
|
|
281
|
+
}),
|
|
282
|
+
bg_music: pieces_framework_1.Property.Dropdown({
|
|
283
|
+
displayName: 'Background Music',
|
|
284
|
+
description: 'Background music to use along with the video',
|
|
285
|
+
required: false,
|
|
286
|
+
refreshers: [],
|
|
287
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
288
|
+
if (!auth) {
|
|
289
|
+
return {
|
|
290
|
+
disabled: true,
|
|
291
|
+
options: [],
|
|
292
|
+
placeholder: 'Please authenticate first',
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
try {
|
|
296
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
297
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
298
|
+
url: 'https://viralapi.vadoo.tv/api/get_background_music',
|
|
299
|
+
headers: {
|
|
300
|
+
'X-API-KEY': auth,
|
|
301
|
+
},
|
|
302
|
+
});
|
|
303
|
+
const music = response.body;
|
|
304
|
+
return {
|
|
305
|
+
disabled: false,
|
|
306
|
+
options: music.map((track) => ({
|
|
307
|
+
label: track,
|
|
308
|
+
value: track,
|
|
309
|
+
})),
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
catch (error) {
|
|
313
|
+
return {
|
|
314
|
+
disabled: true,
|
|
315
|
+
options: [],
|
|
316
|
+
placeholder: 'Failed to load background music',
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
}),
|
|
320
|
+
}),
|
|
321
|
+
bg_music_volume: pieces_framework_1.Property.Number({
|
|
322
|
+
displayName: 'Background Music Volume',
|
|
323
|
+
description: 'Background music volume (1-100)',
|
|
324
|
+
required: false,
|
|
325
|
+
}),
|
|
326
|
+
},
|
|
327
|
+
run(context) {
|
|
328
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
329
|
+
// Validate props with Zod schema
|
|
330
|
+
yield pieces_common_1.propsValidation.validateZod(context.propsValue, schemas_1.generateVideoSchema);
|
|
331
|
+
const { topic, prompt, voice, theme, style, language, duration, aspect_ratio, custom_instruction, use_ai, include_voiceover, size, ypos, url, bg_music, bg_music_volume, } = context.propsValue;
|
|
332
|
+
// Validate custom prompt when topic is "Custom"
|
|
333
|
+
if (topic === 'Custom' && !prompt) {
|
|
334
|
+
throw new Error("Custom prompt is required when topic is set to 'Custom'");
|
|
335
|
+
}
|
|
336
|
+
// Build request body, only including non-empty values
|
|
337
|
+
const requestBody = {};
|
|
338
|
+
if (topic)
|
|
339
|
+
requestBody['topic'] = topic;
|
|
340
|
+
if (prompt)
|
|
341
|
+
requestBody['prompt'] = prompt;
|
|
342
|
+
if (voice)
|
|
343
|
+
requestBody['voice'] = voice;
|
|
344
|
+
if (theme)
|
|
345
|
+
requestBody['theme'] = theme;
|
|
346
|
+
if (style)
|
|
347
|
+
requestBody['style'] = style;
|
|
348
|
+
if (language)
|
|
349
|
+
requestBody['language'] = language;
|
|
350
|
+
if (duration)
|
|
351
|
+
requestBody['duration'] = duration;
|
|
352
|
+
if (aspect_ratio)
|
|
353
|
+
requestBody['aspect_ratio'] = aspect_ratio;
|
|
354
|
+
if (custom_instruction)
|
|
355
|
+
requestBody['custom_instruction'] = custom_instruction;
|
|
356
|
+
if (use_ai)
|
|
357
|
+
requestBody['use_ai'] = use_ai;
|
|
358
|
+
if (include_voiceover)
|
|
359
|
+
requestBody['include_voiceover'] = include_voiceover;
|
|
360
|
+
if (size)
|
|
361
|
+
requestBody['size'] = size;
|
|
362
|
+
if (ypos)
|
|
363
|
+
requestBody['ypos'] = ypos;
|
|
364
|
+
if (url)
|
|
365
|
+
requestBody['url'] = url;
|
|
366
|
+
if (bg_music)
|
|
367
|
+
requestBody['bg_music'] = bg_music;
|
|
368
|
+
if (bg_music_volume)
|
|
369
|
+
requestBody['bg_music_volume'] = bg_music_volume.toString();
|
|
370
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
371
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
372
|
+
url: 'https://viralapi.vadoo.tv/api/generate_video',
|
|
373
|
+
headers: {
|
|
374
|
+
'X-API-KEY': context.auth,
|
|
375
|
+
'Content-Type': 'application/json',
|
|
376
|
+
},
|
|
377
|
+
body: requestBody,
|
|
378
|
+
});
|
|
379
|
+
if ((0, shared_1.isEmpty)(response.body) || (0, shared_1.isEmpty)(response.body.vid)) {
|
|
380
|
+
throw new Error('Failed to generate video.');
|
|
381
|
+
}
|
|
382
|
+
const videoId = response.body.vid;
|
|
383
|
+
let status = 'pending';
|
|
384
|
+
const timeoutAt = Date.now() + 5 * 60 * 1000;
|
|
385
|
+
do {
|
|
386
|
+
yield new Promise((resolve) => setTimeout(resolve, 5000));
|
|
387
|
+
const pollRes = yield pieces_common_1.httpClient.sendRequest({
|
|
388
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
389
|
+
url: 'https://viralapi.vadoo.tv/api/get_video_url',
|
|
390
|
+
headers: {
|
|
391
|
+
'X-API-KEY': context.auth,
|
|
392
|
+
'Content-Type': 'application/json',
|
|
393
|
+
},
|
|
394
|
+
queryParams: {
|
|
395
|
+
id: videoId.toString(),
|
|
396
|
+
},
|
|
397
|
+
});
|
|
398
|
+
status = pollRes.body.status;
|
|
399
|
+
if (status === 'complete')
|
|
400
|
+
return pollRes.body;
|
|
401
|
+
} while (status !== 'complete' && Date.now() < timeoutAt);
|
|
402
|
+
throw new Error('Generate Video timed out or failed.');
|
|
403
|
+
});
|
|
404
|
+
},
|
|
405
|
+
});
|
|
406
|
+
//# sourceMappingURL=generate-video.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-video.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/vadoo-ai/src/lib/actions/generate-video.ts"],"names":[],"mappings":";;;;AAAA,kEAAqE;AACrE,kCAAsC;AACtC,4DAIkC;AAClC,wCAAiD;AACjD,8CAA4C;AAE/B,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,kBAAW;IACjB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,8CAA8C;IAC3D,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACvB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;gBACtB,IAAI,CAAC,IAAI,EAAE,CAAC;oBACV,OAAO;wBACL,QAAQ,EAAE,IAAI;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,2BAA2B;qBACzC,CAAC;gBACJ,CAAC;gBAED,IAAI,CAAC;oBACH,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;wBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;wBACtB,GAAG,EAAE,0CAA0C;wBAC/C,OAAO,EAAE;4BACP,WAAW,EAAE,IAAc;yBAC5B;qBACF,CAAC,CAAC;oBAEH,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAgB,CAAC;oBACzC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;wBACrC,KAAK,EAAE,KAAK;wBACZ,KAAK,EAAE,KAAK;qBACb,CAAC,CAAC,CAAC;oBAEJ,oBAAoB;oBACpB,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,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I,IAAA,gBAAO,EAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBACzD,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;YAC/C,CAAC;YAED,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;YAClC,IAAI,MAAM,GAAG,SAAS,CAAC;YACvB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAE7C,GAAG,CAAC;gBACF,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;gBAC1D,MAAM,OAAO,GAAG,MAAM,0BAAU,CAAC,WAAW,CAGzC;oBACD,MAAM,EAAE,0BAAU,CAAC,GAAG;oBACtB,GAAG,EAAE,6CAA6C;oBAClD,OAAO,EAAE;wBACP,WAAW,EAAE,OAAO,CAAC,IAAc;wBACnC,cAAc,EAAE,kBAAkB;qBACnC;oBACD,WAAW,EAAE;wBACX,EAAE,EAAE,OAAO,CAAC,QAAQ,EAAE;qBACvB;iBACF,CAAC,CAAC;gBAEH,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC7B,IAAI,MAAM,KAAK,UAAU;oBAAE,OAAO,OAAO,CAAC,IAAI,CAAC;YACjD,CAAC,QAAQ,MAAM,KAAK,UAAU,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,EAAE;YAE1D,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;QACzD,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vadooAiAuth: import("@taskmagic/pieces-framework").SecretTextProperty<true>;
|
package/src/lib/auth.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vadooAiAuth = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@taskmagic/pieces-framework");
|
|
5
|
+
exports.vadooAiAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
6
|
+
displayName: 'API Key',
|
|
7
|
+
required: true,
|
|
8
|
+
description: `You can create API key from [Profile Settings](https://ai.vadoo.tv/profile).`,
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/vadoo-ai/src/lib/auth.ts"],"names":[],"mappings":";;;AAAA,kEAAwD;AAE3C,QAAA,WAAW,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC9C,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,8EAA8E;CAC5F,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const generateVideoSchema: {
|
|
3
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
4
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
5
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
6
|
+
theme: z.ZodOptional<z.ZodString>;
|
|
7
|
+
style: z.ZodOptional<z.ZodString>;
|
|
8
|
+
language: z.ZodOptional<z.ZodString>;
|
|
9
|
+
duration: z.ZodOptional<z.ZodEnum<["30-60", "60-90", "90-120", "5 min", "10 min"]>>;
|
|
10
|
+
aspect_ratio: z.ZodOptional<z.ZodEnum<["9:16", "1:1", "16:9"]>>;
|
|
11
|
+
custom_instruction: z.ZodOptional<z.ZodString>;
|
|
12
|
+
use_ai: z.ZodOptional<z.ZodEnum<["1", "0"]>>;
|
|
13
|
+
include_voiceover: z.ZodOptional<z.ZodEnum<["1", "0"]>>;
|
|
14
|
+
size: z.ZodOptional<z.ZodString>;
|
|
15
|
+
ypos: z.ZodOptional<z.ZodString>;
|
|
16
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
17
|
+
bg_music: z.ZodOptional<z.ZodString>;
|
|
18
|
+
bg_music_volume: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
};
|
|
20
|
+
export declare const generatePodcastSchema: {
|
|
21
|
+
content_source: z.ZodEnum<["url", "text"]>;
|
|
22
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
23
|
+
text: z.ZodOptional<z.ZodString>;
|
|
24
|
+
name1: z.ZodString;
|
|
25
|
+
voice1: z.ZodOptional<z.ZodString>;
|
|
26
|
+
name2: z.ZodString;
|
|
27
|
+
voice2: z.ZodOptional<z.ZodString>;
|
|
28
|
+
theme: z.ZodOptional<z.ZodString>;
|
|
29
|
+
language: z.ZodOptional<z.ZodString>;
|
|
30
|
+
duration: z.ZodOptional<z.ZodEnum<["1-2", "3-5"]>>;
|
|
31
|
+
tone: z.ZodOptional<z.ZodString>;
|
|
32
|
+
};
|
|
33
|
+
export declare const generateAiImageSchema: {
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
ratio: z.ZodEnum<["9:16", "1:1", "16:9", "3:4", "4:3"]>;
|
|
36
|
+
style: z.ZodOptional<z.ZodString>;
|
|
37
|
+
prompt: z.ZodString;
|
|
38
|
+
};
|
|
39
|
+
export declare const generateAiCaptionsSchema: {
|
|
40
|
+
url: z.ZodString;
|
|
41
|
+
theme: z.ZodOptional<z.ZodString>;
|
|
42
|
+
language: z.ZodOptional<z.ZodString>;
|
|
43
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateAiCaptionsSchema = exports.generateAiImageSchema = exports.generatePodcastSchema = exports.generateVideoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.generateVideoSchema = {
|
|
6
|
+
topic: zod_1.z.string().optional(),
|
|
7
|
+
prompt: zod_1.z.string().optional(),
|
|
8
|
+
voice: zod_1.z.string().optional(),
|
|
9
|
+
theme: zod_1.z.string().optional(),
|
|
10
|
+
style: zod_1.z.string().optional(),
|
|
11
|
+
language: zod_1.z.string().optional(),
|
|
12
|
+
duration: zod_1.z.enum(['30-60', '60-90', '90-120', '5 min', '10 min']).optional(),
|
|
13
|
+
aspect_ratio: zod_1.z.enum(['9:16', '1:1', '16:9']).optional(),
|
|
14
|
+
custom_instruction: zod_1.z.string().optional(),
|
|
15
|
+
use_ai: zod_1.z.enum(['1', '0']).optional(),
|
|
16
|
+
include_voiceover: zod_1.z.enum(['1', '0']).optional(),
|
|
17
|
+
size: zod_1.z.string().optional(),
|
|
18
|
+
ypos: zod_1.z.string().optional(),
|
|
19
|
+
url: zod_1.z.union([zod_1.z.string().url().optional(), zod_1.z.literal('')]),
|
|
20
|
+
bg_music: zod_1.z.string().optional(),
|
|
21
|
+
bg_music_volume: zod_1.z.number().min(1).max(100).optional(),
|
|
22
|
+
};
|
|
23
|
+
exports.generatePodcastSchema = {
|
|
24
|
+
content_source: zod_1.z.enum(['url', 'text']),
|
|
25
|
+
url: zod_1.z.union([zod_1.z.string().url().optional(), zod_1.z.literal('')]),
|
|
26
|
+
text: zod_1.z.string().optional(),
|
|
27
|
+
name1: zod_1.z.string().min(1),
|
|
28
|
+
voice1: zod_1.z.string().optional(),
|
|
29
|
+
name2: zod_1.z.string().min(1),
|
|
30
|
+
voice2: zod_1.z.string().optional(),
|
|
31
|
+
theme: zod_1.z.string().optional(),
|
|
32
|
+
language: zod_1.z.string().optional(),
|
|
33
|
+
duration: zod_1.z.enum(['1-2', '3-5']).optional(),
|
|
34
|
+
tone: zod_1.z.string().optional(),
|
|
35
|
+
};
|
|
36
|
+
exports.generateAiImageSchema = {
|
|
37
|
+
id: zod_1.z.string().min(1),
|
|
38
|
+
ratio: zod_1.z.enum(['9:16', '1:1', '16:9', '3:4', '4:3']),
|
|
39
|
+
style: zod_1.z.string().optional(),
|
|
40
|
+
prompt: zod_1.z.string().min(1),
|
|
41
|
+
};
|
|
42
|
+
exports.generateAiCaptionsSchema = {
|
|
43
|
+
url: zod_1.z.string().url(),
|
|
44
|
+
theme: zod_1.z.string().optional(),
|
|
45
|
+
language: zod_1.z.string().optional(),
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/vadoo-ai/src/lib/schemas.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,YAAY,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxD,kBAAkB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrC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