@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20230608 → 0.0.20230620

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 +29 -9
  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://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20230608
12
+ // Revision: 20230620
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -189,6 +189,25 @@ declare namespace gapi.client {
189
189
  purgeSample?:
190
190
  string[];
191
191
  }
192
+ interface GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata {
193
+ /** Operation create time. */
194
+ createTime?:
195
+ string;
196
+ /** Count of entries that encountered errors while processing. */
197
+ failureCount?:
198
+ string;
199
+ /** Count of entries that were deleted successfully. */
200
+ successCount?:
201
+ string;
202
+ /** Operation last update time. If the operation is done, this is also the finish time. */
203
+ updateTime?:
204
+ string;
205
+ }
206
+ interface GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse {
207
+ /** The total count of events purged as a result of the operation. */
208
+ purgeCount?:
209
+ string;
210
+ }
192
211
  interface GoogleCloudDiscoveryengineV1alphaSchema {
193
212
  /** The JSON representation of the schema. */
194
213
  jsonSchema?:
@@ -307,11 +326,11 @@ declare namespace gapi.client {
307
326
  { [P in string]: any };
308
327
  }
309
328
  interface GoogleCloudDiscoveryengineV1betaDocumentInfo {
310
- /** Required. The Document resource ID. */
329
+ /** The Document resource ID. */
311
330
  id?:
312
331
  string;
313
332
  /**
314
- * Required. The Document resource full name, of the form:
333
+ * The Document resource full name, of the form:
315
334
  * `projects/{project_id}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
316
335
  */
317
336
  name?:
@@ -325,7 +344,7 @@ declare namespace gapi.client {
325
344
  */
326
345
  quantity?:
327
346
  number;
328
- /** Required. The Document url - only allowed for DataStores with content_config PUBLIC_WEBSITE. */
347
+ /** The Document url - only allowed for DataStores with content_config PUBLIC_WEBSITE. */
329
348
  uri?:
330
349
  string;
331
350
  }
@@ -334,7 +353,8 @@ declare namespace gapi.client {
334
353
  * The schema to use when parsing the data from the source. Supported values for document imports: * `document` (default): One JSON Document per line. Each document must have a valid
335
354
  * Document.id. * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris` will become a document, with the ID set to the first 128 bits of SHA256(URI) encoded
336
355
  * as a hex string. * `custom`: One custom data JSON per row in arbitrary format that conforms the defined Schema of the data store. This can only be used by the GENERIC Data Store
337
- * vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.
356
+ * vertical. * `csv`: A CSV file with header conforming the defined Schema of the data store. Each entry after the header will be imported as a Document. This can only be used by the
357
+ * GENERIC Data Store vertical. Supported values for user even imports: * `user_event` (default): One JSON UserEvent per line.
338
358
  */
339
359
  dataSchema?:
340
360
  string;
@@ -365,7 +385,7 @@ declare namespace gapi.client {
365
385
  * Whether to automatically generate IDs for the documents if absent. If set to `true`, Document.ids are automatically generated based on the hash of the payload, where IDs may not be
366
386
  * consistent during multiple imports. In which case ReconciliationMode.FULL is highly recommended to avoid duplicate contents. If unset or set to `false`, Document.ids have to be
367
387
  * specified using id_field, otherwises, documents without IDs will fail to be imported. Only set this field when using GcsSource or BigQuerySource, and when GcsSource.data_schema or
368
- * BigQuerySource.data_schema is `custom`. Otherwise, an INVALID_ARGUMENT error is thrown.
388
+ * BigQuerySource.data_schema is `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown.
369
389
  */
370
390
  autoGenerateIds?:
371
391
  boolean;
@@ -431,16 +451,16 @@ declare namespace gapi.client {
431
451
  string;
432
452
  }
433
453
  interface GoogleCloudDiscoveryengineV1betaImportUserEventsRequest {
434
- /** Required. BigQuery input source. */
454
+ /** BigQuery input source. */
435
455
  bigquerySource?:
436
456
  GoogleCloudDiscoveryengineV1betaBigQuerySource;
437
457
  /** The desired location of errors incurred during the Import. Cannot be set for inline user event imports. */
438
458
  errorConfig?:
439
459
  GoogleCloudDiscoveryengineV1betaImportErrorConfig;
440
- /** Required. Cloud Storage location for the input content. */
460
+ /** Cloud Storage location for the input content. */
441
461
  gcsSource?:
442
462
  GoogleCloudDiscoveryengineV1betaGcsSource;
443
- /** Required. The Inline source for the input content for UserEvents. */
463
+ /** The Inline source for the input content for UserEvents. */
444
464
  inlineSource?:
445
465
  GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource;
446
466
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20230608",
3
+ "version": "0.0.20230620",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
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: 20230608
6
+ // Revision: 20230620
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */