@maxim_mazurok/gapi.client.discoveryengine-v1beta 0.0.20241122 → 0.0.20241123
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 +65 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1beta
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20241123
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -382,6 +382,8 @@ declare namespace gapi.client {
|
|
|
382
382
|
filterAction?: GoogleCloudDiscoveryengineV1alphaControlFilterAction;
|
|
383
383
|
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
384
384
|
name?: string;
|
|
385
|
+
/** Promote certain links based on predefined trigger queries. This now only supports basic site search. */
|
|
386
|
+
promoteAction?: GoogleCloudDiscoveryengineV1alphaControlPromoteAction;
|
|
385
387
|
/** Defines a redirect-type control. */
|
|
386
388
|
redirectAction?: GoogleCloudDiscoveryengineV1alphaControlRedirectAction;
|
|
387
389
|
/** Required. Immutable. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
@@ -405,6 +407,12 @@ declare namespace gapi.client {
|
|
|
405
407
|
/** Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
406
408
|
filter?: string;
|
|
407
409
|
}
|
|
410
|
+
interface GoogleCloudDiscoveryengineV1alphaControlPromoteAction {
|
|
411
|
+
/** Required. Data store with which this promotion is attached to. */
|
|
412
|
+
dataStore?: string;
|
|
413
|
+
/** Required. Promotion attached to this action. */
|
|
414
|
+
searchLinkPromotion?: GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion;
|
|
415
|
+
}
|
|
408
416
|
interface GoogleCloudDiscoveryengineV1alphaControlRedirectAction {
|
|
409
417
|
/** Required. The URI to which the shopper will be redirected. Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
410
418
|
redirectUri?: string;
|
|
@@ -1084,6 +1092,18 @@ declare namespace gapi.client {
|
|
|
1084
1092
|
/** The structured representation of the schema. */
|
|
1085
1093
|
structSchema?: {[P in string]: any};
|
|
1086
1094
|
}
|
|
1095
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion {
|
|
1096
|
+
/** Optional. The Promotion description. Maximum length: 200 characters. */
|
|
1097
|
+
description?: string;
|
|
1098
|
+
/** 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. */
|
|
1099
|
+
enabled?: boolean;
|
|
1100
|
+
/** Optional. The promotion thumbnail image url. */
|
|
1101
|
+
imageUri?: string;
|
|
1102
|
+
/** Required. The title of the promotion. Maximum length: 160 characters. */
|
|
1103
|
+
title?: string;
|
|
1104
|
+
/** Required. The URL for the page the user wants to promote. */
|
|
1105
|
+
uri?: string;
|
|
1106
|
+
}
|
|
1087
1107
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequest {
|
|
1088
1108
|
/** Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
|
|
1089
1109
|
boostSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
|
|
@@ -2131,6 +2151,8 @@ declare namespace gapi.client {
|
|
|
2131
2151
|
filterAction?: GoogleCloudDiscoveryengineV1betaControlFilterAction;
|
|
2132
2152
|
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
2133
2153
|
name?: string;
|
|
2154
|
+
/** Promote certain links based on predefined trigger queries. This now only supports basic site search. */
|
|
2155
|
+
promoteAction?: GoogleCloudDiscoveryengineV1betaControlPromoteAction;
|
|
2134
2156
|
/** Defines a redirect-type control. */
|
|
2135
2157
|
redirectAction?: GoogleCloudDiscoveryengineV1betaControlRedirectAction;
|
|
2136
2158
|
/** Required. Immutable. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
@@ -2154,6 +2176,12 @@ declare namespace gapi.client {
|
|
|
2154
2176
|
/** Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
2155
2177
|
filter?: string;
|
|
2156
2178
|
}
|
|
2179
|
+
interface GoogleCloudDiscoveryengineV1betaControlPromoteAction {
|
|
2180
|
+
/** Required. Data store with which this promotion is attached to. */
|
|
2181
|
+
dataStore?: string;
|
|
2182
|
+
/** Required. Promotion attached to this action. */
|
|
2183
|
+
searchLinkPromotion?: GoogleCloudDiscoveryengineV1betaSearchLinkPromotion;
|
|
2184
|
+
}
|
|
2157
2185
|
interface GoogleCloudDiscoveryengineV1betaControlRedirectAction {
|
|
2158
2186
|
/** Required. The URI to which the shopper will be redirected. Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
2159
2187
|
redirectUri?: string;
|
|
@@ -3186,6 +3214,18 @@ declare namespace gapi.client {
|
|
|
3186
3214
|
/** The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
3187
3215
|
searchQuery?: string;
|
|
3188
3216
|
}
|
|
3217
|
+
interface GoogleCloudDiscoveryengineV1betaSearchLinkPromotion {
|
|
3218
|
+
/** Optional. The Promotion description. Maximum length: 200 characters. */
|
|
3219
|
+
description?: string;
|
|
3220
|
+
/** 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. */
|
|
3221
|
+
enabled?: boolean;
|
|
3222
|
+
/** Optional. The promotion thumbnail image url. */
|
|
3223
|
+
imageUri?: string;
|
|
3224
|
+
/** Required. The title of the promotion. Maximum length: 160 characters. */
|
|
3225
|
+
title?: string;
|
|
3226
|
+
/** Required. The URL for the page the user wants to promote. */
|
|
3227
|
+
uri?: string;
|
|
3228
|
+
}
|
|
3189
3229
|
interface GoogleCloudDiscoveryengineV1betaSearchRequest {
|
|
3190
3230
|
/** Boost specification to boost certain documents. For more information on boosting, see [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) */
|
|
3191
3231
|
boostSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec;
|
|
@@ -3448,6 +3488,8 @@ declare namespace gapi.client {
|
|
|
3448
3488
|
redirectUri?: string;
|
|
3449
3489
|
/** A list of matched documents. The order represents the ranking. */
|
|
3450
3490
|
results?: GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult[];
|
|
3491
|
+
/** Promotions for site search. */
|
|
3492
|
+
searchLinkPromotions?: GoogleCloudDiscoveryengineV1betaSearchLinkPromotion[];
|
|
3451
3493
|
/** Session information. Only set if SearchRequest.session is provided. See its description for more details. */
|
|
3452
3494
|
sessionInfo?: GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo;
|
|
3453
3495
|
/** A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set. */
|
|
@@ -3664,6 +3706,8 @@ declare namespace gapi.client {
|
|
|
3664
3706
|
onewaySynonymsControlIds?: string[];
|
|
3665
3707
|
/** The specification for personalization spec. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set, SearchRequest.personalization_spec overrides ServingConfig.personalization_spec. */
|
|
3666
3708
|
personalizationSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestPersonalizationSpec;
|
|
3709
|
+
/** Condition promote specifications. Maximum number of specifications is 100. */
|
|
3710
|
+
promoteControlIds?: string[];
|
|
3667
3711
|
/** The ranking expression controls the customized ranking on retrieval documents. To leverage this, document embedding is required. The ranking expression setting in ServingConfig applies to all search requests served by the serving config. However, if SearchRequest.ranking_expression is specified, it overrides the ServingConfig ranking expression. The ranking expression is a single function or multiple functions that are joined by "+". * ranking_expression = function, { " + ", function }; Supported functions: * double * relevance_score * double * dotProduct(embedding_field_path) Function variables: * `relevance_score`: pre-defined keywords, used for measure relevance between query and document. * `embedding_field_path`: the document embedding field used with query embedding vector. * `dotProduct`: embedding function between embedding_field_path and query embedding vector. Example ranking expression: If document has an embedding field doc_embedding, the ranking expression could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. */
|
|
3668
3712
|
rankingExpression?: string;
|
|
3669
3713
|
/** IDs of the redirect controls. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 100. Can only be set if SolutionType is SOLUTION_TYPE_SEARCH. */
|
|
@@ -3968,6 +4012,8 @@ declare namespace gapi.client {
|
|
|
3968
4012
|
filterAction?: GoogleCloudDiscoveryengineV1ControlFilterAction;
|
|
3969
4013
|
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
3970
4014
|
name?: string;
|
|
4015
|
+
/** Promote certain links based on predefined trigger queries. This now only supports basic site search. */
|
|
4016
|
+
promoteAction?: GoogleCloudDiscoveryengineV1ControlPromoteAction;
|
|
3971
4017
|
/** Defines a redirect-type control. */
|
|
3972
4018
|
redirectAction?: GoogleCloudDiscoveryengineV1ControlRedirectAction;
|
|
3973
4019
|
/** Required. Immutable. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
@@ -3991,6 +4037,12 @@ declare namespace gapi.client {
|
|
|
3991
4037
|
/** Required. A filter to apply on the matching condition results. Required Syntax documentation: https://cloud.google.com/retail/docs/filter-and-order Maximum length is 5000 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
3992
4038
|
filter?: string;
|
|
3993
4039
|
}
|
|
4040
|
+
interface GoogleCloudDiscoveryengineV1ControlPromoteAction {
|
|
4041
|
+
/** Required. Data store with which this promotion is attached to. */
|
|
4042
|
+
dataStore?: string;
|
|
4043
|
+
/** Required. Promotion attached to this action. */
|
|
4044
|
+
searchLinkPromotion?: GoogleCloudDiscoveryengineV1SearchLinkPromotion;
|
|
4045
|
+
}
|
|
3994
4046
|
interface GoogleCloudDiscoveryengineV1ControlRedirectAction {
|
|
3995
4047
|
/** Required. The URI to which the shopper will be redirected. Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
3996
4048
|
redirectUri?: string;
|
|
@@ -4352,6 +4404,18 @@ declare namespace gapi.client {
|
|
|
4352
4404
|
/** The structured representation of the schema. */
|
|
4353
4405
|
structSchema?: {[P in string]: any};
|
|
4354
4406
|
}
|
|
4407
|
+
interface GoogleCloudDiscoveryengineV1SearchLinkPromotion {
|
|
4408
|
+
/** Optional. The Promotion description. Maximum length: 200 characters. */
|
|
4409
|
+
description?: string;
|
|
4410
|
+
/** 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. */
|
|
4411
|
+
enabled?: boolean;
|
|
4412
|
+
/** Optional. The promotion thumbnail image url. */
|
|
4413
|
+
imageUri?: string;
|
|
4414
|
+
/** Required. The title of the promotion. Maximum length: 160 characters. */
|
|
4415
|
+
title?: string;
|
|
4416
|
+
/** Required. The URL for the page the user wants to promote. */
|
|
4417
|
+
uri?: string;
|
|
4418
|
+
}
|
|
4355
4419
|
interface GoogleCloudDiscoveryengineV1SiteVerificationInfo {
|
|
4356
4420
|
/** Site verification state indicating the ownership and validity. */
|
|
4357
4421
|
siteVerificationState?: string;
|