@golpoai/sdk 0.1.6 → 0.1.7

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 CHANGED
@@ -131,7 +131,9 @@ var Golpo = class {
131
131
  videoType = "long",
132
132
  includeWatermark = true,
133
133
  logo,
134
- timing = "1"
134
+ timing = "1",
135
+ useColor = false,
136
+ newScript = null
135
137
  } = opts;
136
138
  const fields = [
137
139
  ["prompt", prompt],
@@ -142,12 +144,14 @@ var Golpo = class {
142
144
  ["style", style],
143
145
  ["video_type", videoType],
144
146
  ["include_watermark", String(includeWatermark)],
145
- ["timing", timing]
147
+ ["timing", timing],
148
+ ["use_color", String(useColor)]
146
149
  ];
147
150
  if (language) fields.push(["language", language]);
148
151
  if (voiceInstructions) fields.push(["voice_instructions", voiceInstructions]);
149
152
  if (personality1) fields.push(["personality_1", personality1]);
150
153
  if (bgMusic) fields.push(["bg_music", bgMusic]);
154
+ if (newScript !== null) fields.push(["new_script", newScript]);
151
155
  if (logo) {
152
156
  fields.push(["logo_path", logo]);
153
157
  }
package/dist/index.d.cts CHANGED
@@ -29,6 +29,8 @@ interface CreateVideoOptions {
29
29
  includeWatermark?: boolean;
30
30
  logo?: string;
31
31
  timing?: '1' | '2';
32
+ useColor?: boolean;
33
+ newScript?: string | null;
32
34
  pollIntervalMs?: number;
33
35
  concurrency?: number;
34
36
  }
package/dist/index.d.ts CHANGED
@@ -29,6 +29,8 @@ interface CreateVideoOptions {
29
29
  includeWatermark?: boolean;
30
30
  logo?: string;
31
31
  timing?: '1' | '2';
32
+ useColor?: boolean;
33
+ newScript?: string | null;
32
34
  pollIntervalMs?: number;
33
35
  concurrency?: number;
34
36
  }
package/dist/index.js CHANGED
@@ -94,7 +94,9 @@ var Golpo = class {
94
94
  videoType = "long",
95
95
  includeWatermark = true,
96
96
  logo,
97
- timing = "1"
97
+ timing = "1",
98
+ useColor = false,
99
+ newScript = null
98
100
  } = opts;
99
101
  const fields = [
100
102
  ["prompt", prompt],
@@ -105,12 +107,14 @@ var Golpo = class {
105
107
  ["style", style],
106
108
  ["video_type", videoType],
107
109
  ["include_watermark", String(includeWatermark)],
108
- ["timing", timing]
110
+ ["timing", timing],
111
+ ["use_color", String(useColor)]
109
112
  ];
110
113
  if (language) fields.push(["language", language]);
111
114
  if (voiceInstructions) fields.push(["voice_instructions", voiceInstructions]);
112
115
  if (personality1) fields.push(["personality_1", personality1]);
113
116
  if (bgMusic) fields.push(["bg_music", bgMusic]);
117
+ if (newScript !== null) fields.push(["new_script", newScript]);
114
118
  if (logo) {
115
119
  fields.push(["logo_path", logo]);
116
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golpoai/sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",