@maxim_mazurok/gapi.client.discoveryengine-v1 0.0.20240906 → 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.
- package/index.d.ts +72 -4
- 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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240920
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -376,6 +376,8 @@ declare namespace gapi.client {
|
|
|
376
376
|
interface GoogleCloudDiscoveryengineV1alphaDataStore {
|
|
377
377
|
/** 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. */
|
|
378
378
|
aclEnabled?: boolean;
|
|
379
|
+
/** Output only. Data size estimation for billing. */
|
|
380
|
+
billingEstimation?: GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation;
|
|
379
381
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
380
382
|
contentConfig?: string;
|
|
381
383
|
/** Output only. Timestamp the DataStore was created at. */
|
|
@@ -405,6 +407,20 @@ declare namespace gapi.client {
|
|
|
405
407
|
/** 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. */
|
|
406
408
|
workspaceConfig?: GoogleCloudDiscoveryengineV1alphaWorkspaceConfig;
|
|
407
409
|
}
|
|
410
|
+
interface GoogleCloudDiscoveryengineV1alphaDataStoreBillingEstimation {
|
|
411
|
+
/** Data size for structured data in terms of bytes. */
|
|
412
|
+
structuredDataSize?: string;
|
|
413
|
+
/** Last updated timestamp for structured data. */
|
|
414
|
+
structuredDataUpdateTime?: string;
|
|
415
|
+
/** Data size for unstructured data in terms of bytes. */
|
|
416
|
+
unstructuredDataSize?: string;
|
|
417
|
+
/** Last updated timestamp for unstructured data. */
|
|
418
|
+
unstructuredDataUpdateTime?: string;
|
|
419
|
+
/** Data size for websites in terms of bytes. */
|
|
420
|
+
websiteDataSize?: string;
|
|
421
|
+
/** Last updated timestamp for websites. */
|
|
422
|
+
websiteDataUpdateTime?: string;
|
|
423
|
+
}
|
|
408
424
|
interface GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata {
|
|
409
425
|
/** Operation create time. */
|
|
410
426
|
createTime?: string;
|
|
@@ -621,6 +637,8 @@ declare namespace gapi.client {
|
|
|
621
637
|
indexableOption?: string;
|
|
622
638
|
/** 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. */
|
|
623
639
|
keyPropertyType?: string;
|
|
640
|
+
/** 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. */
|
|
641
|
+
metatagName?: string;
|
|
624
642
|
/** 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. */
|
|
625
643
|
recsFilterableOption?: string;
|
|
626
644
|
/** 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. */
|
|
@@ -950,6 +968,8 @@ declare namespace gapi.client {
|
|
|
950
968
|
pageToken?: string;
|
|
951
969
|
/** 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` */
|
|
952
970
|
params?: {[P in string]: any};
|
|
971
|
+
/** The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
|
|
972
|
+
personalizationSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec;
|
|
953
973
|
/** Raw search query. */
|
|
954
974
|
query?: string;
|
|
955
975
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
@@ -1078,6 +1098,8 @@ declare namespace gapi.client {
|
|
|
1078
1098
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec {
|
|
1079
1099
|
/** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
|
|
1080
1100
|
dataStore?: string;
|
|
1101
|
+
/** 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) */
|
|
1102
|
+
filter?: string;
|
|
1081
1103
|
}
|
|
1082
1104
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec {
|
|
1083
1105
|
/** The embedding vector used for retrieval. Limit to 1. */
|
|
@@ -1125,6 +1147,10 @@ declare namespace gapi.client {
|
|
|
1125
1147
|
/** 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. */
|
|
1126
1148
|
geoSearchQueryDetectionFieldNames?: string[];
|
|
1127
1149
|
}
|
|
1150
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec {
|
|
1151
|
+
/** The personalization mode of the search request. Defaults to Mode.AUTO. */
|
|
1152
|
+
mode?: string;
|
|
1153
|
+
}
|
|
1128
1154
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec {
|
|
1129
1155
|
/** The condition under which query expansion should occur. Default to Condition.DISABLED. */
|
|
1130
1156
|
condition?: string;
|
|
@@ -1414,9 +1440,9 @@ declare namespace gapi.client {
|
|
|
1414
1440
|
interface GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo {
|
|
1415
1441
|
/** Document resource name. */
|
|
1416
1442
|
document?: string;
|
|
1417
|
-
/** List of document contexts. */
|
|
1443
|
+
/** List of document contexts. The content will be used for Answer Generation. This is supposed to be the main content of the document that can be long and comprehensive. */
|
|
1418
1444
|
documentContexts?: GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext[];
|
|
1419
|
-
/** List of extractive answers. */
|
|
1445
|
+
/** Deprecated: This field is deprecated and will have no effect on the Answer generation. Please use document_contexts and extractive_segments fields. List of extractive answers. */
|
|
1420
1446
|
extractiveAnswers?: GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer[];
|
|
1421
1447
|
/** List of extractive segments. */
|
|
1422
1448
|
extractiveSegments?: GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment[];
|
|
@@ -1426,7 +1452,7 @@ declare namespace gapi.client {
|
|
|
1426
1452
|
uri?: string;
|
|
1427
1453
|
}
|
|
1428
1454
|
interface GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext {
|
|
1429
|
-
/** Document content. */
|
|
1455
|
+
/** Document content to be used for answer generation. */
|
|
1430
1456
|
content?: string;
|
|
1431
1457
|
/** Page identifier. */
|
|
1432
1458
|
pageIdentifier?: string;
|
|
@@ -1718,6 +1744,8 @@ declare namespace gapi.client {
|
|
|
1718
1744
|
trainingStartTime?: string;
|
|
1719
1745
|
}
|
|
1720
1746
|
interface GoogleCloudDiscoveryengineV1betaDataStore {
|
|
1747
|
+
/** Output only. Data size estimation for billing. */
|
|
1748
|
+
billingEstimation?: GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation;
|
|
1721
1749
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
1722
1750
|
contentConfig?: string;
|
|
1723
1751
|
/** Output only. Timestamp the DataStore was created at. */
|
|
@@ -1745,6 +1773,20 @@ declare namespace gapi.client {
|
|
|
1745
1773
|
/** 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. */
|
|
1746
1774
|
workspaceConfig?: GoogleCloudDiscoveryengineV1betaWorkspaceConfig;
|
|
1747
1775
|
}
|
|
1776
|
+
interface GoogleCloudDiscoveryengineV1betaDataStoreBillingEstimation {
|
|
1777
|
+
/** Data size for structured data in terms of bytes. */
|
|
1778
|
+
structuredDataSize?: string;
|
|
1779
|
+
/** Last updated timestamp for structured data. */
|
|
1780
|
+
structuredDataUpdateTime?: string;
|
|
1781
|
+
/** Data size for unstructured data in terms of bytes. */
|
|
1782
|
+
unstructuredDataSize?: string;
|
|
1783
|
+
/** Last updated timestamp for unstructured data. */
|
|
1784
|
+
unstructuredDataUpdateTime?: string;
|
|
1785
|
+
/** Data size for websites in terms of bytes. */
|
|
1786
|
+
websiteDataSize?: string;
|
|
1787
|
+
/** Last updated timestamp for websites. */
|
|
1788
|
+
websiteDataUpdateTime?: string;
|
|
1789
|
+
}
|
|
1748
1790
|
interface GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata {
|
|
1749
1791
|
/** Operation create time. */
|
|
1750
1792
|
createTime?: string;
|
|
@@ -2139,6 +2181,8 @@ declare namespace gapi.client {
|
|
|
2139
2181
|
pageToken?: string;
|
|
2140
2182
|
/** 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` */
|
|
2141
2183
|
params?: {[P in string]: any};
|
|
2184
|
+
/** The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
|
|
2185
|
+
personalizationSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec;
|
|
2142
2186
|
/** Raw search query. */
|
|
2143
2187
|
query?: string;
|
|
2144
2188
|
/** The query expansion specification that specifies the conditions under which query expansion occurs. */
|
|
@@ -2267,6 +2311,8 @@ declare namespace gapi.client {
|
|
|
2267
2311
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec {
|
|
2268
2312
|
/** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
|
|
2269
2313
|
dataStore?: string;
|
|
2314
|
+
/** 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) */
|
|
2315
|
+
filter?: string;
|
|
2270
2316
|
}
|
|
2271
2317
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec {
|
|
2272
2318
|
/** The embedding vector used for retrieval. Limit to 1. */
|
|
@@ -2314,6 +2360,10 @@ declare namespace gapi.client {
|
|
|
2314
2360
|
/** 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. */
|
|
2315
2361
|
geoSearchQueryDetectionFieldNames?: string[];
|
|
2316
2362
|
}
|
|
2363
|
+
interface GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec {
|
|
2364
|
+
/** The personalization mode of the search request. Defaults to Mode.AUTO. */
|
|
2365
|
+
mode?: string;
|
|
2366
|
+
}
|
|
2317
2367
|
interface GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec {
|
|
2318
2368
|
/** The condition under which query expansion should occur. Default to Condition.DISABLED. */
|
|
2319
2369
|
condition?: string;
|
|
@@ -2762,6 +2812,8 @@ declare namespace gapi.client {
|
|
|
2762
2812
|
trainingStartTime?: string;
|
|
2763
2813
|
}
|
|
2764
2814
|
interface GoogleCloudDiscoveryengineV1DataStore {
|
|
2815
|
+
/** Output only. Data size estimation for billing. */
|
|
2816
|
+
billingEstimation?: GoogleCloudDiscoveryengineV1DataStoreBillingEstimation;
|
|
2765
2817
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
2766
2818
|
contentConfig?: string;
|
|
2767
2819
|
/** Output only. Timestamp the DataStore was created at. */
|
|
@@ -2785,6 +2837,20 @@ declare namespace gapi.client {
|
|
|
2785
2837
|
/** 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. */
|
|
2786
2838
|
workspaceConfig?: GoogleCloudDiscoveryengineV1WorkspaceConfig;
|
|
2787
2839
|
}
|
|
2840
|
+
interface GoogleCloudDiscoveryengineV1DataStoreBillingEstimation {
|
|
2841
|
+
/** Data size for structured data in terms of bytes. */
|
|
2842
|
+
structuredDataSize?: string;
|
|
2843
|
+
/** Last updated timestamp for structured data. */
|
|
2844
|
+
structuredDataUpdateTime?: string;
|
|
2845
|
+
/** Data size for unstructured data in terms of bytes. */
|
|
2846
|
+
unstructuredDataSize?: string;
|
|
2847
|
+
/** Last updated timestamp for unstructured data. */
|
|
2848
|
+
unstructuredDataUpdateTime?: string;
|
|
2849
|
+
/** Data size for websites in terms of bytes. */
|
|
2850
|
+
websiteDataSize?: string;
|
|
2851
|
+
/** Last updated timestamp for websites. */
|
|
2852
|
+
websiteDataUpdateTime?: string;
|
|
2853
|
+
}
|
|
2788
2854
|
interface GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata {
|
|
2789
2855
|
/** Operation create time. */
|
|
2790
2856
|
createTime?: string;
|
|
@@ -3591,6 +3657,8 @@ declare namespace gapi.client {
|
|
|
3591
3657
|
interface GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec {
|
|
3592
3658
|
/** Required. Full resource name of DataStore, such as `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. */
|
|
3593
3659
|
dataStore?: string;
|
|
3660
|
+
/** 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) */
|
|
3661
|
+
filter?: string;
|
|
3594
3662
|
}
|
|
3595
3663
|
interface GoogleCloudDiscoveryengineV1SearchRequestFacetSpec {
|
|
3596
3664
|
/** Enables dynamic position for this facet. If set to true, the position of this facet among all facets in the response is determined automatically. If dynamic facets are enabled, it is ordered together. If set to false, the position of this facet in the response is the same as in the request, and it is ranked before the facets with dynamic position enable and all dynamic facets. For example, you may always want to have rating facet returned in the response, but it's not necessarily to always display the rating facet at the top. In that case, you can set enable_dynamic_position to true so that the position of rating facet in response is determined automatically. Another example, assuming you have the following facets in the request: * "rating", enable_dynamic_position = true * "price", enable_dynamic_position = false * "brands", enable_dynamic_position = false And also you have a dynamic facets enabled, which generates a facet `gender`. Then the final order of the facets in the response can be ("price", "brands", "rating", "gender") or ("price", "brands", "gender", "rating") depends on how API orders "gender" and "rating" facets. However, notice that "price" and "brands" are always ranked at first and second position because their enable_dynamic_position is false. */
|