@maxim_mazurok/gapi.client.discoveryengine-v1alpha 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=v1alpha
12
- // Revision: 20240912
12
+ // Revision: 20240920
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -893,6 +893,8 @@ declare namespace gapi.client {
893
893
  interface GoogleCloudDiscoveryengineV1alphaDataStore {
894
894
  /** 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. */
895
895
  aclEnabled?: boolean;
896
+ /** Output only. Data size estimation for billing. */
897
+ billingEstimation?: GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation;
896
898
  /** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
897
899
  contentConfig?: string;
898
900
  /** Output only. Timestamp the DataStore was created at. */
@@ -922,6 +924,20 @@ declare namespace gapi.client {
922
924
  /** 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. */
923
925
  workspaceConfig?: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig;
924
926
  }
927
+ interface GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation {
928
+ /** Data size for structured data in terms of bytes. */
929
+ structuredDataSize?: string;
930
+ /** Last updated timestamp for structured data. */
931
+ structuredDataUpdateTime?: string;
932
+ /** Data size for unstructured data in terms of bytes. */
933
+ unstructuredDataSize?: string;
934
+ /** Last updated timestamp for unstructured data. */
935
+ unstructuredDataUpdateTime?: string;
936
+ /** Data size for websites in terms of bytes. */
937
+ websiteDataSize?: string;
938
+ /** Last updated timestamp for websites. */
939
+ websiteDataUpdateTime?: string;
940
+ }
925
941
  interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
926
942
  /** Operation create time. */
927
943
  createTime?: string;
@@ -1260,6 +1276,8 @@ declare namespace gapi.client {
1260
1276
  indexableOption?: string;
1261
1277
  /** 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. */
1262
1278
  keyPropertyType?: string;
1279
+ /** 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. */
1280
+ metatagName?: string;
1263
1281
  /** 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. */
1264
1282
  recsFilterableOption?: string;
1265
1283
  /** 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. */
@@ -2049,6 +2067,8 @@ declare namespace gapi.client {
2049
2067
  pageToken?: string;
2050
2068
  /** 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` */
2051
2069
  params?: {[P in string]: any};
2070
+ /** The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
2071
+ personalizationSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec;
2052
2072
  /** Raw search query. */
2053
2073
  query?: string;
2054
2074
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
@@ -2177,6 +2197,8 @@ declare namespace gapi.client {
2177
2197
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
2178
2198
  /** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
2179
2199
  dataStore?: string;
2200
+ /** 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) */
2201
+ filter?: string;
2180
2202
  }
2181
2203
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
2182
2204
  /** The embedding vector used for retrieval. Limit to 1. */
@@ -2224,6 +2246,10 @@ declare namespace gapi.client {
2224
2246
  /** 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. */
2225
2247
  geoSearchQueryDetectionFieldNames?: string[];
2226
2248
  }
2249
+ interface GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec {
2250
+ /** The personalization mode of the search request. Defaults to Mode.AUTO. */
2251
+ mode?: string;
2252
+ }
2227
2253
  interface GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec {
2228
2254
  /** The condition under which query expansion should occur. Default to Condition.DISABLED. */
2229
2255
  condition?: string;
@@ -2488,6 +2514,8 @@ declare namespace gapi.client {
2488
2514
  name?: string;
2489
2515
  /** 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. */
2490
2516
  onewaySynonymsControlIds?: string[];
2517
+ /** 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. */
2518
+ personalizationSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec;
2491
2519
  /** 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)`. */
2492
2520
  rankingExpression?: string;
2493
2521
  /** 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. */
@@ -2868,6 +2896,8 @@ declare namespace gapi.client {
2868
2896
  trainingStartTime?: string;
2869
2897
  }
2870
2898
  interface GoogleCloudDiscoveryengineV1betaDataStore {
2899
+ /** Output only. Data size estimation for billing. */
2900
+ billingEstimation?: GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation;
2871
2901
  /** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
2872
2902
  contentConfig?: string;
2873
2903
  /** Output only. Timestamp the DataStore was created at. */
@@ -2895,6 +2925,20 @@ declare namespace gapi.client {
2895
2925
  /** 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. */
2896
2926
  workspaceConfig?: GoogleCloudDiscoveryengineV1betaWorkspaceConfig;
2897
2927
  }
2928
+ interface GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation {
2929
+ /** Data size for structured data in terms of bytes. */
2930
+ structuredDataSize?: string;
2931
+ /** Last updated timestamp for structured data. */
2932
+ structuredDataUpdateTime?: string;
2933
+ /** Data size for unstructured data in terms of bytes. */
2934
+ unstructuredDataSize?: string;
2935
+ /** Last updated timestamp for unstructured data. */
2936
+ unstructuredDataUpdateTime?: string;
2937
+ /** Data size for websites in terms of bytes. */
2938
+ websiteDataSize?: string;
2939
+ /** Last updated timestamp for websites. */
2940
+ websiteDataUpdateTime?: string;
2941
+ }
2898
2942
  interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
2899
2943
  /** Operation create time. */
2900
2944
  createTime?: string;
@@ -3289,6 +3333,8 @@ declare namespace gapi.client {
3289
3333
  pageToken?: string;
3290
3334
  /** 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` */
3291
3335
  params?: {[P in string]: any};
3336
+ /** The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
3337
+ personalizationSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec;
3292
3338
  /** Raw search query. */
3293
3339
  query?: string;
3294
3340
  /** The query expansion specification that specifies the conditions under which query expansion occurs. */
@@ -3417,6 +3463,8 @@ declare namespace gapi.client {
3417
3463
  interface GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec {
3418
3464
  /** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
3419
3465
  dataStore?: string;
3466
+ /** 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) */
3467
+ filter?: string;
3420
3468
  }
3421
3469
  interface GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec {
3422
3470
  /** The embedding vector used for retrieval. Limit to 1. */
@@ -3464,6 +3512,10 @@ declare namespace gapi.client {
3464
3512
  /** 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. */
3465
3513
  geoSearchQueryDetectionFieldNames?: string[];
3466
3514
  }
3515
+ interface GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec {
3516
+ /** The personalization mode of the search request. Defaults to Mode.AUTO. */
3517
+ mode?: string;
3518
+ }
3467
3519
  interface GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec {
3468
3520
  /** The condition under which query expansion should occur. Default to Condition.DISABLED. */
3469
3521
  condition?: string;
@@ -3658,6 +3710,8 @@ declare namespace gapi.client {
3658
3710
  updateTime?: string;
3659
3711
  }
3660
3712
  interface GoogleCloudDiscoveryengineV1DataStore {
3713
+ /** Output only. Data size estimation for billing. */
3714
+ billingEstimation?: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation;
3661
3715
  /** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
3662
3716
  contentConfig?: string;
3663
3717
  /** Output only. Timestamp the DataStore was created at. */
@@ -3681,6 +3735,20 @@ declare namespace gapi.client {
3681
3735
  /** 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. */
3682
3736
  workspaceConfig?: GoogleCloudDiscoveryengineV1WorkspaceConfig;
3683
3737
  }
3738
+ interface GoogleCloudDiscoveryengineV1DataStoreBillingEstimation {
3739
+ /** Data size for structured data in terms of bytes. */
3740
+ structuredDataSize?: string;
3741
+ /** Last updated timestamp for structured data. */
3742
+ structuredDataUpdateTime?: string;
3743
+ /** Data size for unstructured data in terms of bytes. */
3744
+ unstructuredDataSize?: string;
3745
+ /** Last updated timestamp for unstructured data. */
3746
+ unstructuredDataUpdateTime?: string;
3747
+ /** Data size for websites in terms of bytes. */
3748
+ websiteDataSize?: string;
3749
+ /** Last updated timestamp for websites. */
3750
+ websiteDataUpdateTime?: string;
3751
+ }
3684
3752
  interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
3685
3753
  /** Operation create time. */
3686
3754
  createTime?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240912",
3
+ "version": "0.0.20240920",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",