@google/genai 0.13.0 → 0.14.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 CHANGED
@@ -102,6 +102,33 @@ const ai = new GoogleGenAI({
102
102
  });
103
103
  ```
104
104
 
105
+ ## API Selection
106
+
107
+ By default, the SDK uses the beta API endpoints provided by Google to support
108
+ preview features in the APIs. The stable API endpoints can be selected by
109
+ setting the API version to `v1`.
110
+
111
+ To set the API version use `apiVersion`. For example, to set the API version to
112
+ `v1` for Vertex AI:
113
+
114
+ ```typescript
115
+ const ai = new GoogleGenAI({
116
+ vertexai: true,
117
+ project: 'your_project',
118
+ location: 'your_location',
119
+ apiVersion: 'v1'
120
+ });
121
+ ```
122
+
123
+ To set the API version to `v1alpha` for the Gemini Developer API:
124
+
125
+ ```typescript
126
+ const ai = new GoogleGenAI({
127
+ apiKey: 'GEMINI_API_KEY',
128
+ apiVersion: 'v1alpha'
129
+ });
130
+ ```
131
+
105
132
  ## GoogleGenAI overview
106
133
 
107
134
  All API features are accessed through an instance of the `GoogleGenAI` classes.
@@ -128,7 +155,6 @@ The submodules bundle together related API methods:
128
155
  More samples can be found in the
129
156
  [github samples directory](https://github.com/googleapis/js-genai/tree/main/sdk-samples).
130
157
 
131
-
132
158
  ### Streaming
133
159
 
134
160
  For quicker, more responsive API interactions use the `generateContentStream`
package/dist/genai.d.ts CHANGED
@@ -274,6 +274,8 @@ export declare interface BaseUrlParameters {
274
274
 
275
275
  /** Content blob. */
276
276
  declare interface Blob_2 {
277
+ /** Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls. */
278
+ displayName?: string;
277
279
  /** Required. Raw bytes. */
278
280
  data?: string;
279
281
  /** Required. The IANA standard MIME type of the source data. */
@@ -560,6 +562,19 @@ export declare class Chats {
560
562
  create(params: types.CreateChatParameters): Chat;
561
563
  }
562
564
 
565
+ /** Describes the machine learning model version checkpoint. */
566
+ export declare interface Checkpoint {
567
+ /** The ID of the checkpoint.
568
+ */
569
+ checkpointId?: string;
570
+ /** The epoch of the checkpoint.
571
+ */
572
+ epoch?: string;
573
+ /** The step of the checkpoint.
574
+ */
575
+ step?: string;
576
+ }
577
+
563
578
  /** Source attributions for content. */
564
579
  export declare interface Citation {
565
580
  /** Output only. End index into the content. */
@@ -689,7 +704,7 @@ export declare interface ControlReferenceConfig {
689
704
  A control image is an image that represents a sketch image of areas for the
690
705
  model to fill in based on the prompt.
691
706
  */
692
- export declare interface ControlReferenceImage {
707
+ export declare class ControlReferenceImage {
693
708
  /** The reference image for the editing operation. */
694
709
  referenceImage?: Image_2;
695
710
  /** The id of the reference image. */
@@ -698,6 +713,8 @@ export declare interface ControlReferenceImage {
698
713
  referenceType?: string;
699
714
  /** Configuration for the control reference image. */
700
715
  config?: ControlReferenceConfig;
716
+ /** Internal method to convert to ReferenceImageAPIInternal. */
717
+ toReferenceImageAPI(): any;
701
718
  }
702
719
 
703
720
  /** Enum representing the control type of a control reference image. */
@@ -912,6 +929,8 @@ export declare interface CreateTuningJobConfig {
912
929
  epochCount?: number;
913
930
  /** Multiplier for adjusting the default learning rate. */
914
931
  learningRateMultiplier?: number;
932
+ /** If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. */
933
+ exportLastCheckpointOnly?: boolean;
915
934
  /** Adapter size for tuning. */
916
935
  adapterSize?: AdapterSize;
917
936
  /** The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. */
@@ -1144,6 +1163,100 @@ export declare enum DynamicRetrievalConfigMode {
1144
1163
  MODE_DYNAMIC = "MODE_DYNAMIC"
1145
1164
  }
1146
1165
 
1166
+ /** Configuration for editing an image. */
1167
+ export declare interface EditImageConfig {
1168
+ /** Used to override HTTP request options. */
1169
+ httpOptions?: HttpOptions;
1170
+ /** Abort signal which can be used to cancel the request.
1171
+
1172
+ NOTE: AbortSignal is a client-only operation. Using it to cancel an
1173
+ operation will not cancel the request in the service. You will still
1174
+ be charged usage for any applicable operations.
1175
+ */
1176
+ abortSignal?: AbortSignal;
1177
+ /** Cloud Storage URI used to store the generated images.
1178
+ */
1179
+ outputGcsUri?: string;
1180
+ /** Description of what to discourage in the generated images.
1181
+ */
1182
+ negativePrompt?: string;
1183
+ /** Number of images to generate.
1184
+ */
1185
+ numberOfImages?: number;
1186
+ /** Aspect ratio of the generated images.
1187
+ */
1188
+ aspectRatio?: string;
1189
+ /** Controls how much the model adheres to the text prompt. Large
1190
+ values increase output and prompt alignment, but may compromise image
1191
+ quality.
1192
+ */
1193
+ guidanceScale?: number;
1194
+ /** Random seed for image generation. This is not available when
1195
+ ``add_watermark`` is set to true.
1196
+ */
1197
+ seed?: number;
1198
+ /** Filter level for safety filtering.
1199
+ */
1200
+ safetyFilterLevel?: SafetyFilterLevel;
1201
+ /** Allows generation of people by the model.
1202
+ */
1203
+ personGeneration?: PersonGeneration;
1204
+ /** Whether to report the safety scores of each generated image and
1205
+ the positive prompt in the response.
1206
+ */
1207
+ includeSafetyAttributes?: boolean;
1208
+ /** Whether to include the Responsible AI filter reason if the image
1209
+ is filtered out of the response.
1210
+ */
1211
+ includeRaiReason?: boolean;
1212
+ /** Language of the text in the prompt.
1213
+ */
1214
+ language?: ImagePromptLanguage;
1215
+ /** MIME type of the generated image.
1216
+ */
1217
+ outputMimeType?: string;
1218
+ /** Compression quality of the generated image (for ``image/jpeg``
1219
+ only).
1220
+ */
1221
+ outputCompressionQuality?: number;
1222
+ /** Describes the editing mode for the request. */
1223
+ editMode?: EditMode;
1224
+ /** The number of sampling steps. A higher value has better image
1225
+ quality, while a lower value has better latency. */
1226
+ baseSteps?: number;
1227
+ }
1228
+
1229
+ /** Parameters for the request to edit an image. */
1230
+ export declare interface EditImageParameters {
1231
+ /** The model to use. */
1232
+ model: string;
1233
+ /** A text description of the edit to apply to the image. */
1234
+ prompt: string;
1235
+ /** The reference images for Imagen 3 editing. */
1236
+ referenceImages: ReferenceImage[];
1237
+ /** Configuration for editing. */
1238
+ config?: EditImageConfig;
1239
+ }
1240
+
1241
+ /** Response for the request to edit an image. */
1242
+ export declare class EditImageResponse {
1243
+ /** Generated images. */
1244
+ generatedImages?: GeneratedImage[];
1245
+ }
1246
+
1247
+ /** Enum representing the Imagen 3 Edit mode. */
1248
+ export declare enum EditMode {
1249
+ EDIT_MODE_DEFAULT = "EDIT_MODE_DEFAULT",
1250
+ EDIT_MODE_INPAINT_REMOVAL = "EDIT_MODE_INPAINT_REMOVAL",
1251
+ EDIT_MODE_INPAINT_INSERTION = "EDIT_MODE_INPAINT_INSERTION",
1252
+ EDIT_MODE_OUTPAINT = "EDIT_MODE_OUTPAINT",
1253
+ EDIT_MODE_CONTROLLED_EDITING = "EDIT_MODE_CONTROLLED_EDITING",
1254
+ EDIT_MODE_STYLE = "EDIT_MODE_STYLE",
1255
+ EDIT_MODE_BGSWAP = "EDIT_MODE_BGSWAP",
1256
+ EDIT_MODE_PRODUCT_IMAGE = "EDIT_MODE_PRODUCT_IMAGE"
1257
+ }
1258
+
1259
+ /** Optional parameters for the embed_content method. */
1147
1260
  export declare interface EmbedContentConfig {
1148
1261
  /** Used to override HTTP request options. */
1149
1262
  httpOptions?: HttpOptions;
@@ -1610,10 +1723,21 @@ export declare interface GenerateContentConfig {
1610
1723
  random number is used.
1611
1724
  */
1612
1725
  seed?: number;
1613
- /** Output response media type of the generated candidate text.
1726
+ /** Output response mimetype of the generated candidate text.
1727
+ Supported mimetype:
1728
+ - `text/plain`: (default) Text output.
1729
+ - `application/json`: JSON response in the candidates.
1730
+ The model needs to be prompted to output the appropriate response type,
1731
+ otherwise the behavior is undefined.
1732
+ This is a preview feature.
1614
1733
  */
1615
1734
  responseMimeType?: string;
1616
- /** Schema that the generated candidate text must adhere to.
1735
+ /** The `Schema` object allows the definition of input and output data types.
1736
+ These types can be objects, but also primitives and arrays.
1737
+ Represents a select subset of an [OpenAPI 3.0 schema
1738
+ object](https://spec.openapis.org/oas/v3.0.3#schema).
1739
+ If set, a compatible response_mime_type must also be set.
1740
+ Compatible mimetypes: `application/json`: Schema for JSON response.
1617
1741
  */
1618
1742
  responseSchema?: SchemaUnion;
1619
1743
  /** Configuration for model router requests.
@@ -3106,7 +3230,6 @@ export declare interface LiveServerSessionResumptionUpdate {
3106
3230
  lastConsumedClientMessageIndex?: string;
3107
3231
  }
3108
3232
 
3109
- /** Sent in response to a `LiveGenerateContentSetup` message from the client. */
3110
3233
  export declare interface LiveServerSetupComplete {
3111
3234
  }
3112
3235
 
@@ -3174,7 +3297,7 @@ export declare interface MaskReferenceConfig {
3174
3297
  image. If the user provides a mask image, the mask must be in the same
3175
3298
  dimensions as the raw image.
3176
3299
  */
3177
- export declare interface MaskReferenceImage {
3300
+ export declare class MaskReferenceImage {
3178
3301
  /** The reference image for the editing operation. */
3179
3302
  referenceImage?: Image_2;
3180
3303
  /** The id of the reference image. */
@@ -3183,6 +3306,8 @@ export declare interface MaskReferenceImage {
3183
3306
  referenceType?: string;
3184
3307
  /** Configuration for the mask reference image. */
3185
3308
  config?: MaskReferenceConfig;
3309
+ /** Internal method to convert to ReferenceImageAPIInternal. */
3310
+ toReferenceImageAPI(): any;
3186
3311
  }
3187
3312
 
3188
3313
  /** Enum representing the mask mode of a mask reference image. */
@@ -3260,6 +3385,11 @@ export declare interface Model {
3260
3385
  outputTokenLimit?: number;
3261
3386
  /** List of actions that are supported by the model. */
3262
3387
  supportedActions?: string[];
3388
+ /** The default checkpoint id of a model version.
3389
+ */
3390
+ defaultCheckpointId?: string;
3391
+ /** The checkpoints of the model. */
3392
+ checkpoints?: Checkpoint[];
3263
3393
  }
3264
3394
 
3265
3395
  export declare class Models extends BaseModule {
@@ -3349,9 +3479,7 @@ export declare class Models extends BaseModule {
3349
3479
  /**
3350
3480
  * Generates an image based on a text description and configuration.
3351
3481
  *
3352
- * @param model - The model to use.
3353
- * @param prompt - A text description of the image to generate.
3354
- * @param [config] - The config for image generation.
3482
+ * @param params - The parameters for generating images.
3355
3483
  * @return The response from the API.
3356
3484
  *
3357
3485
  * @example
@@ -3369,6 +3497,48 @@ export declare class Models extends BaseModule {
3369
3497
  */
3370
3498
  generateImages: (params: types.GenerateImagesParameters) => Promise<types.GenerateImagesResponse>;
3371
3499
  list: (params?: types.ListModelsParameters) => Promise<Pager<types.Model>>;
3500
+ /**
3501
+ * Edits an image based on a prompt, list of reference images, and configuration.
3502
+ *
3503
+ * @param params - The parameters for editing an image.
3504
+ * @return The response from the API.
3505
+ *
3506
+ * @example
3507
+ * ```ts
3508
+ * const response = await client.models.editImage({
3509
+ * model: 'imagen-3.0-capability-001',
3510
+ * prompt: 'Generate an image containing a mug with the product logo [1] visible on the side of the mug.',
3511
+ * referenceImages: [subjectReferenceImage]
3512
+ * config: {
3513
+ * numberOfImages: 1,
3514
+ * includeRaiReason: true,
3515
+ * },
3516
+ * });
3517
+ * console.log(response?.generatedImages?.[0]?.image?.imageBytes);
3518
+ * ```
3519
+ */
3520
+ editImage: (params: types.EditImageParameters) => Promise<types.EditImageResponse>;
3521
+ /**
3522
+ * Upscales an image based on an image, upscale factor, and configuration.
3523
+ * Only supported in Vertex AI currently.
3524
+ *
3525
+ * @param params - The parameters for upscaling an image.
3526
+ * @return The response from the API.
3527
+ *
3528
+ * @example
3529
+ * ```ts
3530
+ * const response = await client.models.upscaleImage({
3531
+ * model: 'imagen-3.0-generate-002',
3532
+ * image: image,
3533
+ * upscaleFactor: 'x2',
3534
+ * config: {
3535
+ * includeRaiReason: true,
3536
+ * },
3537
+ * });
3538
+ * console.log(response?.generatedImages?.[0]?.image?.imageBytes);
3539
+ * ```
3540
+ */
3541
+ upscaleImage: (params: types.UpscaleImageParameters) => Promise<types.UpscaleImageResponse>;
3372
3542
  private generateContentInternal;
3373
3543
  private generateContentStreamInternal;
3374
3544
  /**
@@ -3413,6 +3583,8 @@ export declare class Models extends BaseModule {
3413
3583
  * ```
3414
3584
  */
3415
3585
  private generateImagesInternal;
3586
+ private editImageInternal;
3587
+ private upscaleImageInternal;
3416
3588
  /**
3417
3589
  * Fetches information about a model by name.
3418
3590
  *
@@ -3706,6 +3878,8 @@ export declare interface Part {
3706
3878
  videoMetadata?: VideoMetadata;
3707
3879
  /** Indicates if the part is thought from the model. */
3708
3880
  thought?: boolean;
3881
+ /** Optional. Inlined bytes data. */
3882
+ inlineData?: Blob_2;
3709
3883
  /** Optional. Result of executing the [ExecutableCode]. */
3710
3884
  codeExecutionResult?: CodeExecutionResult;
3711
3885
  /** Optional. Code generated by the model that is meant to be executed. */
@@ -3716,8 +3890,6 @@ export declare interface Part {
3716
3890
  functionCall?: FunctionCall;
3717
3891
  /** Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model. */
3718
3892
  functionResponse?: FunctionResponse;
3719
- /** Optional. Inlined bytes data. */
3720
- inlineData?: Blob_2;
3721
3893
  /** Optional. Text part (can be code). */
3722
3894
  text?: string;
3723
3895
  }
@@ -3804,13 +3976,15 @@ export declare interface RagRetrievalConfigRankingRankService {
3804
3976
  It can optionally be provided in addition to a mask reference image or
3805
3977
  a style reference image.
3806
3978
  */
3807
- export declare interface RawReferenceImage {
3979
+ export declare class RawReferenceImage {
3808
3980
  /** The reference image for the editing operation. */
3809
3981
  referenceImage?: Image_2;
3810
3982
  /** The id of the reference image. */
3811
3983
  referenceId?: number;
3812
3984
  /** The type of the reference image. Only set by the SDK. */
3813
3985
  referenceType?: string;
3986
+ /** Internal method to convert to ReferenceImageAPIInternal. */
3987
+ toReferenceImageAPI(): any;
3814
3988
  }
3815
3989
 
3816
3990
  /** Marks the end of user activity.
@@ -3827,6 +4001,8 @@ export declare interface RealtimeInputConfig {
3827
4001
  turnCoverage?: TurnCoverage;
3828
4002
  }
3829
4003
 
4004
+ export declare type ReferenceImage = RawReferenceImage | MaskReferenceImage | ControlReferenceImage | StyleReferenceImage | SubjectReferenceImage;
4005
+
3830
4006
  /** Represents a recorded session. */
3831
4007
  export declare interface ReplayFile {
3832
4008
  replayId?: string;
@@ -4224,7 +4400,7 @@ export declare interface StyleReferenceConfig {
4224
4400
  A raw reference image can also be provided as a destination for the style to
4225
4401
  be applied to.
4226
4402
  */
4227
- export declare interface StyleReferenceImage {
4403
+ export declare class StyleReferenceImage {
4228
4404
  /** The reference image for the editing operation. */
4229
4405
  referenceImage?: Image_2;
4230
4406
  /** The id of the reference image. */
@@ -4233,6 +4409,8 @@ export declare interface StyleReferenceImage {
4233
4409
  referenceType?: string;
4234
4410
  /** Configuration for the style reference image. */
4235
4411
  config?: StyleReferenceConfig;
4412
+ /** Internal method to convert to ReferenceImageAPIInternal. */
4413
+ toReferenceImageAPI(): any;
4236
4414
  }
4237
4415
 
4238
4416
  /** Configuration for a Subject reference image. */
@@ -4251,7 +4429,7 @@ export declare interface SubjectReferenceConfig {
4251
4429
  A raw reference image can also be provided as a destination for the subject to
4252
4430
  be applied to.
4253
4431
  */
4254
- export declare interface SubjectReferenceImage {
4432
+ export declare class SubjectReferenceImage {
4255
4433
  /** The reference image for the editing operation. */
4256
4434
  referenceImage?: Image_2;
4257
4435
  /** The id of the reference image. */
@@ -4260,6 +4438,7 @@ export declare interface SubjectReferenceImage {
4260
4438
  referenceType?: string;
4261
4439
  /** Configuration for the subject reference image. */
4262
4440
  config?: SubjectReferenceConfig;
4441
+ toReferenceImageAPI(): any;
4263
4442
  }
4264
4443
 
4265
4444
  /** Enum representing the subject type of a subject reference image. */
@@ -4346,6 +4525,8 @@ export declare interface SupervisedTuningSpec {
4346
4525
  trainingDatasetUri?: string;
4347
4526
  /** Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. */
4348
4527
  validationDatasetUri?: string;
4528
+ /** Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. */
4529
+ exportLastCheckpointOnly?: boolean;
4349
4530
  }
4350
4531
 
4351
4532
  export declare interface TestTableFile {
@@ -4454,6 +4635,27 @@ export declare interface TunedModel {
4454
4635
  model?: string;
4455
4636
  /** Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. */
4456
4637
  endpoint?: string;
4638
+ /** The checkpoints associated with this TunedModel.
4639
+ This field is only populated for tuning jobs that enable intermediate
4640
+ checkpoints. */
4641
+ checkpoints?: TunedModelCheckpoint[];
4642
+ }
4643
+
4644
+ /** TunedModelCheckpoint for the Tuned Model of a Tuning Job. */
4645
+ export declare interface TunedModelCheckpoint {
4646
+ /** The ID of the checkpoint.
4647
+ */
4648
+ checkpointId?: string;
4649
+ /** The epoch of the checkpoint.
4650
+ */
4651
+ epoch?: string;
4652
+ /** The step of the checkpoint.
4653
+ */
4654
+ step?: string;
4655
+ /** The Endpoint resource name that the checkpoint is deployed to.
4656
+ Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
4657
+ */
4658
+ endpoint?: string;
4457
4659
  }
4458
4660
 
4459
4661
  /** A tuned machine learning model. */
@@ -4627,23 +4829,24 @@ declare namespace types {
4627
4829
  SafetyFilterLevel,
4628
4830
  PersonGeneration,
4629
4831
  ImagePromptLanguage,
4630
- FileState,
4631
- FileSource,
4632
4832
  MaskReferenceMode,
4633
4833
  ControlReferenceType,
4634
4834
  SubjectReferenceType,
4835
+ EditMode,
4836
+ FileState,
4837
+ FileSource,
4635
4838
  MediaModality,
4636
4839
  StartSensitivity,
4637
4840
  EndSensitivity,
4638
4841
  ActivityHandling,
4639
4842
  TurnCoverage,
4843
+ Blob_2 as Blob,
4640
4844
  VideoMetadata,
4641
4845
  CodeExecutionResult,
4642
4846
  ExecutableCode,
4643
4847
  FileData,
4644
4848
  FunctionCall,
4645
4849
  FunctionResponse,
4646
- Blob_2 as Blob,
4647
4850
  Part,
4648
4851
  Content,
4649
4852
  HttpOptions,
@@ -4707,6 +4910,8 @@ declare namespace types {
4707
4910
  ModalityTokenCount,
4708
4911
  GenerateContentResponseUsageMetadata,
4709
4912
  GenerateContentResponse,
4913
+ ReferenceImage,
4914
+ EditImageParameters,
4710
4915
  EmbedContentConfig,
4711
4916
  EmbedContentParameters,
4712
4917
  ContentEmbeddingStatistics,
@@ -4719,10 +4924,18 @@ declare namespace types {
4719
4924
  SafetyAttributes,
4720
4925
  GeneratedImage,
4721
4926
  GenerateImagesResponse,
4927
+ MaskReferenceConfig,
4928
+ ControlReferenceConfig,
4929
+ StyleReferenceConfig,
4930
+ SubjectReferenceConfig,
4931
+ EditImageConfig,
4932
+ EditImageResponse,
4933
+ UpscaleImageResponse,
4722
4934
  GetModelConfig,
4723
4935
  GetModelParameters,
4724
4936
  Endpoint,
4725
4937
  TunedModelInfo,
4938
+ Checkpoint,
4726
4939
  Model,
4727
4940
  ListModelsConfig,
4728
4941
  ListModelsParameters,
@@ -4748,6 +4961,7 @@ declare namespace types {
4748
4961
  GenerateVideosOperation,
4749
4962
  GetTuningJobConfig,
4750
4963
  GetTuningJobParameters,
4964
+ TunedModelCheckpoint,
4751
4965
  TunedModel,
4752
4966
  GoogleRpcStatus,
4753
4967
  SupervisedHyperParameters,
@@ -4820,13 +5034,9 @@ declare namespace types {
4820
5034
  UpscaleImageConfig,
4821
5035
  UpscaleImageParameters,
4822
5036
  RawReferenceImage,
4823
- MaskReferenceConfig,
4824
5037
  MaskReferenceImage,
4825
- ControlReferenceConfig,
4826
5038
  ControlReferenceImage,
4827
- StyleReferenceConfig,
4828
5039
  StyleReferenceImage,
4829
- SubjectReferenceConfig,
4830
5040
  SubjectReferenceImage,
4831
5041
  LiveServerSetupComplete,
4832
5042
  Transcription,
@@ -4848,6 +5058,7 @@ declare namespace types {
4848
5058
  ActivityStart,
4849
5059
  ActivityEnd,
4850
5060
  LiveClientRealtimeInput,
5061
+ LiveSendRealtimeInputParameters,
4851
5062
  LiveClientToolResponse,
4852
5063
  LiveClientMessage,
4853
5064
  LiveConnectConfig,
@@ -4855,7 +5066,6 @@ declare namespace types {
4855
5066
  CreateChatParameters,
4856
5067
  SendMessageParameters,
4857
5068
  LiveSendClientContentParameters,
4858
- LiveSendRealtimeInputParameters,
4859
5069
  LiveSendToolResponseParameters,
4860
5070
  OperationGetParameters,
4861
5071
  BlobImageUnion,
@@ -4909,6 +5119,7 @@ export declare interface UpdateModelConfig {
4909
5119
  abortSignal?: AbortSignal;
4910
5120
  displayName?: string;
4911
5121
  description?: string;
5122
+ defaultCheckpointId?: string;
4912
5123
  }
4913
5124
 
4914
5125
  /** Configuration for updating a tuned model. */
@@ -5005,6 +5216,11 @@ export declare interface UpscaleImageParameters {
5005
5216
  config?: UpscaleImageConfig;
5006
5217
  }
5007
5218
 
5219
+ export declare class UpscaleImageResponse {
5220
+ /** Generated images. */
5221
+ generatedImages?: GeneratedImage[];
5222
+ }
5223
+
5008
5224
  /** Usage metadata about response(s). */
5009
5225
  export declare interface UsageMetadata {
5010
5226
  /** Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. */