@google/genai 1.1.0 → 1.2.0
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 +1 -1
- package/dist/genai.d.ts +3 -22
- package/dist/index.cjs +11 -35
- package/dist/index.mjs +12 -36
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +11 -35
- package/dist/node/index.mjs +12 -36
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +3 -22
- package/dist/web/index.mjs +12 -36
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +3 -22
- package/package.json +1 -1
package/dist/web/web.d.ts
CHANGED
|
@@ -2408,6 +2408,8 @@ export declare interface GenerateVideosConfig {
|
|
|
2408
2408
|
negativePrompt?: string;
|
|
2409
2409
|
/** Whether to use the prompt rewriting logic. */
|
|
2410
2410
|
enhancePrompt?: boolean;
|
|
2411
|
+
/** Whether to generate audio along with the video. */
|
|
2412
|
+
generateAudio?: boolean;
|
|
2411
2413
|
}
|
|
2412
2414
|
|
|
2413
2415
|
/** A video generation operation. */
|
|
@@ -3700,8 +3702,6 @@ export declare interface LiveMusicGenerationConfig {
|
|
|
3700
3702
|
muteDrums?: boolean;
|
|
3701
3703
|
/** Whether the audio output should contain only bass and drums. */
|
|
3702
3704
|
onlyBassAndDrums?: boolean;
|
|
3703
|
-
/** The mode of music generation. Default mode is QUALITY. */
|
|
3704
|
-
musicGenerationMode?: MusicGenerationMode;
|
|
3705
3705
|
}
|
|
3706
3706
|
|
|
3707
3707
|
/** The playback control signal to apply to the music generation. */
|
|
@@ -4151,7 +4151,7 @@ export declare enum Modality {
|
|
|
4151
4151
|
*/
|
|
4152
4152
|
IMAGE = "IMAGE",
|
|
4153
4153
|
/**
|
|
4154
|
-
* Indicates the model should return
|
|
4154
|
+
* Indicates the model should return audio.
|
|
4155
4155
|
*/
|
|
4156
4156
|
AUDIO = "AUDIO"
|
|
4157
4157
|
}
|
|
@@ -4525,24 +4525,6 @@ export declare interface MultiSpeakerVoiceConfig {
|
|
|
4525
4525
|
speakerVoiceConfigs?: SpeakerVoiceConfig[];
|
|
4526
4526
|
}
|
|
4527
4527
|
|
|
4528
|
-
/** The mode of music generation. */
|
|
4529
|
-
export declare enum MusicGenerationMode {
|
|
4530
|
-
/**
|
|
4531
|
-
* This value is unused.
|
|
4532
|
-
*/
|
|
4533
|
-
MUSIC_GENERATION_MODE_UNSPECIFIED = "MUSIC_GENERATION_MODE_UNSPECIFIED",
|
|
4534
|
-
/**
|
|
4535
|
-
* Steer text prompts to regions of latent space with higher quality
|
|
4536
|
-
music.
|
|
4537
|
-
*/
|
|
4538
|
-
QUALITY = "QUALITY",
|
|
4539
|
-
/**
|
|
4540
|
-
* Steer text prompts to regions of latent space with a larger diversity
|
|
4541
|
-
of music.
|
|
4542
|
-
*/
|
|
4543
|
-
DIVERSITY = "DIVERSITY"
|
|
4544
|
-
}
|
|
4545
|
-
|
|
4546
4528
|
/** A long-running operation. */
|
|
4547
4529
|
export declare interface Operation {
|
|
4548
4530
|
/** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
|
|
@@ -5865,7 +5847,6 @@ declare namespace types {
|
|
|
5865
5847
|
TurnCoverage,
|
|
5866
5848
|
FunctionResponseScheduling,
|
|
5867
5849
|
Scale,
|
|
5868
|
-
MusicGenerationMode,
|
|
5869
5850
|
LiveMusicPlaybackControl,
|
|
5870
5851
|
VideoMetadata,
|
|
5871
5852
|
Blob_2 as Blob,
|