@google/genai 1.50.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/web/web.d.ts CHANGED
@@ -950,15 +950,11 @@ declare class BaseWebhooks extends APIResource {
950
950
  /**
951
951
  * Creates a new Webhook.
952
952
  */
953
- create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<WebhookCreateResponse>;
954
- /**
955
- * Gets a specific Webhook.
956
- */
957
- retrieve(id: string, params?: WebhookRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<WebhookRetrieveResponse>;
953
+ create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<Webhook>;
958
954
  /**
959
955
  * Updates an existing Webhook.
960
956
  */
961
- update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<WebhookUpdateResponse>;
957
+ update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<Webhook>;
962
958
  /**
963
959
  * Lists all Webhooks.
964
960
  */
@@ -967,6 +963,10 @@ declare class BaseWebhooks extends APIResource {
967
963
  * Deletes a Webhook.
968
964
  */
969
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
970
  /**
971
971
  * Sends a ping event to a Webhook.
972
972
  */
@@ -9954,6 +9954,20 @@ export declare interface SessionResumptionConfig {
9954
9954
  */
9955
9955
  export declare function setDefaultBaseUrls(baseUrlParams: BaseUrlParameters): void;
9956
9956
 
9957
+ /**
9958
+ * Represents a signing secret used to verify webhook payloads.
9959
+ */
9960
+ declare interface SigningSecret {
9961
+ /**
9962
+ * Output only. The expiration date of the signing secret.
9963
+ */
9964
+ expire_time?: string;
9965
+ /**
9966
+ * Output only. The truncated version of the signing secret.
9967
+ */
9968
+ truncated_secret?: string;
9969
+ }
9970
+
9957
9971
  /** Config for `response` parameter. */
9958
9972
  export declare class SingleEmbedContentResponse {
9959
9973
  /** The response to the request.
@@ -12482,6 +12496,54 @@ export declare interface VoiceConfig {
12482
12496
  prebuiltVoiceConfig?: PrebuiltVoiceConfig;
12483
12497
  }
12484
12498
 
12499
+ /**
12500
+ * A Webhook resource.
12501
+ */
12502
+ declare interface Webhook {
12503
+ /**
12504
+ * Required. The events that the webhook is subscribed to. Available events:
12505
+ *
12506
+ * - batch.succeeded
12507
+ * - batch.cancelled
12508
+ * - batch.expired
12509
+ * - batch.failed
12510
+ * - interaction.requires_action
12511
+ * - interaction.completed
12512
+ * - interaction.failed
12513
+ * - interaction.cancelled
12514
+ * - video.generated
12515
+ */
12516
+ subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12517
+ /**
12518
+ * Required. The URI to which webhook events will be sent.
12519
+ */
12520
+ uri: string;
12521
+ /**
12522
+ * Output only. The timestamp when the webhook was created.
12523
+ */
12524
+ create_time?: string;
12525
+ /**
12526
+ * Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12527
+ */
12528
+ name?: string;
12529
+ /**
12530
+ * Output only. The new signing secret for the webhook. Only populated on create.
12531
+ */
12532
+ new_signing_secret?: string;
12533
+ /**
12534
+ * Output only. The signing secrets associated with this webhook.
12535
+ */
12536
+ signing_secrets?: Array<SigningSecret>;
12537
+ /**
12538
+ * The state of the webhook.
12539
+ */
12540
+ state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12541
+ /**
12542
+ * Output only. The timestamp when the webhook was last updated.
12543
+ */
12544
+ update_time?: string;
12545
+ }
12546
+
12485
12547
  /** Configuration for webhook notifications.
12486
12548
 
12487
12549
  Used to configure webhook endpoints that will receive notifications
@@ -12553,70 +12615,6 @@ declare interface WebhookCreateParams {
12553
12615
  state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12554
12616
  }
12555
12617
 
12556
- /**
12557
- * A Webhook resource.
12558
- */
12559
- declare interface WebhookCreateResponse {
12560
- /**
12561
- * Required. The events that the webhook is subscribed to. Available events:
12562
- *
12563
- * - batch.succeeded
12564
- * - batch.cancelled
12565
- * - batch.expired
12566
- * - batch.failed
12567
- * - interaction.requires_action
12568
- * - interaction.completed
12569
- * - interaction.failed
12570
- * - interaction.cancelled
12571
- * - video.generated
12572
- */
12573
- subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12574
- /**
12575
- * Required. The URI to which webhook events will be sent.
12576
- */
12577
- uri: string;
12578
- /**
12579
- * Output only. The timestamp when the webhook was created.
12580
- */
12581
- create_time?: string;
12582
- /**
12583
- * Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12584
- */
12585
- name?: string;
12586
- /**
12587
- * Output only. The new signing secret for the webhook. Only populated on create.
12588
- */
12589
- new_signing_secret?: string;
12590
- /**
12591
- * Output only. The signing secrets associated with this webhook.
12592
- */
12593
- signing_secrets?: Array<WebhookCreateResponse.SigningSecret>;
12594
- /**
12595
- * The state of the webhook.
12596
- */
12597
- state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12598
- /**
12599
- * Output only. The timestamp when the webhook was last updated.
12600
- */
12601
- update_time?: string;
12602
- }
12603
-
12604
- declare namespace WebhookCreateResponse {
12605
- /**
12606
- * Represents a signing secret used to verify webhook payloads.
12607
- */
12608
- interface SigningSecret {
12609
- /**
12610
- * Output only. The expiration date of the signing secret.
12611
- */
12612
- expire_time?: string;
12613
- /**
12614
- * Output only. The truncated version of the signing secret.
12615
- */
12616
- truncated_secret?: string;
12617
- }
12618
- }
12619
-
12620
12618
  declare interface WebhookDeleteParams {
12621
12619
  /**
12622
12620
  * Which version of the API to use.
@@ -12636,6 +12634,13 @@ declare interface WebhookDeleteParams {
12636
12634
  declare interface WebhookDeleteResponse {
12637
12635
  }
12638
12636
 
12637
+ declare interface WebhookGetParams {
12638
+ /**
12639
+ * Which version of the API to use.
12640
+ */
12641
+ api_version?: string;
12642
+ }
12643
+
12639
12644
  declare interface WebhookListParams {
12640
12645
  /**
12641
12646
  * Path param: Which version of the API to use.
@@ -12666,72 +12671,7 @@ declare interface WebhookListResponse {
12666
12671
  /**
12667
12672
  * The webhooks.
12668
12673
  */
12669
- webhooks?: Array<WebhookListResponse.Webhook>;
12670
- }
12671
-
12672
- declare namespace WebhookListResponse {
12673
- /**
12674
- * A Webhook resource.
12675
- */
12676
- interface Webhook {
12677
- /**
12678
- * Required. The events that the webhook is subscribed to. Available events:
12679
- *
12680
- * - batch.succeeded
12681
- * - batch.cancelled
12682
- * - batch.expired
12683
- * - batch.failed
12684
- * - interaction.requires_action
12685
- * - interaction.completed
12686
- * - interaction.failed
12687
- * - interaction.cancelled
12688
- * - video.generated
12689
- */
12690
- subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12691
- /**
12692
- * Required. The URI to which webhook events will be sent.
12693
- */
12694
- uri: string;
12695
- /**
12696
- * Output only. The timestamp when the webhook was created.
12697
- */
12698
- create_time?: string;
12699
- /**
12700
- * Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12701
- */
12702
- name?: string;
12703
- /**
12704
- * Output only. The new signing secret for the webhook. Only populated on create.
12705
- */
12706
- new_signing_secret?: string;
12707
- /**
12708
- * Output only. The signing secrets associated with this webhook.
12709
- */
12710
- signing_secrets?: Array<Webhook.SigningSecret>;
12711
- /**
12712
- * The state of the webhook.
12713
- */
12714
- state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12715
- /**
12716
- * Output only. The timestamp when the webhook was last updated.
12717
- */
12718
- update_time?: string;
12719
- }
12720
- namespace Webhook {
12721
- /**
12722
- * Represents a signing secret used to verify webhook payloads.
12723
- */
12724
- interface SigningSecret {
12725
- /**
12726
- * Output only. The expiration date of the signing secret.
12727
- */
12728
- expire_time?: string;
12729
- /**
12730
- * Output only. The truncated version of the signing secret.
12731
- */
12732
- truncated_secret?: string;
12733
- }
12734
- }
12674
+ webhooks?: Array<Webhook>;
12735
12675
  }
12736
12676
 
12737
12677
  declare interface WebhookPingParams {
@@ -12759,77 +12699,6 @@ declare namespace WebhookPingParams {
12759
12699
  declare interface WebhookPingResponse {
12760
12700
  }
12761
12701
 
12762
- declare interface WebhookRetrieveParams {
12763
- /**
12764
- * Which version of the API to use.
12765
- */
12766
- api_version?: string;
12767
- }
12768
-
12769
- /**
12770
- * A Webhook resource.
12771
- */
12772
- declare interface WebhookRetrieveResponse {
12773
- /**
12774
- * Required. The events that the webhook is subscribed to. Available events:
12775
- *
12776
- * - batch.succeeded
12777
- * - batch.cancelled
12778
- * - batch.expired
12779
- * - batch.failed
12780
- * - interaction.requires_action
12781
- * - interaction.completed
12782
- * - interaction.failed
12783
- * - interaction.cancelled
12784
- * - video.generated
12785
- */
12786
- subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12787
- /**
12788
- * Required. The URI to which webhook events will be sent.
12789
- */
12790
- uri: string;
12791
- /**
12792
- * Output only. The timestamp when the webhook was created.
12793
- */
12794
- create_time?: string;
12795
- /**
12796
- * Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12797
- */
12798
- name?: string;
12799
- /**
12800
- * Output only. The new signing secret for the webhook. Only populated on create.
12801
- */
12802
- new_signing_secret?: string;
12803
- /**
12804
- * Output only. The signing secrets associated with this webhook.
12805
- */
12806
- signing_secrets?: Array<WebhookRetrieveResponse.SigningSecret>;
12807
- /**
12808
- * The state of the webhook.
12809
- */
12810
- state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12811
- /**
12812
- * Output only. The timestamp when the webhook was last updated.
12813
- */
12814
- update_time?: string;
12815
- }
12816
-
12817
- declare namespace WebhookRetrieveResponse {
12818
- /**
12819
- * Represents a signing secret used to verify webhook payloads.
12820
- */
12821
- interface SigningSecret {
12822
- /**
12823
- * Output only. The expiration date of the signing secret.
12824
- */
12825
- expire_time?: string;
12826
- /**
12827
- * Output only. The truncated version of the signing secret.
12828
- */
12829
- truncated_secret?: string;
12830
- }
12831
- }
12832
-
12833
12702
  declare interface WebhookRotateSigningSecretParams {
12834
12703
  /**
12835
12704
  * Path param: Which version of the API to use.
@@ -12855,7 +12724,7 @@ export declare class Webhooks extends BaseWebhooks {
12855
12724
  }
12856
12725
 
12857
12726
  export declare namespace Webhooks {
12858
- export { type WebhookCreateResponse as WebhookCreateResponse, type WebhookRetrieveResponse as WebhookRetrieveResponse, type WebhookUpdateResponse as WebhookUpdateResponse, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookPingResponse as WebhookPingResponse, type WebhookRotateSigningSecretResponse as WebhookRotateSigningSecretResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookPingParams as WebhookPingParams, type WebhookRotateSigningSecretParams as WebhookRotateSigningSecretParams, };
12727
+ 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, };
12859
12728
  }
12860
12729
 
12861
12730
  declare interface WebhookUpdateParams {
@@ -12896,70 +12765,6 @@ declare interface WebhookUpdateParams {
12896
12765
  state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12897
12766
  }
12898
12767
 
12899
- /**
12900
- * A Webhook resource.
12901
- */
12902
- declare interface WebhookUpdateResponse {
12903
- /**
12904
- * Required. The events that the webhook is subscribed to. Available events:
12905
- *
12906
- * - batch.succeeded
12907
- * - batch.cancelled
12908
- * - batch.expired
12909
- * - batch.failed
12910
- * - interaction.requires_action
12911
- * - interaction.completed
12912
- * - interaction.failed
12913
- * - interaction.cancelled
12914
- * - video.generated
12915
- */
12916
- subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
12917
- /**
12918
- * Required. The URI to which webhook events will be sent.
12919
- */
12920
- uri: string;
12921
- /**
12922
- * Output only. The timestamp when the webhook was created.
12923
- */
12924
- create_time?: string;
12925
- /**
12926
- * Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
12927
- */
12928
- name?: string;
12929
- /**
12930
- * Output only. The new signing secret for the webhook. Only populated on create.
12931
- */
12932
- new_signing_secret?: string;
12933
- /**
12934
- * Output only. The signing secrets associated with this webhook.
12935
- */
12936
- signing_secrets?: Array<WebhookUpdateResponse.SigningSecret>;
12937
- /**
12938
- * The state of the webhook.
12939
- */
12940
- state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
12941
- /**
12942
- * Output only. The timestamp when the webhook was last updated.
12943
- */
12944
- update_time?: string;
12945
- }
12946
-
12947
- declare namespace WebhookUpdateResponse {
12948
- /**
12949
- * Represents a signing secret used to verify webhook payloads.
12950
- */
12951
- interface SigningSecret {
12952
- /**
12953
- * Output only. The expiration date of the signing secret.
12954
- */
12955
- expire_time?: string;
12956
- /**
12957
- * Output only. The truncated version of the signing secret.
12958
- */
12959
- truncated_secret?: string;
12960
- }
12961
- }
12962
-
12963
12768
  /** Standard web search for grounding and related configurations. Only text results are returned. */
12964
12769
  export declare interface WebSearch {
12965
12770
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/genai",
3
- "version": "1.50.0",
3
+ "version": "1.50.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.mjs",