@google/genai 1.49.0 → 1.50.1

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/genai.d.ts CHANGED
@@ -476,7 +476,7 @@ declare interface AudioContent {
476
476
  /**
477
477
  * The mime type of the audio.
478
478
  */
479
- mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a' | 'audio/l16';
479
+ mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a' | 'audio/l16' | 'audio/opus' | 'audio/alaw' | 'audio/mulaw';
480
480
  /**
481
481
  * The sample rate of the audio.
482
482
  */
@@ -632,6 +632,18 @@ export declare interface AutomaticFunctionCallingConfig {
632
632
  ignoreCallHistory?: boolean;
633
633
  }
634
634
 
635
+ /** Configures the avatar to be used in the session. */
636
+ export declare interface AvatarConfig {
637
+ /** Pre-built avatar id. */
638
+ avatarName?: string;
639
+ /** Customized avatar appearance with a reference image. */
640
+ customizedAvatar?: CustomizedAvatar;
641
+ /** The bitrate of compressed audio. */
642
+ audioBitrateBps?: number;
643
+ /** The bitrate of compressed video output. */
644
+ videoBitrateBps?: number;
645
+ }
646
+
635
647
  declare class BadRequestError extends APIError<400, Headers> {
636
648
  }
637
649
 
@@ -695,6 +707,11 @@ declare interface BaseCreateAgentInteractionParams {
695
707
  * Body param: A list of tool declarations the model may call during interaction.
696
708
  */
697
709
  tools?: Array<Tool_2>;
710
+ /**
711
+ * Body param: Optional. Webhook configuration for receiving notifications when the
712
+ * interaction completes.
713
+ */
714
+ webhook_config?: WebhookConfig_2;
698
715
  }
699
716
 
700
717
  declare interface BaseCreateModelInteractionParams {
@@ -757,6 +774,11 @@ declare interface BaseCreateModelInteractionParams {
757
774
  * Body param: A list of tool declarations the model may call during interaction.
758
775
  */
759
776
  tools?: Array<Tool_2>;
777
+ /**
778
+ * Body param: Optional. Webhook configuration for receiving notifications when the
779
+ * interaction completes.
780
+ */
781
+ webhook_config?: WebhookConfig_2;
760
782
  }
761
783
 
762
784
  /**
@@ -858,7 +880,7 @@ declare class BaseInteractions extends APIResource {
858
880
  * ```ts
859
881
  * const interaction = await client.interactions.create({
860
882
  * api_version: 'api_version',
861
- * input: [{ text: 'text', type: 'text' }],
883
+ * input: { text: 'text', type: 'text' },
862
884
  * model: 'gemini-2.5-computer-use-preview-10-2025',
863
885
  * });
864
886
  * ```
@@ -923,6 +945,38 @@ export declare interface BaseUrlParameters {
923
945
  vertexUrl?: string;
924
946
  }
925
947
 
948
+ declare class BaseWebhooks extends APIResource {
949
+ static readonly _key: readonly ['webhooks'];
950
+ /**
951
+ * Creates a new Webhook.
952
+ */
953
+ create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<Webhook>;
954
+ /**
955
+ * Updates an existing Webhook.
956
+ */
957
+ update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<Webhook>;
958
+ /**
959
+ * Lists all Webhooks.
960
+ */
961
+ list(params?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
962
+ /**
963
+ * Deletes a Webhook.
964
+ */
965
+ delete(id: string, params?: WebhookDeleteParams | null | undefined, options?: RequestOptions): APIPromise<WebhookDeleteResponse>;
966
+ /**
967
+ * Gets a specific Webhook.
968
+ */
969
+ get(id: string, params?: WebhookGetParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
970
+ /**
971
+ * Sends a ping event to a Webhook.
972
+ */
973
+ ping(id: string, params?: WebhookPingParams | null | undefined, options?: RequestOptions): APIPromise<WebhookPingResponse>;
974
+ /**
975
+ * Generates a new signing secret for a Webhook.
976
+ */
977
+ rotateSigningSecret(id: string, params?: WebhookRotateSigningSecretParams | null | undefined, options?: RequestOptions): APIPromise<WebhookRotateSigningSecretResponse>;
978
+ }
979
+
926
980
  export declare class Batches extends BaseModule {
927
981
  private readonly apiClient;
928
982
  constructor(apiClient: ApiClient);
@@ -1869,7 +1923,7 @@ declare namespace ContentDelta {
1869
1923
  */
1870
1924
  channels?: number;
1871
1925
  data?: string;
1872
- mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a' | 'audio/l16';
1926
+ mime_type?: 'audio/wav' | 'audio/mp3' | 'audio/aiff' | 'audio/aac' | 'audio/ogg' | 'audio/flac' | 'audio/mpeg' | 'audio/m4a' | 'audio/l16' | 'audio/opus' | 'audio/alaw' | 'audio/mulaw';
1873
1927
  /**
1874
1928
  * The sample rate of the audio.
1875
1929
  */
@@ -2357,6 +2411,10 @@ export declare interface CreateBatchJobConfig {
2357
2411
  "gs://path/to/output/data" or "bq://projectId.bqDatasetId.bqTableId".
2358
2412
  */
2359
2413
  dest?: BatchJobDestinationUnion;
2414
+ /** Webhook configuration for receiving notifications when the batch
2415
+ operation completes.
2416
+ */
2417
+ webhookConfig?: WebhookConfig;
2360
2418
  }
2361
2419
 
2362
2420
  /** Config for batches.create parameters. */
@@ -2684,6 +2742,16 @@ export declare interface CustomCodeExecutionResult {
2684
2742
  score?: number;
2685
2743
  }
2686
2744
 
2745
+ /** Configures the customized avatar to be used in the session. */
2746
+ export declare interface CustomizedAvatar {
2747
+ /** The mime type of the reference image, e.g., "image/jpeg". */
2748
+ imageMimeType?: string;
2749
+ /** The data of the reference image. The dimensions of the reference
2750
+ image should be 9:16 (portrait) with a minimum resolution of 704x1280.
2751
+ * @remarks Encoded as base64 string. */
2752
+ imageData?: string;
2753
+ }
2754
+
2687
2755
  /** User provided metadata stored as key-value pairs. This data type is not supported in Vertex AI. */
2688
2756
  export declare interface CustomMetadata {
2689
2757
  /** Required. The key of the metadata to store. */
@@ -2761,10 +2829,21 @@ export declare interface DatasetStats {
2761
2829
  */
2762
2830
  declare interface DeepResearchAgentConfig {
2763
2831
  type: 'deep-research';
2832
+ /**
2833
+ * Enables human-in-the-loop planning for the Deep Research agent. If set to true,
2834
+ * the Deep Research agent will provide a research plan in its response. The agent
2835
+ * will then proceed only if the user confirms the plan in the next turn. Relevant
2836
+ * issue: b/482352502.
2837
+ */
2838
+ collaborative_planning?: boolean;
2764
2839
  /**
2765
2840
  * Whether to include thought summaries in the response.
2766
2841
  */
2767
2842
  thinking_summaries?: 'auto' | 'none';
2843
+ /**
2844
+ * Whether to include visualizations in the response.
2845
+ */
2846
+ visualization?: 'off' | 'auto';
2768
2847
  }
2769
2848
 
2770
2849
  /** Optional parameters for models.get method. */
@@ -3276,6 +3355,14 @@ export declare interface EmbedContentConfig {
3276
3355
  will lead to an INVALID_ARGUMENT error, similar to other text APIs.
3277
3356
  */
3278
3357
  autoTruncate?: boolean;
3358
+ /** Vertex API only. Whether to enable OCR for document content.
3359
+ Only applicable to Gemini Embedding 2 models.
3360
+ */
3361
+ documentOcr?: boolean;
3362
+ /** Vertex API only. Whether to extract audio from video content.
3363
+ Only applicable to Gemini Embedding 2 models.
3364
+ */
3365
+ audioTrackExtraction?: boolean;
3279
3366
  }
3280
3367
 
3281
3368
  /** Request-level metadata for the Vertex Embed Content API. */
@@ -4859,6 +4946,9 @@ export declare interface GenerateVideosConfig {
4859
4946
  compressionQuality?: VideoCompressionQuality;
4860
4947
  /** User specified labels to track billing usage. */
4861
4948
  labels?: Record<string, string>;
4949
+ /** Webhook configuration for receiving notifications when the
4950
+ video generation operation completes. */
4951
+ webhookConfig?: WebhookConfig;
4862
4952
  }
4863
4953
 
4864
4954
  /** A video generation operation. */
@@ -5268,7 +5358,11 @@ export declare class GoogleGenAI {
5268
5358
  readonly tunings: Tunings;
5269
5359
  readonly fileSearchStores: FileSearchStores;
5270
5360
  private _interactions;
5361
+ private _webhooks;
5362
+ private _nextGenClient;
5363
+ private getNextGenClient;
5271
5364
  get interactions(): Interactions;
5365
+ get webhooks(): Webhooks;
5272
5366
  constructor(options: GoogleGenAIOptions);
5273
5367
  }
5274
5368
 
@@ -6311,6 +6405,11 @@ declare interface Interaction {
6311
6405
  * Output only. Statistics on the interaction request's token usage.
6312
6406
  */
6313
6407
  usage?: Usage;
6408
+ /**
6409
+ * Optional. Webhook configuration for receiving notifications when the interaction
6410
+ * completes.
6411
+ */
6412
+ webhook_config?: WebhookConfig_2;
6314
6413
  }
6315
6414
 
6316
6415
  declare interface InteractionCancelParams {
@@ -6393,7 +6492,7 @@ export declare class Interactions extends BaseInteractions {
6393
6492
  }
6394
6493
 
6395
6494
  export declare namespace Interactions {
6396
- export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileCitation as FileCitation, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleMapsCallArguments as GoogleMapsCallArguments, type GoogleMapsCallContent as GoogleMapsCallContent, type GoogleMapsResult as GoogleMapsResult, type GoogleMapsResultContent as GoogleMapsResultContent, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type PlaceCitation as PlaceCitation, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLCitation as URLCitation, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
6495
+ export { type AllowedTools as AllowedTools, type Annotation as Annotation, type AudioContent as AudioContent, type CodeExecutionCallArguments as CodeExecutionCallArguments, type CodeExecutionCallContent as CodeExecutionCallContent, type CodeExecutionResultContent as CodeExecutionResultContent, type Content_2 as Content, type ContentDelta as ContentDelta, type ContentStart as ContentStart, type ContentStop as ContentStop, type DeepResearchAgentConfig as DeepResearchAgentConfig, type DocumentContent as DocumentContent, type DynamicAgentConfig as DynamicAgentConfig, type ErrorEvent_2 as ErrorEvent, type FileCitation as FileCitation, type FileSearchCallContent as FileSearchCallContent, type FileSearchResultContent as FileSearchResultContent, type Function_2 as Function, type FunctionCallContent as FunctionCallContent, type FunctionResultContent as FunctionResultContent, type GenerationConfig_2 as GenerationConfig, type GoogleMapsCallArguments as GoogleMapsCallArguments, type GoogleMapsCallContent as GoogleMapsCallContent, type GoogleMapsResult as GoogleMapsResult, type GoogleMapsResultContent as GoogleMapsResultContent, type GoogleSearchCallArguments as GoogleSearchCallArguments, type GoogleSearchCallContent as GoogleSearchCallContent, type GoogleSearchResult as GoogleSearchResult, type GoogleSearchResultContent as GoogleSearchResultContent, type ImageConfig_2 as ImageConfig, type ImageContent as ImageContent, type Interaction as Interaction, type InteractionCompleteEvent as InteractionCompleteEvent, type InteractionSSEEvent as InteractionSSEEvent, type InteractionStartEvent as InteractionStartEvent, type InteractionStatusUpdate as InteractionStatusUpdate, type MCPServerToolCallContent as MCPServerToolCallContent, type MCPServerToolResultContent as MCPServerToolResultContent, type Model_2 as Model, type PlaceCitation as PlaceCitation, type SpeechConfig_2 as SpeechConfig, type TextContent as TextContent, type ThinkingLevel_2 as ThinkingLevel, type ThoughtContent as ThoughtContent, type Tool_2 as Tool, type ToolChoiceConfig as ToolChoiceConfig, type ToolChoiceType as ToolChoiceType, type Turn as Turn, type URLCitation as URLCitation, type URLContextCallArguments as URLContextCallArguments, type URLContextCallContent as URLContextCallContent, type URLContextResult as URLContextResult, type URLContextResultContent as URLContextResultContent, type Usage as Usage, type VideoContent as VideoContent, type WebhookConfig_2 as WebhookConfig, type InteractionDeleteResponse as InteractionDeleteResponse, type InteractionCreateParams as InteractionCreateParams, type CreateModelInteractionParamsNonStreaming as CreateModelInteractionParamsNonStreaming, type CreateModelInteractionParamsStreaming as CreateModelInteractionParamsStreaming, type CreateAgentInteractionParamsNonStreaming as CreateAgentInteractionParamsNonStreaming, type CreateAgentInteractionParamsStreaming as CreateAgentInteractionParamsStreaming, type InteractionDeleteParams as InteractionDeleteParams, type InteractionCancelParams as InteractionCancelParams, type InteractionGetParams as InteractionGetParams, type InteractionGetParamsNonStreaming as InteractionGetParamsNonStreaming, type InteractionGetParamsStreaming as InteractionGetParamsStreaming, };
6397
6496
  }
6398
6497
 
6399
6498
  declare namespace InteractionsAPI {
@@ -6455,6 +6554,7 @@ declare namespace InteractionsAPI {
6455
6554
  URLContextResultContent,
6456
6555
  Usage,
6457
6556
  VideoContent,
6557
+ WebhookConfig_2 as WebhookConfig,
6458
6558
  InteractionDeleteResponse,
6459
6559
  InteractionCreateParams,
6460
6560
  BaseCreateModelInteractionParams,
@@ -7008,6 +7108,12 @@ export declare interface LiveClientSetup {
7008
7108
  vad_signal to indicate the start and end of speech. This allows the server
7009
7109
  to process the audio more efficiently. */
7010
7110
  explicitVadSignal?: boolean;
7111
+ /** Configures the avatar model behavior. */
7112
+ avatarConfig?: AvatarConfig;
7113
+ /** Safety settings in the request to block unsafe content in the
7114
+ response.
7115
+ */
7116
+ safetySettings?: SafetySetting[];
7011
7117
  }
7012
7118
 
7013
7119
  /** Client generated response to a `ToolCall` received from the server.
@@ -7114,6 +7220,12 @@ export declare interface LiveConnectConfig {
7114
7220
  vad_signal to indicate the start and end of speech. This allows the server
7115
7221
  to process the audio more efficiently. */
7116
7222
  explicitVadSignal?: boolean;
7223
+ /** Configures the avatar model behavior. */
7224
+ avatarConfig?: AvatarConfig;
7225
+ /** Safety settings in the request to block unsafe content in the
7226
+ response.
7227
+ */
7228
+ safetySettings?: SafetySetting[];
7117
7229
  }
7118
7230
 
7119
7231
  /** Config for LiveConnectConstraints for Auth Token creation. */
@@ -7815,7 +7927,11 @@ export declare enum Modality {
7815
7927
  /**
7816
7928
  * Indicates the model should return audio.
7817
7929
  */
7818
- AUDIO = "AUDIO"
7930
+ AUDIO = "AUDIO",
7931
+ /**
7932
+ * Indicates the model should return video.
7933
+ */
7934
+ VIDEO = "VIDEO"
7819
7935
  }
7820
7936
 
7821
7937
  /** Represents token counting info for a single modality. */
@@ -9833,6 +9949,20 @@ export declare interface SessionResumptionConfig {
9833
9949
  */
9834
9950
  export declare function setDefaultBaseUrls(baseUrlParams: BaseUrlParameters): void;
9835
9951
 
9952
+ /**
9953
+ * Represents a signing secret used to verify webhook payloads.
9954
+ */
9955
+ declare interface SigningSecret {
9956
+ /**
9957
+ * Output only. The expiration date of the signing secret.
9958
+ */
9959
+ expire_time?: string;
9960
+ /**
9961
+ * Output only. The truncated version of the signing secret.
9962
+ */
9963
+ truncated_secret?: string;
9964
+ }
9965
+
9836
9966
  /** Config for `response` parameter. */
9837
9967
  export declare class SingleEmbedContentResponse {
9838
9968
  /** The response to the request.
@@ -10921,7 +11051,103 @@ export declare enum TurnCompleteReason {
10921
11051
  /**
10922
11052
  * Needs more input from the user.
10923
11053
  */
10924
- NEED_MORE_INPUT = "NEED_MORE_INPUT"
11054
+ NEED_MORE_INPUT = "NEED_MORE_INPUT",
11055
+ /**
11056
+ * Input content is prohibited.
11057
+ */
11058
+ PROHIBITED_INPUT_CONTENT = "PROHIBITED_INPUT_CONTENT",
11059
+ /**
11060
+ * Input image contains prohibited content.
11061
+ */
11062
+ IMAGE_PROHIBITED_INPUT_CONTENT = "IMAGE_PROHIBITED_INPUT_CONTENT",
11063
+ /**
11064
+ * Input text contains prominent person reference.
11065
+ */
11066
+ INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED = "INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED",
11067
+ /**
11068
+ * Input image contains celebrity.
11069
+ */
11070
+ INPUT_IMAGE_CELEBRITY = "INPUT_IMAGE_CELEBRITY",
11071
+ /**
11072
+ * Input image contains photo realistic child.
11073
+ */
11074
+ INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED = "INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED",
11075
+ /**
11076
+ * Input text contains NCII content.
11077
+ */
11078
+ INPUT_TEXT_NCII_PROHIBITED = "INPUT_TEXT_NCII_PROHIBITED",
11079
+ /**
11080
+ * Other input safety issue.
11081
+ */
11082
+ INPUT_OTHER = "INPUT_OTHER",
11083
+ /**
11084
+ * Input contains IP violation.
11085
+ */
11086
+ INPUT_IP_PROHIBITED = "INPUT_IP_PROHIBITED",
11087
+ /**
11088
+ * Input matched blocklist.
11089
+ */
11090
+ BLOCKLIST = "BLOCKLIST",
11091
+ /**
11092
+ * Input is unsafe for image generation.
11093
+ */
11094
+ UNSAFE_PROMPT_FOR_IMAGE_GENERATION = "UNSAFE_PROMPT_FOR_IMAGE_GENERATION",
11095
+ /**
11096
+ * Generated image failed safety check.
11097
+ */
11098
+ GENERATED_IMAGE_SAFETY = "GENERATED_IMAGE_SAFETY",
11099
+ /**
11100
+ * Generated content failed safety check.
11101
+ */
11102
+ GENERATED_CONTENT_SAFETY = "GENERATED_CONTENT_SAFETY",
11103
+ /**
11104
+ * Generated audio failed safety check.
11105
+ */
11106
+ GENERATED_AUDIO_SAFETY = "GENERATED_AUDIO_SAFETY",
11107
+ /**
11108
+ * Generated video failed safety check.
11109
+ */
11110
+ GENERATED_VIDEO_SAFETY = "GENERATED_VIDEO_SAFETY",
11111
+ /**
11112
+ * Generated content is prohibited.
11113
+ */
11114
+ GENERATED_CONTENT_PROHIBITED = "GENERATED_CONTENT_PROHIBITED",
11115
+ /**
11116
+ * Generated content matched blocklist.
11117
+ */
11118
+ GENERATED_CONTENT_BLOCKLIST = "GENERATED_CONTENT_BLOCKLIST",
11119
+ /**
11120
+ * Generated image is prohibited.
11121
+ */
11122
+ GENERATED_IMAGE_PROHIBITED = "GENERATED_IMAGE_PROHIBITED",
11123
+ /**
11124
+ * Generated image contains celebrity.
11125
+ */
11126
+ GENERATED_IMAGE_CELEBRITY = "GENERATED_IMAGE_CELEBRITY",
11127
+ /**
11128
+ * Generated image contains prominent people detected by rewriter.
11129
+ */
11130
+ GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER = "GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER",
11131
+ /**
11132
+ * Generated image contains identifiable people.
11133
+ */
11134
+ GENERATED_IMAGE_IDENTIFIABLE_PEOPLE = "GENERATED_IMAGE_IDENTIFIABLE_PEOPLE",
11135
+ /**
11136
+ * Generated image contains minors.
11137
+ */
11138
+ GENERATED_IMAGE_MINORS = "GENERATED_IMAGE_MINORS",
11139
+ /**
11140
+ * Generated image contains IP violation.
11141
+ */
11142
+ OUTPUT_IMAGE_IP_PROHIBITED = "OUTPUT_IMAGE_IP_PROHIBITED",
11143
+ /**
11144
+ * Other generated content issue.
11145
+ */
11146
+ GENERATED_OTHER = "GENERATED_OTHER",
11147
+ /**
11148
+ * Max regeneration attempts reached.
11149
+ */
11150
+ MAX_REGENERATION_REACHED = "MAX_REGENERATION_REACHED"
10925
11151
  }
10926
11152
 
10927
11153
  /** Options about which input is included in the user's turn. */
@@ -11234,6 +11460,7 @@ declare namespace types {
11234
11460
  GenerateVideosSource,
11235
11461
  VideoGenerationReferenceImage,
11236
11462
  VideoGenerationMask,
11463
+ WebhookConfig,
11237
11464
  GenerateVideosConfig,
11238
11465
  GenerateVideosParameters,
11239
11466
  GeneratedVideo,
@@ -11425,19 +11652,21 @@ declare namespace types {
11425
11652
  ContextWindowCompressionConfig,
11426
11653
  AudioTranscriptionConfig,
11427
11654
  ProactivityConfig,
11655
+ CustomizedAvatar,
11656
+ AvatarConfig,
11428
11657
  LiveClientSetup,
11429
11658
  LiveClientContent,
11430
11659
  ActivityStart,
11431
11660
  ActivityEnd,
11432
11661
  LiveClientRealtimeInput,
11433
11662
  LiveClientToolResponse,
11434
- LiveSendRealtimeInputParameters,
11435
11663
  LiveClientMessage,
11436
11664
  LiveConnectConfig,
11437
11665
  LiveConnectParameters,
11438
11666
  CreateChatParameters,
11439
11667
  SendMessageParameters,
11440
11668
  LiveSendClientContentParameters,
11669
+ LiveSendRealtimeInputParameters,
11441
11670
  LiveSendToolResponseParameters,
11442
11671
  LiveMusicClientSetup,
11443
11672
  WeightedPrompt,
@@ -12262,6 +12491,275 @@ export declare interface VoiceConfig {
12262
12491
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
12263
12492
  }
12264
12493
 
12494
+ /**
12495
+ * A Webhook resource.
12496
+ */
12497
+ declare interface Webhook {
12498
+ /**
12499
+ * Required. The events that the webhook is subscribed to. Available events:
12500
+ *
12501
+ * - batch.succeeded
12502
+ * - batch.cancelled
12503
+ * - batch.expired
12504
+ * - batch.failed
12505
+ * - interaction.requires_action
12506
+ * - interaction.completed
12507
+ * - interaction.failed
12508
+ * - interaction.cancelled
12509
+ * - video.generated
12510
+ */
12511
+ subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12512
+ /**
12513
+ * Required. The URI to which webhook events will be sent.
12514
+ */
12515
+ uri: string;
12516
+ /**
12517
+ * Output only. The timestamp when the webhook was created.
12518
+ */
12519
+ create_time?: string;
12520
+ /**
12521
+ * Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12522
+ */
12523
+ name?: string;
12524
+ /**
12525
+ * Output only. The new signing secret for the webhook. Only populated on create.
12526
+ */
12527
+ new_signing_secret?: string;
12528
+ /**
12529
+ * Output only. The signing secrets associated with this webhook.
12530
+ */
12531
+ signing_secrets?: Array<SigningSecret>;
12532
+ /**
12533
+ * The state of the webhook.
12534
+ */
12535
+ state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12536
+ /**
12537
+ * Output only. The timestamp when the webhook was last updated.
12538
+ */
12539
+ update_time?: string;
12540
+ }
12541
+
12542
+ /** Configuration for webhook notifications.
12543
+
12544
+ Used to configure webhook endpoints that will receive notifications
12545
+ when long-running operations (e.g., batch jobs, video generation) complete. */
12546
+ export declare interface WebhookConfig {
12547
+ /** The webhook URIs to receive notifications. If set, these
12548
+ webhook URIs will be used instead of the registered webhooks. */
12549
+ uris?: string[];
12550
+ /** User metadata that will be included in each webhook event
12551
+ notification. Use this to attach custom key-value data to correlate
12552
+ webhook events with your internal systems. */
12553
+ userMetadata?: Record<string, unknown>;
12554
+ }
12555
+
12556
+ /**
12557
+ * Message for configuring webhook events for a request.
12558
+ */
12559
+ declare interface WebhookConfig_2 {
12560
+ /**
12561
+ * Optional. If set, these webhook URIs will be used for webhook events instead of
12562
+ * the registered webhooks.
12563
+ */
12564
+ uris?: Array<string>;
12565
+ /**
12566
+ * Optional. The user metadata that will be returned on each event emission to the
12567
+ * webhooks.
12568
+ */
12569
+ user_metadata?: {
12570
+ [key: string]: unknown;
12571
+ };
12572
+ }
12573
+
12574
+ declare interface WebhookCreateParams {
12575
+ /**
12576
+ * Path param: Which version of the API to use.
12577
+ */
12578
+ api_version?: string;
12579
+ /**
12580
+ * Body param: Required. The events that the webhook is subscribed to. Available
12581
+ * events:
12582
+ *
12583
+ * - batch.succeeded
12584
+ * - batch.cancelled
12585
+ * - batch.expired
12586
+ * - batch.failed
12587
+ * - interaction.requires_action
12588
+ * - interaction.completed
12589
+ * - interaction.failed
12590
+ * - interaction.cancelled
12591
+ * - video.generated
12592
+ */
12593
+ subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12594
+ /**
12595
+ * Body param: Required. The URI to which webhook events will be sent.
12596
+ */
12597
+ uri: string;
12598
+ /**
12599
+ * Query param: Optional. The webhook_id to use for the webhook. If not specified,
12600
+ * the server will generate a unique ID.
12601
+ */
12602
+ webhook_id?: string;
12603
+ /**
12604
+ * Body param: Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12605
+ */
12606
+ name?: string;
12607
+ /**
12608
+ * Body param: The state of the webhook.
12609
+ */
12610
+ state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12611
+ }
12612
+
12613
+ declare interface WebhookDeleteParams {
12614
+ /**
12615
+ * Which version of the API to use.
12616
+ */
12617
+ api_version?: string;
12618
+ }
12619
+
12620
+ /**
12621
+ * A generic empty message that you can re-use to avoid defining duplicated empty
12622
+ * messages in your APIs. A typical example is to use it as the request or the
12623
+ * response type of an API method. For instance:
12624
+ *
12625
+ * service Foo {
12626
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
12627
+ * }
12628
+ */
12629
+ declare interface WebhookDeleteResponse {
12630
+ }
12631
+
12632
+ declare interface WebhookGetParams {
12633
+ /**
12634
+ * Which version of the API to use.
12635
+ */
12636
+ api_version?: string;
12637
+ }
12638
+
12639
+ declare interface WebhookListParams {
12640
+ /**
12641
+ * Path param: Which version of the API to use.
12642
+ */
12643
+ api_version?: string;
12644
+ /**
12645
+ * Query param: Optional. The maximum number of webhooks to return. The service may
12646
+ * return fewer than this value. If unspecified, at most 50 webhooks will be
12647
+ * returned. The maximum value is 1000.
12648
+ */
12649
+ page_size?: number;
12650
+ /**
12651
+ * Query param: Optional. A page token, received from a previous `ListWebhooks`
12652
+ * call. Provide this to retrieve the subsequent page.
12653
+ */
12654
+ page_token?: string;
12655
+ }
12656
+
12657
+ /**
12658
+ * Response message for WebhookService.ListWebhooks.
12659
+ */
12660
+ declare interface WebhookListResponse {
12661
+ /**
12662
+ * A token, which can be sent as `page_token` to retrieve the next page. If this
12663
+ * field is omitted, there are no subsequent pages.
12664
+ */
12665
+ next_page_token?: string;
12666
+ /**
12667
+ * The webhooks.
12668
+ */
12669
+ webhooks?: Array<Webhook>;
12670
+ }
12671
+
12672
+ declare interface WebhookPingParams {
12673
+ /**
12674
+ * Path param: Which version of the API to use.
12675
+ */
12676
+ api_version?: string;
12677
+ /**
12678
+ * Body param: Request message for WebhookService.PingWebhook.
12679
+ */
12680
+ body?: WebhookPingParams.Body;
12681
+ }
12682
+
12683
+ declare namespace WebhookPingParams {
12684
+ /**
12685
+ * Request message for WebhookService.PingWebhook.
12686
+ */
12687
+ interface Body {
12688
+ }
12689
+ }
12690
+
12691
+ /**
12692
+ * Response message for WebhookService.PingWebhook.
12693
+ */
12694
+ declare interface WebhookPingResponse {
12695
+ }
12696
+
12697
+ declare interface WebhookRotateSigningSecretParams {
12698
+ /**
12699
+ * Path param: Which version of the API to use.
12700
+ */
12701
+ api_version?: string;
12702
+ /**
12703
+ * Body param: Optional. The revocation behavior for previous signing secrets.
12704
+ */
12705
+ revocation_behavior?: 'revoke_previous_secrets_after_h24' | 'revoke_previous_secrets_immediately';
12706
+ }
12707
+
12708
+ /**
12709
+ * Response message for WebhookService.RotateSigningSecret.
12710
+ */
12711
+ declare interface WebhookRotateSigningSecretResponse {
12712
+ /**
12713
+ * Output only. The newly generated signing secret.
12714
+ */
12715
+ secret?: string;
12716
+ }
12717
+
12718
+ export declare class Webhooks extends BaseWebhooks {
12719
+ }
12720
+
12721
+ export declare namespace Webhooks {
12722
+ export { type SigningSecret as SigningSecret, type Webhook as Webhook, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookPingResponse as WebhookPingResponse, type WebhookRotateSigningSecretResponse as WebhookRotateSigningSecretResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookGetParams as WebhookGetParams, type WebhookPingParams as WebhookPingParams, type WebhookRotateSigningSecretParams as WebhookRotateSigningSecretParams, };
12723
+ }
12724
+
12725
+ declare interface WebhookUpdateParams {
12726
+ /**
12727
+ * Path param: Which version of the API to use.
12728
+ */
12729
+ api_version?: string;
12730
+ /**
12731
+ * Body param: Required. The events that the webhook is subscribed to. Available
12732
+ * events:
12733
+ *
12734
+ * - batch.succeeded
12735
+ * - batch.cancelled
12736
+ * - batch.expired
12737
+ * - batch.failed
12738
+ * - interaction.requires_action
12739
+ * - interaction.completed
12740
+ * - interaction.failed
12741
+ * - interaction.cancelled
12742
+ * - video.generated
12743
+ */
12744
+ subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12745
+ /**
12746
+ * Body param: Required. The URI to which webhook events will be sent.
12747
+ */
12748
+ uri: string;
12749
+ /**
12750
+ * Query param: Optional. The list of fields to update.
12751
+ */
12752
+ update_mask?: string;
12753
+ /**
12754
+ * Body param: Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12755
+ */
12756
+ name?: string;
12757
+ /**
12758
+ * Body param: The state of the webhook.
12759
+ */
12760
+ state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12761
+ }
12762
+
12265
12763
  /** Standard web search for grounding and related configurations. Only text results are returned. */
12266
12764
  export declare interface WebSearch {
12267
12765
  }