@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20231003 → 0.0.20231016

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 +15 -13
  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=v1alpha
12
- // Revision: 20231003
12
+ // Revision: 20231016
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -109,11 +109,6 @@ declare namespace gapi.client {
109
109
  token?:
110
110
  string;
111
111
  }
112
- interface GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse {
113
- /** TargetSites created. */
114
- targetSites?:
115
- GoogleCloudDiscoveryengineV1alphaTargetSite[];
116
- }
117
112
  interface GoogleCloudDiscoveryengineV1alphaBigQuerySource {
118
113
  /**
119
114
  * The schema to use when parsing the data from the source. Supported values for user event imports: * `user_event` (default): One UserEvent per row. Supported values for document
@@ -774,9 +769,11 @@ declare namespace gapi.client {
774
769
  interface GoogleCloudDiscoveryengineV1alphaRecommendRequest {
775
770
  /**
776
771
  * Filter for restricting recommendation results with a length limit of 5,000 characters. Currently, only filter expressions on the `filter_tags` attribute is supported. Examples: *
777
- * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` If your filter blocks all results,
778
- * the API will return generic (unfiltered) popular Documents. If you only want results strictly matching the filters, set `strictFiltering` to True in RecommendRequest.params to
779
- * receive empty results instead. Note that the API will never return Documents with `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
772
+ * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` If `attributeFilteringSyntax` is set
773
+ * to true under the `params` field, then attribute-based expressions are expected instead of the above described tag-based syntax. Examples: * (launguage: ANY("en", "es")) AND NOT
774
+ * (categories: ANY("Movie")) * (available: true) AND (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) If your filter blocks all results, the API will return generic
775
+ * (unfiltered) popular Documents. If you only want results strictly matching the filters, set `strictFiltering` to True in RecommendRequest.params to receive empty results instead.
776
+ * Note that the API will never return Documents with `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
780
777
  */
781
778
  filter?:
782
779
  string;
@@ -792,7 +789,8 @@ declare namespace gapi.client {
792
789
  * RecommendResponse.RecommendationResult.metadata. The given 'score' indicates the probability of a Document conversion given the user's context and history. * `strictFiltering`:
793
790
  * Boolean. True by default. If set to false, the service will return generic (unfiltered) popular Documents instead of empty if your filter blocks all recommendation results. *
794
791
  * `diversityLevel`: String. Default empty. If set to be non-empty, then it needs to be one of: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` *
795
- * `auto-diversity` This gives request-level control and adjusts recommendation results based on Document category.
792
+ * `auto-diversity` This gives request-level control and adjusts recommendation results based on Document category. * `attributeFilteringSyntax`: Boolean. False by default. If set to
793
+ * true, the `filter` field is interpreted according to the new, attribute-based syntax.
796
794
  */
797
795
  params?:
798
796
  { [P in string]: any };
@@ -966,7 +964,7 @@ declare namespace gapi.client {
966
964
  string;
967
965
  }
968
966
  interface GoogleCloudDiscoveryengineV1alphaSearchRequest {
969
- /** Boost specification to boost certain documents. */
967
+ /** Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/retail/docs/boosting#boost) */
970
968
  boostSpec?:
971
969
  GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
972
970
  /**
@@ -990,7 +988,10 @@ declare namespace gapi.client {
990
988
  GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec[];
991
989
  /**
992
990
  * The filter syntax consists of an expression language for constructing a predicate from one or more fields of the documents being filtered. Filter expression is case-sensitive. If
993
- * this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
991
+ * this field is unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI Search is done by mapping the LHS filter key to a key property defined in the Vertex AI
992
+ * Search backend -- this mapping is defined by the customer in their schema. For example a media customer might have a field 'name' in their schema. In this case the filter would look
993
+ * like this: filter --> name:'ANY("king kong")' For more information about filtering including syntax and filter operators, see
994
+ * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
994
995
  */
995
996
  filter?:
996
997
  string;
@@ -1005,7 +1006,8 @@ declare namespace gapi.client {
1005
1006
  number;
1006
1007
  /**
1007
1008
  * 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
1008
- * case-sensitive. If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
1009
+ * 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`
1010
+ * is returned.
1009
1011
  */
1010
1012
  orderBy?:
1011
1013
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20231003",
3
+ "version": "0.0.20231016",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
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: 20231003
6
+ // Revision: 20231016
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */