@google/genai 1.18.0 → 1.19.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/dist/web/web.d.ts CHANGED
@@ -1517,6 +1517,8 @@ export declare interface CreateTuningJobConfig {
1517
1517
  batchSize?: number;
1518
1518
  /** The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. */
1519
1519
  learningRate?: number;
1520
+ /** Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. */
1521
+ labels?: Record<string, string>;
1520
1522
  }
1521
1523
 
1522
1524
  /** Supervised fine-tuning job creation parameters - optional fields. */
@@ -2949,6 +2951,8 @@ export declare interface GenerateVideosConfig {
2949
2951
  be associated with a type. Veo 2 supports up to 3 asset images *or* 1
2950
2952
  style image. */
2951
2953
  referenceImages?: VideoGenerationReferenceImage[];
2954
+ /** The mask to use for generating videos. */
2955
+ mask?: VideoGenerationMask;
2952
2956
  /** Compression quality of the generated videos. */
2953
2957
  compressionQuality?: VideoCompressionQuality;
2954
2958
  }
@@ -2965,13 +2969,13 @@ export declare class GenerateVideosOperation implements Operation<GenerateVideos
2965
2969
  error?: Record<string, unknown>;
2966
2970
  /** The generated videos. */
2967
2971
  response?: GenerateVideosResponse;
2968
- /** The full HTTP response. */
2969
- sdkHttpResponse?: HttpResponse;
2970
2972
  /**
2971
2973
  * Instantiates an Operation of the same type as the one being called with the fields set from the API response.
2972
2974
  * @internal
2973
2975
  */
2974
2976
  _fromAPIResponse({ apiResponse, isVertexAI, }: OperationFromAPIResponseParameters): Operation<GenerateVideosResponse>;
2977
+ /** The full HTTP response. */
2978
+ sdkHttpResponse?: HttpResponse;
2975
2979
  }
2976
2980
 
2977
2981
  /** Class that represents the parameters for generating videos. */
@@ -7271,6 +7275,7 @@ declare namespace types {
7271
7275
  Video,
7272
7276
  GenerateVideosSource,
7273
7277
  VideoGenerationReferenceImage,
7278
+ VideoGenerationMask,
7274
7279
  GenerateVideosConfig,
7275
7280
  GenerateVideosParameters,
7276
7281
  GeneratedVideo,
@@ -7745,6 +7750,16 @@ export declare enum VideoCompressionQuality {
7745
7750
  LOSSLESS = "LOSSLESS"
7746
7751
  }
7747
7752
 
7753
+ /** A mask for video generation. */
7754
+ export declare interface VideoGenerationMask {
7755
+ /** The image mask to use for generating videos. */
7756
+ image?: Image_2;
7757
+ /** Describes how the mask will be used. Inpainting masks must
7758
+ match the aspect ratio of the input video. Outpainting masks can be
7759
+ either 9:16 or 16:9. */
7760
+ maskMode?: string;
7761
+ }
7762
+
7748
7763
  /** A reference image for video generation. */
7749
7764
  export declare interface VideoGenerationReferenceImage {
7750
7765
  /** The reference image. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/genai",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.mjs",