Skip to content

Commit 2244358

Browse files
feat(retail): update the API
#### retail:v2alpha The following keys were added: - schemas.GoogleCloudRetailV2alphaIntentClassificationConfig.properties.inlineSource.$ref - schemas.GoogleCloudRetailV2alphaIntentClassificationConfig.properties.inlineSource.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigExample.properties.classifiedPositive.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigExample.properties.classifiedPositive.type - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.id - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.intentType.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.intentType.type - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.operation.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.operation.enum - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.operation.enumDescriptions - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.operation.type - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.query.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.properties.query.type - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.type - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource.id - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource.properties.inlineForceIntents.description - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource.properties.inlineForceIntents.items.$ref - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource.properties.inlineForceIntents.type - schemas.GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource.type #### retail:v2beta The following keys were added: - schemas.GoogleCloudRetailV2betaIntentClassificationConfig.properties.inlineSource.$ref - schemas.GoogleCloudRetailV2betaIntentClassificationConfig.properties.inlineSource.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigExample.properties.classifiedPositive.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigExample.properties.classifiedPositive.type - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.id - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.intentType.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.intentType.type - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.operation.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.operation.enum - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.operation.enumDescriptions - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.operation.type - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.query.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.properties.query.type - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.type - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineSource.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineSource.id - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineSource.properties.inlineForceIntents.description - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineSource.properties.inlineForceIntents.items.$ref - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineSource.properties.inlineForceIntents.type - schemas.GoogleCloudRetailV2betaIntentClassificationConfigInlineSource.type - schemas.GoogleCloudRetailV2betaSearchRequest.properties.userAttributes.additionalProperties.$ref - schemas.GoogleCloudRetailV2betaSearchRequest.properties.userAttributes.description - schemas.GoogleCloudRetailV2betaSearchRequest.properties.userAttributes.type - schemas.GoogleCloudRetailV2betaStringList.description - schemas.GoogleCloudRetailV2betaStringList.id - schemas.GoogleCloudRetailV2betaStringList.properties.values.description - schemas.GoogleCloudRetailV2betaStringList.properties.values.items.type - schemas.GoogleCloudRetailV2betaStringList.properties.values.type - schemas.GoogleCloudRetailV2betaStringList.type #### retail:v2 The following keys were added: - schemas.GoogleCloudRetailV2IntentClassificationConfig.properties.inlineSource.$ref - schemas.GoogleCloudRetailV2IntentClassificationConfig.properties.inlineSource.description - schemas.GoogleCloudRetailV2IntentClassificationConfigExample.properties.classifiedPositive.description - schemas.GoogleCloudRetailV2IntentClassificationConfigExample.properties.classifiedPositive.type - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.description - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.id - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.intentType.description - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.intentType.type - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.operation.description - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.operation.enum - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.operation.enumDescriptions - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.operation.type - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.query.description - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.properties.query.type - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent.type - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineSource.description - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineSource.id - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineSource.properties.inlineForceIntents.description - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineSource.properties.inlineForceIntents.items.$ref - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineSource.properties.inlineForceIntents.type - schemas.GoogleCloudRetailV2IntentClassificationConfigInlineSource.type - schemas.GoogleCloudRetailV2SearchRequest.properties.userAttributes.additionalProperties.$ref - schemas.GoogleCloudRetailV2SearchRequest.properties.userAttributes.description - schemas.GoogleCloudRetailV2SearchRequest.properties.userAttributes.type - schemas.GoogleCloudRetailV2StringList.description - schemas.GoogleCloudRetailV2StringList.id - schemas.GoogleCloudRetailV2StringList.properties.values.description - schemas.GoogleCloudRetailV2StringList.properties.values.items.type - schemas.GoogleCloudRetailV2StringList.properties.values.type - schemas.GoogleCloudRetailV2StringList.type
1 parent f87a2ee commit 2244358

File tree

7 files changed

+335
-4
lines changed

7 files changed

+335
-4
lines changed

‎discovery/retail-v2.json

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@
22822282
}
22832283
}
22842284
},
2285-
"revision": "20250613",
2285+
"revision": "20250626",
22862286
"rootUrl": "https://retail.googleapis.com/",
22872287
"schemas": {
22882288
"GoogleApiHttpBody": {
@@ -3753,6 +3753,10 @@
37533753
},
37543754
"type": "array"
37553755
},
3756+
"inlineSource": {
3757+
"$ref": "GoogleCloudRetailV2IntentClassificationConfigInlineSource",
3758+
"description": "Optional. Inline source for intent classifications."
3759+
},
37563760
"modelPreamble": {
37573761
"description": "Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt.",
37583762
"type": "string"
@@ -3764,6 +3768,10 @@
37643768
"description": "An example for intent classification.",
37653769
"id": "GoogleCloudRetailV2IntentClassificationConfigExample",
37663770
"properties": {
3771+
"classifiedPositive": {
3772+
"description": "Required. Whether the example is classified positively.",
3773+
"type": "boolean"
3774+
},
37673775
"intentType": {
37683776
"description": "Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype",
37693777
"type": "string"
@@ -3779,6 +3787,49 @@
37793787
},
37803788
"type": "object"
37813789
},
3790+
"GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent": {
3791+
"description": "An inline force intent classification configuration.",
3792+
"id": "GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent",
3793+
"properties": {
3794+
"intentType": {
3795+
"description": "Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype",
3796+
"type": "string"
3797+
},
3798+
"operation": {
3799+
"description": "Optional. The operation to perform for the query.",
3800+
"enum": [
3801+
"OPERATION_UNSPECIFIED",
3802+
"EXACT_MATCH",
3803+
"CONTAINS"
3804+
],
3805+
"enumDescriptions": [
3806+
"Unspecified match operation.",
3807+
"Exact match.",
3808+
"Contains match."
3809+
],
3810+
"type": "string"
3811+
},
3812+
"query": {
3813+
"description": "Optional. A example query.",
3814+
"type": "string"
3815+
}
3816+
},
3817+
"type": "object"
3818+
},
3819+
"GoogleCloudRetailV2IntentClassificationConfigInlineSource": {
3820+
"description": "Inline source for intent classifications.",
3821+
"id": "GoogleCloudRetailV2IntentClassificationConfigInlineSource",
3822+
"properties": {
3823+
"inlineForceIntents": {
3824+
"description": "Optional. A list of inline force intent classifications.",
3825+
"items": {
3826+
"$ref": "GoogleCloudRetailV2IntentClassificationConfigInlineForceIntent"
3827+
},
3828+
"type": "array"
3829+
}
3830+
},
3831+
"type": "object"
3832+
},
37823833
"GoogleCloudRetailV2Interval": {
37833834
"description": "A floating point interval.",
37843835
"id": "GoogleCloudRetailV2Interval",
@@ -5378,6 +5429,13 @@
53785429
"$ref": "GoogleCloudRetailV2SearchRequestTileNavigationSpec",
53795430
"description": "Optional. This field specifies tile navigation related parameters."
53805431
},
5432+
"userAttributes": {
5433+
"additionalProperties": {
5434+
"$ref": "GoogleCloudRetailV2StringList"
5435+
},
5436+
"description": "Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ { key: \"pets\" value { values: \"dog\" values: \"cat\" } }, { key: \"state\" value { values: \"CA\" } } ]",
5437+
"type": "object"
5438+
},
53815439
"userInfo": {
53825440
"$ref": "GoogleCloudRetailV2UserInfo",
53835441
"description": "User information."
@@ -6134,6 +6192,20 @@
61346192
"properties": {},
61356193
"type": "object"
61366194
},
6195+
"GoogleCloudRetailV2StringList": {
6196+
"description": "A list of string values.",
6197+
"id": "GoogleCloudRetailV2StringList",
6198+
"properties": {
6199+
"values": {
6200+
"description": "String values.",
6201+
"items": {
6202+
"type": "string"
6203+
},
6204+
"type": "array"
6205+
}
6206+
},
6207+
"type": "object"
6208+
},
61376209
"GoogleCloudRetailV2Tile": {
61386210
"description": "This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.",
61396211
"id": "GoogleCloudRetailV2Tile",

‎discovery/retail-v2alpha.json

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@
28592859
}
28602860
}
28612861
},
2862-
"revision": "20250613",
2862+
"revision": "20250626",
28632863
"rootUrl": "https://retail.googleapis.com/",
28642864
"schemas": {
28652865
"GoogleApiHttpBody": {
@@ -5498,6 +5498,10 @@
54985498
},
54995499
"type": "array"
55005500
},
5501+
"inlineSource": {
5502+
"$ref": "GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource",
5503+
"description": "Optional. Inline source for intent classifications."
5504+
},
55015505
"modelPreamble": {
55025506
"description": "Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt.",
55035507
"type": "string"
@@ -5509,6 +5513,10 @@
55095513
"description": "An example for intent classification.",
55105514
"id": "GoogleCloudRetailV2alphaIntentClassificationConfigExample",
55115515
"properties": {
5516+
"classifiedPositive": {
5517+
"description": "Required. Whether the example is classified positively.",
5518+
"type": "boolean"
5519+
},
55125520
"intentType": {
55135521
"description": "Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype",
55145522
"type": "string"
@@ -5524,6 +5532,49 @@
55245532
},
55255533
"type": "object"
55265534
},
5535+
"GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent": {
5536+
"description": "An inline force intent classification configuration.",
5537+
"id": "GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent",
5538+
"properties": {
5539+
"intentType": {
5540+
"description": "Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype",
5541+
"type": "string"
5542+
},
5543+
"operation": {
5544+
"description": "Optional. The operation to perform for the query.",
5545+
"enum": [
5546+
"OPERATION_UNSPECIFIED",
5547+
"EXACT_MATCH",
5548+
"CONTAINS"
5549+
],
5550+
"enumDescriptions": [
5551+
"Unspecified match operation.",
5552+
"Exact match.",
5553+
"Contains match."
5554+
],
5555+
"type": "string"
5556+
},
5557+
"query": {
5558+
"description": "Optional. A example query.",
5559+
"type": "string"
5560+
}
5561+
},
5562+
"type": "object"
5563+
},
5564+
"GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource": {
5565+
"description": "Inline source for intent classifications.",
5566+
"id": "GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource",
5567+
"properties": {
5568+
"inlineForceIntents": {
5569+
"description": "Optional. A list of inline force intent classifications.",
5570+
"items": {
5571+
"$ref": "GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent"
5572+
},
5573+
"type": "array"
5574+
}
5575+
},
5576+
"type": "object"
5577+
},
55275578
"GoogleCloudRetailV2alphaInterval": {
55285579
"description": "A floating point interval.",
55295580
"id": "GoogleCloudRetailV2alphaInterval",

‎discovery/retail-v2beta.json

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@
24272427
}
24282428
}
24292429
},
2430-
"revision": "20250613",
2430+
"revision": "20250626",
24312431
"rootUrl": "https://retail.googleapis.com/",
24322432
"schemas": {
24332433
"GoogleApiHttpBody": {
@@ -5492,6 +5492,10 @@
54925492
},
54935493
"type": "array"
54945494
},
5495+
"inlineSource": {
5496+
"$ref": "GoogleCloudRetailV2betaIntentClassificationConfigInlineSource",
5497+
"description": "Optional. Inline source for intent classifications."
5498+
},
54955499
"modelPreamble": {
54965500
"description": "Optional. Customers can use the preamble to specify any requirements for blocklisting intent classification. This preamble will be added to the blocklisting intent classification model prompt.",
54975501
"type": "string"
@@ -5503,6 +5507,10 @@
55035507
"description": "An example for intent classification.",
55045508
"id": "GoogleCloudRetailV2betaIntentClassificationConfigExample",
55055509
"properties": {
5510+
"classifiedPositive": {
5511+
"description": "Required. Whether the example is classified positively.",
5512+
"type": "boolean"
5513+
},
55065514
"intentType": {
55075515
"description": "Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype",
55085516
"type": "string"
@@ -5518,6 +5526,49 @@
55185526
},
55195527
"type": "object"
55205528
},
5529+
"GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent": {
5530+
"description": "An inline force intent classification configuration.",
5531+
"id": "GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent",
5532+
"properties": {
5533+
"intentType": {
5534+
"description": "Optional. The intent_type must match one of the predefined intent types defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#querytype",
5535+
"type": "string"
5536+
},
5537+
"operation": {
5538+
"description": "Optional. The operation to perform for the query.",
5539+
"enum": [
5540+
"OPERATION_UNSPECIFIED",
5541+
"EXACT_MATCH",
5542+
"CONTAINS"
5543+
],
5544+
"enumDescriptions": [
5545+
"Unspecified match operation.",
5546+
"Exact match.",
5547+
"Contains match."
5548+
],
5549+
"type": "string"
5550+
},
5551+
"query": {
5552+
"description": "Optional. A example query.",
5553+
"type": "string"
5554+
}
5555+
},
5556+
"type": "object"
5557+
},
5558+
"GoogleCloudRetailV2betaIntentClassificationConfigInlineSource": {
5559+
"description": "Inline source for intent classifications.",
5560+
"id": "GoogleCloudRetailV2betaIntentClassificationConfigInlineSource",
5561+
"properties": {
5562+
"inlineForceIntents": {
5563+
"description": "Optional. A list of inline force intent classifications.",
5564+
"items": {
5565+
"$ref": "GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent"
5566+
},
5567+
"type": "array"
5568+
}
5569+
},
5570+
"type": "object"
5571+
},
55215572
"GoogleCloudRetailV2betaInterval": {
55225573
"description": "A floating point interval.",
55235574
"id": "GoogleCloudRetailV2betaInterval",
@@ -7191,6 +7242,13 @@
71917242
"$ref": "GoogleCloudRetailV2betaSearchRequestTileNavigationSpec",
71927243
"description": "Optional. This field specifies tile navigation related parameters."
71937244
},
7245+
"userAttributes": {
7246+
"additionalProperties": {
7247+
"$ref": "GoogleCloudRetailV2betaStringList"
7248+
},
7249+
"description": "Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Duplcate keys are not allowed within a single query. Example: user_attributes: [ { key: \"pets\" value { values: \"dog\" values: \"cat\" } }, { key: \"state\" value { values: \"CA\" } } ]",
7250+
"type": "object"
7251+
},
71947252
"userInfo": {
71957253
"$ref": "GoogleCloudRetailV2betaUserInfo",
71967254
"description": "User information."
@@ -7947,6 +8005,20 @@
79478005
"properties": {},
79488006
"type": "object"
79498007
},
8008+
"GoogleCloudRetailV2betaStringList": {
8009+
"description": "A list of string values.",
8010+
"id": "GoogleCloudRetailV2betaStringList",
8011+
"properties": {
8012+
"values": {
8013+
"description": "String values.",
8014+
"items": {
8015+
"type": "string"
8016+
},
8017+
"type": "array"
8018+
}
8019+
},
8020+
"type": "object"
8021+
},
79508022
"GoogleCloudRetailV2betaTile": {
79518023
"description": "This field specifies the tile information including an attribute key, attribute value. More fields will be added in the future, eg: product id or product counts, etc.",
79528024
"id": "GoogleCloudRetailV2betaTile",

‎src/apis/retail/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^8.0.0"
31+
"googleapis-common": "^8.0.2-rc.0"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

0 commit comments

Comments
 (0)