@wix/bex-utils 2.71.0 → 2.73.0
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/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.d.ts +115 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.js +1340 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.d.ts +29 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.js +524 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.d.ts +20 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.js +119 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/client/proto-generated.d.ts +18874 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/proto-generated.d.ts +9468 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/proto-generated.js +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/server/proto-generated.d.ts +18788 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.d.ts +39 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.js +113 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.d.ts +1248 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.js +371 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.d.ts +115 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.js +1209 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.d.ts +29 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.js +516 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.d.ts +20 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.js +92 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.d.ts +39 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.js +86 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.d.ts +1248 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.js +368 -0
- package/@wix/ambassador-dealer-v1-serving-offer/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-dealer-v1-serving-offer/builders/package.json +7 -0
- package/@wix/ambassador-dealer-v1-serving-offer/http/package.json +7 -0
- package/@wix/ambassador-dealer-v1-serving-offer/meta/package.json +7 -0
- package/@wix/ambassador-dealer-v1-serving-offer/package.json +52 -0
- package/@wix/ambassador-dealer-v1-serving-offer/rpc/package.json +6 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_properties.proto +46 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_results.proto +39 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiment_support_kpis.proto +29 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/experiments_properties_thin.proto +31 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/abtest/v2/wixab_service.proto +81 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/annotations.proto +451 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/api_errors.proto +142 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/callback.proto +163 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/entity.proto +127 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/errors.proto +127 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/permissions.proto +46 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/api/validations.proto +142 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/dataextensions/extended-fields.proto +20 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/dataextensions/update-extended-fields-messages.proto +15 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/data/errors.proto +435 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/media.proto +280 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/query.proto +812 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/common/wixlink.proto +203 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/audiences.proto +226 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/campaigns.proto +270 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/frequency-caps.proto +74 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/localization-managers.proto +11 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/managers.proto +11 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offer-test.proto +338 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offer.proto +298 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/offers-service.proto +696 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/placements.proto +423 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/schemas-service.proto +142 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/targeting.proto +378 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/paging.proto +126 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/query.proto +840 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerBackoffice/api/v1/upstream/wix/common/sorting.proto +37 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/dealer-offers-debug.proto +188 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/dealer-offers-serving.proto +177 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerOffersServing/api/v1/offer.proto +87 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerPriority/api/v1/priority-service.proto +57 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/dealerPriority/api/v1/priority.proto +132 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/optimization_tester_service.proto +284 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/test.proto +170 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/bulk.proto +56 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/paging.proto +121 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/query.proto +741 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/optimization_test/v1/upstream/wix/common/sorting.proto +26 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/targeting/v1/targeting.proto +406 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/targeting/v1/targeting_service.proto +247 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/variants_generator/v1/variant.proto +92 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/personalize/variants_generator/v1/variants_generator_service.proto +73 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/spi/definitions.proto +187 -0
- package/@wix/ambassador-dealer-v1-serving-offer/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-dealer-v1-serving-offer/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +4 -0
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/package.json +6 -5
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerBackoffice.api.v1.upstream.wix.common;
|
|
4
|
+
|
|
5
|
+
import "wix/api/annotations.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
import "google/protobuf/struct.proto";
|
|
8
|
+
|
|
9
|
+
option java_multiple_files = true;
|
|
10
|
+
option java_package = "com.wix.dealerBackoffice.api.v1.upstream.wix.common";
|
|
11
|
+
|
|
12
|
+
message Sorting {
|
|
13
|
+
option (.wix.api.decomposite_of) = "wix.common.Sorting";
|
|
14
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
15
|
+
field: "field_name"
|
|
16
|
+
field: "order"
|
|
17
|
+
};
|
|
18
|
+
// Name of the field to sort by.
|
|
19
|
+
string field_name = 1 [(.wix.api.maxLength) = 512];
|
|
20
|
+
// Sort order.
|
|
21
|
+
SortOrder order = 2;
|
|
22
|
+
// When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
23
|
+
// a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
24
|
+
//
|
|
25
|
+
// If multiple filters are provided, they are combined with AND operator.
|
|
26
|
+
//
|
|
27
|
+
// Example:
|
|
28
|
+
// Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
29
|
+
// and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
30
|
+
// { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
31
|
+
repeated google.protobuf.Struct select_items_by = 3 [(.wix.api.maxSize) = 10, (.wix.api.field_exposure) = PRIVATE];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
enum SortOrder {
|
|
35
|
+
ASC = 0;
|
|
36
|
+
DESC = 1;
|
|
37
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerOffersServing.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/api/annotations.proto";
|
|
6
|
+
import "wix/api/annotations.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
import "wix/api/entity.proto";
|
|
9
|
+
import "google/protobuf/wrappers.proto";
|
|
10
|
+
import "google/protobuf/timestamp.proto";
|
|
11
|
+
import "wix/api/permissions.proto";
|
|
12
|
+
|
|
13
|
+
import "wix/dealerOffersServing/api/v1/offer.proto";
|
|
14
|
+
import "wix/dealerBackoffice/api/v1/targeting.proto";
|
|
15
|
+
import "wix/dealerBackoffice/api/v1/frequency-caps.proto";
|
|
16
|
+
import "wix/personalize/targeting/v1/targeting.proto";
|
|
17
|
+
|
|
18
|
+
option java_package = "com.wix.dealerOffersServing.api.v1";
|
|
19
|
+
|
|
20
|
+
// Endpoint for evaluating dealer runtime results explicitly and understanding why user was eligible or not to an offer.
|
|
21
|
+
service DealerOffersDebug {
|
|
22
|
+
option (wix.api.service_entity).message = "wix.dealerOffersServing.api.v1.Offer";
|
|
23
|
+
option (wix.api.service_maturity) = ALPHA;
|
|
24
|
+
option (wix.api.service_exposure) = PRIVATE;
|
|
25
|
+
|
|
26
|
+
// Debug offer in a given context.
|
|
27
|
+
// Will return the offer and its audience result.
|
|
28
|
+
// Only for permitted users.
|
|
29
|
+
// Context is always explicit and can contains information such as userId, siteId, loggedInAccounnt etc.
|
|
30
|
+
rpc DebugOffer (DebugOfferRequest) returns (DebugOfferResponse) {
|
|
31
|
+
option (wix.api.maturity) = ALPHA;
|
|
32
|
+
option (google.api.http) = {
|
|
33
|
+
post: "/v1/dealer/debug/offers/{offer_id}/debug"
|
|
34
|
+
additional_bindings: {
|
|
35
|
+
get: "/v1/dealer/debug/offers/{offer_id}"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
option (wix.api.permission).name = "DEALER.DEBUG";
|
|
39
|
+
option (wix.api.required) = "DebugOfferRequest.offer_id";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Get a single offer with creative.
|
|
43
|
+
rpc GetOffer (GetOfferRequest) returns (GetOfferResponse) {
|
|
44
|
+
option (google.api.http).get = "/v1/dealer/debug/offer/{offer_id}";
|
|
45
|
+
option (wix.api.permission).name = "DEALER.DEBUG";
|
|
46
|
+
option (wix.api.required) = "GetOfferRequest.offer_id";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Input params for evaluating an offer.
|
|
51
|
+
message DebugOfferRequest {
|
|
52
|
+
// Offer guid to debug
|
|
53
|
+
string offer_id = 1;
|
|
54
|
+
|
|
55
|
+
// Explicit request params. Required.
|
|
56
|
+
RequestContext context = 2;
|
|
57
|
+
|
|
58
|
+
// List of custom param's values, some offers are targeted by those values. Optional.
|
|
59
|
+
repeated CustomParam custom_params = 3;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Input params for evaluating the offer's creative.
|
|
63
|
+
message GetOfferRequest {
|
|
64
|
+
// Offer guid to evaluate
|
|
65
|
+
string offer_id = 1;
|
|
66
|
+
|
|
67
|
+
// Explicit request context params. Optional.
|
|
68
|
+
RequestContext context = 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message DebugOfferResponse {
|
|
72
|
+
// Offer being inspected
|
|
73
|
+
Offer offer = 1;
|
|
74
|
+
|
|
75
|
+
// Offer targeting tree inflated with execution results
|
|
76
|
+
wix.dealerBackoffice.api.v1.Targeting targeting = 2 [deprecated = true, (.wix.api.field_deprecated) = {
|
|
77
|
+
// Property is deprecated and replaced by TargetingTree
|
|
78
|
+
replaced_by: "targeting_tree"
|
|
79
|
+
target_removal_date: "2024-09-01"
|
|
80
|
+
}];
|
|
81
|
+
|
|
82
|
+
// General release rules results such as experiment and offer status
|
|
83
|
+
ReleaseAudience release_audience = 6;
|
|
84
|
+
|
|
85
|
+
// Debug results for this offer frequency caps (null if no FC applicable)
|
|
86
|
+
FrequencyCapsExecutionResult frequency_caps_execution_result = 7;
|
|
87
|
+
|
|
88
|
+
// Nile targeting tree with execution results
|
|
89
|
+
wix.personalize.targeting.v1.TargetingTree targeting_tree = 8;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Return the requested offer with personalized content for given request params & aspects.
|
|
93
|
+
message GetOfferResponse {
|
|
94
|
+
// Offer being inspected
|
|
95
|
+
Offer offer = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Results of an offer frequency caps evaluation.
|
|
99
|
+
message FrequencyCapsExecutionResult {
|
|
100
|
+
// true — the offer is eligible based on frequency caps limits
|
|
101
|
+
// false — the offer is limited (not returned from runtime) by frequency caps conditions
|
|
102
|
+
bool offerEligible = 1;
|
|
103
|
+
|
|
104
|
+
// The offer's frequency caps config being applied (either placement level FC or the offer's)
|
|
105
|
+
wix.dealerBackoffice.api.v1.FrequencyCaps frequency_caps = 2;
|
|
106
|
+
|
|
107
|
+
// Frequency caps conditions with values set to current offer+user+metasite+events data
|
|
108
|
+
FrequencyCapsConditionsResult conditions_execution_result = 3;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Execution result per each FC limit type, currentValue is human readable representation of actual data
|
|
112
|
+
// success = true means limit has not been reached (offer is eligible according to this limit)
|
|
113
|
+
message FrequencyCapsConditionsResult {
|
|
114
|
+
// Number of total VIEW events
|
|
115
|
+
wix.dealerBackoffice.api.v1.ExecutionResult views = 1;
|
|
116
|
+
// Number of total MAIN_CTA events
|
|
117
|
+
wix.dealerBackoffice.api.v1.ExecutionResult main_cta_clicks = 2;
|
|
118
|
+
// Number of total SKIP events
|
|
119
|
+
wix.dealerBackoffice.api.v1.ExecutionResult skips = 3;
|
|
120
|
+
// Number of total CLOSE events
|
|
121
|
+
wix.dealerBackoffice.api.v1.ExecutionResult closes = 4;
|
|
122
|
+
// Number of total SHOW_LATER events
|
|
123
|
+
wix.dealerBackoffice.api.v1.ExecutionResult show_later = 5;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Explicit context to simulate real user requests to runtime.
|
|
127
|
+
message RequestContext {
|
|
128
|
+
// User guid. Optional.
|
|
129
|
+
google.protobuf.StringValue user_id = 1 [(wix.api.format) = GUID];
|
|
130
|
+
|
|
131
|
+
// Target account. Optional.
|
|
132
|
+
google.protobuf.StringValue target_account_id = 2 [(wix.api.format) = GUID];
|
|
133
|
+
|
|
134
|
+
// Logged in account. Optional.
|
|
135
|
+
google.protobuf.StringValue logged_in_account_id = 3 [(wix.api.format) = GUID];
|
|
136
|
+
|
|
137
|
+
// Metasite id. Optional.
|
|
138
|
+
google.protobuf.StringValue site_id = 4 [(wix.api.format) = GUID];
|
|
139
|
+
|
|
140
|
+
// User's two letters geo ("il", "us")
|
|
141
|
+
google.protobuf.StringValue geo = 5;
|
|
142
|
+
|
|
143
|
+
// User's two letters language ("en", "fr")
|
|
144
|
+
google.protobuf.StringValue language = 6;
|
|
145
|
+
|
|
146
|
+
reserved 7;
|
|
147
|
+
reserved 8;
|
|
148
|
+
|
|
149
|
+
// Nile targeting brand
|
|
150
|
+
wix.personalize.targeting.v1.BrandsCriteria.Brand brand_value = 9;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Current offer eligibility status related data:
|
|
154
|
+
// - offer's availability for all users or employees only
|
|
155
|
+
// - current timeframe eligibility
|
|
156
|
+
// - offer's petri experiment based eligibility
|
|
157
|
+
//
|
|
158
|
+
message ReleaseAudience {
|
|
159
|
+
// Who can see the offer (wix staff vs all users)
|
|
160
|
+
Status release_status = 1;
|
|
161
|
+
|
|
162
|
+
// Execution result of release_status filter (if current audience match offer's one)
|
|
163
|
+
wix.dealerBackoffice.api.v1.ExecutionResult release_execution_result = 11;
|
|
164
|
+
|
|
165
|
+
// The offer is active from this timestamp
|
|
166
|
+
google.protobuf.Timestamp time_start = 2;
|
|
167
|
+
// The offer is inactive after this timestamp
|
|
168
|
+
google.protobuf.Timestamp time_stop = 3;
|
|
169
|
+
|
|
170
|
+
// If current time is inside the offer timeframe
|
|
171
|
+
wix.dealerBackoffice.api.v1.ExecutionResult time_execution_result = 12;
|
|
172
|
+
|
|
173
|
+
// If offer is active only for some petri experiment - here is its key
|
|
174
|
+
google.protobuf.StringValue experiment_key = 4;
|
|
175
|
+
// If offer is active only for some petri experiment - here is its required value
|
|
176
|
+
google.protobuf.StringValue experiment_value = 5;
|
|
177
|
+
|
|
178
|
+
// If given user petri experiment matches offer's value
|
|
179
|
+
wix.dealerBackoffice.api.v1.ExecutionResult experiment_execution_result = 13;
|
|
180
|
+
|
|
181
|
+
// Target release audience scope of the offer
|
|
182
|
+
enum Status {
|
|
183
|
+
UNKNOWN = 0;
|
|
184
|
+
ALL = 1;
|
|
185
|
+
WIX_EMPLOYEE = 2;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerOffersServing.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/api/annotations.proto";
|
|
6
|
+
import "wix/api/annotations.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
import "wix/api/entity.proto";
|
|
9
|
+
import "google/protobuf/wrappers.proto";
|
|
10
|
+
import "wix/api/permissions.proto";
|
|
11
|
+
|
|
12
|
+
import "wix/dealerOffersServing/api/v1/offer.proto";
|
|
13
|
+
import "wix/dealerBackoffice/api/v1/frequency-caps.proto";
|
|
14
|
+
import "wix/dealerBackoffice/api/v1/placements.proto";
|
|
15
|
+
|
|
16
|
+
option java_package = "com.wix.dealerOffersServing.api.v1";
|
|
17
|
+
|
|
18
|
+
// Main runtime endpoint of the Dealer.
|
|
19
|
+
// TODO: add explicit permission
|
|
20
|
+
// https://bo.wix.com/wix-docs/rnd/platformization-guidelines/authorization-&-permissions#platformization-guidelines_authorization-&-permissions_1-in-your-proto-files
|
|
21
|
+
service DealerOffersServing {
|
|
22
|
+
option (wix.api.service_entity).message = "wix.dealerOffersServing.api.v1.Offer";
|
|
23
|
+
option (wix.api.service_maturity) = GA;
|
|
24
|
+
option (wix.api.service_exposure) = INTERNAL;
|
|
25
|
+
|
|
26
|
+
// Get all offers the user or site are eligible for.
|
|
27
|
+
// A realEstateId (placementId) defines the product location of the offers and is always required,
|
|
28
|
+
// Context is taken implicitly from request with authorization header and wix session.
|
|
29
|
+
rpc ListOffers (ListOffersRequest) returns (ListOffersResponse) {
|
|
30
|
+
option (google.api.http) = {
|
|
31
|
+
post: "/v1/dealer/serving/offers/list"
|
|
32
|
+
additional_bindings: {
|
|
33
|
+
get: "/v1/dealer/serving/offers"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
option (wix.api.required) = "ListOffersRequest.real_estate_id";
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Get a single offer if the user or site are eligible for.
|
|
40
|
+
// Context is taken implicitly from request with authorization header and wix session.
|
|
41
|
+
rpc ResolveOffer (ResolveOfferRequest) returns (ResolveOfferResponse) {
|
|
42
|
+
option (google.api.http) = {
|
|
43
|
+
post: "/v1/dealer/serving/offer/resolve"
|
|
44
|
+
additional_bindings: {
|
|
45
|
+
get: "/v1/dealer/serving/offer/resolve"
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
option (wix.api.required) = "ResolveOfferRequest.offer_id";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Get all offers the user or site are eligible for.
|
|
52
|
+
// This is a bulk request for more then one realEstate (placement),
|
|
53
|
+
// max limit of 30 offers is applied for each placement.
|
|
54
|
+
// Context is taken implicitly from request with authorization header and wix session.
|
|
55
|
+
rpc ListOffersBulk (ListOffersBulkRequest) returns (ListOffersBulkResponse) {
|
|
56
|
+
option (google.api.http) = {
|
|
57
|
+
post: "/v1/dealer/serving/offers/bulk"
|
|
58
|
+
additional_bindings: {
|
|
59
|
+
get: "/v1/dealer/serving/offers/bulk"
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
option (wix.api.required) = "ListOffersBulkRequest.real_estate_ids";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Params required to list offers for given placement (real estate).
|
|
67
|
+
message ListOffersRequest {
|
|
68
|
+
// Dealer placement guid (product location). Required.
|
|
69
|
+
string real_estate_id = 1;
|
|
70
|
+
|
|
71
|
+
// Only <= limit number of offers returned if more are applicable. Optional, default limit is 30 offers
|
|
72
|
+
google.protobuf.Int32Value limit = 2;
|
|
73
|
+
|
|
74
|
+
// Which offers to exclude from results. Optional.
|
|
75
|
+
repeated string exclude_offer_ids = 3 [(wix.api.format) = GUID];
|
|
76
|
+
|
|
77
|
+
reserved 4;
|
|
78
|
+
|
|
79
|
+
// DEPRECATED - plz use server signer.
|
|
80
|
+
// Optional - override specific fields that by default coming from aspects
|
|
81
|
+
// if not set will be taken implicitly from request
|
|
82
|
+
RequestExtensions extensions = 5;
|
|
83
|
+
|
|
84
|
+
// Deviant Art specific use-case: signed jwt token with uuid of deviant art user in wix bi infra
|
|
85
|
+
google.protobuf.StringValue deviant_art_user_id = 6;
|
|
86
|
+
|
|
87
|
+
// List of custom param's values, some offers are targeted by those values. Optional
|
|
88
|
+
repeated CustomParam custom_params = 7;
|
|
89
|
+
|
|
90
|
+
// Optional - Enable to override or abort frequency caps configuration
|
|
91
|
+
// if not set, the default offer or placement frequency caps hierarchy will be used (if configured)
|
|
92
|
+
FrequencyCapsRequestOverrides frequency_caps_overrides = 8;
|
|
93
|
+
|
|
94
|
+
// SkipTargeting flag allows bypassing the targeting validation and retrieving all live offers, regardless of user/site eligibility. Optional.
|
|
95
|
+
google.protobuf.BoolValue skip_targeting = 9;
|
|
96
|
+
|
|
97
|
+
// Optional - Enable to override the placement default prioritization strategy configuration
|
|
98
|
+
PrioritizationStrategyOverrides prioritization_strategy_overrides = 10;
|
|
99
|
+
|
|
100
|
+
message FrequencyCapsRequestOverrides {
|
|
101
|
+
//Set of frequency caps conditions to use in the request
|
|
102
|
+
//Set as null if you want to abort the frequency caps for this request (this will also follow the override type behaviour)
|
|
103
|
+
wix.dealerBackoffice.api.v1.FrequencyCaps.Conditions conditions = 1;
|
|
104
|
+
//Mandatory - this controls the conditions overrides behaviour and must be one of those 2 types:
|
|
105
|
+
//PLACEMENT_LEVEL - Will only be applied for offers without frequency caps
|
|
106
|
+
//OFFER_LEVEL - Will be applied to all offers with or without frequency caps
|
|
107
|
+
FrequencyCapsOverridesType type = 2;
|
|
108
|
+
|
|
109
|
+
enum FrequencyCapsOverridesType {
|
|
110
|
+
UNKNOWN = 0;
|
|
111
|
+
PLACEMENT_LEVEL = 1;
|
|
112
|
+
OFFER_LEVEL = 2;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
message PrioritizationStrategyOverrides {
|
|
117
|
+
// Set of prioritization strategy conditions to use in the request
|
|
118
|
+
wix.dealerBackoffice.api.v1.Placement.PrioritizationStrategyConfig prioritization_strategy_config = 1;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Params required to list offers for multiple placements (real estates) in a single call.
|
|
123
|
+
message ListOffersBulkRequest {
|
|
124
|
+
|
|
125
|
+
// List of dealer real estates (placements). Required.
|
|
126
|
+
repeated string real_estate_ids = 1 [(wix.api.minSize) = 1];
|
|
127
|
+
|
|
128
|
+
// Excluded offer ids will never be returend to the user. Optional
|
|
129
|
+
repeated string exclude_offer_ids = 2 [(wix.api.format) = GUID];
|
|
130
|
+
|
|
131
|
+
reserved 3;
|
|
132
|
+
|
|
133
|
+
// DEPRECATED
|
|
134
|
+
// This data overrides specific fields coming from aspects if not set will be taken implicitly from request.
|
|
135
|
+
// Optional.
|
|
136
|
+
RequestExtensions extensions = 4;
|
|
137
|
+
|
|
138
|
+
// List of custom param's values, some offers are targeted by those values. Optional.
|
|
139
|
+
repeated CustomParam custom_params = 5;
|
|
140
|
+
|
|
141
|
+
// SkipTargeting flag allows bypassing the targeting validation and retrieving all live offers, regardless of user/site eligibility. Optional.
|
|
142
|
+
google.protobuf.BoolValue skip_targeting = 6;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Input params for evaluating the offer.
|
|
146
|
+
message ResolveOfferRequest {
|
|
147
|
+
// Offer guid to evaluate
|
|
148
|
+
string offer_id = 1;
|
|
149
|
+
|
|
150
|
+
// List of custom param's values, some offers are targeted by those values. Optional
|
|
151
|
+
repeated CustomParam custom_params = 2;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
// DEPRECATED
|
|
156
|
+
// Explicit metasite id request option.
|
|
157
|
+
message RequestExtensions {
|
|
158
|
+
// User needs permission DEALER.OFFERS_SERVING_SITE_TARGETING to pass it. Optional.
|
|
159
|
+
google.protobuf.StringValue site_id = 1 [(wix.api.format) = GUID];
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// All eligible offers with personalized content for given request params & aspects.
|
|
163
|
+
message ListOffersResponse {
|
|
164
|
+
// Offers eligible for correspondent request at the moment of the call
|
|
165
|
+
repeated Offer offers = 1;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Return the requested offer (if eligible) with personalized content for given request params & aspects.
|
|
169
|
+
message ResolveOfferResponse {
|
|
170
|
+
// Offer being inspected
|
|
171
|
+
Offer offer = 1;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
message ListOffersBulkResponse {
|
|
175
|
+
// a map from realEstate(placement) id to list of offers
|
|
176
|
+
map<string, ListOffersResponse> real_estates = 1;
|
|
177
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerOffersServing.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "google/protobuf/timestamp.proto";
|
|
7
|
+
import "wix/api/entity.proto";
|
|
8
|
+
import "wix/api/validations.proto";
|
|
9
|
+
import "google/protobuf/struct.proto";
|
|
10
|
+
|
|
11
|
+
option java_package = "com.wix.dealerOffersServing.api.v1";
|
|
12
|
+
|
|
13
|
+
// Main dealer runtime entity. Always belongs to some placement (real estate) and represents specific set of data
|
|
14
|
+
// intended to be returned conditionally from dealer runtime for given input (user, aspects, time etc.).
|
|
15
|
+
// Main source of the conditions is targeting property, which holds the rules.
|
|
16
|
+
message Offer {
|
|
17
|
+
option (wix.api.entity).fqdn = "wix.dealer.v1.serving_offer";
|
|
18
|
+
|
|
19
|
+
// Unique offer id
|
|
20
|
+
string offer_guid = 1 [(wix.api.format) = GUID];
|
|
21
|
+
|
|
22
|
+
// Dealer real estate (placement) id
|
|
23
|
+
string real_estate_id = 2;
|
|
24
|
+
|
|
25
|
+
// Backoffice name of offer (not needed for users, but needed for PMMs to distinguish one offer from another in BO UI)
|
|
26
|
+
string offer_name = 3;
|
|
27
|
+
|
|
28
|
+
reserved 4;
|
|
29
|
+
|
|
30
|
+
// Offer data payload (actual things clients show to user in some form)
|
|
31
|
+
Asset asset = 5;
|
|
32
|
+
|
|
33
|
+
reserved 6;
|
|
34
|
+
|
|
35
|
+
// Dealer campaign this offer belongs to (optional)
|
|
36
|
+
google.protobuf.StringValue campaign_id = 7;
|
|
37
|
+
|
|
38
|
+
// The date the offer was created or scheduled to — not related to date of activation
|
|
39
|
+
google.protobuf.Timestamp start_date = 8;
|
|
40
|
+
|
|
41
|
+
// The date this offers is intended to stop at
|
|
42
|
+
google.protobuf.Timestamp end_date = 9;
|
|
43
|
+
|
|
44
|
+
// Prioritziation metadata
|
|
45
|
+
google.protobuf.Struct priority_metadata = 10;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Actual offer content to show to user or use by dealer clients. For example strings to show to user in some widget,
|
|
49
|
+
// banner id to show, etc.
|
|
50
|
+
message Asset {
|
|
51
|
+
// DEPRECATED - The personlized content for the user - json string
|
|
52
|
+
// The field wont be avilable for new placements that were created after 8.11
|
|
53
|
+
string payload_json = 1;
|
|
54
|
+
|
|
55
|
+
// Key<->Value dynamic params defined in BO
|
|
56
|
+
// the key is the interpolation key and the value is stringify json
|
|
57
|
+
// for example {myKeyWithMail:"'menir@wix.com'", keyWithNumberValue:"55", keyWithBool:"false"}
|
|
58
|
+
// in client side you will need to json parse in order to get correct data types.
|
|
59
|
+
// Returns only dynamic params that has some value
|
|
60
|
+
map<string, string> dynamic_params = 2;
|
|
61
|
+
|
|
62
|
+
// Same array of key<->value translations as in BO, but only for 1 client language-country
|
|
63
|
+
// DEPRECATED, used for New Releases only
|
|
64
|
+
reserved 3;
|
|
65
|
+
|
|
66
|
+
// The personlized and localized content for the user - json object mataching the placement schema.
|
|
67
|
+
// Avilable only on new placements that were created after 8.11 or on placement that were migrated to use new creative infra
|
|
68
|
+
google.protobuf.Struct creative = 4;
|
|
69
|
+
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// DEPRECATED, used for New Releases only.
|
|
73
|
+
// List of offers localized strings, defined in BO on offer creation/update.
|
|
74
|
+
// Runtime returns only user language-country localized values (or "en" as fallback)
|
|
75
|
+
// while BO API can give you full list of strings in all locales
|
|
76
|
+
message LocalizedData {
|
|
77
|
+
// string key -> content map
|
|
78
|
+
map<string, string> translations = 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Custom params object used as additional data input for runtime/debug endpoint calls.
|
|
82
|
+
message CustomParam {
|
|
83
|
+
// unique key for custom param
|
|
84
|
+
google.protobuf.StringValue key = 1;
|
|
85
|
+
// current request value or values for given key
|
|
86
|
+
repeated google.protobuf.StringValue values = 2;
|
|
87
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerPriority.api.v1;
|
|
4
|
+
|
|
5
|
+
import "google/api/annotations.proto";
|
|
6
|
+
import "google/protobuf/timestamp.proto";
|
|
7
|
+
import "google/protobuf/wrappers.proto";
|
|
8
|
+
import "google/protobuf/struct.proto";
|
|
9
|
+
|
|
10
|
+
import "wix/api/annotations.proto";
|
|
11
|
+
import "wix/api/validations.proto";
|
|
12
|
+
import "wix/api/permissions.proto";
|
|
13
|
+
import "wix/api/api_errors.proto";
|
|
14
|
+
import "wix/api/entity.proto";
|
|
15
|
+
import "wix/common/query.proto";
|
|
16
|
+
import "wix/common/paging.proto";
|
|
17
|
+
|
|
18
|
+
import "wix/dealerPriority/api/v1/priority.proto";
|
|
19
|
+
|
|
20
|
+
option java_package = "com.wix.dealerPriority.api.v1";
|
|
21
|
+
|
|
22
|
+
service PriorityService {
|
|
23
|
+
option (wix.api.service_entity).message = "wix.dealerPriority.api.v1.PriorityItem";
|
|
24
|
+
option (wix.api.service_maturity) = ALPHA;
|
|
25
|
+
option (wix.api.service_exposure) = INTERNAL;
|
|
26
|
+
|
|
27
|
+
rpc Prioritize (PrioritizeRequest) returns (PrioritizeResponse) {
|
|
28
|
+
option (google.api.http).post = "/v1/prioritize";
|
|
29
|
+
option (wix.api.required) = "PrioritizeRequest.items";
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message PrioritizeRequest {
|
|
34
|
+
repeated PriorityItem items = 1;
|
|
35
|
+
|
|
36
|
+
reserved 2;
|
|
37
|
+
|
|
38
|
+
Context context = 3;
|
|
39
|
+
|
|
40
|
+
PrioritizationStrategyParams strategy_params = 4;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message PrioritizeResponse {
|
|
44
|
+
repeated ItemPrioritized prioritization = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Explicit context to simulate user requests.
|
|
48
|
+
message Context {
|
|
49
|
+
// User guid. Optional.
|
|
50
|
+
google.protobuf.StringValue user_id = 1 [(wix.api.format) = GUID];
|
|
51
|
+
|
|
52
|
+
// Client id. Optional.
|
|
53
|
+
google.protobuf.StringValue client_id = 2 [(wix.api.format) = GUID];
|
|
54
|
+
|
|
55
|
+
// Placement ID of the placement associated with the offers that need to be prioritized.
|
|
56
|
+
google.protobuf.StringValue placement_id = 3 [(wix.api.format) = GUID];
|
|
57
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.dealerPriority.api.v1;
|
|
4
|
+
|
|
5
|
+
import "wix/api/permissions.proto";
|
|
6
|
+
import "google/api/annotations.proto";
|
|
7
|
+
import "google/protobuf/timestamp.proto";
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
import "google/protobuf/struct.proto";
|
|
10
|
+
|
|
11
|
+
import "wix/api/annotations.proto";
|
|
12
|
+
import "wix/api/validations.proto";
|
|
13
|
+
import "wix/api/entity.proto";
|
|
14
|
+
|
|
15
|
+
option java_package = "com.wix.dealerPriority.api.v1";
|
|
16
|
+
|
|
17
|
+
message PriorityItem {
|
|
18
|
+
option (wix.api.entity) = {fqdn:"wix.dealer.v1.priority_item", segment: USERS};
|
|
19
|
+
|
|
20
|
+
google.protobuf.StringValue item_id = 1 [(wix.api.format) = GUID];
|
|
21
|
+
|
|
22
|
+
google.protobuf.Int32Value weight = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
message ItemPrioritized {
|
|
26
|
+
google.protobuf.StringValue item_id = 1 [(wix.api.format) = GUID];
|
|
27
|
+
|
|
28
|
+
google.protobuf.Int32Value priority = 2;
|
|
29
|
+
|
|
30
|
+
google.protobuf.Struct metadata = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
enum PrioritizationStrategy {
|
|
34
|
+
UNKNOWN = 0;
|
|
35
|
+
|
|
36
|
+
// Manual - Prioritize by weight of the items.
|
|
37
|
+
// - The items with the largest weight will have the highest priority
|
|
38
|
+
// - Undefined weights will have the lowest priority
|
|
39
|
+
MANUAL = 1;
|
|
40
|
+
|
|
41
|
+
// CTR based, item prioritized from highest CTR to the lowest
|
|
42
|
+
CTR = 2;
|
|
43
|
+
|
|
44
|
+
// Random based item prioritization
|
|
45
|
+
RANDOM = 3;
|
|
46
|
+
|
|
47
|
+
// AB test based item prioritization
|
|
48
|
+
ABCTR = 4;
|
|
49
|
+
|
|
50
|
+
// Premium based item prioritization
|
|
51
|
+
PremiumCTR = 5;
|
|
52
|
+
|
|
53
|
+
// ML Model item prioritization
|
|
54
|
+
MLModel = 6;
|
|
55
|
+
|
|
56
|
+
// LLM Model item prioritization
|
|
57
|
+
reserved 7;
|
|
58
|
+
|
|
59
|
+
// Whats Next item prioritization
|
|
60
|
+
reserved 8;
|
|
61
|
+
|
|
62
|
+
// Advices item prioritization
|
|
63
|
+
ADVICES = 9;
|
|
64
|
+
|
|
65
|
+
// Collections based item prioritization
|
|
66
|
+
COLLECTIONS = 10;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message PrioritizationStrategyParams {
|
|
70
|
+
PrioritizationStrategy strategy = 1;
|
|
71
|
+
|
|
72
|
+
// Learning rate for the supporting strategy
|
|
73
|
+
// should be between 0 and 1
|
|
74
|
+
google.protobuf.StringValue learning_allocation = 2 [(.wix.api.decimalValue) = { gte: "0.000", lte: "1", maxScale: 3 }];
|
|
75
|
+
|
|
76
|
+
//flynt-disable field-type-breaking-change
|
|
77
|
+
repeated FixedItem fixed_items = 5 [(.wix.api.maxSize) = 20];
|
|
78
|
+
|
|
79
|
+
message FixedItem {
|
|
80
|
+
string item_id = 1 [(wix.api.format) = GUID];
|
|
81
|
+
int32 priority = 2;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
oneof Configuration {
|
|
85
|
+
ABCTRConfig ab_ctr_config = 3;
|
|
86
|
+
|
|
87
|
+
WHATSNEXTConfig whats_next_config = 4;
|
|
88
|
+
|
|
89
|
+
AdvicesConfig advices_config = 6;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message ABCTRConfig {
|
|
93
|
+
google.protobuf.StringValue spec_name = 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message WHATSNEXTConfig {
|
|
97
|
+
google.protobuf.Struct custom_params = 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message AdvicesConfig {
|
|
101
|
+
reserved 1;
|
|
102
|
+
|
|
103
|
+
google.protobuf.StringValue vespa_threshold = 2 [(.wix.api.decimalValue) = { gte: "0.000", lte: "1", maxScale: 3 }];
|
|
104
|
+
|
|
105
|
+
PrioritizationStrategy fallback_strategy = 3;
|
|
106
|
+
|
|
107
|
+
oneof AdvicesCustomConfig {
|
|
108
|
+
WhatsNextConfiguration whats_next_custom_params = 4;
|
|
109
|
+
|
|
110
|
+
Advices advices = 5;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message Advices {
|
|
114
|
+
repeated string advices = 1 [(.wix.api.maxSize) = 20];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message WhatsNextConfiguration {
|
|
118
|
+
// customParams - Custom parameters to be used for the WhatsNext Completion.
|
|
119
|
+
google.protobuf.Struct custom_params = 1;
|
|
120
|
+
|
|
121
|
+
// The fixed number of advices to be returned.
|
|
122
|
+
// Default: 5
|
|
123
|
+
// flynt-disable field-type-breaking-change
|
|
124
|
+
google.protobuf.Int32Value total_advices = 2;
|
|
125
|
+
|
|
126
|
+
// llmTimeout - The maximum time to wait for the WhatsNext Completion.
|
|
127
|
+
// Maximum 10 seconds, WIX Cancels requests after 10 seconds.
|
|
128
|
+
// Represented in milliseconds.
|
|
129
|
+
int32 llm_timeout_in_ms = 3 [(.wix.api.min) = 0, (.wix.api.max) = 10000];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|