@maxim_mazurok/gapi.client.speech-v1 0.0.20230815 → 0.0.20230901

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 +55 -1
  2. package/package.json +1 -1
  3. package/tests.ts +81 -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://speech.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230815
12
+ // Revision: 20230901
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -55,9 +55,27 @@ declare namespace gapi.client {
55
55
  string;
56
56
  }
57
57
  interface CustomClass {
58
+ /** Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used. */
59
+ annotations?:
60
+ { [P in string]: string };
58
61
  /** If this custom class is a resource, the custom_class_id is the resource id of the CustomClass. Case sensitive. */
59
62
  customClassId?:
60
63
  string;
64
+ /** Output only. The time at which this resource was requested for deletion. This field is not used. */
65
+ deleteTime?:
66
+ string;
67
+ /** Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used. */
68
+ displayName?:
69
+ string;
70
+ /**
71
+ * Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an
72
+ * up-to-date value before proceeding. This field is not used.
73
+ */
74
+ etag?:
75
+ string;
76
+ /** Output only. The time at which this resource will be purged. This field is not used. */
77
+ expireTime?:
78
+ string;
61
79
  /** A collection of class items. */
62
80
  items?:
63
81
  ClassItem[];
@@ -76,6 +94,15 @@ declare namespace gapi.client {
76
94
  /** The resource name of the custom class. */
77
95
  name?:
78
96
  string;
97
+ /** Output only. Whether or not this CustomClass is in the process of being updated. This field is not used. */
98
+ reconciling?:
99
+ boolean;
100
+ /** Output only. The CustomClass lifecycle state. This field is not used. */
101
+ state?:
102
+ string;
103
+ /** Output only. System-assigned unique identifier for the CustomClass. This field is not used. */
104
+ uid?:
105
+ string;
79
106
  }
80
107
  // tslint:disable-next-line:no-empty-interface
81
108
  interface Empty {
@@ -190,6 +217,9 @@ declare namespace gapi.client {
190
217
  string;
191
218
  }
192
219
  interface PhraseSet {
220
+ /** Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used. */
221
+ annotations?:
222
+ { [P in string]: string };
193
223
  /**
194
224
  * Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance
195
225
  * of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost will simply be ignored. Though `boost`
@@ -198,6 +228,21 @@ declare namespace gapi.client {
198
228
  */
199
229
  boost?:
200
230
  number;
231
+ /** Output only. The time at which this resource was requested for deletion. This field is not used. */
232
+ deleteTime?:
233
+ string;
234
+ /** Output only. User-settable, human-readable name for the PhraseSet. Must be 63 characters or less. This field is not used. */
235
+ displayName?:
236
+ string;
237
+ /**
238
+ * Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an
239
+ * up-to-date value before proceeding. This field is not used.
240
+ */
241
+ etag?:
242
+ string;
243
+ /** Output only. The time at which this resource will be purged. This field is not used. */
244
+ expireTime?:
245
+ string;
201
246
  /**
202
247
  * Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the PhraseSet is encrypted. The expected format is
203
248
  * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
@@ -216,6 +261,15 @@ declare namespace gapi.client {
216
261
  /** A list of word and phrases. */
217
262
  phrases?:
218
263
  Phrase[];
264
+ /** Output only. Whether or not this PhraseSet is in the process of being updated. This field is not used. */
265
+ reconciling?:
266
+ boolean;
267
+ /** Output only. The CustomClass lifecycle state. This field is not used. */
268
+ state?:
269
+ string;
270
+ /** Output only. System-assigned unique identifier for the PhraseSet. This field is not used. */
271
+ uid?:
272
+ string;
219
273
  }
220
274
  interface RecognitionAudio {
221
275
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.speech-v1",
3
- "version": "0.0.20230815",
3
+ "version": "0.0.20230901",
4
4
  "description": "TypeScript typings for Cloud Speech-to-Text 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: 20230815
6
+ // Revision: 20230901
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -45,7 +45,14 @@ gapi.load('client', async () => {
45
45
  parent: "Test string",
46
46
  }, {
47
47
  customClass: {
48
+ annotations: {
49
+ A: "Test string"
50
+ },
48
51
  customClassId: "Test string",
52
+ deleteTime: "Test string",
53
+ displayName: "Test string",
54
+ etag: "Test string",
55
+ expireTime: "Test string",
49
56
  items: [
50
57
  {
51
58
  value: "Test string",
@@ -54,6 +61,9 @@ gapi.load('client', async () => {
54
61
  kmsKeyName: "Test string",
55
62
  kmsKeyVersionName: "Test string",
56
63
  name: "Test string",
64
+ reconciling: true,
65
+ state: "Test string",
66
+ uid: "Test string",
57
67
  },
58
68
  customClassId: "Test string",
59
69
  });
@@ -76,7 +86,14 @@ gapi.load('client', async () => {
76
86
  name: "Test string",
77
87
  updateMask: "Test string",
78
88
  }, {
89
+ annotations: {
90
+ A: "Test string"
91
+ },
79
92
  customClassId: "Test string",
93
+ deleteTime: "Test string",
94
+ displayName: "Test string",
95
+ etag: "Test string",
96
+ expireTime: "Test string",
80
97
  items: [
81
98
  {
82
99
  value: "Test string",
@@ -85,6 +102,9 @@ gapi.load('client', async () => {
85
102
  kmsKeyName: "Test string",
86
103
  kmsKeyVersionName: "Test string",
87
104
  name: "Test string",
105
+ reconciling: true,
106
+ state: "Test string",
107
+ uid: "Test string",
88
108
  });
89
109
  /**
90
110
  * Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that
@@ -94,7 +114,14 @@ gapi.load('client', async () => {
94
114
  parent: "Test string",
95
115
  }, {
96
116
  phraseSet: {
117
+ annotations: {
118
+ A: "Test string"
119
+ },
97
120
  boost: 42,
121
+ deleteTime: "Test string",
122
+ displayName: "Test string",
123
+ etag: "Test string",
124
+ expireTime: "Test string",
98
125
  kmsKeyName: "Test string",
99
126
  kmsKeyVersionName: "Test string",
100
127
  name: "Test string",
@@ -104,6 +131,9 @@ gapi.load('client', async () => {
104
131
  value: "Test string",
105
132
  }
106
133
  ],
134
+ reconciling: true,
135
+ state: "Test string",
136
+ uid: "Test string",
107
137
  },
108
138
  phraseSetId: "Test string",
109
139
  });
@@ -126,7 +156,14 @@ gapi.load('client', async () => {
126
156
  name: "Test string",
127
157
  updateMask: "Test string",
128
158
  }, {
159
+ annotations: {
160
+ A: "Test string"
161
+ },
129
162
  boost: 42,
163
+ deleteTime: "Test string",
164
+ displayName: "Test string",
165
+ etag: "Test string",
166
+ expireTime: "Test string",
130
167
  kmsKeyName: "Test string",
131
168
  kmsKeyVersionName: "Test string",
132
169
  name: "Test string",
@@ -136,6 +173,9 @@ gapi.load('client', async () => {
136
173
  value: "Test string",
137
174
  }
138
175
  ],
176
+ reconciling: true,
177
+ state: "Test string",
178
+ uid: "Test string",
139
179
  });
140
180
  /**
141
181
  * Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains
@@ -156,7 +196,14 @@ gapi.load('client', async () => {
156
196
  },
157
197
  customClasses: [
158
198
  {
199
+ annotations: {
200
+ A: "Test string"
201
+ },
159
202
  customClassId: "Test string",
203
+ deleteTime: "Test string",
204
+ displayName: "Test string",
205
+ etag: "Test string",
206
+ expireTime: "Test string",
160
207
  items: [
161
208
  {
162
209
  value: "Test string",
@@ -165,6 +212,9 @@ gapi.load('client', async () => {
165
212
  kmsKeyName: "Test string",
166
213
  kmsKeyVersionName: "Test string",
167
214
  name: "Test string",
215
+ reconciling: true,
216
+ state: "Test string",
217
+ uid: "Test string",
168
218
  }
169
219
  ],
170
220
  phraseSetReferences: [
@@ -172,7 +222,14 @@ gapi.load('client', async () => {
172
222
  ],
173
223
  phraseSets: [
174
224
  {
225
+ annotations: {
226
+ A: "Test string"
227
+ },
175
228
  boost: 42,
229
+ deleteTime: "Test string",
230
+ displayName: "Test string",
231
+ etag: "Test string",
232
+ expireTime: "Test string",
176
233
  kmsKeyName: "Test string",
177
234
  kmsKeyVersionName: "Test string",
178
235
  name: "Test string",
@@ -182,6 +239,9 @@ gapi.load('client', async () => {
182
239
  value: "Test string",
183
240
  }
184
241
  ],
242
+ reconciling: true,
243
+ state: "Test string",
244
+ uid: "Test string",
185
245
  }
186
246
  ],
187
247
  },
@@ -247,7 +307,14 @@ gapi.load('client', async () => {
247
307
  },
248
308
  customClasses: [
249
309
  {
310
+ annotations: {
311
+ A: "Test string"
312
+ },
250
313
  customClassId: "Test string",
314
+ deleteTime: "Test string",
315
+ displayName: "Test string",
316
+ etag: "Test string",
317
+ expireTime: "Test string",
251
318
  items: [
252
319
  {
253
320
  value: "Test string",
@@ -256,6 +323,9 @@ gapi.load('client', async () => {
256
323
  kmsKeyName: "Test string",
257
324
  kmsKeyVersionName: "Test string",
258
325
  name: "Test string",
326
+ reconciling: true,
327
+ state: "Test string",
328
+ uid: "Test string",
259
329
  }
260
330
  ],
261
331
  phraseSetReferences: [
@@ -263,7 +333,14 @@ gapi.load('client', async () => {
263
333
  ],
264
334
  phraseSets: [
265
335
  {
336
+ annotations: {
337
+ A: "Test string"
338
+ },
266
339
  boost: 42,
340
+ deleteTime: "Test string",
341
+ displayName: "Test string",
342
+ etag: "Test string",
343
+ expireTime: "Test string",
267
344
  kmsKeyName: "Test string",
268
345
  kmsKeyVersionName: "Test string",
269
346
  name: "Test string",
@@ -273,6 +350,9 @@ gapi.load('client', async () => {
273
350
  value: "Test string",
274
351
  }
275
352
  ],
353
+ reconciling: true,
354
+ state: "Test string",
355
+ uid: "Test string",
276
356
  }
277
357
  ],
278
358
  },