@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,280 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.common;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.wix.common";
|
|
7
|
+
|
|
8
|
+
import "wix/api/annotations.proto";
|
|
9
|
+
import "wix/common/image.proto";
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
import "google/protobuf/timestamp.proto";
|
|
12
|
+
import "wix/api/validations.proto";
|
|
13
|
+
|
|
14
|
+
// flynt-disable deleted-field-enum-reserved
|
|
15
|
+
message Image {
|
|
16
|
+
// enum TextDetection{
|
|
17
|
+
// // No detection was made
|
|
18
|
+
// UNKNOWN_TEXT_DETECTION = 0;
|
|
19
|
+
// // The image contains text
|
|
20
|
+
// CONTAINS_TEXT = 1;
|
|
21
|
+
// // The image does not contain text
|
|
22
|
+
// NO_TEXT = 2;
|
|
23
|
+
// }
|
|
24
|
+
// enum AnimationDetection{
|
|
25
|
+
// // No detection was made
|
|
26
|
+
// UNKNOWN_ANIMATION_DETECTION = 0;
|
|
27
|
+
// // The image contains animation
|
|
28
|
+
// CONTAINS_ANIMATION = 1;
|
|
29
|
+
// // The image does not contain animation
|
|
30
|
+
// NO_ANIMATION = 2;
|
|
31
|
+
// }
|
|
32
|
+
// message ImageContent{
|
|
33
|
+
// // Text detection
|
|
34
|
+
// TextDetection text = 1;
|
|
35
|
+
// // Animation detection
|
|
36
|
+
// AnimationDetection animation = 2;
|
|
37
|
+
// }
|
|
38
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
39
|
+
field: "id"
|
|
40
|
+
field: "height"
|
|
41
|
+
field: "width"
|
|
42
|
+
};
|
|
43
|
+
// WixMedia image ID.
|
|
44
|
+
string id = 1;
|
|
45
|
+
// Image URL.
|
|
46
|
+
string url = 2;
|
|
47
|
+
// Original image height.
|
|
48
|
+
int32 height = 3 [(.wix.api.readOnly) = true];
|
|
49
|
+
// Original image width.
|
|
50
|
+
int32 width = 4 [(.wix.api.readOnly) = true];
|
|
51
|
+
// Image alt text.
|
|
52
|
+
google.protobuf.StringValue alt_text = 5;
|
|
53
|
+
// Image URL expiration date (when relevant).
|
|
54
|
+
google.protobuf.Timestamp url_expiration_date = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
55
|
+
// Image filename.
|
|
56
|
+
google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
|
|
57
|
+
// Image size in bytes.
|
|
58
|
+
google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
59
|
+
// Focal point of the image.
|
|
60
|
+
FocalPoint focal_point = 9 [(.wix.api.field_exposure) = PRIVATE];
|
|
61
|
+
// Details about the image content.
|
|
62
|
+
// ImageContent image_content = 10 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = INTERNAL];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Deprecated - use VideoV2
|
|
66
|
+
message Video {
|
|
67
|
+
option deprecated = true;
|
|
68
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
69
|
+
field: "id"
|
|
70
|
+
field: "url"
|
|
71
|
+
field: "height"
|
|
72
|
+
field: "width"
|
|
73
|
+
};
|
|
74
|
+
// WixMedia ID
|
|
75
|
+
string id = 1;
|
|
76
|
+
// URL of video
|
|
77
|
+
string url = 2;
|
|
78
|
+
// Original image height
|
|
79
|
+
int32 height = 3 [(.wix.api.readOnly) = true];
|
|
80
|
+
// Original image width
|
|
81
|
+
int32 width = 4 [(.wix.api.readOnly) = true];
|
|
82
|
+
// Video poster
|
|
83
|
+
Image thumbnail = 5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message VideoV2 {
|
|
87
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
88
|
+
field: "id"
|
|
89
|
+
field: "resolutions"
|
|
90
|
+
};
|
|
91
|
+
// WixMedia ID.
|
|
92
|
+
string id = 1;
|
|
93
|
+
// Original video URL.
|
|
94
|
+
string url = 4 [(.wix.api.field_exposure) = PRIVATE];
|
|
95
|
+
// Available resolutions for the video, starting with the optimal resolution.
|
|
96
|
+
repeated VideoResolution resolutions = 2 [(.wix.api.readOnly) = true, (.wix.api.maxSize) = 100];
|
|
97
|
+
// Video filename.
|
|
98
|
+
google.protobuf.StringValue filename = 3 [(.wix.api.readOnly) = true];
|
|
99
|
+
// Video posters.
|
|
100
|
+
repeated Image posters = 5 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
101
|
+
// Original video size in bytes.
|
|
102
|
+
google.protobuf.StringValue size_in_bytes = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
103
|
+
// Video URL expiration date (when relevant).
|
|
104
|
+
google.protobuf.Timestamp url_expiration_date = 7 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
105
|
+
// Original video duration in milliseconds.
|
|
106
|
+
google.protobuf.Int32Value duration_in_milliseconds = 8 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0];
|
|
107
|
+
// A short title for the video. will be used for SEO purposes.
|
|
108
|
+
google.protobuf.StringValue title = 9 [(wix.api.maxLength) = 300, (.wix.api.field_exposure) = PRIVATE];
|
|
109
|
+
// A long description for the video. will be used for SEO purposes.
|
|
110
|
+
google.protobuf.StringValue description = 10 [(wix.api.maxLength) = 2000, (.wix.api.field_exposure) = PRIVATE];
|
|
111
|
+
// Original video height.
|
|
112
|
+
google.protobuf.Int32Value height = 11 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
|
|
113
|
+
// Original video width.
|
|
114
|
+
google.protobuf.Int32Value width = 12 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
message VideoResolution {
|
|
118
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
119
|
+
field: "url"
|
|
120
|
+
field: "height"
|
|
121
|
+
field: "width"
|
|
122
|
+
field: "poster"
|
|
123
|
+
field: "format"
|
|
124
|
+
};
|
|
125
|
+
// Video URL.
|
|
126
|
+
string url = 2;
|
|
127
|
+
// Video height.
|
|
128
|
+
int32 height = 3;
|
|
129
|
+
// Video width.
|
|
130
|
+
int32 width = 4;
|
|
131
|
+
// Deprecated. Use the `posters` property in the parent entity instead.
|
|
132
|
+
Image poster = 5 [(.wix.api.field_exposure) = PRIVATE, deprecated = true];
|
|
133
|
+
// Video format for example, mp4, hls.
|
|
134
|
+
string format = 6;
|
|
135
|
+
// Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
136
|
+
google.protobuf.Timestamp url_expiration_date = 7 [(.wix.api.field_exposure) = PRIVATE, deprecated = true];
|
|
137
|
+
// Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
138
|
+
google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE, deprecated = true];
|
|
139
|
+
// Video quality. For example: 480p, 720p.
|
|
140
|
+
google.protobuf.StringValue quality = 9 [(.wix.api.field_exposure) = PRIVATE];
|
|
141
|
+
// Video filename.
|
|
142
|
+
google.protobuf.StringValue filename = 10 [(.wix.api.field_exposure) = PRIVATE];
|
|
143
|
+
// Video duration in seconds.
|
|
144
|
+
google.protobuf.Int32Value duration_in_seconds = 11 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0, (.wix.api.field_deprecated) = {
|
|
145
|
+
replaced_by: "duration_in_milliseconds"
|
|
146
|
+
target_removal_date: "2024-08-01"
|
|
147
|
+
}];
|
|
148
|
+
// Video duration in milliseconds.
|
|
149
|
+
google.protobuf.Int32Value duration_in_milliseconds = 12 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0];
|
|
150
|
+
|
|
151
|
+
// When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
152
|
+
// In order to access private assets, make a request to:
|
|
153
|
+
// `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
154
|
+
google.protobuf.BoolValue private = 30 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
155
|
+
// Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
156
|
+
// Can be used to request a download for the specific video resolution.
|
|
157
|
+
// For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
158
|
+
google.protobuf.StringValue asset_key = 31 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message Audio {
|
|
162
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
163
|
+
field: "id"
|
|
164
|
+
field: "url"
|
|
165
|
+
};
|
|
166
|
+
// WixMedia ID.
|
|
167
|
+
string id = 1;
|
|
168
|
+
// Audio URL.
|
|
169
|
+
string url = 2;
|
|
170
|
+
// Audio URL expiration date (when relevant).
|
|
171
|
+
google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
172
|
+
// Audio size in bytes.
|
|
173
|
+
google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
174
|
+
// Audio filename.
|
|
175
|
+
google.protobuf.StringValue filename = 5 [(.wix.api.readOnly) = true];
|
|
176
|
+
// Audio duration in milliseconds.
|
|
177
|
+
google.protobuf.Int32Value duration = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
|
|
178
|
+
|
|
179
|
+
// When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
180
|
+
// In order to access private assets, make a request to:
|
|
181
|
+
// `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
182
|
+
google.protobuf.BoolValue private = 30 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
183
|
+
// Key to identify the object relationship to the original media in WixMedia.
|
|
184
|
+
// Can be used to request a download for the specific asset.
|
|
185
|
+
// For example: 128-30kbs.mp3, 320kbs.mp3, 128kbs.mp3
|
|
186
|
+
google.protobuf.StringValue asset_key = 31 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
187
|
+
// Audio format.
|
|
188
|
+
google.protobuf.StringValue format = 32 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
189
|
+
// Audio quality.
|
|
190
|
+
google.protobuf.StringValue quality = 33 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
message Document {
|
|
194
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
195
|
+
field: "id"
|
|
196
|
+
field: "url"
|
|
197
|
+
};
|
|
198
|
+
// WixMedia ID.
|
|
199
|
+
string id = 1;
|
|
200
|
+
// Document URL.
|
|
201
|
+
string url = 2;
|
|
202
|
+
// Document URL expiration date (when relevant).
|
|
203
|
+
google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.field_exposure) = PRIVATE];
|
|
204
|
+
// Document size in bytes.
|
|
205
|
+
google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
|
|
206
|
+
// Document filename.
|
|
207
|
+
google.protobuf.StringValue filename = 5;
|
|
208
|
+
// Document thumbnail.
|
|
209
|
+
Image thumbnail = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message Model3D {
|
|
213
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
214
|
+
field: "id"
|
|
215
|
+
};
|
|
216
|
+
// WixMedia 3D ID.
|
|
217
|
+
string id = 1;
|
|
218
|
+
// 3D URL.
|
|
219
|
+
string url = 2;
|
|
220
|
+
// 3D thumbnail Image
|
|
221
|
+
Image thumbnail = 3;
|
|
222
|
+
// 3D alt text.
|
|
223
|
+
google.protobuf.StringValue alt_text = 5;
|
|
224
|
+
// 3D URL expiration date (when relevant).
|
|
225
|
+
google.protobuf.Timestamp url_expiration_date = 6 [(.wix.api.readOnly) = true];
|
|
226
|
+
// 3D filename.
|
|
227
|
+
google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
|
|
228
|
+
// 3D size in bytes.
|
|
229
|
+
google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.readOnly) = true, (.wix.api.format) = DECIMAL_VALUE];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
message Archive {
|
|
234
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
235
|
+
field: "id"
|
|
236
|
+
};
|
|
237
|
+
// WixMedia ID.
|
|
238
|
+
string id = 1;
|
|
239
|
+
// Archive URL.
|
|
240
|
+
string url = 2;
|
|
241
|
+
// Archive URL expiration date (when relevant).
|
|
242
|
+
google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.readOnly) = true];
|
|
243
|
+
// Archive size in bytes.
|
|
244
|
+
google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.format) = DECIMAL_VALUE];
|
|
245
|
+
// Archive filename.
|
|
246
|
+
google.protobuf.StringValue filename = 5;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
// Deprecated - Copy this message into your service, do not reference it
|
|
253
|
+
message MediaItem {
|
|
254
|
+
option deprecated = true;
|
|
255
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
256
|
+
field: "image"
|
|
257
|
+
};
|
|
258
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
259
|
+
field: "video"
|
|
260
|
+
};
|
|
261
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
262
|
+
field: "document"
|
|
263
|
+
};
|
|
264
|
+
oneof media {
|
|
265
|
+
Image image = 1; // WixMedia image
|
|
266
|
+
Video video = 2; // WixMedia video
|
|
267
|
+
Document document = 3; // WixMedia document
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
message FocalPoint {
|
|
272
|
+
// X-coordinate of the focal point.
|
|
273
|
+
double x = 1;
|
|
274
|
+
// Y-coordinate of the focal point.
|
|
275
|
+
double y = 2;
|
|
276
|
+
// crop by height
|
|
277
|
+
google.protobuf.Int32Value height = 3;
|
|
278
|
+
// crop by width
|
|
279
|
+
google.protobuf.Int32Value width = 4;
|
|
280
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.common;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.wix.common";
|
|
7
|
+
|
|
8
|
+
import "wix/api/annotations.proto";
|
|
9
|
+
import "wix/api/validations.proto";
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
|
|
12
|
+
// Common money formats.
|
|
13
|
+
|
|
14
|
+
// Money.
|
|
15
|
+
// Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
|
|
16
|
+
message Money {
|
|
17
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
18
|
+
field: "value"
|
|
19
|
+
field: "currency"
|
|
20
|
+
};
|
|
21
|
+
// For special cases, one may use just a value without currency to represent money. But:
|
|
22
|
+
// - money MUST be a decimal string, as described below
|
|
23
|
+
// - currency MUST be provided somewhere at the top level of your object
|
|
24
|
+
|
|
25
|
+
// Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
|
|
26
|
+
string value = 1 [(.wix.api.format) = DECIMAL_VALUE];
|
|
27
|
+
// Currency code. Must be valid ISO 4217 currency code (e.g., USD).
|
|
28
|
+
string currency = 2 [(.wix.api.format) = CURRENCY];
|
|
29
|
+
// Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.
|
|
30
|
+
google.protobuf.StringValue formatted_value = 3;
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.common;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_outer_classname = "PageUrlProto";
|
|
7
|
+
option java_package = "com.wix.common";
|
|
8
|
+
|
|
9
|
+
import "wix/api/annotations.proto";
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
|
|
12
|
+
message PageUrl {
|
|
13
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
14
|
+
field: "base"
|
|
15
|
+
field: "path"
|
|
16
|
+
};
|
|
17
|
+
// The base URL. For premium sites, this is the domain. For free sites, this is the site URL. For example, `mysite.wixsite.com/mysite`.
|
|
18
|
+
string base = 1;
|
|
19
|
+
// The relative path for the page within the site. For example, `/product-page/a-product`.
|
|
20
|
+
string path = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message PageUrlV2 {
|
|
24
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
25
|
+
field: "relative_path"
|
|
26
|
+
field: "url"
|
|
27
|
+
};
|
|
28
|
+
// The relative path for the page within the site. For example, `/product-page/a-product`.
|
|
29
|
+
string relative_path = 1;
|
|
30
|
+
// The page's full URL. For example, `https://mysite.com/product-page/a-product`.
|
|
31
|
+
google.protobuf.StringValue url = 2;
|
|
32
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package wix.common;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/wrappers.proto";
|
|
6
|
+
import "wix/api/annotations.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
|
|
9
|
+
option java_multiple_files = true;
|
|
10
|
+
option java_package = "com.wix.common";
|
|
11
|
+
|
|
12
|
+
message Paging {
|
|
13
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
14
|
+
field: "limit"
|
|
15
|
+
field: "offset"
|
|
16
|
+
};
|
|
17
|
+
// Number of items to load.
|
|
18
|
+
google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0];
|
|
19
|
+
// Number of items to skip in the current sort order.
|
|
20
|
+
google.protobuf.Int32Value offset = 2 [(.wix.api.min) = 0];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message CursorPaging {
|
|
24
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
25
|
+
field: "limit"
|
|
26
|
+
field: "cursor"
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// Maximum number of items to return in the results.
|
|
30
|
+
google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 100];
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
Pointer to the next or previous page in the list of results.
|
|
34
|
+
|
|
35
|
+
Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
36
|
+
Not relevant for the first request.
|
|
37
|
+
*/
|
|
38
|
+
google.protobuf.StringValue cursor = 2 [(.wix.api.maxLength) = 16000];
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message PagingMetadata {
|
|
42
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
43
|
+
field: "count"
|
|
44
|
+
field: "offset"
|
|
45
|
+
};
|
|
46
|
+
// Number of items returned in the response.
|
|
47
|
+
google.protobuf.Int32Value count = 1;
|
|
48
|
+
// Offset that was requested.
|
|
49
|
+
google.protobuf.Int32Value offset = 2;
|
|
50
|
+
// Total number of items that match the query.
|
|
51
|
+
google.protobuf.Int32Value total = 3;
|
|
52
|
+
// Flag that indicates the server failed to calculate the `total` field.
|
|
53
|
+
google.protobuf.BoolValue too_many_to_count = 4;
|
|
54
|
+
// Indicates if there are more results after the current page.
|
|
55
|
+
// If `true`, another page of results can be retrieved.
|
|
56
|
+
// If `false`, this is the last page.
|
|
57
|
+
google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message PagingMetadataV2 {
|
|
61
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
62
|
+
field: "count"
|
|
63
|
+
field: "offset"
|
|
64
|
+
};
|
|
65
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
66
|
+
field: "count"
|
|
67
|
+
field: "cursors"
|
|
68
|
+
};
|
|
69
|
+
// Number of items returned in the response.
|
|
70
|
+
google.protobuf.Int32Value count = 1;
|
|
71
|
+
// Offset that was requested.
|
|
72
|
+
google.protobuf.Int32Value offset = 2;
|
|
73
|
+
// Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.
|
|
74
|
+
google.protobuf.Int32Value total = 3;
|
|
75
|
+
// Flag that indicates the server failed to calculate the `total` field.
|
|
76
|
+
google.protobuf.BoolValue too_many_to_count = 4;
|
|
77
|
+
// Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
|
|
78
|
+
Cursors cursors = 5;
|
|
79
|
+
// Indicates if there are more results after the current page.
|
|
80
|
+
// If `true`, another page of results can be retrieved.
|
|
81
|
+
// If `false`, this is the last page.
|
|
82
|
+
google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
// This is the preferred message for cursor-paging enabled services
|
|
87
|
+
|
|
88
|
+
message CursorPagingMetadata {
|
|
89
|
+
option (.wix.api.decomposite_of) = "wix.common.PagingMetadataV2";
|
|
90
|
+
|
|
91
|
+
// Number of items returned in current page.
|
|
92
|
+
google.protobuf.Int32Value count = 1;
|
|
93
|
+
|
|
94
|
+
// Cursor strings that point to the next page, previous page, or both.
|
|
95
|
+
Cursors cursors = 2;
|
|
96
|
+
|
|
97
|
+
/*
|
|
98
|
+
Whether there are more pages to retrieve following the current page.
|
|
99
|
+
|
|
100
|
+
+ `true`: Another page of results can be retrieved.
|
|
101
|
+
+ `false`: This is the last page.
|
|
102
|
+
*/
|
|
103
|
+
google.protobuf.BoolValue has_next = 3;
|
|
104
|
+
|
|
105
|
+
// Total number of items matching the filter.
|
|
106
|
+
// Available only on the first page of *Search* results, not included in *Query* or *List* results.
|
|
107
|
+
// If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.
|
|
108
|
+
google.protobuf.Int32Value total = 4 [(.wix.api.field_exposure) = PRIVATE];
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message Cursors {
|
|
112
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
113
|
+
field: "next"
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// Cursor string pointing to the next page in the list of results.
|
|
117
|
+
google.protobuf.StringValue next = 1 [(.wix.api.maxLength) = 16000];
|
|
118
|
+
|
|
119
|
+
// Cursor pointing to the previous page in the list of results.
|
|
120
|
+
google.protobuf.StringValue prev = 2 [(.wix.api.maxLength) = 16000];
|
|
121
|
+
}
|