@maxim_mazurok/gapi.client.language-v1 0.0.20230424 → 0.0.20230506

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 (3) hide show
  1. package/index.d.ts +439 -220
  2. package/package.json +1 -1
  3. package/tests.ts +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=v1
12
- // Revision: 20230424
12
+ // Revision: 20230506
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -24,572 +24,791 @@ declare namespace gapi.client {
24
24
  namespace language {
25
25
  interface AnalyzeEntitiesRequest {
26
26
  /** Required. Input document. */
27
- document?: Document;
27
+ document?:
28
+ Document;
28
29
  /** The encoding type used by the API to calculate offsets. */
29
- encodingType?: string;
30
+ encodingType?:
31
+ string;
30
32
  }
31
33
  interface AnalyzeEntitiesResponse {
32
34
  /** The recognized entities in the input document. */
33
- entities?: Entity[];
35
+ entities?:
36
+ Entity[];
34
37
  /**
35
38
  * 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
36
39
  * more details.
37
40
  */
38
- language?: string;
41
+ language?:
42
+ string;
39
43
  }
40
44
  interface AnalyzeEntitySentimentRequest {
41
45
  /** Required. Input document. */
42
- document?: Document;
46
+ document?:
47
+ Document;
43
48
  /** The encoding type used by the API to calculate offsets. */
44
- encodingType?: string;
49
+ encodingType?:
50
+ string;
45
51
  }
46
52
  interface AnalyzeEntitySentimentResponse {
47
53
  /** The recognized entities in the input document with associated sentiments. */
48
- entities?: Entity[];
54
+ entities?:
55
+ Entity[];
49
56
  /**
50
57
  * 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
51
58
  * more details.
52
59
  */
53
- language?: string;
60
+ language?:
61
+ string;
54
62
  }
55
63
  interface AnalyzeSentimentRequest {
56
64
  /** Required. Input document. */
57
- document?: Document;
65
+ document?:
66
+ Document;
58
67
  /** The encoding type used by the API to calculate sentence offsets. */
59
- encodingType?: string;
68
+ encodingType?:
69
+ string;
60
70
  }
61
71
  interface AnalyzeSentimentResponse {
62
72
  /** The overall sentiment of the input document. */
63
- documentSentiment?: Sentiment;
73
+ documentSentiment?:
74
+ Sentiment;
64
75
  /**
65
76
  * 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
66
77
  * more details.
67
78
  */
68
- language?: string;
79
+ language?:
80
+ string;
69
81
  /** The sentiment for all the sentences in the document. */
70
- sentences?: Sentence[];
82
+ sentences?:
83
+ Sentence[];
71
84
  }
72
85
  interface AnalyzeSyntaxRequest {
73
86
  /** Required. Input document. */
74
- document?: Document;
87
+ document?:
88
+ Document;
75
89
  /** The encoding type used by the API to calculate offsets. */
76
- encodingType?: string;
90
+ encodingType?:
91
+ string;
77
92
  }
78
93
  interface AnalyzeSyntaxResponse {
79
94
  /**
80
95
  * 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
81
96
  * more details.
82
97
  */
83
- language?: string;
98
+ language?:
99
+ string;
84
100
  /** Sentences in the input document. */
85
- sentences?: Sentence[];
101
+ sentences?:
102
+ Sentence[];
86
103
  /** Tokens, along with their syntactic information, in the input document. */
87
- tokens?: Token[];
104
+ tokens?:
105
+ Token[];
88
106
  }
89
107
  interface AnnotateTextRequest {
90
108
  /** Required. Input document. */
91
- document?: Document;
109
+ document?:
110
+ Document;
92
111
  /** The encoding type used by the API to calculate offsets. */
93
- encodingType?: string;
112
+ encodingType?:
113
+ string;
94
114
  /** Required. The enabled features. */
95
- features?: Features;
115
+ features?:
116
+ Features;
96
117
  }
97
118
  interface AnnotateTextResponse {
98
119
  /** Categories identified in the input document. */
99
- categories?: ClassificationCategory[];
120
+ categories?:
121
+ ClassificationCategory[];
100
122
  /** The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment. */
101
- documentSentiment?: Sentiment;
123
+ documentSentiment?:
124
+ Sentiment;
102
125
  /** Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities. */
103
- entities?: Entity[];
126
+ entities?:
127
+ Entity[];
104
128
  /**
105
129
  * 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
106
130
  * more details.
107
131
  */
108
- language?: string;
132
+ language?:
133
+ string;
109
134
  /** Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax. */
110
- sentences?: Sentence[];
135
+ sentences?:
136
+ Sentence[];
111
137
  /** Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax. */
112
- tokens?: Token[];
138
+ tokens?:
139
+ Token[];
113
140
  }
114
141
  interface ClassificationCategory {
115
142
  /** The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text. */
116
- confidence?: number;
143
+ confidence?:
144
+ number;
117
145
  /** The name of the category representing the document. */
118
- name?: string;
146
+ name?:
147
+ string;
119
148
  }
120
149
  interface ClassificationModelOptions {
121
150
  /** Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future. */
122
- v1Model?: any;
151
+ v1Model?:
152
+ any;
123
153
  /** Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. */
124
- v2Model?: V2Model;
154
+ v2Model?:
155
+ V2Model;
125
156
  }
126
157
  interface ClassifyTextRequest {
127
158
  /** Model options to use for classification. Defaults to v1 options if not specified. */
128
- classificationModelOptions?: ClassificationModelOptions;
159
+ classificationModelOptions?:
160
+ ClassificationModelOptions;
129
161
  /** Required. Input document. */
130
- document?: Document;
162
+ document?:
163
+ Document;
131
164
  }
132
165
  interface ClassifyTextResponse {
133
166
  /** Categories representing the input document. */
134
- categories?: ClassificationCategory[];
167
+ categories?:
168
+ ClassificationCategory[];
135
169
  }
136
170
  interface DependencyEdge {
137
171
  /**
138
172
  * Represents the head of this token in the dependency tree. This is the index of the token which has an arc going to this token. The index is the position of the token in the array of
139
173
  * tokens returned by the API method. If this token is a root token, then the `head_token_index` is its own index.
140
174
  */
141
- headTokenIndex?: number;
175
+ headTokenIndex?:
176
+ number;
142
177
  /** The parse label for the token. */
143
- label?: string;
178
+ label?:
179
+ string;
144
180
  }
145
181
  interface Document {
146
182
  /** The content of the input in string format. Cloud audit logging exempt since it is based on user data. */
147
- content?: string;
183
+ content?:
184
+ string;
148
185
  /**
149
186
  * The Google Cloud Storage URI where the file content is located. This URI must be of the form: gs://bucket_name/object_name. For more details, see
150
187
  * https://cloud.google.com/storage/docs/reference-uris. NOTE: Cloud Storage object versioning is not supported.
151
188
  */
152
- gcsContentUri?: string;
189
+ gcsContentUri?:
190
+ string;
153
191
  /**
154
192
  * The language of the document (if not specified, the language is automatically detected). Both ISO and BCP-47 language codes are accepted. [Language
155
193
  * Support](https://cloud.google.com/natural-language/docs/languages) lists currently supported languages for each API method. If the language (either specified by the caller or
156
194
  * automatically detected) is not supported by the called API method, an `INVALID_ARGUMENT` error is returned.
157
195
  */
158
- language?: string;
196
+ language?:
197
+ string;
159
198
  /** Required. If the type is not set or is `TYPE_UNSPECIFIED`, returns an `INVALID_ARGUMENT` error. */
160
- type?: string;
199
+ type?:
200
+ string;
161
201
  }
162
202
  interface Entity {
163
203
  /** The mentions of this entity in the input document. The API currently supports proper noun mentions. */
164
- mentions?: EntityMention[];
204
+ mentions?:
205
+ EntityMention[];
165
206
  /**
166
207
  * Metadata associated with the entity. For most entity types, the metadata is a Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are available. For the
167
208
  * metadata associated with other entity types, see the Type table below.
168
209
  */
169
- metadata?: { [P in string]: string };
210
+ metadata?:
211
+ { [P in string]: string };
170
212
  /** The representative name for the entity. */
171
- name?: string;
213
+ name?:
214
+ string;
172
215
  /**
173
216
  * The salience score associated with the entity in the [0, 1.0] range. The salience score for an entity provides information about the importance or centrality of that entity to the
174
217
  * entire document text. Scores closer to 0 are less salient, while scores closer to 1.0 are highly salient.
175
218
  */
176
- salience?: number;
219
+ salience?:
220
+ number;
177
221
  /**
178
222
  * 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
179
223
  * entity in the provided document.
180
224
  */
181
- sentiment?: Sentiment;
225
+ sentiment?:
226
+ Sentiment;
182
227
  /** The entity type. */
183
- type?: string;
228
+ type?:
229
+ string;
184
230
  }
185
231
  interface EntityMention {
186
232
  /**
187
233
  * 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
188
234
  * the entity in the provided document.
189
235
  */
190
- sentiment?: Sentiment;
236
+ sentiment?:
237
+ Sentiment;
191
238
  /** The mention text. */
192
- text?: TextSpan;
239
+ text?:
240
+ TextSpan;
193
241
  /** The type of the entity mention. */
194
- type?: string;
242
+ type?:
243
+ string;
195
244
  }
196
245
  interface Features {
197
246
  /** The model options to use for classification. Defaults to v1 options if not specified. Only used if `classify_text` is set to true. */
198
- classificationModelOptions?: ClassificationModelOptions;
247
+ classificationModelOptions?:
248
+ ClassificationModelOptions;
199
249
  /** Classify the full document into categories. */
200
- classifyText?: boolean;
250
+ classifyText?:
251
+ boolean;
201
252
  /** Extract document-level sentiment. */
202
- extractDocumentSentiment?: boolean;
253
+ extractDocumentSentiment?:
254
+ boolean;
203
255
  /** Extract entities. */
204
- extractEntities?: boolean;
256
+ extractEntities?:
257
+ boolean;
205
258
  /** Extract entities and their associated sentiment. */
206
- extractEntitySentiment?: boolean;
259
+ extractEntitySentiment?:
260
+ boolean;
207
261
  /** Extract syntax information. */
208
- extractSyntax?: boolean;
262
+ extractSyntax?:
263
+ boolean;
209
264
  }
210
265
  interface PartOfSpeech {
211
266
  /** The grammatical aspect. */
212
- aspect?: string;
267
+ aspect?:
268
+ string;
213
269
  /** The grammatical case. */
214
- case?: string;
270
+ case?:
271
+ string;
215
272
  /** The grammatical form. */
216
- form?: string;
273
+ form?:
274
+ string;
217
275
  /** The grammatical gender. */
218
- gender?: string;
276
+ gender?:
277
+ string;
219
278
  /** The grammatical mood. */
220
- mood?: string;
279
+ mood?:
280
+ string;
221
281
  /** The grammatical number. */
222
- number?: string;
282
+ number?:
283
+ string;
223
284
  /** The grammatical person. */
224
- person?: string;
285
+ person?:
286
+ string;
225
287
  /** The grammatical properness. */
226
- proper?: string;
288
+ proper?:
289
+ string;
227
290
  /** The grammatical reciprocity. */
228
- reciprocity?: string;
291
+ reciprocity?:
292
+ string;
229
293
  /** The part of speech tag. */
230
- tag?: string;
294
+ tag?:
295
+ string;
231
296
  /** The grammatical tense. */
232
- tense?: string;
297
+ tense?:
298
+ string;
233
299
  /** The grammatical voice. */
234
- voice?: string;
300
+ voice?:
301
+ string;
235
302
  }
236
303
  interface Sentence {
237
304
  /** For calls to AnalyzeSentiment or if AnnotateTextRequest.Features.extract_document_sentiment is set to true, this field will contain the sentiment for the sentence. */
238
- sentiment?: Sentiment;
305
+ sentiment?:
306
+ Sentiment;
239
307
  /** The sentence text. */
240
- text?: TextSpan;
308
+ text?:
309
+ TextSpan;
241
310
  }
242
311
  interface Sentiment {
243
312
  /** A non-negative number in the [0, +inf) range, which represents the absolute magnitude of sentiment regardless of score (positive or negative). */
244
- magnitude?: number;
313
+ magnitude?:
314
+ number;
245
315
  /** Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment). */
246
- score?: number;
316
+ score?:
317
+ number;
247
318
  }
248
319
  interface Status {
249
320
  /** The status code, which should be an enum value of google.rpc.Code. */
250
- code?: number;
321
+ code?:
322
+ number;
251
323
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
252
- details?: Array<{ [P in string]: any }>;
324
+ details?:
325
+ Array<{ [P in string]: any }>;
253
326
  /**
254
327
  * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
255
328
  * client.
256
329
  */
257
- message?: string;
330
+ message?:
331
+ string;
258
332
  }
259
333
  interface TextSpan {
260
334
  /** The API calculates the beginning offset of the content in the original document according to the EncodingType specified in the API request. */
261
- beginOffset?: number;
335
+ beginOffset?:
336
+ number;
262
337
  /** The content of the output text. */
263
- content?: string;
338
+ content?:
339
+ string;
264
340
  }
265
341
  interface Token {
266
342
  /** Dependency tree parse for this token. */
267
- dependencyEdge?: DependencyEdge;
343
+ dependencyEdge?:
344
+ DependencyEdge;
268
345
  /** [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. */
269
- lemma?: string;
346
+ lemma?:
347
+ string;
270
348
  /** Parts of speech tag for this token. */
271
- partOfSpeech?: PartOfSpeech;
349
+ partOfSpeech?:
350
+ PartOfSpeech;
272
351
  /** The token text. */
273
- text?: TextSpan;
352
+ text?:
353
+ TextSpan;
274
354
  }
275
355
  // tslint:disable-next-line:no-empty-interface
276
356
  interface V1Model {
277
357
  }
278
358
  interface V2Model {
279
359
  /** The content categories used for classification. */
280
- contentCategoriesVersion?: string;
360
+ contentCategoriesVersion?:
361
+ string;
281
362
  }
282
363
  interface DocumentsResource {
283
364
  /** Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties. */
284
365
  analyzeEntities(request: {
285
366
  /** V1 error format. */
286
- "$.xgafv"?: string;
367
+ "$.xgafv"?:
368
+ string;
287
369
  /** OAuth access token. */
288
- access_token?: string;
370
+ access_token?:
371
+ string;
289
372
  /** Data format for response. */
290
- alt?: string;
373
+ alt?:
374
+ string;
291
375
  /** JSONP */
292
- callback?: string;
376
+ callback?:
377
+ string;
293
378
  /** Selector specifying which fields to include in a partial response. */
294
- fields?: string;
379
+ fields?:
380
+ string;
295
381
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
296
- key?: string;
382
+ key?:
383
+ string;
297
384
  /** OAuth 2.0 token for the current user. */
298
- oauth_token?: string;
385
+ oauth_token?:
386
+ string;
299
387
  /** Returns response with indentations and line breaks. */
300
- prettyPrint?: boolean;
388
+ prettyPrint?:
389
+ boolean;
301
390
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
302
- quotaUser?: string;
391
+ quotaUser?:
392
+ string;
303
393
  /** Upload protocol for media (e.g. "raw", "multipart"). */
304
- upload_protocol?: string;
394
+ upload_protocol?:
395
+ string;
305
396
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
306
- uploadType?: string;
397
+ uploadType?:
398
+ string;
307
399
  /** Request body */
308
- resource: AnalyzeEntitiesRequest;
400
+ resource:
401
+ AnalyzeEntitiesRequest;
309
402
  }): Request<AnalyzeEntitiesResponse>;
310
403
  analyzeEntities(request: {
311
404
  /** V1 error format. */
312
- "$.xgafv"?: string;
405
+ "$.xgafv"?:
406
+ string;
313
407
  /** OAuth access token. */
314
- access_token?: string;
408
+ access_token?:
409
+ string;
315
410
  /** Data format for response. */
316
- alt?: string;
411
+ alt?:
412
+ string;
317
413
  /** JSONP */
318
- callback?: string;
414
+ callback?:
415
+ string;
319
416
  /** Selector specifying which fields to include in a partial response. */
320
- fields?: string;
417
+ fields?:
418
+ string;
321
419
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
322
- key?: string;
420
+ key?:
421
+ string;
323
422
  /** OAuth 2.0 token for the current user. */
324
- oauth_token?: string;
423
+ oauth_token?:
424
+ string;
325
425
  /** Returns response with indentations and line breaks. */
326
- prettyPrint?: boolean;
426
+ prettyPrint?:
427
+ boolean;
327
428
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
328
- quotaUser?: string;
429
+ quotaUser?:
430
+ string;
329
431
  /** Upload protocol for media (e.g. "raw", "multipart"). */
330
- upload_protocol?: string;
432
+ upload_protocol?:
433
+ string;
331
434
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
332
- uploadType?: string;
435
+ uploadType?:
436
+ string;
333
437
  },
334
438
  body: AnalyzeEntitiesRequest): Request<AnalyzeEntitiesResponse>;
335
439
  /** Finds entities, similar to AnalyzeEntities in the text and analyzes sentiment associated with each entity and its mentions. */
336
440
  analyzeEntitySentiment(request: {
337
441
  /** V1 error format. */
338
- "$.xgafv"?: string;
442
+ "$.xgafv"?:
443
+ string;
339
444
  /** OAuth access token. */
340
- access_token?: string;
445
+ access_token?:
446
+ string;
341
447
  /** Data format for response. */
342
- alt?: string;
448
+ alt?:
449
+ string;
343
450
  /** JSONP */
344
- callback?: string;
451
+ callback?:
452
+ string;
345
453
  /** Selector specifying which fields to include in a partial response. */
346
- fields?: string;
454
+ fields?:
455
+ string;
347
456
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
348
- key?: string;
457
+ key?:
458
+ string;
349
459
  /** OAuth 2.0 token for the current user. */
350
- oauth_token?: string;
460
+ oauth_token?:
461
+ string;
351
462
  /** Returns response with indentations and line breaks. */
352
- prettyPrint?: boolean;
463
+ prettyPrint?:
464
+ boolean;
353
465
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
354
- quotaUser?: string;
466
+ quotaUser?:
467
+ string;
355
468
  /** Upload protocol for media (e.g. "raw", "multipart"). */
356
- upload_protocol?: string;
469
+ upload_protocol?:
470
+ string;
357
471
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
358
- uploadType?: string;
472
+ uploadType?:
473
+ string;
359
474
  /** Request body */
360
- resource: AnalyzeEntitySentimentRequest;
475
+ resource:
476
+ AnalyzeEntitySentimentRequest;
361
477
  }): Request<AnalyzeEntitySentimentResponse>;
362
478
  analyzeEntitySentiment(request: {
363
479
  /** V1 error format. */
364
- "$.xgafv"?: string;
480
+ "$.xgafv"?:
481
+ string;
365
482
  /** OAuth access token. */
366
- access_token?: string;
483
+ access_token?:
484
+ string;
367
485
  /** Data format for response. */
368
- alt?: string;
486
+ alt?:
487
+ string;
369
488
  /** JSONP */
370
- callback?: string;
489
+ callback?:
490
+ string;
371
491
  /** Selector specifying which fields to include in a partial response. */
372
- fields?: string;
492
+ fields?:
493
+ string;
373
494
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
374
- key?: string;
495
+ key?:
496
+ string;
375
497
  /** OAuth 2.0 token for the current user. */
376
- oauth_token?: string;
498
+ oauth_token?:
499
+ string;
377
500
  /** Returns response with indentations and line breaks. */
378
- prettyPrint?: boolean;
501
+ prettyPrint?:
502
+ boolean;
379
503
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
380
- quotaUser?: string;
504
+ quotaUser?:
505
+ string;
381
506
  /** Upload protocol for media (e.g. "raw", "multipart"). */
382
- upload_protocol?: string;
507
+ upload_protocol?:
508
+ string;
383
509
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
384
- uploadType?: string;
510
+ uploadType?:
511
+ string;
385
512
  },
386
513
  body: AnalyzeEntitySentimentRequest): Request<AnalyzeEntitySentimentResponse>;
387
514
  /** Analyzes the sentiment of the provided text. */
388
515
  analyzeSentiment(request: {
389
516
  /** V1 error format. */
390
- "$.xgafv"?: string;
517
+ "$.xgafv"?:
518
+ string;
391
519
  /** OAuth access token. */
392
- access_token?: string;
520
+ access_token?:
521
+ string;
393
522
  /** Data format for response. */
394
- alt?: string;
523
+ alt?:
524
+ string;
395
525
  /** JSONP */
396
- callback?: string;
526
+ callback?:
527
+ string;
397
528
  /** Selector specifying which fields to include in a partial response. */
398
- fields?: string;
529
+ fields?:
530
+ string;
399
531
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
400
- key?: string;
532
+ key?:
533
+ string;
401
534
  /** OAuth 2.0 token for the current user. */
402
- oauth_token?: string;
535
+ oauth_token?:
536
+ string;
403
537
  /** Returns response with indentations and line breaks. */
404
- prettyPrint?: boolean;
538
+ prettyPrint?:
539
+ boolean;
405
540
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
406
- quotaUser?: string;
541
+ quotaUser?:
542
+ string;
407
543
  /** Upload protocol for media (e.g. "raw", "multipart"). */
408
- upload_protocol?: string;
544
+ upload_protocol?:
545
+ string;
409
546
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
410
- uploadType?: string;
547
+ uploadType?:
548
+ string;
411
549
  /** Request body */
412
- resource: AnalyzeSentimentRequest;
550
+ resource:
551
+ AnalyzeSentimentRequest;
413
552
  }): Request<AnalyzeSentimentResponse>;
414
553
  analyzeSentiment(request: {
415
554
  /** V1 error format. */
416
- "$.xgafv"?: string;
555
+ "$.xgafv"?:
556
+ string;
417
557
  /** OAuth access token. */
418
- access_token?: string;
558
+ access_token?:
559
+ string;
419
560
  /** Data format for response. */
420
- alt?: string;
561
+ alt?:
562
+ string;
421
563
  /** JSONP */
422
- callback?: string;
564
+ callback?:
565
+ string;
423
566
  /** Selector specifying which fields to include in a partial response. */
424
- fields?: string;
567
+ fields?:
568
+ string;
425
569
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
426
- key?: string;
570
+ key?:
571
+ string;
427
572
  /** OAuth 2.0 token for the current user. */
428
- oauth_token?: string;
573
+ oauth_token?:
574
+ string;
429
575
  /** Returns response with indentations and line breaks. */
430
- prettyPrint?: boolean;
576
+ prettyPrint?:
577
+ boolean;
431
578
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
432
- quotaUser?: string;
579
+ quotaUser?:
580
+ string;
433
581
  /** Upload protocol for media (e.g. "raw", "multipart"). */
434
- upload_protocol?: string;
582
+ upload_protocol?:
583
+ string;
435
584
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
436
- uploadType?: string;
585
+ uploadType?:
586
+ string;
437
587
  },
438
588
  body: AnalyzeSentimentRequest): Request<AnalyzeSentimentResponse>;
439
589
  /** Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties. */
440
590
  analyzeSyntax(request: {
441
591
  /** V1 error format. */
442
- "$.xgafv"?: string;
592
+ "$.xgafv"?:
593
+ string;
443
594
  /** OAuth access token. */
444
- access_token?: string;
595
+ access_token?:
596
+ string;
445
597
  /** Data format for response. */
446
- alt?: string;
598
+ alt?:
599
+ string;
447
600
  /** JSONP */
448
- callback?: string;
601
+ callback?:
602
+ string;
449
603
  /** Selector specifying which fields to include in a partial response. */
450
- fields?: string;
604
+ fields?:
605
+ string;
451
606
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
452
- key?: string;
607
+ key?:
608
+ string;
453
609
  /** OAuth 2.0 token for the current user. */
454
- oauth_token?: string;
610
+ oauth_token?:
611
+ string;
455
612
  /** Returns response with indentations and line breaks. */
456
- prettyPrint?: boolean;
613
+ prettyPrint?:
614
+ boolean;
457
615
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
458
- quotaUser?: string;
616
+ quotaUser?:
617
+ string;
459
618
  /** Upload protocol for media (e.g. "raw", "multipart"). */
460
- upload_protocol?: string;
619
+ upload_protocol?:
620
+ string;
461
621
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
462
- uploadType?: string;
622
+ uploadType?:
623
+ string;
463
624
  /** Request body */
464
- resource: AnalyzeSyntaxRequest;
625
+ resource:
626
+ AnalyzeSyntaxRequest;
465
627
  }): Request<AnalyzeSyntaxResponse>;
466
628
  analyzeSyntax(request: {
467
629
  /** V1 error format. */
468
- "$.xgafv"?: string;
630
+ "$.xgafv"?:
631
+ string;
469
632
  /** OAuth access token. */
470
- access_token?: string;
633
+ access_token?:
634
+ string;
471
635
  /** Data format for response. */
472
- alt?: string;
636
+ alt?:
637
+ string;
473
638
  /** JSONP */
474
- callback?: string;
639
+ callback?:
640
+ string;
475
641
  /** Selector specifying which fields to include in a partial response. */
476
- fields?: string;
642
+ fields?:
643
+ string;
477
644
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
478
- key?: string;
645
+ key?:
646
+ string;
479
647
  /** OAuth 2.0 token for the current user. */
480
- oauth_token?: string;
648
+ oauth_token?:
649
+ string;
481
650
  /** Returns response with indentations and line breaks. */
482
- prettyPrint?: boolean;
651
+ prettyPrint?:
652
+ boolean;
483
653
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
484
- quotaUser?: string;
654
+ quotaUser?:
655
+ string;
485
656
  /** Upload protocol for media (e.g. "raw", "multipart"). */
486
- upload_protocol?: string;
657
+ upload_protocol?:
658
+ string;
487
659
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
488
- uploadType?: string;
660
+ uploadType?:
661
+ string;
489
662
  },
490
663
  body: AnalyzeSyntaxRequest): Request<AnalyzeSyntaxResponse>;
491
664
  /** A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call. */
492
665
  annotateText(request: {
493
666
  /** V1 error format. */
494
- "$.xgafv"?: string;
667
+ "$.xgafv"?:
668
+ string;
495
669
  /** OAuth access token. */
496
- access_token?: string;
670
+ access_token?:
671
+ string;
497
672
  /** Data format for response. */
498
- alt?: string;
673
+ alt?:
674
+ string;
499
675
  /** JSONP */
500
- callback?: string;
676
+ callback?:
677
+ string;
501
678
  /** Selector specifying which fields to include in a partial response. */
502
- fields?: string;
679
+ fields?:
680
+ string;
503
681
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
504
- key?: string;
682
+ key?:
683
+ string;
505
684
  /** OAuth 2.0 token for the current user. */
506
- oauth_token?: string;
685
+ oauth_token?:
686
+ string;
507
687
  /** Returns response with indentations and line breaks. */
508
- prettyPrint?: boolean;
688
+ prettyPrint?:
689
+ boolean;
509
690
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
510
- quotaUser?: string;
691
+ quotaUser?:
692
+ string;
511
693
  /** Upload protocol for media (e.g. "raw", "multipart"). */
512
- upload_protocol?: string;
694
+ upload_protocol?:
695
+ string;
513
696
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
514
- uploadType?: string;
697
+ uploadType?:
698
+ string;
515
699
  /** Request body */
516
- resource: AnnotateTextRequest;
700
+ resource:
701
+ AnnotateTextRequest;
517
702
  }): Request<AnnotateTextResponse>;
518
703
  annotateText(request: {
519
704
  /** V1 error format. */
520
- "$.xgafv"?: string;
705
+ "$.xgafv"?:
706
+ string;
521
707
  /** OAuth access token. */
522
- access_token?: string;
708
+ access_token?:
709
+ string;
523
710
  /** Data format for response. */
524
- alt?: string;
711
+ alt?:
712
+ string;
525
713
  /** JSONP */
526
- callback?: string;
714
+ callback?:
715
+ string;
527
716
  /** Selector specifying which fields to include in a partial response. */
528
- fields?: string;
717
+ fields?:
718
+ string;
529
719
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
530
- key?: string;
720
+ key?:
721
+ string;
531
722
  /** OAuth 2.0 token for the current user. */
532
- oauth_token?: string;
723
+ oauth_token?:
724
+ string;
533
725
  /** Returns response with indentations and line breaks. */
534
- prettyPrint?: boolean;
726
+ prettyPrint?:
727
+ boolean;
535
728
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
536
- quotaUser?: string;
729
+ quotaUser?:
730
+ string;
537
731
  /** Upload protocol for media (e.g. "raw", "multipart"). */
538
- upload_protocol?: string;
732
+ upload_protocol?:
733
+ string;
539
734
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
540
- uploadType?: string;
735
+ uploadType?:
736
+ string;
541
737
  },
542
738
  body: AnnotateTextRequest): Request<AnnotateTextResponse>;
543
739
  /** Classifies a document into categories. */
544
740
  classifyText(request: {
545
741
  /** V1 error format. */
546
- "$.xgafv"?: string;
742
+ "$.xgafv"?:
743
+ string;
547
744
  /** OAuth access token. */
548
- access_token?: string;
745
+ access_token?:
746
+ string;
549
747
  /** Data format for response. */
550
- alt?: string;
748
+ alt?:
749
+ string;
551
750
  /** JSONP */
552
- callback?: string;
751
+ callback?:
752
+ string;
553
753
  /** Selector specifying which fields to include in a partial response. */
554
- fields?: string;
754
+ fields?:
755
+ string;
555
756
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
556
- key?: string;
757
+ key?:
758
+ string;
557
759
  /** OAuth 2.0 token for the current user. */
558
- oauth_token?: string;
760
+ oauth_token?:
761
+ string;
559
762
  /** Returns response with indentations and line breaks. */
560
- prettyPrint?: boolean;
763
+ prettyPrint?:
764
+ boolean;
561
765
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
562
- quotaUser?: string;
766
+ quotaUser?:
767
+ string;
563
768
  /** Upload protocol for media (e.g. "raw", "multipart"). */
564
- upload_protocol?: string;
769
+ upload_protocol?:
770
+ string;
565
771
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
566
- uploadType?: string;
772
+ uploadType?:
773
+ string;
567
774
  /** Request body */
568
- resource: ClassifyTextRequest;
775
+ resource:
776
+ ClassifyTextRequest;
569
777
  }): Request<ClassifyTextResponse>;
570
778
  classifyText(request: {
571
779
  /** V1 error format. */
572
- "$.xgafv"?: string;
780
+ "$.xgafv"?:
781
+ string;
573
782
  /** OAuth access token. */
574
- access_token?: string;
783
+ access_token?:
784
+ string;
575
785
  /** Data format for response. */
576
- alt?: string;
786
+ alt?:
787
+ string;
577
788
  /** JSONP */
578
- callback?: string;
789
+ callback?:
790
+ string;
579
791
  /** Selector specifying which fields to include in a partial response. */
580
- fields?: string;
792
+ fields?:
793
+ string;
581
794
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
582
- key?: string;
795
+ key?:
796
+ string;
583
797
  /** OAuth 2.0 token for the current user. */
584
- oauth_token?: string;
798
+ oauth_token?:
799
+ string;
585
800
  /** Returns response with indentations and line breaks. */
586
- prettyPrint?: boolean;
801
+ prettyPrint?:
802
+ boolean;
587
803
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
588
- quotaUser?: string;
804
+ quotaUser?:
805
+ string;
589
806
  /** Upload protocol for media (e.g. "raw", "multipart"). */
590
- upload_protocol?: string;
807
+ upload_protocol?:
808
+ string;
591
809
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
592
- uploadType?: string;
810
+ uploadType?:
811
+ string;
593
812
  },
594
813
  body: ClassifyTextRequest): Request<ClassifyTextResponse>;
595
814
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.language-v1",
3
- "version": "0.0.20230424",
3
+ "version": "0.0.20230506",
4
4
  "description": "TypeScript typings for Cloud Natural Language API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230424
6
+ // Revision: 20230506
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */