@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250410 → 0.0.20250423
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 +183 -3
- 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:
|
|
12
|
+
// Revision: 20250423
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -405,6 +405,8 @@ declare namespace gapi.client {
|
|
|
405
405
|
interface GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest {
|
|
406
406
|
/** Optional. Specification to boost suggestions matching the condition. */
|
|
407
407
|
boostSpec?: GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequestBoostSpec;
|
|
408
|
+
/** Optional. Experiment ids for this request. */
|
|
409
|
+
experimentIds?: string[];
|
|
408
410
|
/** Indicates if tail suggestions should be returned if there are no suggestions that match the full query. Even if set to true, if there are suggestions that match the full query, those are returned and no tail suggestions are returned. */
|
|
409
411
|
includeTailSuggestions?: boolean;
|
|
410
412
|
/** Required. The typeahead input used to fetch suggestions. Maximum length is 128 characters. The query can not be empty for most of the suggestion types. If it is empty, an `INVALID_ARGUMENT` error is returned. The exception is when the suggestion_types contains only the type `RECENT_SEARCH`, the query can be an empty string. The is called "zero prefix" feature, which returns user's recently searched queries given the empty query. */
|
|
@@ -586,6 +588,28 @@ declare namespace gapi.client {
|
|
|
586
588
|
/** ID of the citation source. */
|
|
587
589
|
referenceId?: string;
|
|
588
590
|
}
|
|
591
|
+
interface GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec {
|
|
592
|
+
/** Optional. The specification for user specified classifier spec. */
|
|
593
|
+
userDefinedClassifierSpec?: GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec;
|
|
594
|
+
}
|
|
595
|
+
interface GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpecUserDefinedClassifierSpec {
|
|
596
|
+
/** Optional. Whether or not to enable and include user defined classifier. */
|
|
597
|
+
enableUserDefinedClassifier?: boolean;
|
|
598
|
+
/** Optional. The model id to be used for the user defined classifier. */
|
|
599
|
+
modelId?: string;
|
|
600
|
+
/** Optional. The preamble to be used for the user defined classifier. */
|
|
601
|
+
preamble?: string;
|
|
602
|
+
/** Optional. The seed value to be used for the user defined classifier. */
|
|
603
|
+
seed?: number;
|
|
604
|
+
/** Optional. The task marker to be used for the user defined classifier. */
|
|
605
|
+
taskMarker?: string;
|
|
606
|
+
/** Optional. The temperature value to be used for the user defined classifier. */
|
|
607
|
+
temperature?: number;
|
|
608
|
+
/** Optional. The top-k value to be used for the user defined classifier. */
|
|
609
|
+
topK?: string;
|
|
610
|
+
/** Optional. The top-p value to be used for the user defined classifier. */
|
|
611
|
+
topP?: number;
|
|
612
|
+
}
|
|
589
613
|
interface GoogleCloudDiscoveryengineV1alphaAnswerGroundingSupport {
|
|
590
614
|
/** Required. End of the claim, exclusive. */
|
|
591
615
|
endIndex?: string;
|
|
@@ -1058,12 +1082,16 @@ declare namespace gapi.client {
|
|
|
1058
1082
|
endPos?: number;
|
|
1059
1083
|
/** Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned. */
|
|
1060
1084
|
groundingCheckRequired?: boolean;
|
|
1085
|
+
/** Confidence score for the claim in the answer candidate, in the range of [0, 1]. This is set only when enable_claim_level_score is true. */
|
|
1086
|
+
score?: number;
|
|
1061
1087
|
/** Position indicating the start of the claim in the answer candidate, measured in bytes. Note that this is not measured in characters and, therefore, must be rendered in the user interface keeping in mind that some characters may take more than one byte. For example, if the claim text contains non-ASCII characters, the start and end positions vary when measured in characters (programming-language-dependent) and when measured in bytes (programming-language-independent). */
|
|
1062
1088
|
startPos?: number;
|
|
1063
1089
|
}
|
|
1064
1090
|
interface GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec {
|
|
1065
1091
|
/** The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6. */
|
|
1066
1092
|
citationThreshold?: number;
|
|
1093
|
+
/** The control flag that enables claim-level grounding score in the response. */
|
|
1094
|
+
enableClaimLevelScore?: boolean;
|
|
1067
1095
|
}
|
|
1068
1096
|
interface GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest {
|
|
1069
1097
|
/** The type specifying the requirement to check. The supported types are: * `discoveryengine.googleapis.com/media_recs/general/all/warning` * `discoveryengine.googleapis.com/media_recs/oyml/cvr/warning` * `discoveryengine.googleapis.com/media_recs/rfy/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mlt/cvr/warning` * `discoveryengine.googleapis.com/media_recs/mp/cvr/warning` * `discoveryengine.googleapis.com/media_recs/oyml/wdps/warning` * `discoveryengine.googleapis.com/media_recs/rfy/wdps/warning` * `discoveryengine.googleapis.com/media_recs/mlt/wdps/warning` */
|
|
@@ -1485,6 +1513,8 @@ declare namespace gapi.client {
|
|
|
1485
1513
|
trainingStartTime?: string;
|
|
1486
1514
|
}
|
|
1487
1515
|
interface GoogleCloudDiscoveryengineV1alphaDataConnector {
|
|
1516
|
+
/** Optional. Whether the connector will be created with an ACL config. Currently this field only affects Cloud Storage and BigQuery connectors. */
|
|
1517
|
+
aclEnabled?: boolean;
|
|
1488
1518
|
/** Optional. Action configurations to make the connector support actions. */
|
|
1489
1519
|
actionConfig?: GoogleCloudDiscoveryengineV1alphaActionConfig;
|
|
1490
1520
|
/** Optional. The connector level alert config. */
|
|
@@ -1495,6 +1525,8 @@ declare namespace gapi.client {
|
|
|
1495
1525
|
bapConfig?: GoogleCloudDiscoveryengineV1alphaBAPConfig;
|
|
1496
1526
|
/** Output only. User actions that must be completed before the connector can start syncing data. */
|
|
1497
1527
|
blockingReasons?: string[];
|
|
1528
|
+
/** Optional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED. */
|
|
1529
|
+
connectorModes?: string[];
|
|
1498
1530
|
/** Output only. The type of connector. Each source can only map to one type. For example, salesforce, confluence and jira have THIRD_PARTY connector type. It is notmutable once set by system. */
|
|
1499
1531
|
connectorType?: string;
|
|
1500
1532
|
/** Output only. Timestamp the DataConnector was created at. */
|
|
@@ -1503,6 +1535,8 @@ declare namespace gapi.client {
|
|
|
1503
1535
|
dataSource?: string;
|
|
1504
1536
|
/** Optional. Any target destinations used to connect to third-party services. */
|
|
1505
1537
|
destinationConfigs?: GoogleCloudDiscoveryengineV1alphaDestinationConfig[];
|
|
1538
|
+
/** Optional. Any params and credentials used specifically for EUA connectors. */
|
|
1539
|
+
endUserConfig?: GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig;
|
|
1506
1540
|
/** List of entities from the connected data source to ingest. */
|
|
1507
1541
|
entities?: GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity[];
|
|
1508
1542
|
/** Output only. The errors from initialization or from the latest connector run. */
|
|
@@ -1542,6 +1576,12 @@ declare namespace gapi.client {
|
|
|
1542
1576
|
/** Output only. Timestamp the DataConnector was last updated. */
|
|
1543
1577
|
updateTime?: string;
|
|
1544
1578
|
}
|
|
1579
|
+
interface GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig {
|
|
1580
|
+
/** Optional. Any additional parameters needed for EUA. */
|
|
1581
|
+
additionalParams?: {[P in string]: any};
|
|
1582
|
+
/** Optional. Any authentication parameters specific to EUA connectors. */
|
|
1583
|
+
authParams?: {[P in string]: any};
|
|
1584
|
+
}
|
|
1545
1585
|
interface GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig {
|
|
1546
1586
|
/** Optional. The ID of the Secret Manager secret used for webhook secret. */
|
|
1547
1587
|
realtimeSyncSecret?: string;
|
|
@@ -1745,7 +1785,7 @@ declare namespace gapi.client {
|
|
|
1745
1785
|
principals?: GoogleCloudDiscoveryengineV1alphaPrincipal[];
|
|
1746
1786
|
}
|
|
1747
1787
|
interface GoogleCloudDiscoveryengineV1alphaDocumentContent {
|
|
1748
|
-
/** The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml. */
|
|
1788
|
+
/** The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `text/plain` (TXT) * `application/xml` or `text/xml` (XML) * `application/json` (JSON) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (XLSX) * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) The following types are supported only if layout parser is enabled in the data store: * `image/bmp` (BMP) * `image/gif` (GIF) * `image/jpeg` (JPEG) * `image/png` (PNG) * `image/tiff` (TIFF) See https://www.iana.org/assignments/media-types/media-types.xhtml. */
|
|
1749
1789
|
mimeType?: string;
|
|
1750
1790
|
/** The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json. */
|
|
1751
1791
|
rawBytes?: string;
|
|
@@ -1812,6 +1852,12 @@ declare namespace gapi.client {
|
|
|
1812
1852
|
enableImageAnnotation?: boolean;
|
|
1813
1853
|
/** Optional. If true, the LLM based annotation is added to the table during parsing. */
|
|
1814
1854
|
enableTableAnnotation?: boolean;
|
|
1855
|
+
/** Optional. List of HTML classes to exclude from the parsed content. */
|
|
1856
|
+
excludeHtmlClasses?: string[];
|
|
1857
|
+
/** Optional. List of HTML elements to exclude from the parsed content. */
|
|
1858
|
+
excludeHtmlElements?: string[];
|
|
1859
|
+
/** Optional. List of HTML ids to exclude from the parsed content. */
|
|
1860
|
+
excludeHtmlIds?: string[];
|
|
1815
1861
|
}
|
|
1816
1862
|
interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
1817
1863
|
/** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
|
|
@@ -1894,6 +1940,8 @@ declare namespace gapi.client {
|
|
|
1894
1940
|
companyName?: string;
|
|
1895
1941
|
}
|
|
1896
1942
|
interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig {
|
|
1943
|
+
/** Optional. Additional engine features config. */
|
|
1944
|
+
engineFeaturesConfig?: GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig;
|
|
1897
1945
|
/** The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` => `ctr` `others-you-may-like` => `ctr` */
|
|
1898
1946
|
optimizationObjective?: string;
|
|
1899
1947
|
/** Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). */
|
|
@@ -1903,12 +1951,26 @@ declare namespace gapi.client {
|
|
|
1903
1951
|
/** Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`. */
|
|
1904
1952
|
type?: string;
|
|
1905
1953
|
}
|
|
1954
|
+
interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig {
|
|
1955
|
+
/** Most popular engine feature config. */
|
|
1956
|
+
mostPopularConfig?: GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig;
|
|
1957
|
+
/** Recommended for you engine feature config. */
|
|
1958
|
+
recommendedForYouConfig?: GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig;
|
|
1959
|
+
}
|
|
1960
|
+
interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig {
|
|
1961
|
+
/** The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine. */
|
|
1962
|
+
timeWindowDays?: string;
|
|
1963
|
+
}
|
|
1906
1964
|
interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig {
|
|
1907
1965
|
/** Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`. */
|
|
1908
1966
|
targetField?: string;
|
|
1909
1967
|
/** Required. The threshold to be applied to the target (e.g., 0.5). */
|
|
1910
1968
|
targetFieldValueFloat?: number;
|
|
1911
1969
|
}
|
|
1970
|
+
interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig {
|
|
1971
|
+
/** The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`. */
|
|
1972
|
+
contextEventType?: string;
|
|
1973
|
+
}
|
|
1912
1974
|
interface GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata {
|
|
1913
1975
|
/** Output only. The state of data requirements for this engine: `DATA_OK` and `DATA_ERROR`. Engine cannot be trained if the data is in `DATA_ERROR` state. Engine can have `DATA_ERROR` state even if serving state is `ACTIVE`: engines were trained successfully before, but cannot be refreshed because the underlying engine no longer has sufficient data for training. */
|
|
1914
1976
|
dataState?: string;
|
|
@@ -1991,12 +2053,18 @@ declare namespace gapi.client {
|
|
|
1991
2053
|
interface GoogleCloudDiscoveryengineV1alphaFactChunk {
|
|
1992
2054
|
/** Text content of the fact chunk. Can be at most 10K characters long. */
|
|
1993
2055
|
chunkText?: string;
|
|
2056
|
+
/** The domain of the source. */
|
|
2057
|
+
domain?: string;
|
|
1994
2058
|
/** The index of this chunk. Currently, only used for the streaming mode. */
|
|
1995
2059
|
index?: number;
|
|
1996
2060
|
/** Source from which this fact chunk was retrieved. If it was retrieved from the GroundingFacts provided in the request then this field will contain the index of the specific fact from which this chunk was retrieved. */
|
|
1997
2061
|
source?: string;
|
|
1998
2062
|
/** More fine-grained information for the source reference. */
|
|
1999
2063
|
sourceMetadata?: {[P in string]: string};
|
|
2064
|
+
/** The title of the source. */
|
|
2065
|
+
title?: string;
|
|
2066
|
+
/** The URI of the source. */
|
|
2067
|
+
uri?: string;
|
|
2000
2068
|
}
|
|
2001
2069
|
interface GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse {
|
|
2002
2070
|
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
@@ -2069,6 +2137,8 @@ declare namespace gapi.client {
|
|
|
2069
2137
|
interface GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse {
|
|
2070
2138
|
/** The app name of the associated Connector. */
|
|
2071
2139
|
app?: string;
|
|
2140
|
+
/** The authorization uri for the data connector. */
|
|
2141
|
+
authorizationUri?: string;
|
|
2072
2142
|
/** The client id of the associated Connector. */
|
|
2073
2143
|
clientId?: string;
|
|
2074
2144
|
/** The instance name of the associated Connector. */
|
|
@@ -3516,6 +3586,8 @@ declare namespace gapi.client {
|
|
|
3516
3586
|
summary?: string;
|
|
3517
3587
|
}
|
|
3518
3588
|
interface GoogleCloudDiscoveryengineV1alphaServingConfig {
|
|
3589
|
+
/** Optional. The specification for answer generation. */
|
|
3590
|
+
answerGenerationSpec?: GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec;
|
|
3519
3591
|
/** Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls. */
|
|
3520
3592
|
boostControlIds?: string[];
|
|
3521
3593
|
/** Output only. ServingConfig created timestamp. */
|
|
@@ -3970,8 +4042,10 @@ declare namespace gapi.client {
|
|
|
3970
4042
|
workforceIdentityPoolProvider?: string;
|
|
3971
4043
|
}
|
|
3972
4044
|
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings {
|
|
3973
|
-
/** Whether or not the Google search grounding toggle is shown. */
|
|
4045
|
+
/** Whether or not the Google search grounding toggle is shown. Deprecated. Use web_grounding_type instead. */
|
|
3974
4046
|
googleSearchGroundingEnabled?: boolean;
|
|
4047
|
+
/** Optional. The type of web grounding to use. */
|
|
4048
|
+
webGroundingType?: string;
|
|
3975
4049
|
}
|
|
3976
4050
|
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
|
|
3977
4051
|
/** Output only. The icon link of the connector source. */
|
|
@@ -4060,6 +4134,8 @@ declare namespace gapi.client {
|
|
|
4060
4134
|
disableUserEventsCollection?: boolean;
|
|
4061
4135
|
/** Whether or not to enable autocomplete. */
|
|
4062
4136
|
enableAutocomplete?: boolean;
|
|
4137
|
+
/** Optional. If set to true, the widget will enable people search. */
|
|
4138
|
+
enablePeopleSearch?: boolean;
|
|
4063
4139
|
/** Turn on or off collecting the search result quality feedback from end users. */
|
|
4064
4140
|
enableQualityFeedback?: boolean;
|
|
4065
4141
|
/** Whether to enable safe search. */
|
|
@@ -4107,6 +4183,28 @@ declare namespace gapi.client {
|
|
|
4107
4183
|
/** The Google Workspace data source. */
|
|
4108
4184
|
type?: string;
|
|
4109
4185
|
}
|
|
4186
|
+
interface GoogleCloudDiscoveryengineV1AnswerGenerationSpec {
|
|
4187
|
+
/** Optional. The specification for user specified classifier spec. */
|
|
4188
|
+
userDefinedClassifierSpec?: GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec;
|
|
4189
|
+
}
|
|
4190
|
+
interface GoogleCloudDiscoveryengineV1AnswerGenerationSpecUserDefinedClassifierSpec {
|
|
4191
|
+
/** Optional. Whether or not to enable and include user defined classifier. */
|
|
4192
|
+
enableUserDefinedClassifier?: boolean;
|
|
4193
|
+
/** Optional. The model id to be used for the user defined classifier. */
|
|
4194
|
+
modelId?: string;
|
|
4195
|
+
/** Optional. The preamble to be used for the user defined classifier. */
|
|
4196
|
+
preamble?: string;
|
|
4197
|
+
/** Optional. The seed value to be used for the user defined classifier. */
|
|
4198
|
+
seed?: number;
|
|
4199
|
+
/** Optional. The task marker to be used for the user defined classifier. */
|
|
4200
|
+
taskMarker?: string;
|
|
4201
|
+
/** Optional. The temperature value to be used for the user defined classifier. */
|
|
4202
|
+
temperature?: number;
|
|
4203
|
+
/** Optional. The top-k value to be used for the user defined classifier. */
|
|
4204
|
+
topK?: string;
|
|
4205
|
+
/** Optional. The top-p value to be used for the user defined classifier. */
|
|
4206
|
+
topP?: number;
|
|
4207
|
+
}
|
|
4110
4208
|
interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
|
|
4111
4209
|
/** Operation create time. */
|
|
4112
4210
|
createTime?: string;
|
|
@@ -4429,6 +4527,12 @@ declare namespace gapi.client {
|
|
|
4429
4527
|
enableImageAnnotation?: boolean;
|
|
4430
4528
|
/** Optional. If true, the LLM based annotation is added to the table during parsing. */
|
|
4431
4529
|
enableTableAnnotation?: boolean;
|
|
4530
|
+
/** Optional. List of HTML classes to exclude from the parsed content. */
|
|
4531
|
+
excludeHtmlClasses?: string[];
|
|
4532
|
+
/** Optional. List of HTML elements to exclude from the parsed content. */
|
|
4533
|
+
excludeHtmlElements?: string[];
|
|
4534
|
+
/** Optional. List of HTML ids to exclude from the parsed content. */
|
|
4535
|
+
excludeHtmlIds?: string[];
|
|
4432
4536
|
}
|
|
4433
4537
|
interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
4434
4538
|
/** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
|
|
@@ -4460,6 +4564,8 @@ declare namespace gapi.client {
|
|
|
4460
4564
|
displayName?: string;
|
|
4461
4565
|
/** The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine. */
|
|
4462
4566
|
industryVertical?: string;
|
|
4567
|
+
/** Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. */
|
|
4568
|
+
mediaRecommendationEngineConfig?: GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig;
|
|
4463
4569
|
/** Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
4464
4570
|
name?: string;
|
|
4465
4571
|
/** Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. */
|
|
@@ -4495,6 +4601,38 @@ declare namespace gapi.client {
|
|
|
4495
4601
|
/** The name of the company, business or entity that is associated with the engine. Setting this may help improve LLM related features. */
|
|
4496
4602
|
companyName?: string;
|
|
4497
4603
|
}
|
|
4604
|
+
interface GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig {
|
|
4605
|
+
/** Optional. Additional engine features config. */
|
|
4606
|
+
engineFeaturesConfig?: GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig;
|
|
4607
|
+
/** The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` => `ctr` `others-you-may-like` => `ctr` */
|
|
4608
|
+
optimizationObjective?: string;
|
|
4609
|
+
/** Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). */
|
|
4610
|
+
optimizationObjectiveConfig?: GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig;
|
|
4611
|
+
/** The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before. */
|
|
4612
|
+
trainingState?: string;
|
|
4613
|
+
/** Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`. */
|
|
4614
|
+
type?: string;
|
|
4615
|
+
}
|
|
4616
|
+
interface GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigEngineFeaturesConfig {
|
|
4617
|
+
/** Most popular engine feature config. */
|
|
4618
|
+
mostPopularConfig?: GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig;
|
|
4619
|
+
/** Recommended for you engine feature config. */
|
|
4620
|
+
recommendedForYouConfig?: GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig;
|
|
4621
|
+
}
|
|
4622
|
+
interface GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigMostPopularFeatureConfig {
|
|
4623
|
+
/** The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine. */
|
|
4624
|
+
timeWindowDays?: string;
|
|
4625
|
+
}
|
|
4626
|
+
interface GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig {
|
|
4627
|
+
/** Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`. */
|
|
4628
|
+
targetField?: string;
|
|
4629
|
+
/** Required. The threshold to be applied to the target (e.g., 0.5). */
|
|
4630
|
+
targetFieldValueFloat?: number;
|
|
4631
|
+
}
|
|
4632
|
+
interface GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig {
|
|
4633
|
+
/** The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`. */
|
|
4634
|
+
contextEventType?: string;
|
|
4635
|
+
}
|
|
4498
4636
|
interface GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig {
|
|
4499
4637
|
/** The add-on that this search engine enables. */
|
|
4500
4638
|
searchAddOns?: string[];
|
|
@@ -5444,6 +5582,12 @@ declare namespace gapi.client {
|
|
|
5444
5582
|
enableImageAnnotation?: boolean;
|
|
5445
5583
|
/** Optional. If true, the LLM based annotation is added to the table during parsing. */
|
|
5446
5584
|
enableTableAnnotation?: boolean;
|
|
5585
|
+
/** Optional. List of HTML classes to exclude from the parsed content. */
|
|
5586
|
+
excludeHtmlClasses?: string[];
|
|
5587
|
+
/** Optional. List of HTML elements to exclude from the parsed content. */
|
|
5588
|
+
excludeHtmlElements?: string[];
|
|
5589
|
+
/** Optional. List of HTML ids to exclude from the parsed content. */
|
|
5590
|
+
excludeHtmlIds?: string[];
|
|
5447
5591
|
}
|
|
5448
5592
|
interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
|
|
5449
5593
|
/** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
|
|
@@ -5475,6 +5619,8 @@ declare namespace gapi.client {
|
|
|
5475
5619
|
displayName?: string;
|
|
5476
5620
|
/** The industry vertical that the engine registers. The restriction of the Engine industry vertical is based on DataStore: Vertical on Engine has to match vertical of the DataStore linked to the engine. */
|
|
5477
5621
|
industryVertical?: string;
|
|
5622
|
+
/** Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. */
|
|
5623
|
+
mediaRecommendationEngineConfig?: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig;
|
|
5478
5624
|
/** Immutable. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
5479
5625
|
name?: string;
|
|
5480
5626
|
/** Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. */
|
|
@@ -5510,6 +5656,38 @@ declare namespace gapi.client {
|
|
|
5510
5656
|
/** The name of the company, business or entity that is associated with the engine. Setting this may help improve LLM related features. */
|
|
5511
5657
|
companyName?: string;
|
|
5512
5658
|
}
|
|
5659
|
+
interface GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig {
|
|
5660
|
+
/** Optional. Additional engine features config. */
|
|
5661
|
+
engineFeaturesConfig?: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig;
|
|
5662
|
+
/** The optimization objective. e.g., `cvr`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `ctr`, `cvr`. If not specified, we choose default based on engine type. Default depends on type of recommendation: `recommended-for-you` => `ctr` `others-you-may-like` => `ctr` */
|
|
5663
|
+
optimizationObjective?: string;
|
|
5664
|
+
/** Name and value of the custom threshold for cvr optimization_objective. For target_field `watch-time`, target_field_value must be an integer value indicating the media progress time in seconds between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field `watch-percentage`, the target_field_value must be a valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5). */
|
|
5665
|
+
optimizationObjectiveConfig?: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig;
|
|
5666
|
+
/** The training state that the engine is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train engine in order to control cost. If not specified: the default value for `CreateEngine` method is `TRAINING`. The default value for `UpdateEngine` method is to keep the state the same as before. */
|
|
5667
|
+
trainingState?: string;
|
|
5668
|
+
/** Required. The type of engine. e.g., `recommended-for-you`. This field together with optimization_objective describe engine metadata to use to control engine training and serving. Currently supported values: `recommended-for-you`, `others-you-may-like`, `more-like-this`, `most-popular-items`. */
|
|
5669
|
+
type?: string;
|
|
5670
|
+
}
|
|
5671
|
+
interface GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigEngineFeaturesConfig {
|
|
5672
|
+
/** Most popular engine feature config. */
|
|
5673
|
+
mostPopularConfig?: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig;
|
|
5674
|
+
/** Recommended for you engine feature config. */
|
|
5675
|
+
recommendedForYouConfig?: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig;
|
|
5676
|
+
}
|
|
5677
|
+
interface GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigMostPopularFeatureConfig {
|
|
5678
|
+
/** The time window of which the engine is queried at training and prediction time. Positive integers only. The value translates to the last X days of events. Currently required for the `most-popular-items` engine. */
|
|
5679
|
+
timeWindowDays?: string;
|
|
5680
|
+
}
|
|
5681
|
+
interface GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigOptimizationObjectiveConfig {
|
|
5682
|
+
/** Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`. */
|
|
5683
|
+
targetField?: string;
|
|
5684
|
+
/** Required. The threshold to be applied to the target (e.g., 0.5). */
|
|
5685
|
+
targetFieldValueFloat?: number;
|
|
5686
|
+
}
|
|
5687
|
+
interface GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfigRecommendedForYouFeatureConfig {
|
|
5688
|
+
/** The type of event with which the engine is queried at prediction time. If set to `generic`, only `view-item`, `media-play`,and `media-complete` will be used as `context-event` in engine training. If set to `view-home-page`, `view-home-page` will also be used as `context-events` in addition to `view-item`, `media-play`, and `media-complete`. Currently supported for the `recommended-for-you` engine. Currently supported values: `view-home-page`, `generic`. */
|
|
5689
|
+
contextEventType?: string;
|
|
5690
|
+
}
|
|
5513
5691
|
interface GoogleCloudDiscoveryengineV1EngineSearchEngineConfig {
|
|
5514
5692
|
/** The add-on that this search engine enables. */
|
|
5515
5693
|
searchAddOns?: string[];
|
|
@@ -5764,6 +5942,8 @@ declare namespace gapi.client {
|
|
|
5764
5942
|
version?: string;
|
|
5765
5943
|
}
|
|
5766
5944
|
interface GoogleCloudDiscoveryengineV1ServingConfig {
|
|
5945
|
+
/** Optional. The specification for answer generation. */
|
|
5946
|
+
answerGenerationSpec?: GoogleCloudDiscoveryengineV1AnswerGenerationSpec;
|
|
5767
5947
|
/** Boost controls to use in serving path. All triggered boost controls will be applied. Boost controls must be in the same data store as the serving config. Maximum of 20 boost controls. */
|
|
5768
5948
|
boostControlIds?: string[];
|
|
5769
5949
|
/** Output only. ServingConfig created timestamp. */
|