@maxim_mazurok/gapi.client.language-v2 0.0.20241027 → 0.0.20241110

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 +18 -18
  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: 20241027
12
+ // Revision: 20241110
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 AnalyzeEntitySentiment 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 AnalyzeEntitySentiment 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;
@@ -223,7 +223,7 @@ declare namespace gapi.client {
223
223
  text?: TextSpan;
224
224
  }
225
225
  interface Sentiment {
226
- /** A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative). */
226
+ /** A non-negative number in the [0, +inf] range, which represents the absolute magnitude of sentiment regardless of score (positive or negative). */
227
227
  magnitude?: number;
228
228
  /** Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). */
229
229
  score?: number;
@@ -490,9 +490,9 @@ declare namespace gapi.client {
490
490
  edgeTpuTfLiteFormat?: any;
491
491
  /** For any model and format: If true, will additionally export FirebaseExportedModelInfo in a firebase.txt file. */
492
492
  exportFirebaseAuxiliaryInfo?: boolean;
493
- /** The Google Contained Registry (GCR) path the exported files to be pushed to. This location is set if the exported format is DOCKDER. */
493
+ /** The Google Contained Registry path the exported files to be pushed to. This location is set if the exported format is DOCKDER. */
494
494
  outputGcrUri?: string;
495
- /** The Google Cloud Storage (GCS) directory where XPS will output the exported models and related files. Format: gs://bucket/directory */
495
+ /** The Google Cloud Storage directory where XPS will output the exported models and related files. Format: gs://bucket/directory */
496
496
  outputGcsUri?: string;
497
497
  tfJsFormat?: any;
498
498
  tfLiteFormat?: any;
@@ -542,7 +542,7 @@ declare namespace gapi.client {
542
542
  trainCostNodeSeconds?: string;
543
543
  }
544
544
  interface XPSImageExportModelSpec {
545
- /** Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files. */
545
+ /** Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files. */
546
546
  exportModelOutputConfig?: XPSExportModelOutputConfig[];
547
547
  }
548
548
  interface XPSImageModelArtifactSpec {
@@ -550,13 +550,13 @@ declare namespace gapi.client {
550
550
  checkpointArtifact?: XPSModelArtifactItem;
551
551
  /** The model binary files in different formats for model export. */
552
552
  exportArtifact?: XPSModelArtifactItem[];
553
- /** GCS uri of decoded labels file for model export 'dict.txt'. */
553
+ /** Google Cloud Storage URI of decoded labels file for model export 'dict.txt'. */
554
554
  labelGcsUri?: string;
555
555
  /** The default model binary file used for serving (e.g. online predict, batch predict) via public Cloud AI Platform API. */
556
556
  servingArtifact?: XPSModelArtifactItem;
557
- /** GCS uri prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin' Deprecated. */
557
+ /** Google Cloud Storage URI prefix of Tensorflow JavaScript binary files 'groupX-shardXofX.bin'. Deprecated. */
558
558
  tfJsBinaryGcsPrefix?: string;
559
- /** GCS uri of Tensorflow Lite metadata 'tflite_metadata.json'. */
559
+ /** Google Cloud Storage URI of Tensorflow Lite metadata 'tflite_metadata.json'. */
560
560
  tfLiteMetadataGcsUri?: string;
561
561
  }
562
562
  interface XPSImageModelServingSpec {
@@ -653,7 +653,7 @@ declare namespace gapi.client {
653
653
  interface XPSModelArtifactItem {
654
654
  /** The model artifact format. */
655
655
  artifactFormat?: string;
656
- /** The Google Cloud Storage (GCS) uri that stores the model binary files. */
656
+ /** The Google Cloud Storage URI that stores the model binary files. */
657
657
  gcsUri?: string;
658
658
  }
659
659
  interface XPSPreprocessResponse {
@@ -1136,7 +1136,7 @@ declare namespace gapi.client {
1136
1136
  trainCostNodeSeconds?: string;
1137
1137
  }
1138
1138
  interface XPSVideoExportModelSpec {
1139
- /** Contains the model format and internal location of the model files to be exported/downloaded. Use the GCS bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files. */
1139
+ /** Contains the model format and internal location of the model files to be exported/downloaded. Use the Google Cloud Storage bucket name which is provided via TrainRequest.gcs_bucket_name to store the model files. */
1140
1140
  exportModelOutputConfig?: XPSExportModelOutputConfig[];
1141
1141
  }
1142
1142
  interface XPSVideoModelArtifactSpec {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.language-v2",
3
- "version": "0.0.20241027",
3
+ "version": "0.0.20241110",
4
4
  "description": "TypeScript typings for Cloud Natural Language API v2",
5
5
  "repository": {
6
6
  "type": "git",