Socket
Socket
Sign inDemoInstall

@google-cloud/vision

Package Overview
Dependencies
92
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.4 to 4.0.0

4

build/src/helpers.d.ts
/// <reference types="node" />
import * as protoTypes from '../protos/protos';
interface FeatureFunction {
(request: string | ImprovedRequest | Buffer): Promise<[
protoTypes.google.cloud.vision.v1.IAnnotateImageResponse
]>;
(request: string | ImprovedRequest | Buffer): Promise<[protoTypes.google.cloud.vision.v1.IAnnotateImageResponse]>;
}

@@ -8,0 +6,0 @@ export interface FeaturesMethod {

@@ -134,5 +134,4 @@ import type * as gax from 'google-gax';

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1.BatchAnnotateImagesResponse | BatchAnnotateImagesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1.BatchAnnotateImagesResponse|BatchAnnotateImagesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -179,5 +178,4 @@ * @example <caption>include:samples/generated/v1/image_annotator.batch_annotate_images.js</caption>

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1.BatchAnnotateFilesResponse | BatchAnnotateFilesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1.BatchAnnotateFilesResponse|BatchAnnotateFilesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -230,4 +228,3 @@ * @example <caption>include:samples/generated/v1/image_annotator.batch_annotate_files.js</caption>

* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -250,4 +247,3 @@ * @example <caption>include:samples/generated/v1/image_annotator.async_batch_annotate_images.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -289,4 +285,3 @@ * @example <caption>include:samples/generated/v1/image_annotator.async_batch_annotate_images.js</caption>

* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -309,4 +304,3 @@ * @example <caption>include:samples/generated/v1/image_annotator.async_batch_annotate_files.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -313,0 +307,0 @@ * @example <caption>include:samples/generated/v1/image_annotator.async_batch_annotate_files.js</caption>

@@ -348,4 +348,3 @@ "use strict";

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -388,4 +387,3 @@ * @example <caption>include:samples/generated/v1/image_annotator.async_batch_annotate_images.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -392,0 +390,0 @@ * @example <caption>include:samples/generated/v1/image_annotator.async_batch_annotate_files.js</caption>

@@ -33,3 +33,3 @@ "use strict";

*
* - The API has a collection of {@link google.cloud.vision.v1.ProductSet|ProductSet} resources, named
* - The API has a collection of {@link protos.google.cloud.vision.v1.ProductSet|ProductSet} resources, named
* `projects/* /locations/* /productSets/*`, which acts as a way to put different

@@ -40,6 +40,6 @@ * products into groups to limit identification.

*
* - The API has a collection of {@link google.cloud.vision.v1.Product|Product} resources, named
* - The API has a collection of {@link protos.google.cloud.vision.v1.Product|Product} resources, named
* `projects/* /locations/* /products/*`
*
* - Each {@link google.cloud.vision.v1.Product|Product} has a collection of {@link google.cloud.vision.v1.ReferenceImage|ReferenceImage} resources, named
* - Each {@link protos.google.cloud.vision.v1.Product|Product} has a collection of {@link protos.google.cloud.vision.v1.ReferenceImage|ReferenceImage} resources, named
* `projects/* /locations/* /products/* /referenceImages/*`

@@ -619,4 +619,3 @@ * @class

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -659,4 +658,3 @@ * @example <caption>include:samples/generated/v1/product_search.import_product_sets.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -708,3 +706,3 @@ * @example <caption>include:samples/generated/v1/product_search.purge_products.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1.ProductSet | ProductSet} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1.ProductSet|ProductSet} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -714,4 +712,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -751,8 +748,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1.ProductSet | ProductSet}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1.ProductSet|ProductSet}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -814,3 +810,3 @@ * @example <caption>include:samples/generated/v1/product_search.list_product_sets.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1.Product | Product} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1.Product|Product} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -820,4 +816,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -858,8 +853,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1.Product | Product}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1.Product|Product}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -924,3 +918,3 @@ * @example <caption>include:samples/generated/v1/product_search.list_products.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1.ReferenceImage | ReferenceImage} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1.ReferenceImage|ReferenceImage} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -930,4 +924,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -971,8 +964,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1.ReferenceImage | ReferenceImage}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1.ReferenceImage|ReferenceImage}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1034,3 +1026,3 @@ * @example <caption>include:samples/generated/v1/product_search.list_reference_images.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1.Product | Product} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1.Product|Product} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -1040,4 +1032,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1078,8 +1069,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1.Product | Product}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1.Product|Product}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1086,0 +1076,0 @@ * @example <caption>include:samples/generated/v1/product_search.list_products_in_product_set.js</caption>

@@ -117,5 +117,4 @@ import type * as gax from 'google-gax';

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse | BatchAnnotateImagesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse|BatchAnnotateImagesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -122,0 +121,0 @@ * @example <caption>include:samples/generated/v1p1beta1/image_annotator.batch_annotate_images.js</caption>

@@ -118,5 +118,4 @@ import type * as gax from 'google-gax';

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse | BatchAnnotateImagesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse|BatchAnnotateImagesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -151,4 +150,3 @@ * @example <caption>include:samples/generated/v1p2beta1/image_annotator.batch_annotate_images.js</caption>

* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -171,4 +169,3 @@ * @example <caption>include:samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -175,0 +172,0 @@ * @example <caption>include:samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js</caption>

@@ -294,4 +294,3 @@ "use strict";

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -298,0 +297,0 @@ * @example <caption>include:samples/generated/v1p2beta1/image_annotator.async_batch_annotate_files.js</caption>

@@ -121,5 +121,4 @@ import type * as gax from 'google-gax';

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse | BatchAnnotateImagesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse|BatchAnnotateImagesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -154,4 +153,3 @@ * @example <caption>include:samples/generated/v1p3beta1/image_annotator.batch_annotate_images.js</caption>

* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -174,4 +172,3 @@ * @example <caption>include:samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -178,0 +175,0 @@ * @example <caption>include:samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js</caption>

@@ -302,4 +302,3 @@ "use strict";

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -306,0 +305,0 @@ * @example <caption>include:samples/generated/v1p3beta1/image_annotator.async_batch_annotate_files.js</caption>

@@ -33,3 +33,3 @@ "use strict";

*
* - The API has a collection of {@link google.cloud.vision.v1p3beta1.ProductSet|ProductSet} resources, named
* - The API has a collection of {@link protos.google.cloud.vision.v1p3beta1.ProductSet|ProductSet} resources, named
* `projects/* /locations/* /productSets/*`, which acts as a way to put different

@@ -40,6 +40,6 @@ * products into groups to limit identification.

*
* - The API has a collection of {@link google.cloud.vision.v1p3beta1.Product|Product} resources, named
* - The API has a collection of {@link protos.google.cloud.vision.v1p3beta1.Product|Product} resources, named
* `projects/* /locations/* /products/*`
*
* - Each {@link google.cloud.vision.v1p3beta1.Product|Product} has a collection of {@link google.cloud.vision.v1p3beta1.ReferenceImage|ReferenceImage} resources, named
* - Each {@link protos.google.cloud.vision.v1p3beta1.Product|Product} has a collection of {@link protos.google.cloud.vision.v1p3beta1.ReferenceImage|ReferenceImage} resources, named
* `projects/* /locations/* /products/* /referenceImages/*`

@@ -605,4 +605,3 @@ * @class

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -654,3 +653,3 @@ * @example <caption>include:samples/generated/v1p3beta1/product_search.import_product_sets.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p3beta1.ProductSet | ProductSet} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p3beta1.ProductSet|ProductSet} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -660,4 +659,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -697,8 +695,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p3beta1.ProductSet | ProductSet}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p3beta1.ProductSet|ProductSet}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -760,3 +757,3 @@ * @example <caption>include:samples/generated/v1p3beta1/product_search.list_product_sets.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p3beta1.Product | Product} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p3beta1.Product|Product} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -766,4 +763,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -804,8 +800,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p3beta1.Product | Product}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p3beta1.Product|Product}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -870,3 +865,3 @@ * @example <caption>include:samples/generated/v1p3beta1/product_search.list_products.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p3beta1.ReferenceImage | ReferenceImage} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p3beta1.ReferenceImage|ReferenceImage} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -876,4 +871,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -917,8 +911,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p3beta1.ReferenceImage | ReferenceImage}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p3beta1.ReferenceImage|ReferenceImage}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -980,3 +973,3 @@ * @example <caption>include:samples/generated/v1p3beta1/product_search.list_reference_images.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p3beta1.Product | Product} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p3beta1.Product|Product} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -986,4 +979,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1024,8 +1016,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p3beta1.Product | Product}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p3beta1.Product|Product}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1032,0 +1023,0 @@ * @example <caption>include:samples/generated/v1p3beta1/product_search.list_products_in_product_set.js</caption>

@@ -121,5 +121,4 @@ import type * as gax from 'google-gax';

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse | BatchAnnotateImagesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse|BatchAnnotateImagesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -153,5 +152,4 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.batch_annotate_images.js</caption>

* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse | BatchAnnotateFilesResponse}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* The first element of the array is an object representing {@link protos.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse|BatchAnnotateFilesResponse}.
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
* for more details and examples.

@@ -191,4 +189,3 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.batch_annotate_files.js</caption>

* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -211,4 +208,3 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -237,4 +233,3 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js</caption>

* you can `await` for.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -257,4 +252,3 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -261,0 +255,0 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js</caption>

@@ -323,4 +323,3 @@ "use strict";

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -358,4 +357,3 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.async_batch_annotate_images.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -362,0 +360,0 @@ * @example <caption>include:samples/generated/v1p4beta1/image_annotator.async_batch_annotate_files.js</caption>

@@ -34,3 +34,3 @@ "use strict";

* - The API has a collection of
* {@link google.cloud.vision.v1p4beta1.ProductSet|ProductSet} resources, named
* {@link protos.google.cloud.vision.v1p4beta1.ProductSet|ProductSet} resources, named
* `projects/* /locations/* /productSets/*`, which acts as a way to put different

@@ -42,7 +42,7 @@ * products into groups to limit identification.

* - The API has a collection of
* {@link google.cloud.vision.v1p4beta1.Product|Product} resources, named
* {@link protos.google.cloud.vision.v1p4beta1.Product|Product} resources, named
* `projects/* /locations/* /products/*`
*
* - Each {@link google.cloud.vision.v1p4beta1.Product|Product} has a collection of
* {@link google.cloud.vision.v1p4beta1.ReferenceImage|ReferenceImage} resources,
* - Each {@link protos.google.cloud.vision.v1p4beta1.Product|Product} has a collection of
* {@link protos.google.cloud.vision.v1p4beta1.ReferenceImage|ReferenceImage} resources,
* named

@@ -613,4 +613,3 @@ * `projects/* /locations/* /products/* /referenceImages/*`

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -653,4 +652,3 @@ * @example <caption>include:samples/generated/v1p4beta1/product_search.import_product_sets.js</caption>

* The decoded operation object has result and metadata field to get information from.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
* for more details and examples.

@@ -702,3 +700,3 @@ * @example <caption>include:samples/generated/v1p4beta1/product_search.purge_products.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p4beta1.ProductSet | ProductSet} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p4beta1.ProductSet|ProductSet} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -708,4 +706,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -745,8 +742,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p4beta1.ProductSet | ProductSet}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p4beta1.ProductSet|ProductSet}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -808,3 +804,3 @@ * @example <caption>include:samples/generated/v1p4beta1/product_search.list_product_sets.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p4beta1.Product | Product} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p4beta1.Product|Product} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -814,4 +810,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -852,8 +847,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p4beta1.Product | Product}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p4beta1.Product|Product}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -918,3 +912,3 @@ * @example <caption>include:samples/generated/v1p4beta1/product_search.list_products.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p4beta1.ReferenceImage | ReferenceImage} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p4beta1.ReferenceImage|ReferenceImage} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -924,4 +918,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -965,8 +958,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p4beta1.ReferenceImage | ReferenceImage}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p4beta1.ReferenceImage|ReferenceImage}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1028,3 +1020,3 @@ * @example <caption>include:samples/generated/v1p4beta1/product_search.list_reference_images.js</caption>

* @returns {Stream}
* An object stream which emits an object representing {@link google.cloud.vision.v1p4beta1.Product | Product} on 'data' event.
* An object stream which emits an object representing {@link protos.google.cloud.vision.v1p4beta1.Product|Product} on 'data' event.
* The client library will perform auto-pagination by default: it will call the API as many

@@ -1034,4 +1026,3 @@ * times as needed. Note that it can affect your quota.

* method described below for async iteration which you can stop as needed.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1072,8 +1063,7 @@ */

* @returns {Object}
* An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols).
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
* When you iterate the returned iterable, each element will be an object representing
* {@link google.cloud.vision.v1p4beta1.Product | Product}. The API will be called under the hood as needed, once per the page,
* {@link protos.google.cloud.vision.v1p4beta1.Product|Product}. The API will be called under the hood as needed, once per the page,
* so you can stop the iteration when you don't need more results.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
* for more details and examples.

@@ -1080,0 +1070,0 @@ * @example <caption>include:samples/generated/v1p4beta1/product_search.list_products_in_product_set.js</caption>

@@ -7,2 +7,18 @@ # Changelog

## [4.0.0](https://github.com/googleapis/google-cloud-node/compare/vision-v3.1.4...vision-v4.0.0) (2023-08-06)
### ⚠ BREAKING CHANGES
* migrate to Node 14 ([#4443](https://github.com/googleapis/google-cloud-node/issues/4443))
### Bug Fixes
* [Many APIs] fix typings for IAM methods ([#4464](https://github.com/googleapis/google-cloud-node/issues/4464)) ([c909357](https://github.com/googleapis/google-cloud-node/commit/c90935765ceee0eea6b9ce21a151707df142cf7d))
### Miscellaneous Chores
* Migrate to Node 14 ([#4443](https://github.com/googleapis/google-cloud-node/issues/4443)) ([2260f12](https://github.com/googleapis/google-cloud-node/commit/2260f12543d171bda95345e53475f5f0fdc45770))
## [3.1.4](https://github.com/googleapis/google-cloud-node/compare/vision-v3.1.3...vision-v3.1.4) (2023-06-28)

@@ -9,0 +25,0 @@

{
"name": "@google-cloud/vision",
"description": "Google Cloud Vision API client for Node.js",
"version": "3.1.4",
"version": "4.0.0",
"license": "Apache-2.0",
"author": "Google Inc",
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},

@@ -53,15 +53,16 @@ "repository": {

"@google-cloud/promisify": "^3.0.0",
"google-gax": "^3.5.8",
"google-gax": "^4.0.3",
"is": "^3.3.0"
},
"devDependencies": {
"@google-cloud/storage": "^6.0.0",
"@google-cloud/storage": "^7.0.0",
"@types/is": "0.0.22",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@types/node": "^20.4.5",
"@types/sinon": "^10.0.0",
"@types/uuid": "^9.0.0",
"c8": "^7.1.0",
"c8": "^8.0.1",
"codecov": "^3.6.5",
"gts": "^4.0.0",
"gapic-tools": "^0.1.8",
"gts": "^5.0.0",
"jsdoc": "^4.0.0",

@@ -73,12 +74,8 @@ "jsdoc-fresh": "^2.0.0",

"mocha": "^10.0.0",
"null-loader": "^4.0.0",
"pack-n-play": "^1.0.0-2",
"sinon": "^15.0.0",
"ts-loader": "^9.0.0",
"typescript": "^4.6.4",
"uuid": "^9.0.0",
"webpack": "^5.0.0",
"webpack-cli": "^5.0.0"
"typescript": "^5.1.6",
"uuid": "^9.0.0"
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vision"
}

@@ -143,3 +143,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
Libraries are compatible with all current _active_ and _maintenance_ versions of

@@ -146,0 +146,0 @@ Node.js.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc