@maxim_mazurok/gapi.client.retail-v2alpha 0.3.20260716 → 0.3.20260723
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 +10 -10
- package/package.json +1 -1
- package/readme.md +3 -3
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://retail.googleapis.com/$discovery/rest?version=v2alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260723
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -574,7 +574,7 @@ declare namespace gapi.client {
|
|
|
574
574
|
| 'SOLUTION_TYPE_SEARCH';
|
|
575
575
|
}
|
|
576
576
|
interface GoogleCloudRetailV2alphaEnrollSolutionResponse {
|
|
577
|
-
/**
|
|
577
|
+
/** AI Commerce Search API solution that the project has enrolled. */
|
|
578
578
|
enrolledSolution?:
|
|
579
579
|
| 'SOLUTION_TYPE_UNSPECIFIED'
|
|
580
580
|
| 'SOLUTION_TYPE_RECOMMENDATION'
|
|
@@ -828,7 +828,7 @@ declare namespace gapi.client {
|
|
|
828
828
|
nextPageToken?: string;
|
|
829
829
|
}
|
|
830
830
|
interface GoogleCloudRetailV2alphaListEnrolledSolutionsResponse {
|
|
831
|
-
/**
|
|
831
|
+
/** AI Commerce Search API solutions that the project has enrolled. */
|
|
832
832
|
enrolledSolutions?:
|
|
833
833
|
| 'SOLUTION_TYPE_UNSPECIFIED'
|
|
834
834
|
| 'SOLUTION_TYPE_RECOMMENDATION'
|
|
@@ -1261,7 +1261,7 @@ declare namespace gapi.client {
|
|
|
1261
1261
|
merchantCenterProductIdField?: string;
|
|
1262
1262
|
}
|
|
1263
1263
|
interface GoogleCloudRetailV2alphaProject {
|
|
1264
|
-
/** Output only.
|
|
1264
|
+
/** Output only. AI Commerce Search API solutions that the project has enrolled. */
|
|
1265
1265
|
enrolledSolutions?:
|
|
1266
1266
|
| 'SOLUTION_TYPE_UNSPECIFIED'
|
|
1267
1267
|
| 'SOLUTION_TYPE_RECOMMENDATION'
|
|
@@ -1836,7 +1836,7 @@ declare namespace gapi.client {
|
|
|
1836
1836
|
updateMask?: string;
|
|
1837
1837
|
}
|
|
1838
1838
|
interface GoogleCloudRetailV2alphaUserEvent {
|
|
1839
|
-
/** Extra user event features to include in the recommendation model. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the
|
|
1839
|
+
/** Extra user event features to include in the recommendation model. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the AI Commerce Search API use those custom attributes when training models and serving predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * The key must be a UTF-8 encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is traffic_channel, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways. */
|
|
1840
1840
|
attributes?: {[P in string]: GoogleCloudRetailV2alphaCustomAttribute};
|
|
1841
1841
|
/** Highly recommended for user events that are the result of PredictionService.Predict. This field enables accurate attribution of recommendation model performance. The value must be a valid PredictResponse.attribution_token for user events that are the result of PredictionService.Predict. The value must be a valid SearchResponse.attribution_token for user events that are the result of SearchService.Search. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased product. If user clicks on product K in the recommendation results, pass PredictResponse.attribution_token as a URL parameter to product K's page. When recording events on product K's page, log the PredictResponse.attribution_token to this field. */
|
|
1842
1842
|
attributionToken?: string;
|
|
@@ -1850,7 +1850,7 @@ declare namespace gapi.client {
|
|
|
1850
1850
|
eventTime?: string;
|
|
1851
1851
|
/** Required. User event type. Allowed values are: * `add-to-cart`: Products being added to cart. * `remove-from-cart`: Products being removed from cart. * `category-page-view`: Special pages such as sale or promotion pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage viewed. * `purchase-complete`: User finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`: User viewing a shopping cart. */
|
|
1852
1852
|
eventType?: string;
|
|
1853
|
-
/** A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (
|
|
1853
|
+
/** A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (such as by using AI Commerce Search API, or using different recommendation models). */
|
|
1854
1854
|
experimentIds?: string[];
|
|
1855
1855
|
/** The filter syntax consists of an expression language for constructing a predicate from one or more fields of the products being filtered. See SearchRequest.filter for definition and syntax. The value must be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned. */
|
|
1856
1856
|
filter?: string;
|
|
@@ -4960,7 +4960,7 @@ declare namespace gapi.client {
|
|
|
4960
4960
|
): Request<GoogleCloudRetailV2alphaSearchResponse>;
|
|
4961
4961
|
}
|
|
4962
4962
|
interface UserEventsResource {
|
|
4963
|
-
/** Writes a single user event from the browser. For larger user event payload over 16 KB, the POST method should be used instead, otherwise a 400 Bad Request error is returned. This method is used only by the
|
|
4963
|
+
/** Writes a single user event from the browser. For larger user event payload over 16 KB, the POST method should be used instead, otherwise a 400 Bad Request error is returned. This method is used only by the AI Commerce Search API JavaScript pixel and Google Tag Manager. Users should not call this method directly. */
|
|
4964
4964
|
collect(request: {
|
|
4965
4965
|
/** V1 error format. */
|
|
4966
4966
|
'$.xgafv'?: '1' | '2';
|
|
@@ -6217,7 +6217,7 @@ declare namespace gapi.client {
|
|
|
6217
6217
|
): Request<GoogleCloudRetailV2alphaProject>;
|
|
6218
6218
|
}
|
|
6219
6219
|
interface ProjectsResource {
|
|
6220
|
-
/** The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables
|
|
6220
|
+
/** The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables AI Commerce Search API, so you don't need to call the enrollSolution method for recommendations. */
|
|
6221
6221
|
enrollSolution(request: {
|
|
6222
6222
|
/** V1 error format. */
|
|
6223
6223
|
'$.xgafv'?: '1' | '2';
|
|
@@ -6329,7 +6329,7 @@ declare namespace gapi.client {
|
|
|
6329
6329
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6330
6330
|
uploadType?: string;
|
|
6331
6331
|
}): Request<GoogleCloudRetailV2alphaLoggingConfig>;
|
|
6332
|
-
/** Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the
|
|
6332
|
+
/** Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the AI Commerce Search API service. */
|
|
6333
6333
|
getRetailProject(request?: {
|
|
6334
6334
|
/** V1 error format. */
|
|
6335
6335
|
'$.xgafv'?: '1' | '2';
|
|
@@ -6356,7 +6356,7 @@ declare namespace gapi.client {
|
|
|
6356
6356
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
6357
6357
|
uploadType?: string;
|
|
6358
6358
|
}): Request<GoogleCloudRetailV2alphaProject>;
|
|
6359
|
-
/** Lists all the
|
|
6359
|
+
/** Lists all the AI Commerce Search API solutions the project has enrolled. */
|
|
6360
6360
|
listEnrolledSolutions(request?: {
|
|
6361
6361
|
/** V1 error format. */
|
|
6362
6362
|
'$.xgafv'?: '1' | '2';
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -82,7 +82,7 @@ After that you can use Vertex AI Search for commerce API resources: <!-- TODO: m
|
|
|
82
82
|
|
|
83
83
|
```typescript
|
|
84
84
|
/*
|
|
85
|
-
The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables
|
|
85
|
+
The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables AI Commerce Search API, so you don't need to call the enrollSolution method for recommendations.
|
|
86
86
|
*/
|
|
87
87
|
await gapi.client.retail.projects.enrollSolution({project: 'project'});
|
|
88
88
|
|
|
@@ -97,12 +97,12 @@ Gets the LoggingConfig of the requested project.
|
|
|
97
97
|
await gapi.client.retail.projects.getLoggingConfig({name: 'name'});
|
|
98
98
|
|
|
99
99
|
/*
|
|
100
|
-
Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the
|
|
100
|
+
Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the AI Commerce Search API service.
|
|
101
101
|
*/
|
|
102
102
|
await gapi.client.retail.projects.getRetailProject({name: 'name'});
|
|
103
103
|
|
|
104
104
|
/*
|
|
105
|
-
Lists all the
|
|
105
|
+
Lists all the AI Commerce Search API solutions the project has enrolled.
|
|
106
106
|
*/
|
|
107
107
|
await gapi.client.retail.projects.listEnrolledSolutions({parent: 'parent'});
|
|
108
108
|
|