@googleapis/safebrowsing 10.0.0 → 12.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # Changelog
2
2
 
3
+ ## [12.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/safebrowsing-v12.0.0...safebrowsing-v12.1.0) (2025-07-08)
4
+
5
+
6
+ ### Features
7
+
8
+ * **safebrowsing:** update the API ([92994fb](https://github.com/googleapis/google-api-nodejs-client/commit/92994fb61a283e40c0c07aa77dba35accc3ec09b))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **safebrowsing:** update the API ([4aa5715](https://github.com/googleapis/google-api-nodejs-client/commit/4aa5715efc9022f9299bd17defff4a83dd341948))
14
+
15
+ ## [12.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/safebrowsing-v11.0.1...safebrowsing-v12.0.0) (2025-06-30)
16
+
17
+
18
+ ### ⚠ BREAKING CHANGES
19
+
20
+ * upgrade to node 18
21
+
22
+ ### Features
23
+
24
+ * **safebrowsing:** update the API ([92994fb](https://github.com/googleapis/google-api-nodejs-client/commit/92994fb61a283e40c0c07aa77dba35accc3ec09b))
25
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
31
+
32
+ ## [11.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/safebrowsing-v11.0.0...safebrowsing-v11.0.1) (2025-06-04)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
38
+
39
+ ## [11.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/safebrowsing-v10.0.0...safebrowsing-v11.0.0) (2025-05-29)
40
+
41
+
42
+ ### ⚠ BREAKING CHANGES
43
+
44
+ * upgrade to node 18
45
+
46
+ ### Features
47
+
48
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
49
+
3
50
  ## [10.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/safebrowsing-v9.0.1...safebrowsing-v10.0.0) (2024-05-10)
4
51
 
5
52
 
package/build/index.d.ts CHANGED
@@ -14,4 +14,4 @@ declare const auth: AuthPlus;
14
14
  export { auth };
15
15
  export { safebrowsing_v4 };
16
16
  export { safebrowsing_v5 };
17
- export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
17
+ export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAqC;AA+B7B,gGA/BA,oBAAe,OA+BA;AA9BvB,6BAAqC;AA+B7B,gGA/BA,oBAAe,OA+BA;AA7BV,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,oBAAe,CAAC,YAAY;IAChC,EAAE,EAAE,oBAAe,CAAC,YAAY;CACjC,CAAC;AAUF,SAAgB,YAAY,CAI1B,gBAI2B;IAE3B,OAAO,IAAA,0BAAM,EAAI,cAAc,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AAXD,oCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,kCAAkC;AAElC,yDAAuE;AACvE,6BAAqC;AA+B7B,gGA/BA,oBAAe,OA+BA;AA9BvB,6BAAqC;AA+B7B,gGA/BA,oBAAe,OA+BA;AA7BV,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,oBAAe,CAAC,YAAY;IAChC,EAAE,EAAE,oBAAe,CAAC,YAAY;CACjC,CAAC;AAUF,SAAgB,YAAY,CAI1B,gBAI2B;IAE3B,OAAO,IAAA,0BAAM,EAAI,cAAc,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACrE,CAAC;AAXD,oCAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
package/build/v4.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace safebrowsing_v4 {
5
5
  export interface Options extends GlobalOptions {
@@ -516,14 +516,66 @@ export declare namespace safebrowsing_v4 {
516
516
  context: APIRequestContext;
517
517
  constructor(context: APIRequestContext);
518
518
  /**
519
+ * @example
520
+ * ```js
521
+ * // Before running the sample:
522
+ * // - Enable the API at:
523
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
524
+ * // - Login into gcloud by running:
525
+ * // ```sh
526
+ * // $ gcloud auth application-default login
527
+ * // ```
528
+ * // - Install the npm module by running:
529
+ * // ```sh
530
+ * // $ npm install googleapis
531
+ * // ```
532
+ *
533
+ * const {google} = require('googleapis');
534
+ * const safebrowsing = google.safebrowsing('v4');
535
+ *
536
+ * async function main() {
537
+ * const auth = new google.auth.GoogleAuth({
538
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
539
+ * scopes: [],
540
+ * });
541
+ *
542
+ * // Acquire an auth client, and bind it to all future calls
543
+ * const authClient = await auth.getClient();
544
+ * google.options({auth: authClient});
545
+ *
546
+ * // Do the magic
547
+ * const res = await safebrowsing.encodedFullHashes.get({
548
+ * // A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API.
549
+ * clientId: 'placeholder-value',
550
+ * // The version of the client implementation.
551
+ * clientVersion: 'placeholder-value',
552
+ * // A serialized FindFullHashesRequest proto.
553
+ * encodedRequest: 'placeholder-value',
554
+ * });
555
+ * console.log(res.data);
556
+ *
557
+ * // Example response
558
+ * // {
559
+ * // "matches": [],
560
+ * // "minimumWaitDuration": "my_minimumWaitDuration",
561
+ * // "negativeCacheDuration": "my_negativeCacheDuration"
562
+ * // }
563
+ * }
564
+ *
565
+ * main().catch(e => {
566
+ * console.error(e);
567
+ * throw e;
568
+ * });
569
+ *
570
+ * ```
519
571
  *
520
572
  * @param params - Parameters for request
521
573
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
522
574
  * @param callback - Optional callback that handles the response.
523
575
  * @returns A promise if used with async/await, or void if used with a callback.
524
576
  */
525
- get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
526
- get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>;
577
+ get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
578
+ get(params?: Params$Resource$Encodedfullhashes$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>>;
527
579
  get(params: Params$Resource$Encodedfullhashes$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
528
580
  get(params: Params$Resource$Encodedfullhashes$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
529
581
  get(params: Params$Resource$Encodedfullhashes$Get, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
@@ -547,14 +599,65 @@ export declare namespace safebrowsing_v4 {
547
599
  context: APIRequestContext;
548
600
  constructor(context: APIRequestContext);
549
601
  /**
602
+ * @example
603
+ * ```js
604
+ * // Before running the sample:
605
+ * // - Enable the API at:
606
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
607
+ * // - Login into gcloud by running:
608
+ * // ```sh
609
+ * // $ gcloud auth application-default login
610
+ * // ```
611
+ * // - Install the npm module by running:
612
+ * // ```sh
613
+ * // $ npm install googleapis
614
+ * // ```
615
+ *
616
+ * const {google} = require('googleapis');
617
+ * const safebrowsing = google.safebrowsing('v4');
618
+ *
619
+ * async function main() {
620
+ * const auth = new google.auth.GoogleAuth({
621
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
622
+ * scopes: [],
623
+ * });
624
+ *
625
+ * // Acquire an auth client, and bind it to all future calls
626
+ * const authClient = await auth.getClient();
627
+ * google.options({auth: authClient});
628
+ *
629
+ * // Do the magic
630
+ * const res = await safebrowsing.encodedUpdates.get({
631
+ * // A client ID that uniquely identifies the client implementation of the Safe Browsing API.
632
+ * clientId: 'placeholder-value',
633
+ * // The version of the client implementation.
634
+ * clientVersion: 'placeholder-value',
635
+ * // A serialized FetchThreatListUpdatesRequest proto.
636
+ * encodedRequest: 'placeholder-value',
637
+ * });
638
+ * console.log(res.data);
639
+ *
640
+ * // Example response
641
+ * // {
642
+ * // "listUpdateResponses": [],
643
+ * // "minimumWaitDuration": "my_minimumWaitDuration"
644
+ * // }
645
+ * }
646
+ *
647
+ * main().catch(e => {
648
+ * console.error(e);
649
+ * throw e;
650
+ * });
651
+ *
652
+ * ```
550
653
  *
551
654
  * @param params - Parameters for request
552
655
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
553
656
  * @param callback - Optional callback that handles the response.
554
657
  * @returns A promise if used with async/await, or void if used with a callback.
555
658
  */
556
- get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
557
- get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>;
659
+ get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
660
+ get(params?: Params$Resource$Encodedupdates$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>>;
558
661
  get(params: Params$Resource$Encodedupdates$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
559
662
  get(params: Params$Resource$Encodedupdates$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
560
663
  get(params: Params$Resource$Encodedupdates$Get, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
@@ -579,14 +682,70 @@ export declare namespace safebrowsing_v4 {
579
682
  constructor(context: APIRequestContext);
580
683
  /**
581
684
  * Finds the full hashes that match the requested hash prefixes.
685
+ * @example
686
+ * ```js
687
+ * // Before running the sample:
688
+ * // - Enable the API at:
689
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
690
+ * // - Login into gcloud by running:
691
+ * // ```sh
692
+ * // $ gcloud auth application-default login
693
+ * // ```
694
+ * // - Install the npm module by running:
695
+ * // ```sh
696
+ * // $ npm install googleapis
697
+ * // ```
698
+ *
699
+ * const {google} = require('googleapis');
700
+ * const safebrowsing = google.safebrowsing('v4');
701
+ *
702
+ * async function main() {
703
+ * const auth = new google.auth.GoogleAuth({
704
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
705
+ * scopes: [],
706
+ * });
707
+ *
708
+ * // Acquire an auth client, and bind it to all future calls
709
+ * const authClient = await auth.getClient();
710
+ * google.options({auth: authClient});
711
+ *
712
+ * // Do the magic
713
+ * const res = await safebrowsing.fullHashes.find({
714
+ * // Request body metadata
715
+ * requestBody: {
716
+ * // request body parameters
717
+ * // {
718
+ * // "apiClient": {},
719
+ * // "client": {},
720
+ * // "clientStates": [],
721
+ * // "threatInfo": {}
722
+ * // }
723
+ * },
724
+ * });
725
+ * console.log(res.data);
726
+ *
727
+ * // Example response
728
+ * // {
729
+ * // "matches": [],
730
+ * // "minimumWaitDuration": "my_minimumWaitDuration",
731
+ * // "negativeCacheDuration": "my_negativeCacheDuration"
732
+ * // }
733
+ * }
734
+ *
735
+ * main().catch(e => {
736
+ * console.error(e);
737
+ * throw e;
738
+ * });
739
+ *
740
+ * ```
582
741
  *
583
742
  * @param params - Parameters for request
584
743
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
585
744
  * @param callback - Optional callback that handles the response.
586
745
  * @returns A promise if used with async/await, or void if used with a callback.
587
746
  */
588
- find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions): GaxiosPromise<Readable>;
589
- find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>;
747
+ find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
748
+ find(params?: Params$Resource$Fullhashes$Find, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>>;
590
749
  find(params: Params$Resource$Fullhashes$Find, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
591
750
  find(params: Params$Resource$Fullhashes$Find, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
592
751
  find(params: Params$Resource$Fullhashes$Find, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindFullHashesResponse>): void;
@@ -603,14 +762,68 @@ export declare namespace safebrowsing_v4 {
603
762
  constructor(context: APIRequestContext);
604
763
  /**
605
764
  * Reports a Safe Browsing threat list hit to Google. Only projects with TRUSTED_REPORTER visibility can use this method.
765
+ * @example
766
+ * ```js
767
+ * // Before running the sample:
768
+ * // - Enable the API at:
769
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
770
+ * // - Login into gcloud by running:
771
+ * // ```sh
772
+ * // $ gcloud auth application-default login
773
+ * // ```
774
+ * // - Install the npm module by running:
775
+ * // ```sh
776
+ * // $ npm install googleapis
777
+ * // ```
778
+ *
779
+ * const {google} = require('googleapis');
780
+ * const safebrowsing = google.safebrowsing('v4');
781
+ *
782
+ * async function main() {
783
+ * const auth = new google.auth.GoogleAuth({
784
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
785
+ * scopes: [],
786
+ * });
787
+ *
788
+ * // Acquire an auth client, and bind it to all future calls
789
+ * const authClient = await auth.getClient();
790
+ * google.options({auth: authClient});
791
+ *
792
+ * // Do the magic
793
+ * const res = await safebrowsing.threatHits.create({
794
+ * // Request body metadata
795
+ * requestBody: {
796
+ * // request body parameters
797
+ * // {
798
+ * // "clientInfo": {},
799
+ * // "entry": {},
800
+ * // "platformType": "my_platformType",
801
+ * // "resources": [],
802
+ * // "threatType": "my_threatType",
803
+ * // "userInfo": {}
804
+ * // }
805
+ * },
806
+ * });
807
+ * console.log(res.data);
808
+ *
809
+ * // Example response
810
+ * // {}
811
+ * }
812
+ *
813
+ * main().catch(e => {
814
+ * console.error(e);
815
+ * throw e;
816
+ * });
817
+ *
818
+ * ```
606
819
  *
607
820
  * @param params - Parameters for request
608
821
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
609
822
  * @param callback - Optional callback that handles the response.
610
823
  * @returns A promise if used with async/await, or void if used with a callback.
611
824
  */
612
- create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
613
- create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): GaxiosPromise<Schema$GoogleProtobufEmpty>;
825
+ create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
826
+ create(params?: Params$Resource$Threathits$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
614
827
  create(params: Params$Resource$Threathits$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
615
828
  create(params: Params$Resource$Threathits$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
616
829
  create(params: Params$Resource$Threathits$Create, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
@@ -627,14 +840,57 @@ export declare namespace safebrowsing_v4 {
627
840
  constructor(context: APIRequestContext);
628
841
  /**
629
842
  * Lists the Safe Browsing threat lists available for download.
843
+ * @example
844
+ * ```js
845
+ * // Before running the sample:
846
+ * // - Enable the API at:
847
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
848
+ * // - Login into gcloud by running:
849
+ * // ```sh
850
+ * // $ gcloud auth application-default login
851
+ * // ```
852
+ * // - Install the npm module by running:
853
+ * // ```sh
854
+ * // $ npm install googleapis
855
+ * // ```
856
+ *
857
+ * const {google} = require('googleapis');
858
+ * const safebrowsing = google.safebrowsing('v4');
859
+ *
860
+ * async function main() {
861
+ * const auth = new google.auth.GoogleAuth({
862
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
863
+ * scopes: [],
864
+ * });
865
+ *
866
+ * // Acquire an auth client, and bind it to all future calls
867
+ * const authClient = await auth.getClient();
868
+ * google.options({auth: authClient});
869
+ *
870
+ * // Do the magic
871
+ * const res = await safebrowsing.threatLists.list({});
872
+ * console.log(res.data);
873
+ *
874
+ * // Example response
875
+ * // {
876
+ * // "threatLists": []
877
+ * // }
878
+ * }
879
+ *
880
+ * main().catch(e => {
881
+ * console.error(e);
882
+ * throw e;
883
+ * });
884
+ *
885
+ * ```
630
886
  *
631
887
  * @param params - Parameters for request
632
888
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
633
889
  * @param callback - Optional callback that handles the response.
634
890
  * @returns A promise if used with async/await, or void if used with a callback.
635
891
  */
636
- list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
637
- list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>;
892
+ list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
893
+ list(params?: Params$Resource$Threatlists$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>>;
638
894
  list(params: Params$Resource$Threatlists$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
639
895
  list(params: Params$Resource$Threatlists$List, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>): void;
640
896
  list(params: Params$Resource$Threatlists$List, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4ListThreatListsResponse>): void;
@@ -647,14 +903,67 @@ export declare namespace safebrowsing_v4 {
647
903
  constructor(context: APIRequestContext);
648
904
  /**
649
905
  * Fetches the most recent threat list updates. A client can request updates for multiple lists at once.
906
+ * @example
907
+ * ```js
908
+ * // Before running the sample:
909
+ * // - Enable the API at:
910
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
911
+ * // - Login into gcloud by running:
912
+ * // ```sh
913
+ * // $ gcloud auth application-default login
914
+ * // ```
915
+ * // - Install the npm module by running:
916
+ * // ```sh
917
+ * // $ npm install googleapis
918
+ * // ```
919
+ *
920
+ * const {google} = require('googleapis');
921
+ * const safebrowsing = google.safebrowsing('v4');
922
+ *
923
+ * async function main() {
924
+ * const auth = new google.auth.GoogleAuth({
925
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
926
+ * scopes: [],
927
+ * });
928
+ *
929
+ * // Acquire an auth client, and bind it to all future calls
930
+ * const authClient = await auth.getClient();
931
+ * google.options({auth: authClient});
932
+ *
933
+ * // Do the magic
934
+ * const res = await safebrowsing.threatListUpdates.fetch({
935
+ * // Request body metadata
936
+ * requestBody: {
937
+ * // request body parameters
938
+ * // {
939
+ * // "client": {},
940
+ * // "listUpdateRequests": []
941
+ * // }
942
+ * },
943
+ * });
944
+ * console.log(res.data);
945
+ *
946
+ * // Example response
947
+ * // {
948
+ * // "listUpdateResponses": [],
949
+ * // "minimumWaitDuration": "my_minimumWaitDuration"
950
+ * // }
951
+ * }
952
+ *
953
+ * main().catch(e => {
954
+ * console.error(e);
955
+ * throw e;
956
+ * });
957
+ *
958
+ * ```
650
959
  *
651
960
  * @param params - Parameters for request
652
961
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
653
962
  * @param callback - Optional callback that handles the response.
654
963
  * @returns A promise if used with async/await, or void if used with a callback.
655
964
  */
656
- fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions): GaxiosPromise<Readable>;
657
- fetch(params?: Params$Resource$Threatlistupdates$Fetch, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>;
965
+ fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
966
+ fetch(params?: Params$Resource$Threatlistupdates$Fetch, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>>;
658
967
  fetch(params: Params$Resource$Threatlistupdates$Fetch, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
659
968
  fetch(params: Params$Resource$Threatlistupdates$Fetch, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
660
969
  fetch(params: Params$Resource$Threatlistupdates$Fetch, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse>): void;
@@ -671,14 +980,66 @@ export declare namespace safebrowsing_v4 {
671
980
  constructor(context: APIRequestContext);
672
981
  /**
673
982
  * Finds the threat entries that match the Safe Browsing lists.
983
+ * @example
984
+ * ```js
985
+ * // Before running the sample:
986
+ * // - Enable the API at:
987
+ * // https://console.developers.google.com/apis/api/safebrowsing.googleapis.com
988
+ * // - Login into gcloud by running:
989
+ * // ```sh
990
+ * // $ gcloud auth application-default login
991
+ * // ```
992
+ * // - Install the npm module by running:
993
+ * // ```sh
994
+ * // $ npm install googleapis
995
+ * // ```
996
+ *
997
+ * const {google} = require('googleapis');
998
+ * const safebrowsing = google.safebrowsing('v4');
999
+ *
1000
+ * async function main() {
1001
+ * const auth = new google.auth.GoogleAuth({
1002
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
1003
+ * scopes: [],
1004
+ * });
1005
+ *
1006
+ * // Acquire an auth client, and bind it to all future calls
1007
+ * const authClient = await auth.getClient();
1008
+ * google.options({auth: authClient});
1009
+ *
1010
+ * // Do the magic
1011
+ * const res = await safebrowsing.threatMatches.find({
1012
+ * // Request body metadata
1013
+ * requestBody: {
1014
+ * // request body parameters
1015
+ * // {
1016
+ * // "client": {},
1017
+ * // "threatInfo": {}
1018
+ * // }
1019
+ * },
1020
+ * });
1021
+ * console.log(res.data);
1022
+ *
1023
+ * // Example response
1024
+ * // {
1025
+ * // "matches": []
1026
+ * // }
1027
+ * }
1028
+ *
1029
+ * main().catch(e => {
1030
+ * console.error(e);
1031
+ * throw e;
1032
+ * });
1033
+ *
1034
+ * ```
674
1035
  *
675
1036
  * @param params - Parameters for request
676
1037
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
677
1038
  * @param callback - Optional callback that handles the response.
678
1039
  * @returns A promise if used with async/await, or void if used with a callback.
679
1040
  */
680
- find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions): GaxiosPromise<Readable>;
681
- find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): GaxiosPromise<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>;
1041
+ find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
1042
+ find(params?: Params$Resource$Threatmatches$Find, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>>;
682
1043
  find(params: Params$Resource$Threatmatches$Find, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
683
1044
  find(params: Params$Resource$Threatmatches$Find, options: MethodOptions | BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>): void;
684
1045
  find(params: Params$Resource$Threatmatches$Find, callback: BodyResponseCallback<Schema$GoogleSecuritySafebrowsingV4FindThreatMatchesResponse>): void;
package/build/v4.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v4.js","sourceRoot":"","sources":["../v4.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,eAAe,CAiyC/B;AAjyCD,WAAiB,eAAe;IAgE9B;;;;;;;;;;OAUG;IACH,MAAa,YAAY;QAUvB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,iBAAiB,GAAG,IAAI,0BAA0B,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtE,IAAI,CAAC,cAAc,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChE,IAAI,CAAC,UAAU,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACxD,IAAI,CAAC,UAAU,GAAG,IAAI,mBAAm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