@maxim_mazurok/gapi.client.language-v2 0.0.20241103 → 0.0.20241117

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.
Files changed (2) hide show
  1. package/index.d.ts +10 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://language.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20241103
12
+ // Revision: 20241117
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -33,7 +33,7 @@ declare namespace gapi.client {
33
33
  interface AnalyzeEntitiesResponse {
34
34
  /** The recognized entities in the input document. */
35
35
  entities?: Entity[];
36
- /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. */
36
+ /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language_code field for more details. */
37
37
  languageCode?: string;
38
38
  /** Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. */
39
39
  languageSupported?: boolean;
@@ -47,7 +47,7 @@ declare namespace gapi.client {
47
47
  interface AnalyzeSentimentResponse {
48
48
  /** The overall sentiment of the input document. */
49
49
  documentSentiment?: Sentiment;
50
- /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. */
50
+ /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language_code field for more details. */
51
51
  languageCode?: string;
52
52
  /** Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. */
53
53
  languageSupported?: boolean;
@@ -77,9 +77,9 @@ declare namespace gapi.client {
77
77
  categories?: ClassificationCategory[];
78
78
  /** The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment. */
79
79
  documentSentiment?: Sentiment;
80
- /** Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities or AnnotateTextRequest.Features.extract_entity_sentiment. */
80
+ /** Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities . */
81
81
  entities?: Entity[];
82
- /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. */
82
+ /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language_code field for more details. */
83
83
  languageCode?: string;
84
84
  /** Whether the language is officially supported by all requested features. The API may still return a response when the language is not supported, but it is on a best effort basis. */
85
85
  languageSupported?: boolean;
@@ -103,7 +103,7 @@ declare namespace gapi.client {
103
103
  interface ClassifyTextResponse {
104
104
  /** Categories representing the input document. */
105
105
  categories?: ClassificationCategory[];
106
- /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. */
106
+ /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language_code field for more details. */
107
107
  languageCode?: string;
108
108
  /** Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. */
109
109
  languageSupported?: boolean;
@@ -153,7 +153,7 @@ declare namespace gapi.client {
153
153
  metadata?: {[P in string]: string};
154
154
  /** The representative name for the entity. */
155
155
  name?: string;
156
- /** For calls to AnalyzeEntitySentimentRequest or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the aggregate sentiment expressed for this entity in the provided document. */
156
+ /** For calls to AnalyzeEntitySentiment this field will contain the aggregate sentiment expressed for this entity in the provided document. */
157
157
  sentiment?: Sentiment;
158
158
  /** The entity type. */
159
159
  type?: string;
@@ -161,7 +161,7 @@ declare namespace gapi.client {
161
161
  interface EntityMention {
162
162
  /** Probability score associated with the entity. The score shows the probability of the entity mention being the entity type. The score is in (0, 1] range. */
163
163
  probability?: number;
164
- /** For calls to AnalyzeEntitySentimentRequest or if AnnotateTextRequest.Features.extract_entity_sentiment is set to true, this field will contain the sentiment expressed for this mention of the entity in the provided document. */
164
+ /** For calls to AnalyzeEntitySentiment this field will contain the sentiment expressed for this mention of the entity in the provided document. */
165
165
  sentiment?: Sentiment;
166
166
  /** The mention text. */
167
167
  text?: TextSpan;
@@ -197,7 +197,7 @@ declare namespace gapi.client {
197
197
  modelVersion?: string;
198
198
  }
199
199
  interface ModerateTextResponse {
200
- /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details. */
200
+ /** The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language_code field for more details. */
201
201
  languageCode?: string;
202
202
  /** Whether the language is officially supported. The API may still return a response when the language is not supported, but it is on a best effort basis. */
203
203
  languageSupported?: boolean;
@@ -217,7 +217,7 @@ declare namespace gapi.client {
217
217
  trackingLabels?: {[P in string]: string};
218
218
  }
219
219
  interface Sentence {
220
- /** For calls to AnalyzeSentimentRequest or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence. */
220
+ /** For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence. */
221
221
  sentiment?: Sentiment;
222
222
  /** The sentence text. */
223
223
  text?: TextSpan;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.language-v2",
3
- "version": "0.0.20241103",
3
+ "version": "0.0.20241117",
4
4
  "description": "TypeScript typings for Cloud Natural Language API v2",
5
5
  "repository": {
6
6
  "type": "git",