@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240526 → 0.0.20240607

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 +143 -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://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
12
- // Revision: 20240526
12
+ // Revision: 20240607
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -851,6 +851,20 @@ declare namespace gapi.client {
851
851
  /** TargetSites created. */
852
852
  targetSites?: GoogleCloudDiscoveryengineV1TargetSite[];
853
853
  }
854
+ interface GoogleCloudDiscoveryengineV1betaAlloyDbSource {
855
+ /** Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters. */
856
+ clusterId?: string;
857
+ /** Required. The AlloyDB database to copy the data from with a length limit of 256 characters. */
858
+ databaseId?: string;
859
+ /** Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory. Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory. */
860
+ gcsStagingDir?: string;
861
+ /** Required. The AlloyDB location to copy the data from with a length limit of 256 characters. */
862
+ locationId?: string;
863
+ /** The project ID that the AlloyDB source is in with a length limit of 128 characters. If not specified, inherits the project ID from the parent request. */
864
+ projectId?: string;
865
+ /** Required. The AlloyDB table to copy the data from with a length limit of 256 characters. */
866
+ tableId?: string;
867
+ }
854
868
  interface GoogleCloudDiscoveryengineV1betaAnswer {
855
869
  /** Additional answer-skipped reasons. This provides the reason for ignored cases. If nothing is skipped, this field is not set. */
856
870
  answerSkippedReasons?: string[];
@@ -904,6 +918,8 @@ declare namespace gapi.client {
904
918
  searchSpec?: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec;
905
919
  /** The session resource name. Not required. When session field is not set, the API is in sessionless mode. We support auto session mode: users can use the wildcard symbol `-` as session ID. A new ID will be automatically generated and assigned. */
906
920
  session?: string;
921
+ /** The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. See [Google Cloud Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details. */
922
+ userLabels?: {[P in string]: string};
907
923
  /** A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This field should NOT have a fixed value such as `unknown_visitor`. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. */
908
924
  userPseudoId?: string;
909
925
  }
@@ -972,6 +988,8 @@ declare namespace gapi.client {
972
988
  maxReturnResults?: number;
973
989
  /** The order in which documents are returned. Documents can be ordered by a field in an Document object. Leave it unset if ordered by relevance. `order_by` expression is case-sensitive. For more information on ordering, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
974
990
  orderBy?: string;
991
+ /** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. See [parse and chunk documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) */
992
+ searchResultMode?: string;
975
993
  }
976
994
  interface GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList {
977
995
  /** Search results. */
@@ -1236,6 +1254,44 @@ declare namespace gapi.client {
1236
1254
  /** The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6. */
1237
1255
  citationThreshold?: number;
1238
1256
  }
1257
+ interface GoogleCloudDiscoveryengineV1betaChunk {
1258
+ /** Output only. Metadata of the current chunk. */
1259
+ chunkMetadata?: GoogleCloudDiscoveryengineV1betaChunkChunkMetadata;
1260
+ /** Content is a string from a document (parsed content). */
1261
+ content?: string;
1262
+ /** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
1263
+ derivedStructData?: {[P in string]: any};
1264
+ /** Metadata of the document from the current chunk. */
1265
+ documentMetadata?: GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata;
1266
+ /** Unique chunk ID of the current chunk. */
1267
+ id?: string;
1268
+ /** The full resource name of the chunk. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
1269
+ name?: string;
1270
+ /** Page span of the chunk. */
1271
+ pageSpan?: GoogleCloudDiscoveryengineV1betaChunkPageSpan;
1272
+ /** Output only. Represents the relevance score based on similarity. Higher score indicates higher chunk relevance. The score is in range [-1.0, 1.0]. Only populated on SearchService.SearchResponse. */
1273
+ relevanceScore?: number;
1274
+ }
1275
+ interface GoogleCloudDiscoveryengineV1betaChunkChunkMetadata {
1276
+ /** The next chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is only populated on SearchService.Search API. */
1277
+ nextChunks?: GoogleCloudDiscoveryengineV1betaChunk[];
1278
+ /** The previous chunks of the current chunk. The number is controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks. This field is only populated on SearchService.Search API. */
1279
+ previousChunks?: GoogleCloudDiscoveryengineV1betaChunk[];
1280
+ }
1281
+ interface GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata {
1282
+ /** Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
1283
+ structData?: {[P in string]: any};
1284
+ /** Title of the document. */
1285
+ title?: string;
1286
+ /** Uri of the document. */
1287
+ uri?: string;
1288
+ }
1289
+ interface GoogleCloudDiscoveryengineV1betaChunkPageSpan {
1290
+ /** The end page of the chunk. */
1291
+ pageEnd?: number;
1292
+ /** The start page of the chunk. */
1293
+ pageStart?: number;
1294
+ }
1239
1295
  interface GoogleCloudDiscoveryengineV1betaCloudSqlSource {
1240
1296
  /** Required. The Cloud SQL database to copy the data from with a length limit of 256 characters. */
1241
1297
  databaseId?: string;
@@ -1529,6 +1585,8 @@ declare namespace gapi.client {
1529
1585
  uri?: string;
1530
1586
  }
1531
1587
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig {
1588
+ /** Whether chunking mode is enabled. */
1589
+ chunkingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig;
1532
1590
  /** Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing. */
1533
1591
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1534
1592
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
@@ -1538,13 +1596,26 @@ declare namespace gapi.client {
1538
1596
  [P in string]: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig;
1539
1597
  };
1540
1598
  }
1599
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig {
1600
+ /** Configuration for the layout based chunking. */
1601
+ layoutBasedChunkingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig;
1602
+ }
1603
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig {
1604
+ /** The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500. */
1605
+ chunkSize?: number;
1606
+ /** Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False. */
1607
+ includeAncestorHeadings?: boolean;
1608
+ }
1541
1609
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig {
1542
1610
  /** Configurations applied to digital parser. */
1543
1611
  digitalParsingConfig?: any;
1612
+ /** Configurations applied to layout parser. */
1613
+ layoutParsingConfig?: any;
1544
1614
  /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
1545
1615
  ocrParsingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig;
1546
1616
  }
1547
1617
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig {}
1618
+ interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig {}
1548
1619
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
1549
1620
  /** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
1550
1621
  enhancedDocumentElements?: string[];
@@ -1680,6 +1751,8 @@ declare namespace gapi.client {
1680
1751
  updateTime?: string;
1681
1752
  }
1682
1753
  interface GoogleCloudDiscoveryengineV1betaImportDocumentsRequest {
1754
+ /** AlloyDB input source. */
1755
+ alloyDbSource?: GoogleCloudDiscoveryengineV1betaAlloyDbSource;
1683
1756
  /** 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 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 specified using id_field, otherwise, documents without IDs fail to be imported. Supported data sources: * GcsSource. GcsSource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. * FirestoreSource. * BigtableSource. */
1684
1757
  autoGenerateIds?: boolean;
1685
1758
  /** BigQuery input source. */
@@ -2124,13 +2197,23 @@ declare namespace gapi.client {
2124
2197
  boostAmount?: number;
2125
2198
  }
2126
2199
  interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec {
2200
+ /** Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS */
2201
+ chunkSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec;
2127
2202
  /** If there is no extractive_content_spec provided, there will be no extractive answer in the search response. */
2128
2203
  extractiveContentSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec;
2204
+ /** Specifies the search result mode. If unspecified, the search result mode is based on DataStore.DocumentProcessingConfig.chunking_config: * If DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. */
2205
+ searchResultMode?: string;
2129
2206
  /** If `snippetSpec` is not specified, snippets are not included in the search response. */
2130
2207
  snippetSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec;
2131
2208
  /** If `summarySpec` is not specified, summaries are not included in the search response. */
2132
2209
  summarySpec?: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec;
2133
2210
  }
2211
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec {
2212
+ /** The number of next chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no next chunks will be returned. */
2213
+ numNextChunks?: number;
2214
+ /** The number of previous chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no previous chunks will be returned. */
2215
+ numPreviousChunks?: number;
2216
+ }
2134
2217
  interface GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec {
2135
2218
  /** The maximum number of extractive answers returned in each search result. An extractive answer is a verbatim answer extracted from the original document, which provides a precise and contextually relevant answer to the search query. If the number of matching answers is less than the `max_extractive_answer_count`, return all of the answers. Otherwise, return the `max_extractive_answer_count`. At most five answers are returned for each SearchResult. */
2136
2219
  maxExtractiveAnswerCount?: number;
@@ -2297,6 +2380,8 @@ declare namespace gapi.client {
2297
2380
  pinnedResultCount?: string;
2298
2381
  }
2299
2382
  interface GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult {
2383
+ /** The chunk data in the search response if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS. */
2384
+ chunk?: GoogleCloudDiscoveryengineV1betaChunk;
2300
2385
  /** The document data snippet in the search response. Only fields that are marked as `retrievable` are populated. */
2301
2386
  document?: GoogleCloudDiscoveryengineV1betaDocument;
2302
2387
  /** Document.id of the searched Document. */
@@ -2756,6 +2841,8 @@ declare namespace gapi.client {
2756
2841
  }
2757
2842
  interface GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse {}
2758
2843
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfig {
2844
+ /** Whether chunking mode is enabled. */
2845
+ chunkingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig;
2759
2846
  /** Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing. */
2760
2847
  defaultParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2761
2848
  /** The full resource name of the Document Processing Config. Format: `projects/*‍/locations/*‍/collections/*‍/dataStores/*‍/documentProcessingConfig`. */
@@ -2765,13 +2852,26 @@ declare namespace gapi.client {
2765
2852
  [P in string]: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig;
2766
2853
  };
2767
2854
  }
2855
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig {
2856
+ /** Configuration for the layout based chunking. */
2857
+ layoutBasedChunkingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig;
2858
+ }
2859
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig {
2860
+ /** The token size limit for each chunk. Supported values: 100-500 (inclusive). Default value: 500. */
2861
+ chunkSize?: number;
2862
+ /** Whether to include appending different levels of headings to chunks from the middle of the document to prevent context loss. Default value: False. */
2863
+ includeAncestorHeadings?: boolean;
2864
+ }
2768
2865
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig {
2769
2866
  /** Configurations applied to digital parser. */
2770
2867
  digitalParsingConfig?: any;
2868
+ /** Configurations applied to layout parser. */
2869
+ layoutParsingConfig?: any;
2771
2870
  /** Configurations applied to OCR parser. Currently it only applies to PDFs. */
2772
2871
  ocrParsingConfig?: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig;
2773
2872
  }
2774
2873
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig {}
2874
+ interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig {}
2775
2875
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
2776
2876
  /** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
2777
2877
  enhancedDocumentElements?: string[];
@@ -3581,7 +3681,7 @@ declare namespace gapi.client {
3581
3681
  key?: string;
3582
3682
  /** OAuth 2.0 token for the current user. */
3583
3683
  oauth_token?: string;
3584
- /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
3684
+ /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
3585
3685
  parent: string;
3586
3686
  /** Returns response with indentations and line breaks. */
3587
3687
  prettyPrint?: boolean;
@@ -3612,7 +3712,7 @@ declare namespace gapi.client {
3612
3712
  key?: string;
3613
3713
  /** OAuth 2.0 token for the current user. */
3614
3714
  oauth_token?: string;
3615
- /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
3715
+ /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
3616
3716
  parent: string;
3617
3717
  /** Returns response with indentations and line breaks. */
3618
3718
  prettyPrint?: boolean;
@@ -3701,7 +3801,7 @@ declare namespace gapi.client {
3701
3801
  pageSize?: number;
3702
3802
  /** Optional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page. */
3703
3803
  pageToken?: string;
3704
- /** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
3804
+ /** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
3705
3805
  parent: string;
3706
3806
  /** Returns response with indentations and line breaks. */
3707
3807
  prettyPrint?: boolean;
@@ -6305,7 +6405,7 @@ declare namespace gapi.client {
6305
6405
  key?: string;
6306
6406
  /** OAuth 2.0 token for the current user. */
6307
6407
  oauth_token?: string;
6308
- /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
6408
+ /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
6309
6409
  parent: string;
6310
6410
  /** Returns response with indentations and line breaks. */
6311
6411
  prettyPrint?: boolean;
@@ -6336,7 +6436,7 @@ declare namespace gapi.client {
6336
6436
  key?: string;
6337
6437
  /** OAuth 2.0 token for the current user. */
6338
6438
  oauth_token?: string;
6339
- /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
6439
+ /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
6340
6440
  parent: string;
6341
6441
  /** Returns response with indentations and line breaks. */
6342
6442
  prettyPrint?: boolean;
@@ -6425,7 +6525,7 @@ declare namespace gapi.client {
6425
6525
  pageSize?: number;
6426
6526
  /** Optional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page. */
6427
6527
  pageToken?: string;
6428
- /** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
6528
+ /** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
6429
6529
  parent: string;
6430
6530
  /** Returns response with indentations and line breaks. */
6431
6531
  prettyPrint?: boolean;
@@ -8301,7 +8401,7 @@ declare namespace gapi.client {
8301
8401
  key?: string;
8302
8402
  /** OAuth 2.0 token for the current user. */
8303
8403
  oauth_token?: string;
8304
- /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
8404
+ /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
8305
8405
  parent: string;
8306
8406
  /** Returns response with indentations and line breaks. */
8307
8407
  prettyPrint?: boolean;
@@ -8332,7 +8432,7 @@ declare namespace gapi.client {
8332
8432
  key?: string;
8333
8433
  /** OAuth 2.0 token for the current user. */
8334
8434
  oauth_token?: string;
8335
- /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
8435
+ /** Required. Full resource name of parent data store. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
8336
8436
  parent: string;
8337
8437
  /** Returns response with indentations and line breaks. */
8338
8438
  prettyPrint?: boolean;
@@ -8421,7 +8521,7 @@ declare namespace gapi.client {
8421
8521
  pageSize?: number;
8422
8522
  /** Optional. A page token, received from a previous `ListControls` call. Provide this to retrieve the subsequent page. */
8423
8523
  pageToken?: string;
8424
- /** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` */
8524
+ /** Required. The data store resource name. Format: `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}` or `projects/{project_number}/locations/{location_id}/collections/{collection_id}/engines/{engine_id}`. */
8425
8525
  parent: string;
8426
8526
  /** Returns response with indentations and line breaks. */
8427
8527
  prettyPrint?: boolean;
@@ -10823,6 +10923,39 @@ declare namespace gapi.client {
10823
10923
  ): Request<GoogleCloudDiscoveryengineV1betaRankResponse>;
10824
10924
  }
10825
10925
  interface UserEventsResource {
10926
+ /** Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly. */
10927
+ collect(request?: {
10928
+ /** V1 error format. */
10929
+ '$.xgafv'?: string;
10930
+ /** OAuth access token. */
10931
+ access_token?: string;
10932
+ /** Data format for response. */
10933
+ alt?: string;
10934
+ /** JSONP */
10935
+ callback?: string;
10936
+ /** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
10937
+ ets?: string;
10938
+ /** Selector specifying which fields to include in a partial response. */
10939
+ fields?: string;
10940
+ /** 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. */
10941
+ key?: string;
10942
+ /** OAuth 2.0 token for the current user. */
10943
+ oauth_token?: string;
10944
+ /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
10945
+ parent: string;
10946
+ /** Returns response with indentations and line breaks. */
10947
+ prettyPrint?: boolean;
10948
+ /** 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. */
10949
+ quotaUser?: string;
10950
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
10951
+ upload_protocol?: string;
10952
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
10953
+ uploadType?: string;
10954
+ /** The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests. */
10955
+ uri?: string;
10956
+ /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
10957
+ userEvent?: string;
10958
+ }): Request<GoogleApiHttpBody>;
10826
10959
  /** Writes a single user event. */
10827
10960
  write(request: {
10828
10961
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240526",
3
+ "version": "0.0.20240607",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",