@golpoai/sdk 1.0.1 → 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 +2 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -256,7 +256,8 @@ var Golpo = class {
|
|
|
256
256
|
fields.push(["user_videos_description", value]);
|
|
257
257
|
}
|
|
258
258
|
if (userAudioInVideo) {
|
|
259
|
-
|
|
259
|
+
const value = Array.isArray(userAudioInVideo) ? JSON.stringify(userAudioInVideo) : userAudioInVideo;
|
|
260
|
+
fields.push(["user_audio_in_video", value]);
|
|
260
261
|
} else if (userVideos) {
|
|
261
262
|
fields.push(["user_audio_in_video", "[]"]);
|
|
262
263
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -44,7 +44,7 @@ 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[];
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ 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[];
|
package/dist/index.js
CHANGED
|
@@ -219,7 +219,8 @@ var Golpo = class {
|
|
|
219
219
|
fields.push(["user_videos_description", value]);
|
|
220
220
|
}
|
|
221
221
|
if (userAudioInVideo) {
|
|
222
|
-
|
|
222
|
+
const value = Array.isArray(userAudioInVideo) ? JSON.stringify(userAudioInVideo) : userAudioInVideo;
|
|
223
|
+
fields.push(["user_audio_in_video", value]);
|
|
223
224
|
} else if (userVideos) {
|
|
224
225
|
fields.push(["user_audio_in_video", "[]"]);
|
|
225
226
|
}
|