@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250401 → 0.0.20250419

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 +242 -9
  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: 20250401
12
+ // Revision: 20250419
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` */
@@ -1096,10 +1124,14 @@ declare namespace gapi.client {
1096
1124
  value?: GoogleMonitoringV3TypedValue;
1097
1125
  }
1098
1126
  interface GoogleCloudDiscoveryengineV1alphaChunk {
1127
+ /** Output only. Annotation contents if the current chunk contains annotations. */
1128
+ annotationContents?: string[];
1099
1129
  /** Output only. Metadata of the current chunk. */
1100
1130
  chunkMetadata?: GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata;
1101
1131
  /** Content is a string from a document (parsed content). */
1102
1132
  content?: string;
1133
+ /** Output only. Image Data URLs if the current chunk contains images. Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:, */
1134
+ dataUrls?: string[];
1103
1135
  /** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
1104
1136
  derivedStructData?: {[P in string]: any};
1105
1137
  /** Metadata of the document from the current chunk. */
@@ -1212,7 +1244,7 @@ declare namespace gapi.client {
1212
1244
  interface GoogleCloudDiscoveryengineV1alphaCondition {
1213
1245
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
1214
1246
  activeTimeRange?: GoogleCloudDiscoveryengineV1alphaConditionTimeRange[];
1215
- /** Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case. */
1247
+ /** Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. Only supported for Basic Site Search promotion serving controls. */
1216
1248
  queryRegex?: string;
1217
1249
  /** Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set. Maximum of 10 query terms. */
1218
1250
  queryTerms?: GoogleCloudDiscoveryengineV1alphaConditionQueryTerm[];
@@ -1481,6 +1513,8 @@ declare namespace gapi.client {
1481
1513
  trainingStartTime?: string;
1482
1514
  }
1483
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;
1484
1518
  /** Optional. Action configurations to make the connector support actions. */
1485
1519
  actionConfig?: GoogleCloudDiscoveryengineV1alphaActionConfig;
1486
1520
  /** Optional. The connector level alert config. */
@@ -1491,6 +1525,8 @@ declare namespace gapi.client {
1491
1525
  bapConfig?: GoogleCloudDiscoveryengineV1alphaBAPConfig;
1492
1526
  /** Output only. User actions that must be completed before the connector can start syncing data. */
1493
1527
  blockingReasons?: string[];
1528
+ /** Optional. The modes enabled for this connector. Default state is CONNECTOR_MODE_UNSPECIFIED. */
1529
+ connectorModes?: string[];
1494
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. */
1495
1531
  connectorType?: string;
1496
1532
  /** Output only. Timestamp the DataConnector was created at. */
@@ -1499,6 +1535,8 @@ declare namespace gapi.client {
1499
1535
  dataSource?: string;
1500
1536
  /** Optional. Any target destinations used to connect to third-party services. */
1501
1537
  destinationConfigs?: GoogleCloudDiscoveryengineV1alphaDestinationConfig[];
1538
+ /** Optional. Any params and credentials used specifically for EUA connectors. */
1539
+ endUserConfig?: GoogleCloudDiscoveryengineV1alphaDataConnectorEndUserConfig;
1502
1540
  /** List of entities from the connected data source to ingest. */
1503
1541
  entities?: GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity[];
1504
1542
  /** Output only. The errors from initialization or from the latest connector run. */
@@ -1538,6 +1576,12 @@ declare namespace gapi.client {
1538
1576
  /** Output only. Timestamp the DataConnector was last updated. */
1539
1577
  updateTime?: string;
1540
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
+ }
1541
1585
  interface GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig {
1542
1586
  /** Optional. The ID of the Secret Manager secret used for webhook secret. */
1543
1587
  realtimeSyncSecret?: string;
@@ -1709,7 +1753,7 @@ declare namespace gapi.client {
1709
1753
  interface GoogleCloudDiscoveryengineV1alphaDocument {
1710
1754
  /** Access control information for the document. */
1711
1755
  aclInfo?: GoogleCloudDiscoveryengineV1alphaDocumentAclInfo;
1712
- /** The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store. */
1756
+ /** The unstructured data linked to this document. Content can only be set and must be set if this document is under a `CONTENT_REQUIRED` data store. */
1713
1757
  content?: GoogleCloudDiscoveryengineV1alphaDocumentContent;
1714
1758
  /** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
1715
1759
  derivedStructData?: {[P in string]: any};
@@ -1741,7 +1785,7 @@ declare namespace gapi.client {
1741
1785
  principals?: GoogleCloudDiscoveryengineV1alphaPrincipal[];
1742
1786
  }
1743
1787
  interface GoogleCloudDiscoveryengineV1alphaDocumentContent {
1744
- /** The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) 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. */
1745
1789
  mimeType?: string;
1746
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. */
1747
1791
  rawBytes?: string;
@@ -1808,6 +1852,12 @@ declare namespace gapi.client {
1808
1852
  enableImageAnnotation?: boolean;
1809
1853
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
1810
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[];
1811
1861
  }
1812
1862
  interface GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig {
1813
1863
  /** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
@@ -1890,6 +1940,8 @@ declare namespace gapi.client {
1890
1940
  companyName?: string;
1891
1941
  }
1892
1942
  interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig {
1943
+ /** Optional. Additional engine features config. */
1944
+ engineFeaturesConfig?: GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigEngineFeaturesConfig;
1893
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` */
1894
1946
  optimizationObjective?: string;
1895
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). */
@@ -1899,12 +1951,26 @@ declare namespace gapi.client {
1899
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`. */
1900
1952
  type?: string;
1901
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
+ }
1902
1964
  interface GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig {
1903
1965
  /** Required. The name of the field to target. Currently supported values: `watch-percentage`, `watch-time`. */
1904
1966
  targetField?: string;
1905
1967
  /** Required. The threshold to be applied to the target (e.g., 0.5). */
1906
1968
  targetFieldValueFloat?: number;
1907
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
+ }
1908
1974
  interface GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata {
1909
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. */
1910
1976
  dataState?: string;
@@ -1987,12 +2053,18 @@ declare namespace gapi.client {
1987
2053
  interface GoogleCloudDiscoveryengineV1alphaFactChunk {
1988
2054
  /** Text content of the fact chunk. Can be at most 10K characters long. */
1989
2055
  chunkText?: string;
2056
+ /** The domain of the source. */
2057
+ domain?: string;
1990
2058
  /** The index of this chunk. Currently, only used for the streaming mode. */
1991
2059
  index?: number;
1992
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. */
1993
2061
  source?: string;
1994
2062
  /** More fine-grained information for the source reference. */
1995
2063
  sourceMetadata?: {[P in string]: string};
2064
+ /** The title of the source. */
2065
+ title?: string;
2066
+ /** The URI of the source. */
2067
+ uri?: string;
1996
2068
  }
1997
2069
  interface GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse {
1998
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. */
@@ -2062,6 +2134,20 @@ declare namespace gapi.client {
2062
2134
  /** Required. Cloud Storage URIs to input files. Each URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`). */
2063
2135
  inputUris?: string[];
2064
2136
  }
2137
+ interface GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse {
2138
+ /** The app name of the associated Connector. */
2139
+ app?: string;
2140
+ /** The authorization uri for the data connector. */
2141
+ authorizationUri?: string;
2142
+ /** The client id of the associated Connector. */
2143
+ clientId?: string;
2144
+ /** The instance name of the associated Connector. */
2145
+ instance?: string;
2146
+ /** The redirect url of the associated Connector. */
2147
+ redirectUri?: string;
2148
+ /** The tenant id of the associated Connector. */
2149
+ tenantId?: string;
2150
+ }
2065
2151
  interface GoogleCloudDiscoveryengineV1alphaGetSessionRequest {
2066
2152
  /** Optional. If set to true, the full session including all answer details will be returned. */
2067
2153
  includeAnswerDetails?: boolean;
@@ -2985,6 +3071,8 @@ declare namespace gapi.client {
2985
3071
  interface GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion {
2986
3072
  /** Optional. The Promotion description. Maximum length: 200 characters. */
2987
3073
  description?: string;
3074
+ /** Optional. The Document the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri. */
3075
+ document?: string;
2988
3076
  /** Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only. */
2989
3077
  enabled?: boolean;
2990
3078
  /** Optional. The promotion thumbnail image url. */
@@ -3498,6 +3586,8 @@ declare namespace gapi.client {
3498
3586
  summary?: string;
3499
3587
  }
3500
3588
  interface GoogleCloudDiscoveryengineV1alphaServingConfig {
3589
+ /** Optional. The specification for answer generation. */
3590
+ answerGenerationSpec?: GoogleCloudDiscoveryengineV1alphaAnswerGenerationSpec;
3501
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. */
3502
3592
  boostControlIds?: string[];
3503
3593
  /** Output only. ServingConfig created timestamp. */
@@ -3952,8 +4042,10 @@ declare namespace gapi.client {
3952
4042
  workforceIdentityPoolProvider?: string;
3953
4043
  }
3954
4044
  interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings {
3955
- /** 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. */
3956
4046
  googleSearchGroundingEnabled?: boolean;
4047
+ /** Optional. The type of web grounding to use. */
4048
+ webGroundingType?: string;
3957
4049
  }
3958
4050
  interface GoogleCloudDiscoveryengineV1alphaWidgetConfigCollectionComponent {
3959
4051
  /** Output only. The icon link of the connector source. */
@@ -4042,6 +4134,8 @@ declare namespace gapi.client {
4042
4134
  disableUserEventsCollection?: boolean;
4043
4135
  /** Whether or not to enable autocomplete. */
4044
4136
  enableAutocomplete?: boolean;
4137
+ /** Optional. If set to true, the widget will enable people search. */
4138
+ enablePeopleSearch?: boolean;
4045
4139
  /** Turn on or off collecting the search result quality feedback from end users. */
4046
4140
  enableQualityFeedback?: boolean;
4047
4141
  /** Whether to enable safe search. */
@@ -4089,6 +4183,28 @@ declare namespace gapi.client {
4089
4183
  /** The Google Workspace data source. */
4090
4184
  type?: string;
4091
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
+ }
4092
4208
  interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
4093
4209
  /** Operation create time. */
4094
4210
  createTime?: string;
@@ -4136,7 +4252,7 @@ declare namespace gapi.client {
4136
4252
  interface GoogleCloudDiscoveryengineV1betaCondition {
4137
4253
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
4138
4254
  activeTimeRange?: GoogleCloudDiscoveryengineV1betaConditionTimeRange[];
4139
- /** Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case. */
4255
+ /** Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. Only supported for Basic Site Search promotion serving controls. */
4140
4256
  queryRegex?: string;
4141
4257
  /** Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set. Maximum of 10 query terms. */
4142
4258
  queryTerms?: GoogleCloudDiscoveryengineV1betaConditionQueryTerm[];
@@ -4411,6 +4527,12 @@ declare namespace gapi.client {
4411
4527
  enableImageAnnotation?: boolean;
4412
4528
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
4413
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[];
4414
4536
  }
4415
4537
  interface GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig {
4416
4538
  /** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
@@ -4442,6 +4564,8 @@ declare namespace gapi.client {
4442
4564
  displayName?: string;
4443
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. */
4444
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;
4445
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. */
4446
4570
  name?: string;
4447
4571
  /** Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. */
@@ -4477,6 +4601,38 @@ declare namespace gapi.client {
4477
4601
  /** The name of the company, business or entity that is associated with the engine. Setting this may help improve LLM related features. */
4478
4602
  companyName?: string;
4479
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
+ }
4480
4636
  interface GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig {
4481
4637
  /** The add-on that this search engine enables. */
4482
4638
  searchAddOns?: string[];
@@ -4759,6 +4915,8 @@ declare namespace gapi.client {
4759
4915
  interface GoogleCloudDiscoveryengineV1betaSearchLinkPromotion {
4760
4916
  /** Optional. The Promotion description. Maximum length: 200 characters. */
4761
4917
  description?: string;
4918
+ /** Optional. The Document the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri. */
4919
+ document?: string;
4762
4920
  /** Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only. */
4763
4921
  enabled?: boolean;
4764
4922
  /** Optional. The promotion thumbnail image url. */
@@ -5162,7 +5320,7 @@ declare namespace gapi.client {
5162
5320
  interface GoogleCloudDiscoveryengineV1Condition {
5163
5321
  /** Range of time(s) specifying when condition is active. Maximum of 10 time ranges. */
5164
5322
  activeTimeRange?: GoogleCloudDiscoveryengineV1ConditionTimeRange[];
5165
- /** Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case. */
5323
+ /** Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. Only supported for Basic Site Search promotion serving controls. */
5166
5324
  queryRegex?: string;
5167
5325
  /** Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set. Maximum of 10 query terms. */
5168
5326
  queryTerms?: GoogleCloudDiscoveryengineV1ConditionQueryTerm[];
@@ -5424,6 +5582,12 @@ declare namespace gapi.client {
5424
5582
  enableImageAnnotation?: boolean;
5425
5583
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
5426
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[];
5427
5591
  }
5428
5592
  interface GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig {
5429
5593
  /** [DEPRECATED] This field is deprecated. To use the additional enhanced document elements processing, please switch to `layout_parsing_config`. */
@@ -5455,6 +5619,8 @@ declare namespace gapi.client {
5455
5619
  displayName?: string;
5456
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. */
5457
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;
5458
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. */
5459
5625
  name?: string;
5460
5626
  /** Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. */
@@ -5490,6 +5656,38 @@ declare namespace gapi.client {
5490
5656
  /** The name of the company, business or entity that is associated with the engine. Setting this may help improve LLM related features. */
5491
5657
  companyName?: string;
5492
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
+ }
5493
5691
  interface GoogleCloudDiscoveryengineV1EngineSearchEngineConfig {
5494
5692
  /** The add-on that this search engine enables. */
5495
5693
  searchAddOns?: string[];
@@ -5664,6 +5862,8 @@ declare namespace gapi.client {
5664
5862
  interface GoogleCloudDiscoveryengineV1SearchLinkPromotion {
5665
5863
  /** Optional. The Promotion description. Maximum length: 200 characters. */
5666
5864
  description?: string;
5865
+ /** Optional. The Document the user wants to promote. For site search, leave unset and only populate uri. Can be set along with uri. */
5866
+ document?: string;
5667
5867
  /** Optional. The enabled promotion will be returned for any serving configs associated with the parent of the control this promotion is attached to. This flag is used for basic site search only. */
5668
5868
  enabled?: boolean;
5669
5869
  /** Optional. The promotion thumbnail image url. */
@@ -5742,6 +5942,8 @@ declare namespace gapi.client {
5742
5942
  version?: string;
5743
5943
  }
5744
5944
  interface GoogleCloudDiscoveryengineV1ServingConfig {
5945
+ /** Optional. The specification for answer generation. */
5946
+ answerGenerationSpec?: GoogleCloudDiscoveryengineV1AnswerGenerationSpec;
5745
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. */
5746
5948
  boostControlIds?: string[];
5747
5949
  /** Output only. ServingConfig created timestamp. */
@@ -6322,6 +6524,33 @@ declare namespace gapi.client {
6322
6524
  }): Request<GoogleLongrunningListOperationsResponse>;
6323
6525
  }
6324
6526
  interface DataConnectorResource {
6527
+ /** Get the secret for the associated connector. */
6528
+ getConnectorSecret(request?: {
6529
+ /** V1 error format. */
6530
+ '$.xgafv'?: string;
6531
+ /** OAuth access token. */
6532
+ access_token?: string;
6533
+ /** Data format for response. */
6534
+ alt?: string;
6535
+ /** JSONP */
6536
+ callback?: string;
6537
+ /** Selector specifying which fields to include in a partial response. */
6538
+ fields?: string;
6539
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6540
+ key?: string;
6541
+ /** Required. The full resource name of the associated data connector. */
6542
+ name: string;
6543
+ /** OAuth 2.0 token for the current user. */
6544
+ oauth_token?: string;
6545
+ /** Returns response with indentations and line breaks. */
6546
+ prettyPrint?: boolean;
6547
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6548
+ quotaUser?: string;
6549
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6550
+ upload_protocol?: string;
6551
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6552
+ uploadType?: string;
6553
+ }): Request<GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse>;
6325
6554
  /** Starts an immediate synchronization process for a DataConnector. Third Party Connector Users must specify which entities should be synced. FHIR Connectors must provide a timestamp to indicate the point in time from which data should be synced. */
6326
6555
  startConnectorRun(request: {
6327
6556
  /** V1 error format. */
@@ -6572,6 +6801,8 @@ declare namespace gapi.client {
6572
6801
  callback?: string;
6573
6802
  /** Selector specifying which fields to include in a partial response. */
6574
6803
  fields?: string;
6804
+ /** Optional. Specifies config for IMAGE_BYTES. */
6805
+ imageId?: string;
6575
6806
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6576
6807
  key?: string;
6577
6808
  /** Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned. */
@@ -12379,7 +12610,7 @@ declare namespace gapi.client {
12379
12610
  prettyPrint?: boolean;
12380
12611
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12381
12612
  quotaUser?: string;
12382
- /** Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - destination_configs - blocking_reasons - sync_mode Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error. */
12613
+ /** Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error. */
12383
12614
  updateMask?: string;
12384
12615
  /** Upload protocol for media (e.g. "raw", "multipart"). */
12385
12616
  upload_protocol?: string;
@@ -12410,7 +12641,7 @@ declare namespace gapi.client {
12410
12641
  prettyPrint?: boolean;
12411
12642
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
12412
12643
  quotaUser?: string;
12413
- /** Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - destination_configs - blocking_reasons - sync_mode Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error. */
12644
+ /** Indicates which fields in the provided DataConnector to update. Supported field paths include: - refresh_interval - params - auto_run_disabled - action_config - action_config.action_params - action_config.service_name - destination_configs - blocking_reasons - sync_mode Note: Support for these fields may vary depending on the connector type. For example, not all connectors support `destination_configs`. If an unsupported or unknown field path is provided, the request will return an INVALID_ARGUMENT error. */
12414
12645
  updateMask?: string;
12415
12646
  /** Upload protocol for media (e.g. "raw", "multipart"). */
12416
12647
  upload_protocol?: string;
@@ -12613,6 +12844,8 @@ declare namespace gapi.client {
12613
12844
  callback?: string;
12614
12845
  /** Selector specifying which fields to include in a partial response. */
12615
12846
  fields?: string;
12847
+ /** Optional. Specifies config for IMAGE_BYTES. */
12848
+ imageId?: string;
12616
12849
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
12617
12850
  key?: string;
12618
12851
  /** Required. Full resource name of Document, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. If the caller does not have permission to access the Document, regardless of whether or not it exists, a `PERMISSION_DENIED` error is returned. If the requested Document does not exist, a `NOT_FOUND` error is returned. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20250401",
3
+ "version": "0.0.20250419",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",