@@ -11097,6 +11097,46 @@ class VideoGenerationMaskDict(TypedDict, total=False):
1109711097VideoGenerationMaskOrDict = Union[VideoGenerationMask, VideoGenerationMaskDict]
1109811098
1109911099
11100+ class WebhookConfig(_common.BaseModel):
11101+ """Configuration for webhook notifications.
11102+
11103+ Used to configure webhook endpoints that will receive notifications
11104+ when long-running operations (e.g., batch jobs, video generation) complete.
11105+ """
11106+
11107+ uris: Optional[list[str]] = Field(
11108+ default=None,
11109+ description="""The webhook URIs to receive notifications. If set, these
11110+ webhook URIs will be used instead of the registered webhooks.""",
11111+ )
11112+ user_metadata: Optional[dict[str, Any]] = Field(
11113+ default=None,
11114+ description="""User metadata that will be included in each webhook event
11115+ notification. Use this to attach custom key-value data to correlate
11116+ webhook events with your internal systems.""",
11117+ )
11118+
11119+
11120+ class WebhookConfigDict(TypedDict, total=False):
11121+ """Configuration for webhook notifications.
11122+
11123+ Used to configure webhook endpoints that will receive notifications
11124+ when long-running operations (e.g., batch jobs, video generation) complete.
11125+ """
11126+
11127+ uris: Optional[list[str]]
11128+ """The webhook URIs to receive notifications. If set, these
11129+ webhook URIs will be used instead of the registered webhooks."""
11130+
11131+ user_metadata: Optional[dict[str, Any]]
11132+ """User metadata that will be included in each webhook event
11133+ notification. Use this to attach custom key-value data to correlate
11134+ webhook events with your internal systems."""
11135+
11136+
11137+ WebhookConfigOrDict = Union[WebhookConfig, WebhookConfigDict]
11138+
11139+
1110011140class GenerateVideosConfig(_common.BaseModel):
1110111141 """Configuration for generating videos."""
1110211142
@@ -11180,6 +11220,11 @@ class GenerateVideosConfig(_common.BaseModel):
1118011220 default=None,
1118111221 description="""User specified labels to track billing usage.""",
1118211222 )
11223+ webhook_config: Optional[WebhookConfig] = Field(
11224+ default=None,
11225+ description="""Webhook configuration for receiving notifications when the
11226+ video generation operation completes.""",
11227+ )
1118311228
1118411229
1118511230class GenerateVideosConfigDict(TypedDict, total=False):
@@ -11252,6 +11297,10 @@ class GenerateVideosConfigDict(TypedDict, total=False):
1125211297 labels: Optional[dict[str, str]]
1125311298 """User specified labels to track billing usage."""
1125411299
11300+ webhook_config: Optional[WebhookConfigDict]
11301+ """Webhook configuration for receiving notifications when the
11302+ video generation operation completes."""
11303+
1125511304
1125611305GenerateVideosConfigOrDict = Union[
1125711306 GenerateVideosConfig, GenerateVideosConfigDict
@@ -16376,6 +16425,12 @@ class CreateBatchJobConfig(_common.BaseModel):
1637616425 "gs://path/to/output/data" or "bq://projectId.bqDatasetId.bqTableId".
1637716426 """,
1637816427 )
16428+ webhook_config: Optional[WebhookConfig] = Field(
16429+ default=None,
16430+ description="""Webhook configuration for receiving notifications when the batch
16431+ operation completes.
16432+ """,
16433+ )
1637916434
1638016435
1638116436class CreateBatchJobConfigDict(TypedDict, total=False):
@@ -16393,6 +16448,11 @@ class CreateBatchJobConfigDict(TypedDict, total=False):
1639316448 "gs://path/to/output/data" or "bq://projectId.bqDatasetId.bqTableId".
1639416449 """
1639516450
16451+ webhook_config: Optional[WebhookConfigDict]
16452+ """Webhook configuration for receiving notifications when the batch
16453+ operation completes.
16454+ """
16455+
1639616456
1639716457CreateBatchJobConfigOrDict = Union[
1639816458 CreateBatchJobConfig, CreateBatchJobConfigDict
0 commit comments