@maxim_mazurok/gapi.client.discoveryengine-v1alpha 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=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20241123
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -869,6 +869,8 @@ declare namespace gapi.client {
|
|
|
869
869
|
filterAction?: GoogleCloudDiscoveryengineV1alphaControlFilterAction;
|
|
870
870
|
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
871
871
|
name?: string;
|
|
872
|
+
/** Promote certain links based on predefined trigger queries. This now only supports basic site search. */
|
|
873
|
+
promoteAction?: GoogleCloudDiscoveryengineV1alphaControlPromoteAction;
|
|
872
874
|
/** Defines a redirect-type control. */
|
|
873
875
|
redirectAction?: GoogleCloudDiscoveryengineV1alphaControlRedirectAction;
|
|
874
876
|
/** Required. Immutable. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
@@ -892,6 +894,12 @@ declare namespace gapi.client {
|
|
|
892
894
|
/** 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. */
|
|
893
895
|
filter?: string;
|
|
894
896
|
}
|
|
897
|
+
interface GoogleCloudDiscoveryengineV1alphaControlPromoteAction {
|
|
898
|
+
/** Required. Data store with which this promotion is attached to. */
|
|
899
|
+
dataStore?: string;
|
|
900
|
+
/** Required. Promotion attached to this action. */
|
|
901
|
+
searchLinkPromotion?: GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion;
|
|
902
|
+
}
|
|
895
903
|
interface GoogleCloudDiscoveryengineV1alphaControlRedirectAction {
|
|
896
904
|
/** 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. */
|
|
897
905
|
redirectUri?: string;
|
|
@@ -2235,6 +2243,18 @@ declare namespace gapi.client {
|
|
|
2235
2243
|
/** 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. */
|
|
2236
2244
|
searchQuery?: string;
|
|
2237
2245
|
}
|
|
2246
|
+
interface GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion {
|
|
2247
|
+
/** Optional. The Promotion description. Maximum length: 200 characters. */
|
|
2248
|
+
description?: string;
|
|
2249
|
+
/** 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. */
|
|
2250
|
+
enabled?: boolean;
|
|
2251
|
+
/** Optional. The promotion thumbnail image url. */
|
|
2252
|
+
imageUri?: string;
|
|
2253
|
+
/** Required. The title of the promotion. Maximum length: 160 characters. */
|
|
2254
|
+
title?: string;
|
|
2255
|
+
/** Required. The URL for the page the user wants to promote. */
|
|
2256
|
+
uri?: string;
|
|
2257
|
+
}
|
|
2238
2258
|
interface GoogleCloudDiscoveryengineV1alphaSearchRequest {
|
|
2239
2259
|
/** 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) */
|
|
2240
2260
|
boostSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec;
|
|
@@ -2499,6 +2519,8 @@ declare namespace gapi.client {
|
|
|
2499
2519
|
redirectUri?: string;
|
|
2500
2520
|
/** A list of matched documents. The order represents the ranking. */
|
|
2501
2521
|
results?: GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult[];
|
|
2522
|
+
/** Promotions for site search. */
|
|
2523
|
+
searchLinkPromotions?: GoogleCloudDiscoveryengineV1alphaSearchLinkPromotion[];
|
|
2502
2524
|
/** Session information. Only set if SearchRequest.session is provided. See its description for more details. */
|
|
2503
2525
|
sessionInfo?: GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo;
|
|
2504
2526
|
/** A summary as part of the search results. This field is only returned if SearchRequest.ContentSearchSpec.summary_spec is set. */
|
|
@@ -2721,6 +2743,8 @@ declare namespace gapi.client {
|
|
|
2721
2743
|
onewaySynonymsControlIds?: string[];
|
|
2722
2744
|
/** 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. */
|
|
2723
2745
|
personalizationSpec?: GoogleCloudDiscoveryengineV1alphaSearchRequestPersonalizationSpec;
|
|
2746
|
+
/** Condition promote specifications. Maximum number of specifications is 100. */
|
|
2747
|
+
promoteControlIds?: string[];
|
|
2724
2748
|
/** 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)`. */
|
|
2725
2749
|
rankingExpression?: string;
|
|
2726
2750
|
/** 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. */
|
|
@@ -3067,6 +3091,8 @@ declare namespace gapi.client {
|
|
|
3067
3091
|
filterAction?: GoogleCloudDiscoveryengineV1betaControlFilterAction;
|
|
3068
3092
|
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
3069
3093
|
name?: string;
|
|
3094
|
+
/** Promote certain links based on predefined trigger queries. This now only supports basic site search. */
|
|
3095
|
+
promoteAction?: GoogleCloudDiscoveryengineV1betaControlPromoteAction;
|
|
3070
3096
|
/** Defines a redirect-type control. */
|
|
3071
3097
|
redirectAction?: GoogleCloudDiscoveryengineV1betaControlRedirectAction;
|
|
3072
3098
|
/** Required. Immutable. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
@@ -3090,6 +3116,12 @@ declare namespace gapi.client {
|
|
|
3090
3116
|
/** 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. */
|
|
3091
3117
|
filter?: string;
|
|
3092
3118
|
}
|
|
3119
|
+
interface GoogleCloudDiscoveryengineV1betaControlPromoteAction {
|
|
3120
|
+
/** Required. Data store with which this promotion is attached to. */
|
|
3121
|
+
dataStore?: string;
|
|
3122
|
+
/** Required. Promotion attached to this action. */
|
|
3123
|
+
searchLinkPromotion?: GoogleCloudDiscoveryengineV1betaSearchLinkPromotion;
|
|
3124
|
+
}
|
|
3093
3125
|
interface GoogleCloudDiscoveryengineV1betaControlRedirectAction {
|
|
3094
3126
|
/** 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. */
|
|
3095
3127
|
redirectUri?: string;
|
|
@@ -3578,6 +3610,18 @@ declare namespace gapi.client {
|
|
|
3578
3610
|
/** The structured representation of the schema. */
|
|
3579
3611
|
structSchema?: {[P in string]: any};
|
|
3580
3612
|
}
|
|
3613
|
+
interface GoogleCloudDiscoveryengineV1betaSearchLinkPromotion {
|
|
3614
|
+
/** Optional. The Promotion description. Maximum length: 200 characters. */
|
|
3615
|
+
description?: string;
|
|
3616
|
+
/** 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. */
|
|
3617
|
+
enabled?: boolean;
|
|
3618
|
+
/** Optional. The promotion thumbnail image url. */
|
|
3619
|
+
imageUri?: string;
|
|
3620
|
+
/** Required. The title of the promotion. Maximum length: 160 characters. */
|
|
3621
|
+
title?: string;
|
|
3622
|
+
/** Required. The URL for the page the user wants to promote. */
|
|
3623
|
+
uri?: string;
|
|
3624
|
+
}
|
|
3581
3625
|
interface GoogleCloudDiscoveryengineV1betaSearchRequest {
|
|
3582
3626
|
/** 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) */
|
|
3583
3627
|
boostSpec?: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec;
|
|
@@ -3958,6 +4002,8 @@ declare namespace gapi.client {
|
|
|
3958
4002
|
filterAction?: GoogleCloudDiscoveryengineV1ControlFilterAction;
|
|
3959
4003
|
/** Immutable. Fully qualified name `projects/*/locations/global/dataStore/*/controls/*` */
|
|
3960
4004
|
name?: string;
|
|
4005
|
+
/** Promote certain links based on predefined trigger queries. This now only supports basic site search. */
|
|
4006
|
+
promoteAction?: GoogleCloudDiscoveryengineV1ControlPromoteAction;
|
|
3961
4007
|
/** Defines a redirect-type control. */
|
|
3962
4008
|
redirectAction?: GoogleCloudDiscoveryengineV1ControlRedirectAction;
|
|
3963
4009
|
/** Required. Immutable. What solution the control belongs to. Must be compatible with vertical of resource. Otherwise an INVALID ARGUMENT error is thrown. */
|
|
@@ -3981,6 +4027,12 @@ declare namespace gapi.client {
|
|
|
3981
4027
|
/** 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. */
|
|
3982
4028
|
filter?: string;
|
|
3983
4029
|
}
|
|
4030
|
+
interface GoogleCloudDiscoveryengineV1ControlPromoteAction {
|
|
4031
|
+
/** Required. Data store with which this promotion is attached to. */
|
|
4032
|
+
dataStore?: string;
|
|
4033
|
+
/** Required. Promotion attached to this action. */
|
|
4034
|
+
searchLinkPromotion?: GoogleCloudDiscoveryengineV1SearchLinkPromotion;
|
|
4035
|
+
}
|
|
3984
4036
|
interface GoogleCloudDiscoveryengineV1ControlRedirectAction {
|
|
3985
4037
|
/** 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. */
|
|
3986
4038
|
redirectUri?: string;
|
|
@@ -4342,6 +4394,18 @@ declare namespace gapi.client {
|
|
|
4342
4394
|
/** The structured representation of the schema. */
|
|
4343
4395
|
structSchema?: {[P in string]: any};
|
|
4344
4396
|
}
|
|
4397
|
+
interface GoogleCloudDiscoveryengineV1SearchLinkPromotion {
|
|
4398
|
+
/** Optional. The Promotion description. Maximum length: 200 characters. */
|
|
4399
|
+
description?: string;
|
|
4400
|
+
/** 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. */
|
|
4401
|
+
enabled?: boolean;
|
|
4402
|
+
/** Optional. The promotion thumbnail image url. */
|
|
4403
|
+
imageUri?: string;
|
|
4404
|
+
/** Required. The title of the promotion. Maximum length: 160 characters. */
|
|
4405
|
+
title?: string;
|
|
4406
|
+
/** Required. The URL for the page the user wants to promote. */
|
|
4407
|
+
uri?: string;
|
|
4408
|
+
}
|
|
4345
4409
|
interface GoogleCloudDiscoveryengineV1SiteVerificationInfo {
|
|
4346
4410
|
/** Site verification state indicating the ownership and validity. */
|
|
4347
4411
|
siteVerificationState?: string;
|