@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20240912 → 0.0.20240920

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 +69 -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=v1beta
12
- // Revision: 20240912
12
+ // Revision: 20240920
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -362,6 +362,8 @@ declare namespace gapi.client {
362
362
  interface GoogleCloudDiscoveryengineV1alphaDataStore {
363
363
  /** Immutable. Whether data in the DataStore has ACL information. If set to `true`, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE` content config. */
364
364
  aclEnabled?: boolean;
365
+ /** Output only. Data size estimation for billing. */
366
+ billingEstimation?: GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation;
365
367
  /** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
366
368
  contentConfig?: string;
367
369
  /** Output only. Timestamp the DataStore was created at. */
@@ -391,6 +393,20 @@ declare namespace gapi.client {
391
393
  /** Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. */
392
394
  workspaceConfig?: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig;
393
395
  }
396
+ interface GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation {
397
+ /** Data size for structured data in terms of bytes. */
398
+ structuredDataSize?: string;
399
+ /** Last updated timestamp for structured data. */
400
+ structuredDataUpdateTime?: string;
401
+ /** Data size for unstructured data in terms of bytes. */
402
+ unstructuredDataSize?: string;
403
+ /** Last updated timestamp for unstructured data. */
404
+ unstructuredDataUpdateTime?: string;
405
+ /** Data size for websites in terms of bytes. */
406
+ websiteDataSize?: string;
407
+ /** Last updated timestamp for websites. */
408
+ websiteDataUpdateTime?: string;
409
+ }
394
410
  interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
395
411
  /** Operation create time. */
396
412
  createTime?: string;
@@ -607,6 +623,8 @@ declare namespace gapi.client {
607
623
  indexableOption?: string;
608
624
  /** Output only. Type of the key property that this field is mapped to. Empty string if this is not annotated as mapped to a key property. Example types are `title`, `description`. Full list is defined by `keyPropertyMapping` in the schema field annotation. If the schema field has a `KeyPropertyMapping` annotation, `indexable_option` and `searchable_option` of this field cannot be modified. */
609
625
  keyPropertyType?: string;
626
+ /** Optional. The metatag name found in the HTML page. If user defines this field, the value of this metatag name will be used to extract metatag. If the user does not define this field, the FieldConfig.field_path will be used to extract metatag. */
627
+ metatagName?: string;
610
628
  /** If recs_filterable_option is FILTERABLE_ENABLED, field values are filterable by filter expression in RecommendationService.Recommend. If FILTERABLE_ENABLED but the field type is numerical, field values are not filterable by text queries in RecommendationService.Recommend. Only textual fields are supported. If recs_filterable_option is unset, the default setting is FILTERABLE_DISABLED for fields that support setting filterable options. When a field set to [FILTERABLE_DISABLED] is filtered, a warning is generated and an empty result is returned. */
611
629
  recsFilterableOption?: string;
612
630
  /** If retrievable_option is RETRIEVABLE_ENABLED, field values are included in the search results. If retrievable_option is unset, the server behavior defaults to RETRIEVABLE_DISABLED for fields that support setting retrievable options. For those fields that do not support setting retrievable options, such as `object` and `boolean`, the server will skip retrievable option setting, and setting retrievable_option for those fields will throw `INVALID_ARGUMENT` error. */
@@ -936,6 +954,8 @@ declare namespace gapi.client {
936
954
  pageToken?: string;
937
955
  /** Additional search parameters. For public website search only, supported values are: * `user_country_code`: string. Default empty. If set to non-empty, results are restricted or boosted based on the location provided. For example, `user_country_code: "au"` For available codes see [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) * `search_type`: double. Default empty. Enables non-webpage searching depending on the value. The only valid non-default value is 1, which enables image searching. For example, `search_type: 1` */
938
956
  params?: {[P in string]: any};
957
+ /** The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
958
+ personalizationSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec;
939
959
  /** Raw search query. */
940
960
  query?: string;
941
961
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
@@ -1064,6 +1084,8 @@ declare namespace gapi.client {
1064
1084
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
1065
1085
  /** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
1066
1086
  dataStore?: string;
1087
+ /** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
1088
+ filter?: string;
1067
1089
  }
1068
1090
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
1069
1091
  /** The embedding vector used for retrieval. Limit to 1. */
@@ -1111,6 +1133,10 @@ declare namespace gapi.client {
1111
1133
  /** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in ServingConfig.geo_search_query_detection_field_names. */
1112
1134
  geoSearchQueryDetectionFieldNames?: string[];
1113
1135
  }
1136
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec {
1137
+ /** The personalization mode of the search request. Defaults to Mode.AUTO. */
1138
+ mode?: string;
1139
+ }
1114
1140
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec {
1115
1141
  /** The condition under which query expansion should occur. Default to Condition.DISABLED. */
1116
1142
  condition?: string;
@@ -1958,6 +1984,8 @@ declare namespace gapi.client {
1958
1984
  trainingStartTime?: string;
1959
1985
  }
1960
1986
  interface GoogleCloudDiscoveryengineV1betaDataStore {
1987
+ /** Output only. Data size estimation for billing. */
1988
+ billingEstimation?: GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation;
1961
1989
  /** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
1962
1990
  contentConfig?: string;
1963
1991
  /** Output only. Timestamp the DataStore was created at. */
@@ -1985,6 +2013,20 @@ declare namespace gapi.client {
1985
2013
  /** Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. */
1986
2014
  workspaceConfig?: GoogleCloudDiscoveryengineV1betaWorkspaceConfig;
1987
2015
  }
2016
+ interface GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation {
2017
+ /** Data size for structured data in terms of bytes. */
2018
+ structuredDataSize?: string;
2019
+ /** Last updated timestamp for structured data. */
2020
+ structuredDataUpdateTime?: string;
2021
+ /** Data size for unstructured data in terms of bytes. */
2022
+ unstructuredDataSize?: string;
2023
+ /** Last updated timestamp for unstructured data. */
2024
+ unstructuredDataUpdateTime?: string;
2025
+ /** Data size for websites in terms of bytes. */
2026
+ websiteDataSize?: string;
2027
+ /** Last updated timestamp for websites. */
2028
+ websiteDataUpdateTime?: string;
2029
+ }
1988
2030
  interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
1989
2031
  /** Operation create time. */
1990
2032
  createTime?: string;
@@ -2851,6 +2893,8 @@ declare namespace gapi.client {
2851
2893
  pageToken?: string;
2852
2894
  /** Additional search parameters. For public website search only, supported values are: * `user_country_code`: string. Default empty. If set to non-empty, results are restricted or boosted based on the location provided. For example, `user_country_code: "au"` For available codes see [Country Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) * `search_type`: double. Default empty. Enables non-webpage searching depending on the value. The only valid non-default value is 1, which enables image searching. For example, `search_type: 1` */
2853
2895
  params?: {[P in string]: any};
2896
+ /** The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
2897
+ personalizationSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec;
2854
2898
  /** Raw search query. */
2855
2899
  query?: string;
2856
2900
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
@@ -2979,6 +3023,8 @@ declare namespace gapi.client {
2979
3023
  interface GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec {
2980
3024
  /** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
2981
3025
  dataStore?: string;
3026
+ /** Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) */
3027
+ filter?: string;
2982
3028
  }
2983
3029
  interface GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec {
2984
3030
  /** The embedding vector used for retrieval. Limit to 1. */
@@ -3026,6 +3072,10 @@ declare namespace gapi.client {
3026
3072
  /** Field names used for location-based filtering, where geolocation filters are detected in natural language search queries. Only valid when the FilterExtractionCondition is set to `ENABLED`. If this field is set, it overrides the field names set in ServingConfig.geo_search_query_detection_field_names. */
3027
3073
  geoSearchQueryDetectionFieldNames?: string[];
3028
3074
  }
3075
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec {
3076
+ /** The personalization mode of the search request. Defaults to Mode.AUTO. */
3077
+ mode?: string;
3078
+ }
3029
3079
  interface GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec {
3030
3080
  /** The condition under which query expansion should occur. Default to Condition.DISABLED. */
3031
3081
  condition?: string;
@@ -3284,6 +3334,8 @@ declare namespace gapi.client {
3284
3334
  name?: string;
3285
3335
  /** Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
3286
3336
  onewaySynonymsControlIds?: string[];
3337
+ /** The specification for personalization spec. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
3338
+ personalizationSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec;
3287
3339
  /** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined 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)`. */
3288
3340
  rankingExpression?: string;
3289
3341
  /** IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
@@ -3612,6 +3664,8 @@ declare namespace gapi.client {
3612
3664
  updateTime?: string;
3613
3665
  }
3614
3666
  interface GoogleCloudDiscoveryengineV1DataStore {
3667
+ /** Output only. Data size estimation for billing. */
3668
+ billingEstimation?: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation;
3615
3669
  /** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
3616
3670
  contentConfig?: string;
3617
3671
  /** Output only. Timestamp the DataStore was created at. */
@@ -3635,6 +3689,20 @@ declare namespace gapi.client {
3635
3689
  /** Config to store data store type configuration for workspace data. This must be set when DataStore.content_config is set as DataStore.ContentConfig.GOOGLE_WORKSPACE. */
3636
3690
  workspaceConfig?: GoogleCloudDiscoveryengineV1WorkspaceConfig;
3637
3691
  }
3692
+ interface GoogleCloudDiscoveryengineV1DataStoreBillingEstimation {
3693
+ /** Data size for structured data in terms of bytes. */
3694
+ structuredDataSize?: string;
3695
+ /** Last updated timestamp for structured data. */
3696
+ structuredDataUpdateTime?: string;
3697
+ /** Data size for unstructured data in terms of bytes. */
3698
+ unstructuredDataSize?: string;
3699
+ /** Last updated timestamp for unstructured data. */
3700
+ unstructuredDataUpdateTime?: string;
3701
+ /** Data size for websites in terms of bytes. */
3702
+ websiteDataSize?: string;
3703
+ /** Last updated timestamp for websites. */
3704
+ websiteDataUpdateTime?: string;
3705
+ }
3638
3706
  interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
3639
3707
  /** Operation create time. */
3640
3708
  createTime?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1beta",
3
- "version": "0.0.20240912",
3
+ "version": "0.0.20240920",
4
4
  "description": "TypeScript typings for Discovery Engine API v1beta",
5
5
  "repository": {
6
6
  "type": "git",