@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240607 → 0.0.20240612

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 +29 -1
  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=v1alpha
12
- // Revision: 20240607
12
+ // Revision: 20240612
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -846,6 +846,8 @@ declare namespace gapi.client {
846
846
  idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
847
847
  /** Immutable. The industry vertical that the data store registers. */
848
848
  industryVertical?: string;
849
+ /** Language info for DataStore. */
850
+ languageInfo?: GoogleCloudDiscoveryengineV1alphaLanguageInfo;
849
851
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
850
852
  name?: string;
851
853
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
@@ -1322,6 +1324,16 @@ declare namespace gapi.client {
1322
1324
  /** Inclusive lower bound. */
1323
1325
  minimum?: number;
1324
1326
  }
1327
+ interface GoogleCloudDiscoveryengineV1alphaLanguageInfo {
1328
+ /** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
1329
+ language?: string;
1330
+ /** The language code for the DataStore. */
1331
+ languageCode?: string;
1332
+ /** Output only. This is the normalized form of language_code. E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `en-GB`. */
1333
+ normalizedLanguageCode?: string;
1334
+ /** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
1335
+ region?: string;
1336
+ }
1325
1337
  interface GoogleCloudDiscoveryengineV1alphaListChunksResponse {
1326
1338
  /** The Chunks. */
1327
1339
  chunks?: GoogleCloudDiscoveryengineV1alphaChunk[];
@@ -1739,6 +1751,8 @@ declare namespace gapi.client {
1739
1751
  filter?: string;
1740
1752
  /** Raw image query. */
1741
1753
  imageQuery?: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery;
1754
+ /** The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). This field helps to better interpret the query. If a value isn't specified, the query language code is automatically detected, which may not be accurate. */
1755
+ languageCode?: string;
1742
1756
  /** A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Documents deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an `INVALID_ARGUMENT` is returned. */
1743
1757
  offset?: number;
1744
1758
  /** 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 for retail search, see [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. */
@@ -1755,6 +1769,8 @@ declare namespace gapi.client {
1755
1769
  queryExpansionSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec;
1756
1770
  /** The ranking expression controls the customized ranking on retrieval documents. This overrides ServingConfig.ranking_expression. The ranking expression is a single function or multiple functions that are joint by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: `relevance_score`: pre-defined keywords, used for measure relevance between query and document. `embedding_field_path`: the document embedding field used with query embedding vector. `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
1757
1771
  rankingExpression?: string;
1772
+ /** The Unicode country/region code (CLDR) of a location, such as "US" and "419". For more information, see [Standard fields](https://cloud.google.com/apis/design/standard_fields). If set, then results will be boosted based on the region_code provided. */
1773
+ regionCode?: string;
1758
1774
  /** Whether to turn on safe search. This is only supported for website search. */
1759
1775
  safeSearch?: boolean;
1760
1776
  /** The spell correction specification that specifies the mode under which spell correction takes effect. */
@@ -2440,6 +2456,8 @@ declare namespace gapi.client {
2440
2456
  documentProcessingConfig?: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig;
2441
2457
  /** Immutable. The industry vertical that the data store registers. */
2442
2458
  industryVertical?: string;
2459
+ /** Language info for DataStore. */
2460
+ languageInfo?: GoogleCloudDiscoveryengineV1betaLanguageInfo;
2443
2461
  /** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
2444
2462
  name?: string;
2445
2463
  /** The solutions that the data store enrolls. Available solutions for each industry_vertical: * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be enrolled. */
@@ -2633,6 +2651,16 @@ declare namespace gapi.client {
2633
2651
  /** Count of user events imported, but with Document information not found in the existing Branch. */
2634
2652
  unjoinedEventsCount?: string;
2635
2653
  }
2654
+ interface GoogleCloudDiscoveryengineV1betaLanguageInfo {
2655
+ /** Output only. Language part of normalized_language_code. E.g.: `en-US` -> `en`, `zh-Hans-HK` -> `zh`, `en` -> `en`. */
2656
+ language?: string;
2657
+ /** The language code for the DataStore. */
2658
+ languageCode?: string;
2659
+ /** Output only. This is the normalized form of language_code. E.g.: language_code of `en-GB`, `en_GB`, `en-UK` or `en-gb` will have normalized_language_code of `en-GB`. */
2660
+ normalizedLanguageCode?: string;
2661
+ /** Output only. Region part of normalized_language_code, if present. E.g.: `en-US` -> `US`, `zh-Hans-HK` -> `HK`, `en` -> ``. */
2662
+ region?: string;
2663
+ }
2636
2664
  interface GoogleCloudDiscoveryengineV1betaListCustomModelsResponse {
2637
2665
  /** List of custom tuning models. */
2638
2666
  models?: GoogleCloudDiscoveryengineV1betaCustomTuningModel[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240607",
3
+ "version": "0.0.20240612",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",