Socket
Socket
Sign inDemoInstall

@google-cloud/vision

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/vision - npm Package Compare versions

Comparing version 1.1.4 to 1.2.0

7

CHANGELOG.md

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

## [1.2.0](https://www.github.com/googleapis/nodejs-vision/compare/v1.1.4...v1.2.0) (2019-08-19)
### Features
* adds support for multiple regions ([244e21e](https://www.github.com/googleapis/nodejs-vision/commit/244e21e))
### [1.1.4](https://www.github.com/googleapis/nodejs-vision/compare/v1.1.3...v1.1.4) (2019-08-05)

@@ -9,0 +16,0 @@

2

package.json
{
"name": "@google-cloud/vision",
"description": "Google Cloud Vision API client for Node.js",
"version": "1.1.4",
"version": "1.2.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "author": "Google Inc",

@@ -992,3 +992,4 @@ // Copyright 2019 Google LLC

* @property {Object[]} responses
* Individual responses to images found within the file.
* Individual responses to images found within the file. This field will be
* empty if the `error` field is set.
*

@@ -1000,2 +1001,8 @@ * This object should have the same structure as [AnnotateImageResponse]{@link google.cloud.vision.v1.AnnotateImageResponse}

*
* @property {Object} error
* If set, represents the error message for the failed request. The
* `responses` field will not be set in this case.
*
* This object should have the same structure as [Status]{@link google.rpc.Status}
*
* @typedef AnnotateFileResponse

@@ -1017,2 +1024,16 @@ * @memberof google.cloud.vision.v1

*
* @property {string} parent
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
*
* @typedef BatchAnnotateImagesRequest

@@ -1093,2 +1114,16 @@ * @memberof google.cloud.vision.v1

*
* @property {string} parent
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
*
* @typedef BatchAnnotateFilesRequest

@@ -1179,2 +1214,16 @@ * @memberof google.cloud.vision.v1

*
* @property {string} parent
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
*
* @typedef AsyncBatchAnnotateImagesRequest

@@ -1213,2 +1262,16 @@ * @memberof google.cloud.vision.v1

*
* @property {string} parent
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
*
* @typedef AsyncBatchAnnotateFilesRequest

@@ -1421,3 +1484,3 @@ * @memberof google.cloud.vision.v1

/**
* It is very unlikely that the image belongs to the specified vertical.
* It is very unlikely.
*/

@@ -1427,3 +1490,3 @@ VERY_UNLIKELY: 1,

/**
* It is unlikely that the image belongs to the specified vertical.
* It is unlikely.
*/

@@ -1433,3 +1496,3 @@ UNLIKELY: 2,

/**
* It is possible that the image belongs to the specified vertical.
* It is possible.
*/

@@ -1439,3 +1502,3 @@ POSSIBLE: 3,

/**
* It is likely that the image belongs to the specified vertical.
* It is likely.
*/

@@ -1445,5 +1508,5 @@ LIKELY: 4,

/**
* It is very likely that the image belongs to the specified vertical.
* It is very likely.
*/
VERY_LIKELY: 5
};

@@ -40,6 +40,4 @@ // Copyright 2019 Google LLC

* be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
* "homegoods", "apparel", and "toys" are still supported but will be
* deprecated. For new products, please use "homegoods-v2", "apparel-v2", or
* "toys-v2" for better product search accuracy. It is recommended to migrate
* existing products to these categories as well.
* "homegoods", "apparel", and "toys" are still supported, but these should
* not be used for new products.
*

@@ -57,4 +55,8 @@ * This field is immutable.

* Multiple values can be assigned to the same key. One product may have up to
* 100 product_labels.
* 500 product_labels.
*
* Notice that the total number of distinct product_labels over all products
* in one ProductSet cannot exceed 1M, otherwise the product search pipeline
* will refuse to work for that ProductSet.
*
* This object should have the same structure as [KeyValue]{@link google.cloud.vision.v1.KeyValue}

@@ -845,2 +847,47 @@ *

}
};
/**
* Config to control which ProductSet contains the Products to be deleted.
*
* @property {string} productSetId
* The ProductSet that contains the Products to delete. If a Product is a
* member of product_set_id in addition to other ProductSets, the Product will
* still be deleted.
*
* @typedef ProductSetPurgeConfig
* @memberof google.cloud.vision.v1
* @see [google.cloud.vision.v1.ProductSetPurgeConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/product_search_service.proto}
*/
const ProductSetPurgeConfig = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
/**
* Request message for the `PurgeProducts` method.
*
* @property {Object} productSetPurgeConfig
* Specify which ProductSet contains the Products to be deleted.
*
* This object should have the same structure as [ProductSetPurgeConfig]{@link google.cloud.vision.v1.ProductSetPurgeConfig}
*
* @property {boolean} deleteOrphanProducts
* If delete_orphan_products is true, all Products that are not in any
* ProductSet will be deleted.
*
* @property {string} parent
* The project and location in which the Products should be deleted.
*
* Format is `projects/PROJECT_ID/locations/LOC_ID`.
*
* @property {boolean} force
* The default value is false. Override this value to true to actually perform
* the purge.
*
* @typedef PurgeProductsRequest
* @memberof google.cloud.vision.v1
* @see [google.cloud.vision.v1.PurgeProductsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/product_search_service.proto}
*/
const PurgeProductsRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

@@ -116,2 +116,27 @@ // Copyright 2019 Google LLC

/**
* Prediction for what the object in the bounding box is.
*
* @property {string} mid
* Object ID that should align with EntityAnnotation mid.
*
* @property {string} languageCode
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @property {string} name
* Object name, expressed in its `language_code` language.
*
* @property {number} score
* Score of the result. Range [0, 1].
*
* @typedef ObjectAnnotation
* @memberof google.cloud.vision.v1
* @see [google.cloud.vision.v1.ProductSearchResults.ObjectAnnotation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/product_search.proto}
*/
ObjectAnnotation: {
// This is for documentation. Actual contents will be loaded by gRPC.
},
/**
* Information about the products similar to a single product in a query

@@ -130,2 +155,7 @@ * image.

*
* @property {Object[]} objectAnnotations
* List of generic predictions for the object in the bounding box.
*
* This object should have the same structure as [ObjectAnnotation]{@link google.cloud.vision.v1.ObjectAnnotation}
*
* @typedef GroupedResult

@@ -132,0 +162,0 @@ * @memberof google.cloud.vision.v1

@@ -295,3 +295,3 @@ // Copyright 2019 Google LLC

* @property {Object[]} words
* List of words in this paragraph.
* List of all words in this paragraph.
*

@@ -378,3 +378,3 @@ * This object should have the same structure as [Word]{@link google.cloud.vision.v1.Word}

* 1----0
* and the vertice order will still be (0, 1, 2, 3).
* and the vertex order will still be (0, 1, 2, 3).
*

@@ -381,0 +381,0 @@ * This object should have the same structure as [BoundingPoly]{@link google.cloud.vision.v1.BoundingPoly}

@@ -101,21 +101,2 @@ // Copyright 2019 Google LLC

/**
* Label to provide extra metadata for the web detection.
*
* @property {string} label
* Label for extra metadata.
*
* @property {string} languageCode
* The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @typedef WebLabel
* @memberof google.cloud.vision.v1
* @see [google.cloud.vision.v1.WebDetection.WebLabel definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/web_detection.proto}
*/
WebLabel: {
// This is for documentation. Actual contents will be loaded by gRPC.
},
/**
* Metadata for web pages.

@@ -152,3 +133,22 @@ *

// This is for documentation. Actual contents will be loaded by gRPC.
},
/**
* Label to provide extra metadata for the web detection.
*
* @property {string} label
* Label for extra metadata.
*
* @property {string} languageCode
* The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
* For more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @typedef WebLabel
* @memberof google.cloud.vision.v1
* @see [google.cloud.vision.v1.WebDetection.WebLabel definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/web_detection.proto}
*/
WebLabel: {
// This is for documentation. Actual contents will be loaded by gRPC.
}
};

@@ -257,2 +257,15 @@ // Copyright 2019 Google LLC

* This object should have the same structure as [AnnotateImageRequest]{@link google.cloud.vision.v1.AnnotateImageRequest}
* @param {string} [request.parent]
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
* @param {Object} [options]

@@ -294,2 +307,9 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent,
});

@@ -315,2 +335,15 @@ return this._innerApiCalls.batchAnnotateImages(request, options, callback);

* This object should have the same structure as [AnnotateFileRequest]{@link google.cloud.vision.v1.AnnotateFileRequest}
* @param {string} [request.parent]
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
* @param {Object} [options]

@@ -352,2 +385,9 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent,
});

@@ -378,2 +418,15 @@ return this._innerApiCalls.batchAnnotateFiles(request, options, callback);

* This object should have the same structure as [OutputConfig]{@link google.cloud.vision.v1.OutputConfig}
* @param {string} [request.parent]
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
* @param {Object} [options]

@@ -474,2 +527,9 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent,
});

@@ -497,2 +557,15 @@ return this._innerApiCalls.asyncBatchAnnotateImages(

* This object should have the same structure as [AsyncAnnotateFileRequest]{@link google.cloud.vision.v1.AsyncAnnotateFileRequest}
* @param {string} [request.parent]
* Optional. Target project and location to make a call.
*
* Format: `projects/{project-id}/locations/{location-id}`.
*
* If no parent is specified, a region will be chosen automatically.
*
* Supported location-ids:
* `us`: USA country only,
* `asia`: East asia areas, like Japan, Taiwan,
* `eu`: The European Union.
*
* Example: `projects/project-A/locations/eu`.
* @param {Object} [options]

@@ -578,2 +651,9 @@ * Optional parameters. You can override the default settings for this call, e.g, timeout,

options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers[
'x-goog-request-params'
] = gax.routingHeader.fromParams({
parent: request.parent,
});

@@ -580,0 +660,0 @@ return this._innerApiCalls.asyncBatchAnnotateFiles(

@@ -112,2 +112,7 @@ {

"retry_params_name": "default"
},
"PurgeProducts": {
"timeout_millis": 60000,
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -114,0 +119,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc