@golpoai/sdk 1.0.0 → 1.0.2
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/dist/index.cjs +5 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -172,6 +172,7 @@ var Golpo = class {
|
|
|
172
172
|
penStyle,
|
|
173
173
|
showPencilCursor,
|
|
174
174
|
pacing,
|
|
175
|
+
displayLanguage,
|
|
175
176
|
justReturnScript
|
|
176
177
|
} = opts;
|
|
177
178
|
const concurrency = 8;
|
|
@@ -205,6 +206,7 @@ var Golpo = class {
|
|
|
205
206
|
pen_style: penStyle,
|
|
206
207
|
show_pencil_cursor: penStyle ? true : showPencilCursor ?? false,
|
|
207
208
|
pacing,
|
|
209
|
+
display_language: displayLanguage ?? null,
|
|
208
210
|
own_narration_video_mode: null,
|
|
209
211
|
own_narration_pip_position: null,
|
|
210
212
|
just_return_script: justReturnScript,
|
|
@@ -254,7 +256,8 @@ var Golpo = class {
|
|
|
254
256
|
fields.push(["user_videos_description", value]);
|
|
255
257
|
}
|
|
256
258
|
if (userAudioInVideo) {
|
|
257
|
-
|
|
259
|
+
const value = Array.isArray(userAudioInVideo) ? JSON.stringify(userAudioInVideo) : userAudioInVideo;
|
|
260
|
+
fields.push(["user_audio_in_video", value]);
|
|
258
261
|
} else if (userVideos) {
|
|
259
262
|
fields.push(["user_audio_in_video", "[]"]);
|
|
260
263
|
}
|
|
@@ -264,6 +267,7 @@ var Golpo = class {
|
|
|
264
267
|
const effectiveShowPencilCursor = penStyle ? true : showPencilCursor ?? false;
|
|
265
268
|
fields.push(["show_pencil_cursor", String(effectiveShowPencilCursor)]);
|
|
266
269
|
if (pacing) fields.push(["pacing", pacing]);
|
|
270
|
+
if (displayLanguage) fields.push(["display_language", displayLanguage]);
|
|
267
271
|
if (justReturnScript != null) fields.push(["just_return_script", String(justReturnScript)]);
|
|
268
272
|
if (logo) {
|
|
269
273
|
fields.push(["logo_path", logo]);
|
package/dist/index.d.cts
CHANGED
|
@@ -44,13 +44,14 @@ interface CreateVideoOptions {
|
|
|
44
44
|
userImagesDescriptions?: string | string[];
|
|
45
45
|
userVideos?: string | string[];
|
|
46
46
|
userVideosDescription?: string | string[];
|
|
47
|
-
userAudioInVideo?: string;
|
|
47
|
+
userAudioInVideo?: number[] | string;
|
|
48
48
|
use2Style?: boolean;
|
|
49
49
|
imageStyle?: 'neon' | 'whiteboard' | 'modern_minimal' | 'playful' | 'technical' | 'editorial';
|
|
50
50
|
inputImages?: string | string[];
|
|
51
51
|
penStyle?: 'stylus' | 'marker' | 'pen';
|
|
52
52
|
showPencilCursor?: boolean;
|
|
53
53
|
pacing?: 'normal' | 'fast';
|
|
54
|
+
displayLanguage?: string;
|
|
54
55
|
justReturnScript?: boolean;
|
|
55
56
|
}
|
|
56
57
|
interface EditVideoOptions {
|
package/dist/index.d.ts
CHANGED
|
@@ -44,13 +44,14 @@ interface CreateVideoOptions {
|
|
|
44
44
|
userImagesDescriptions?: string | string[];
|
|
45
45
|
userVideos?: string | string[];
|
|
46
46
|
userVideosDescription?: string | string[];
|
|
47
|
-
userAudioInVideo?: string;
|
|
47
|
+
userAudioInVideo?: number[] | string;
|
|
48
48
|
use2Style?: boolean;
|
|
49
49
|
imageStyle?: 'neon' | 'whiteboard' | 'modern_minimal' | 'playful' | 'technical' | 'editorial';
|
|
50
50
|
inputImages?: string | string[];
|
|
51
51
|
penStyle?: 'stylus' | 'marker' | 'pen';
|
|
52
52
|
showPencilCursor?: boolean;
|
|
53
53
|
pacing?: 'normal' | 'fast';
|
|
54
|
+
displayLanguage?: string;
|
|
54
55
|
justReturnScript?: boolean;
|
|
55
56
|
}
|
|
56
57
|
interface EditVideoOptions {
|
package/dist/index.js
CHANGED
|
@@ -135,6 +135,7 @@ var Golpo = class {
|
|
|
135
135
|
penStyle,
|
|
136
136
|
showPencilCursor,
|
|
137
137
|
pacing,
|
|
138
|
+
displayLanguage,
|
|
138
139
|
justReturnScript
|
|
139
140
|
} = opts;
|
|
140
141
|
const concurrency = 8;
|
|
@@ -168,6 +169,7 @@ var Golpo = class {
|
|
|
168
169
|
pen_style: penStyle,
|
|
169
170
|
show_pencil_cursor: penStyle ? true : showPencilCursor ?? false,
|
|
170
171
|
pacing,
|
|
172
|
+
display_language: displayLanguage ?? null,
|
|
171
173
|
own_narration_video_mode: null,
|
|
172
174
|
own_narration_pip_position: null,
|
|
173
175
|
just_return_script: justReturnScript,
|
|
@@ -217,7 +219,8 @@ var Golpo = class {
|
|
|
217
219
|
fields.push(["user_videos_description", value]);
|
|
218
220
|
}
|
|
219
221
|
if (userAudioInVideo) {
|
|
220
|
-
|
|
222
|
+
const value = Array.isArray(userAudioInVideo) ? JSON.stringify(userAudioInVideo) : userAudioInVideo;
|
|
223
|
+
fields.push(["user_audio_in_video", value]);
|
|
221
224
|
} else if (userVideos) {
|
|
222
225
|
fields.push(["user_audio_in_video", "[]"]);
|
|
223
226
|
}
|
|
@@ -227,6 +230,7 @@ var Golpo = class {
|
|
|
227
230
|
const effectiveShowPencilCursor = penStyle ? true : showPencilCursor ?? false;
|
|
228
231
|
fields.push(["show_pencil_cursor", String(effectiveShowPencilCursor)]);
|
|
229
232
|
if (pacing) fields.push(["pacing", pacing]);
|
|
233
|
+
if (displayLanguage) fields.push(["display_language", displayLanguage]);
|
|
230
234
|
if (justReturnScript != null) fields.push(["just_return_script", String(justReturnScript)]);
|
|
231
235
|
if (logo) {
|
|
232
236
|
fields.push(["logo_path", logo]);
|