Skip to content

Commit d03e09c

Browse files
yoshi-automationsofisl
authored andcommitted
feat(retail): update the API
#### retail:v2alpha The following keys were added: - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.conversationalTextResponse.description - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.conversationalTextResponse.type - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.followupQuestion.$ref - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.followupQuestion.description - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.state.description - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.state.enum - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.state.enumDescriptions - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.state.readOnly - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.state.type - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.userQueryTypes.description - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.userQueryTypes.items.type - schemas.GoogleCloudRetailV2alphaConversationalSearchResponse.properties.userQueryTypes.type The following keys were changed: - schemas.GoogleCloudRetailV2alphaConversationalSearchRequestConversationalFilteringSpec.properties.conversationalFilteringMode.enum - schemas.GoogleCloudRetailV2alphaConversationalSearchRequestConversationalFilteringSpec.properties.conversationalFilteringMode.enumDescriptions
1 parent 15cd433 commit d03e09c

File tree

2 files changed

+61
-3
lines changed

2 files changed

+61
-3
lines changed

discovery/retail-v2alpha.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@
28592859
}
28602860
}
28612861
},
2862-
"revision": "20250717",
2862+
"revision": "20250724",
28632863
"rootUrl": "https://retail.googleapis.com/",
28642864
"schemas": {
28652865
"GoogleApiHttpBody": {
@@ -4699,10 +4699,14 @@
46994699
"description": "Optional. Mode to control Conversational Filtering. Defaults to Mode.DISABLED if it's unset.",
47004700
"enum": [
47014701
"MODE_UNSPECIFIED",
4702+
"DISABLED",
4703+
"ENABLED",
47024704
"CONVERSATIONAL_FILTER_ONLY"
47034705
],
47044706
"enumDescriptions": [
47054707
"Default value.",
4708+
"Disable Conversational Filtering.",
4709+
"Enabled Conversational Filtering with default Conversational Search.",
47064710
"Enabled Conversational Filtering without default Conversational Search."
47074711
],
47084712
"type": "string"
@@ -4780,12 +4784,42 @@
47804784
"$ref": "GoogleCloudRetailV2alphaConversationalSearchResponseConversationalFilteringResult",
47814785
"description": "This field specifies all related information that is needed on client side for UI rendering of conversational filtering search."
47824786
},
4787+
"conversationalTextResponse": {
4788+
"description": "The conversational answer-based text response generated by the Server.",
4789+
"type": "string"
4790+
},
4791+
"followupQuestion": {
4792+
"$ref": "GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion",
4793+
"description": "The conversational followup question generated for Intent refinement."
4794+
},
47834795
"refinedSearch": {
47844796
"description": "The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.",
47854797
"items": {
47864798
"$ref": "GoogleCloudRetailV2alphaConversationalSearchResponseRefinedSearch"
47874799
},
47884800
"type": "array"
4801+
},
4802+
"state": {
4803+
"description": "Output only. The state of the response generation.",
4804+
"enum": [
4805+
"STATE_UNSPECIFIED",
4806+
"STREAMING",
4807+
"SUCCEEDED"
4808+
],
4809+
"enumDescriptions": [
4810+
"Unknown.",
4811+
"Response generation is being streamed.",
4812+
"Response generation has succeeded."
4813+
],
4814+
"readOnly": true,
4815+
"type": "string"
4816+
},
4817+
"userQueryTypes": {
4818+
"description": "The types Retail classifies the search query as. Supported values are: - \"ADVERSARIAL\" - \"CHITCHAT\" - \"JAILBREAK\" - \"ORDER_SUPPORT\" - \"SIMPLE_PRODUCT_SEARCH\" - \"INTENT_REFINEMENT\" - \"PRODUCT_DETAILS\" - \"PRODUCT_COMPARISON\" - \"DEALS_AND_COUPONS\" - \"STORE_RELEVANT\" - \"BLOCKLISTED\" - \"BEST_PRODUCT\" - \"RETAIL_SUPPORT\" - \"DISABLED\" clang-format off clang-format on",
4819+
"items": {
4820+
"type": "string"
4821+
},
4822+
"type": "array"
47894823
}
47904824
},
47914825
"type": "object"

src/apis/retail/v2alpha.ts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,14 +1087,30 @@ export namespace retail_v2alpha {
10871087
* This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
10881088
*/
10891089
conversationalFilteringResult?: Schema$GoogleCloudRetailV2alphaConversationalSearchResponseConversationalFilteringResult;
1090+
/**
1091+
* The conversational answer-based text response generated by the Server.
1092+
*/
1093+
conversationalTextResponse?: string | null;
10901094
/**
10911095
* Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's ConversationalSearchRequest.conversation_id to restore conversation state in server.
10921096
*/
10931097
conversationId?: string | null;
1098+
/**
1099+
* The conversational followup question generated for Intent refinement.
1100+
*/
1101+
followupQuestion?: Schema$GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestion;
10941102
/**
10951103
* The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
10961104
*/
10971105
refinedSearch?: Schema$GoogleCloudRetailV2alphaConversationalSearchResponseRefinedSearch[];
1106+
/**
1107+
* Output only. The state of the response generation.
1108+
*/
1109+
state?: string | null;
1110+
/**
1111+
* The types Retail classifies the search query as. Supported values are: - "ADVERSARIAL" - "CHITCHAT" - "JAILBREAK" - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
1112+
*/
1113+
userQueryTypes?: string[] | null;
10981114
}
10991115
/**
11001116
* This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
@@ -15897,7 +15913,11 @@ export namespace retail_v2alpha {
1589715913
* // {
1589815914
* // "conversationId": "my_conversationId",
1589915915
* // "conversationalFilteringResult": {},
15900-
* // "refinedSearch": []
15916+
* // "conversationalTextResponse": "my_conversationalTextResponse",
15917+
* // "followupQuestion": {},
15918+
* // "refinedSearch": [],
15919+
* // "state": "my_state",
15920+
* // "userQueryTypes": []
1590115921
* // }
1590215922
* }
1590315923
*
@@ -16652,7 +16672,11 @@ export namespace retail_v2alpha {
1665216672
* // {
1665316673
* // "conversationId": "my_conversationId",
1665416674
* // "conversationalFilteringResult": {},
16655-
* // "refinedSearch": []
16675+
* // "conversationalTextResponse": "my_conversationalTextResponse",
16676+
* // "followupQuestion": {},
16677+
* // "refinedSearch": [],
16678+
* // "state": "my_state",
16679+
* // "userQueryTypes": []
1665616680
* // }
1665716681
* }
1665816682
*

0 commit comments

Comments
 (0)