@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/genai.d.ts +77 -272
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.cjs +8 -8
- package/dist/node/index.mjs +8 -8
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/node.d.ts +77 -272
- package/dist/vertex_internal/index.cjs +1 -1
- package/dist/vertex_internal/index.cjs.map +1 -1
- package/dist/vertex_internal/index.js +1 -1
- package/dist/vertex_internal/index.js.map +1 -1
- package/dist/web/index.mjs +8 -8
- package/dist/web/index.mjs.map +1 -1
- package/dist/web/web.d.ts +77 -272
- package/package.json +1 -1
package/dist/genai.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<
|
|
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<
|
|
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
|
*/
|
|
@@ -9949,6 +9949,20 @@ export declare interface SessionResumptionConfig {
|
|
|
9949
9949
|
*/
|
|
9950
9950
|
export declare function setDefaultBaseUrls(baseUrlParams: BaseUrlParameters): void;
|
|
9951
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
|
+
|
|
9952
9966
|
/** Config for `response` parameter. */
|
|
9953
9967
|
export declare class SingleEmbedContentResponse {
|
|
9954
9968
|
/** The response to the request.
|
|
@@ -12477,6 +12491,54 @@ export declare interface VoiceConfig {
|
|
|
12477
12491
|
prebuiltVoiceConfig?: PrebuiltVoiceConfig;
|
|
12478
12492
|
}
|
|
12479
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
|
+
|
|
12480
12542
|
/** Configuration for webhook notifications.
|
|
12481
12543
|
|
|
12482
12544
|
Used to configure webhook endpoints that will receive notifications
|
|
@@ -12548,70 +12610,6 @@ declare interface WebhookCreateParams {
|
|
|
12548
12610
|
state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
|
|
12549
12611
|
}
|
|
12550
12612
|
|
|
12551
|
-
/**
|
|
12552
|
-
* A Webhook resource.
|
|
12553
|
-
*/
|
|
12554
|
-
declare interface WebhookCreateResponse {
|
|
12555
|
-
/**
|
|
12556
|
-
* Required. The events that the webhook is subscribed to. Available events:
|
|
12557
|
-
*
|
|
12558
|
-
* - batch.succeeded
|
|
12559
|
-
* - batch.cancelled
|
|
12560
|
-
* - batch.expired
|
|
12561
|
-
* - batch.failed
|
|
12562
|
-
* - interaction.requires_action
|
|
12563
|
-
* - interaction.completed
|
|
12564
|
-
* - interaction.failed
|
|
12565
|
-
* - interaction.cancelled
|
|
12566
|
-
* - video.generated
|
|
12567
|
-
*/
|
|
12568
|
-
subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
|
|
12569
|
-
/**
|
|
12570
|
-
* Required. The URI to which webhook events will be sent.
|
|
12571
|
-
*/
|
|
12572
|
-
uri: string;
|
|
12573
|
-
/**
|
|
12574
|
-
* Output only. The timestamp when the webhook was created.
|
|
12575
|
-
*/
|
|
12576
|
-
create_time?: string;
|
|
12577
|
-
/**
|
|
12578
|
-
* Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
|
|
12579
|
-
*/
|
|
12580
|
-
name?: string;
|
|
12581
|
-
/**
|
|
12582
|
-
* Output only. The new signing secret for the webhook. Only populated on create.
|
|
12583
|
-
*/
|
|
12584
|
-
new_signing_secret?: string;
|
|
12585
|
-
/**
|
|
12586
|
-
* Output only. The signing secrets associated with this webhook.
|
|
12587
|
-
*/
|
|
12588
|
-
signing_secrets?: Array<WebhookCreateResponse.SigningSecret>;
|
|
12589
|
-
/**
|
|
12590
|
-
* The state of the webhook.
|
|
12591
|
-
*/
|
|
12592
|
-
state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
|
|
12593
|
-
/**
|
|
12594
|
-
* Output only. The timestamp when the webhook was last updated.
|
|
12595
|
-
*/
|
|
12596
|
-
update_time?: string;
|
|
12597
|
-
}
|
|
12598
|
-
|
|
12599
|
-
declare namespace WebhookCreateResponse {
|
|
12600
|
-
/**
|
|
12601
|
-
* Represents a signing secret used to verify webhook payloads.
|
|
12602
|
-
*/
|
|
12603
|
-
interface SigningSecret {
|
|
12604
|
-
/**
|
|
12605
|
-
* Output only. The expiration date of the signing secret.
|
|
12606
|
-
*/
|
|
12607
|
-
expire_time?: string;
|
|
12608
|
-
/**
|
|
12609
|
-
* Output only. The truncated version of the signing secret.
|
|
12610
|
-
*/
|
|
12611
|
-
truncated_secret?: string;
|
|
12612
|
-
}
|
|
12613
|
-
}
|
|
12614
|
-
|
|
12615
12613
|
declare interface WebhookDeleteParams {
|
|
12616
12614
|
/**
|
|
12617
12615
|
* Which version of the API to use.
|
|
@@ -12631,6 +12629,13 @@ declare interface WebhookDeleteParams {
|
|
|
12631
12629
|
declare interface WebhookDeleteResponse {
|
|
12632
12630
|
}
|
|
12633
12631
|
|
|
12632
|
+
declare interface WebhookGetParams {
|
|
12633
|
+
/**
|
|
12634
|
+
* Which version of the API to use.
|
|
12635
|
+
*/
|
|
12636
|
+
api_version?: string;
|
|
12637
|
+
}
|
|
12638
|
+
|
|
12634
12639
|
declare interface WebhookListParams {
|
|
12635
12640
|
/**
|
|
12636
12641
|
* Path param: Which version of the API to use.
|
|
@@ -12661,72 +12666,7 @@ declare interface WebhookListResponse {
|
|
|
12661
12666
|
/**
|
|
12662
12667
|
* The webhooks.
|
|
12663
12668
|
*/
|
|
12664
|
-
webhooks?: Array<
|
|
12665
|
-
}
|
|
12666
|
-
|
|
12667
|
-
declare namespace WebhookListResponse {
|
|
12668
|
-
/**
|
|
12669
|
-
* A Webhook resource.
|
|
12670
|
-
*/
|
|
12671
|
-
interface Webhook {
|
|
12672
|
-
/**
|
|
12673
|
-
* Required. The events that the webhook is subscribed to. Available events:
|
|
12674
|
-
*
|
|
12675
|
-
* - batch.succeeded
|
|
12676
|
-
* - batch.cancelled
|
|
12677
|
-
* - batch.expired
|
|
12678
|
-
* - batch.failed
|
|
12679
|
-
* - interaction.requires_action
|
|
12680
|
-
* - interaction.completed
|
|
12681
|
-
* - interaction.failed
|
|
12682
|
-
* - interaction.cancelled
|
|
12683
|
-
* - video.generated
|
|
12684
|
-
*/
|
|
12685
|
-
subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
|
|
12686
|
-
/**
|
|
12687
|
-
* Required. The URI to which webhook events will be sent.
|
|
12688
|
-
*/
|
|
12689
|
-
uri: string;
|
|
12690
|
-
/**
|
|
12691
|
-
* Output only. The timestamp when the webhook was created.
|
|
12692
|
-
*/
|
|
12693
|
-
create_time?: string;
|
|
12694
|
-
/**
|
|
12695
|
-
* Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
|
|
12696
|
-
*/
|
|
12697
|
-
name?: string;
|
|
12698
|
-
/**
|
|
12699
|
-
* Output only. The new signing secret for the webhook. Only populated on create.
|
|
12700
|
-
*/
|
|
12701
|
-
new_signing_secret?: string;
|
|
12702
|
-
/**
|
|
12703
|
-
* Output only. The signing secrets associated with this webhook.
|
|
12704
|
-
*/
|
|
12705
|
-
signing_secrets?: Array<Webhook.SigningSecret>;
|
|
12706
|
-
/**
|
|
12707
|
-
* The state of the webhook.
|
|
12708
|
-
*/
|
|
12709
|
-
state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
|
|
12710
|
-
/**
|
|
12711
|
-
* Output only. The timestamp when the webhook was last updated.
|
|
12712
|
-
*/
|
|
12713
|
-
update_time?: string;
|
|
12714
|
-
}
|
|
12715
|
-
namespace Webhook {
|
|
12716
|
-
/**
|
|
12717
|
-
* Represents a signing secret used to verify webhook payloads.
|
|
12718
|
-
*/
|
|
12719
|
-
interface SigningSecret {
|
|
12720
|
-
/**
|
|
12721
|
-
* Output only. The expiration date of the signing secret.
|
|
12722
|
-
*/
|
|
12723
|
-
expire_time?: string;
|
|
12724
|
-
/**
|
|
12725
|
-
* Output only. The truncated version of the signing secret.
|
|
12726
|
-
*/
|
|
12727
|
-
truncated_secret?: string;
|
|
12728
|
-
}
|
|
12729
|
-
}
|
|
12669
|
+
webhooks?: Array<Webhook>;
|
|
12730
12670
|
}
|
|
12731
12671
|
|
|
12732
12672
|
declare interface WebhookPingParams {
|
|
@@ -12754,77 +12694,6 @@ declare namespace WebhookPingParams {
|
|
|
12754
12694
|
declare interface WebhookPingResponse {
|
|
12755
12695
|
}
|
|
12756
12696
|
|
|
12757
|
-
declare interface WebhookRetrieveParams {
|
|
12758
|
-
/**
|
|
12759
|
-
* Which version of the API to use.
|
|
12760
|
-
*/
|
|
12761
|
-
api_version?: string;
|
|
12762
|
-
}
|
|
12763
|
-
|
|
12764
|
-
/**
|
|
12765
|
-
* A Webhook resource.
|
|
12766
|
-
*/
|
|
12767
|
-
declare interface WebhookRetrieveResponse {
|
|
12768
|
-
/**
|
|
12769
|
-
* Required. The events that the webhook is subscribed to. Available events:
|
|
12770
|
-
*
|
|
12771
|
-
* - batch.succeeded
|
|
12772
|
-
* - batch.cancelled
|
|
12773
|
-
* - batch.expired
|
|
12774
|
-
* - batch.failed
|
|
12775
|
-
* - interaction.requires_action
|
|
12776
|
-
* - interaction.completed
|
|
12777
|
-
* - interaction.failed
|
|
12778
|
-
* - interaction.cancelled
|
|
12779
|
-
* - video.generated
|
|
12780
|
-
*/
|
|
12781
|
-
subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
|
|
12782
|
-
/**
|
|
12783
|
-
* Required. The URI to which webhook events will be sent.
|
|
12784
|
-
*/
|
|
12785
|
-
uri: string;
|
|
12786
|
-
/**
|
|
12787
|
-
* Output only. The timestamp when the webhook was created.
|
|
12788
|
-
*/
|
|
12789
|
-
create_time?: string;
|
|
12790
|
-
/**
|
|
12791
|
-
* Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
|
|
12792
|
-
*/
|
|
12793
|
-
name?: string;
|
|
12794
|
-
/**
|
|
12795
|
-
* Output only. The new signing secret for the webhook. Only populated on create.
|
|
12796
|
-
*/
|
|
12797
|
-
new_signing_secret?: string;
|
|
12798
|
-
/**
|
|
12799
|
-
* Output only. The signing secrets associated with this webhook.
|
|
12800
|
-
*/
|
|
12801
|
-
signing_secrets?: Array<WebhookRetrieveResponse.SigningSecret>;
|
|
12802
|
-
/**
|
|
12803
|
-
* The state of the webhook.
|
|
12804
|
-
*/
|
|
12805
|
-
state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
|
|
12806
|
-
/**
|
|
12807
|
-
* Output only. The timestamp when the webhook was last updated.
|
|
12808
|
-
*/
|
|
12809
|
-
update_time?: string;
|
|
12810
|
-
}
|
|
12811
|
-
|
|
12812
|
-
declare namespace WebhookRetrieveResponse {
|
|
12813
|
-
/**
|
|
12814
|
-
* Represents a signing secret used to verify webhook payloads.
|
|
12815
|
-
*/
|
|
12816
|
-
interface SigningSecret {
|
|
12817
|
-
/**
|
|
12818
|
-
* Output only. The expiration date of the signing secret.
|
|
12819
|
-
*/
|
|
12820
|
-
expire_time?: string;
|
|
12821
|
-
/**
|
|
12822
|
-
* Output only. The truncated version of the signing secret.
|
|
12823
|
-
*/
|
|
12824
|
-
truncated_secret?: string;
|
|
12825
|
-
}
|
|
12826
|
-
}
|
|
12827
|
-
|
|
12828
12697
|
declare interface WebhookRotateSigningSecretParams {
|
|
12829
12698
|
/**
|
|
12830
12699
|
* Path param: Which version of the API to use.
|
|
@@ -12850,7 +12719,7 @@ export declare class Webhooks extends BaseWebhooks {
|
|
|
12850
12719
|
}
|
|
12851
12720
|
|
|
12852
12721
|
export declare namespace Webhooks {
|
|
12853
|
-
export { type
|
|
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, };
|
|
12854
12723
|
}
|
|
12855
12724
|
|
|
12856
12725
|
declare interface WebhookUpdateParams {
|
|
@@ -12891,70 +12760,6 @@ declare interface WebhookUpdateParams {
|
|
|
12891
12760
|
state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
|
|
12892
12761
|
}
|
|
12893
12762
|
|
|
12894
|
-
/**
|
|
12895
|
-
* A Webhook resource.
|
|
12896
|
-
*/
|
|
12897
|
-
declare interface WebhookUpdateResponse {
|
|
12898
|
-
/**
|
|
12899
|
-
* Required. The events that the webhook is subscribed to. Available events:
|
|
12900
|
-
*
|
|
12901
|
-
* - batch.succeeded
|
|
12902
|
-
* - batch.cancelled
|
|
12903
|
-
* - batch.expired
|
|
12904
|
-
* - batch.failed
|
|
12905
|
-
* - interaction.requires_action
|
|
12906
|
-
* - interaction.completed
|
|
12907
|
-
* - interaction.failed
|
|
12908
|
-
* - interaction.cancelled
|
|
12909
|
-
* - video.generated
|
|
12910
|
-
*/
|
|
12911
|
-
subscribed_events: Array<'batch.succeeded' | 'batch.cancelled' | 'batch.expired' | 'batch.failed' | 'interaction.requires_action' | 'interaction.completed' | 'interaction.failed' | 'interaction.cancelled' | 'video.generated' | (string & {})>;
|
|
12912
|
-
/**
|
|
12913
|
-
* Required. The URI to which webhook events will be sent.
|
|
12914
|
-
*/
|
|
12915
|
-
uri: string;
|
|
12916
|
-
/**
|
|
12917
|
-
* Output only. The timestamp when the webhook was created.
|
|
12918
|
-
*/
|
|
12919
|
-
create_time?: string;
|
|
12920
|
-
/**
|
|
12921
|
-
* Identifier. The name of the webhook. Format: `webhooks/{webhook_id}`
|
|
12922
|
-
*/
|
|
12923
|
-
name?: string;
|
|
12924
|
-
/**
|
|
12925
|
-
* Output only. The new signing secret for the webhook. Only populated on create.
|
|
12926
|
-
*/
|
|
12927
|
-
new_signing_secret?: string;
|
|
12928
|
-
/**
|
|
12929
|
-
* Output only. The signing secrets associated with this webhook.
|
|
12930
|
-
*/
|
|
12931
|
-
signing_secrets?: Array<WebhookUpdateResponse.SigningSecret>;
|
|
12932
|
-
/**
|
|
12933
|
-
* The state of the webhook.
|
|
12934
|
-
*/
|
|
12935
|
-
state?: 'enabled' | 'disabled' | 'disabled_due_to_failed_deliveries';
|
|
12936
|
-
/**
|
|
12937
|
-
* Output only. The timestamp when the webhook was last updated.
|
|
12938
|
-
*/
|
|
12939
|
-
update_time?: string;
|
|
12940
|
-
}
|
|
12941
|
-
|
|
12942
|
-
declare namespace WebhookUpdateResponse {
|
|
12943
|
-
/**
|
|
12944
|
-
* Represents a signing secret used to verify webhook payloads.
|
|
12945
|
-
*/
|
|
12946
|
-
interface SigningSecret {
|
|
12947
|
-
/**
|
|
12948
|
-
* Output only. The expiration date of the signing secret.
|
|
12949
|
-
*/
|
|
12950
|
-
expire_time?: string;
|
|
12951
|
-
/**
|
|
12952
|
-
* Output only. The truncated version of the signing secret.
|
|
12953
|
-
*/
|
|
12954
|
-
truncated_secret?: string;
|
|
12955
|
-
}
|
|
12956
|
-
}
|
|
12957
|
-
|
|
12958
12763
|
/** Standard web search for grounding and related configurations. Only text results are returned. */
|
|
12959
12764
|
export declare interface WebSearch {
|
|
12960
12765
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -7544,7 +7544,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
7544
7544
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
7545
7545
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
7546
7546
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
7547
|
-
const SDK_VERSION = '1.50.
|
|
7547
|
+
const SDK_VERSION = '1.50.1'; // x-release-please-version
|
|
7548
7548
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
7549
7549
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
7550
7550
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -9967,13 +9967,6 @@ class BaseWebhooks extends APIResource {
|
|
|
9967
9967
|
const { api_version = this._client.apiVersion, webhook_id } = params, body = __rest(params, ["api_version", "webhook_id"]);
|
|
9968
9968
|
return this._client.post(path `/${api_version}/webhooks`, Object.assign({ query: { webhook_id }, body }, options));
|
|
9969
9969
|
}
|
|
9970
|
-
/**
|
|
9971
|
-
* Gets a specific Webhook.
|
|
9972
|
-
*/
|
|
9973
|
-
retrieve(id, params = {}, options) {
|
|
9974
|
-
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
9975
|
-
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
9976
|
-
}
|
|
9977
9970
|
/**
|
|
9978
9971
|
* Updates an existing Webhook.
|
|
9979
9972
|
*/
|
|
@@ -9995,6 +9988,13 @@ class BaseWebhooks extends APIResource {
|
|
|
9995
9988
|
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
9996
9989
|
return this._client.delete(path `/${api_version}/webhooks/${id}`, options);
|
|
9997
9990
|
}
|
|
9991
|
+
/**
|
|
9992
|
+
* Gets a specific Webhook.
|
|
9993
|
+
*/
|
|
9994
|
+
get(id, params = {}, options) {
|
|
9995
|
+
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
9996
|
+
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
9997
|
+
}
|
|
9998
9998
|
/**
|
|
9999
9999
|
* Sends a ping event to a Webhook.
|
|
10000
10000
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -7542,7 +7542,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
7542
7542
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
7543
7543
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
7544
7544
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
7545
|
-
const SDK_VERSION = '1.50.
|
|
7545
|
+
const SDK_VERSION = '1.50.1'; // x-release-please-version
|
|
7546
7546
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
7547
7547
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
7548
7548
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|
|
@@ -9965,13 +9965,6 @@ class BaseWebhooks extends APIResource {
|
|
|
9965
9965
|
const { api_version = this._client.apiVersion, webhook_id } = params, body = __rest(params, ["api_version", "webhook_id"]);
|
|
9966
9966
|
return this._client.post(path `/${api_version}/webhooks`, Object.assign({ query: { webhook_id }, body }, options));
|
|
9967
9967
|
}
|
|
9968
|
-
/**
|
|
9969
|
-
* Gets a specific Webhook.
|
|
9970
|
-
*/
|
|
9971
|
-
retrieve(id, params = {}, options) {
|
|
9972
|
-
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
9973
|
-
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
9974
|
-
}
|
|
9975
9968
|
/**
|
|
9976
9969
|
* Updates an existing Webhook.
|
|
9977
9970
|
*/
|
|
@@ -9993,6 +9986,13 @@ class BaseWebhooks extends APIResource {
|
|
|
9993
9986
|
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
9994
9987
|
return this._client.delete(path `/${api_version}/webhooks/${id}`, options);
|
|
9995
9988
|
}
|
|
9989
|
+
/**
|
|
9990
|
+
* Gets a specific Webhook.
|
|
9991
|
+
*/
|
|
9992
|
+
get(id, params = {}, options) {
|
|
9993
|
+
const { api_version = this._client.apiVersion } = params !== null && params !== void 0 ? params : {};
|
|
9994
|
+
return this._client.get(path `/${api_version}/webhooks/${id}`, options);
|
|
9995
|
+
}
|
|
9996
9996
|
/**
|
|
9997
9997
|
* Sends a ping event to a Webhook.
|
|
9998
9998
|
*/
|