@wix/bex-utils 2.32.0 → 2.33.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-media-site-media-v1-file-descriptor/build/cjs/builders.impl.d.ts +89 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js +2249 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js +5 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.d.ts +6 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js +24 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.d.ts +180 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js +971 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.d.ts +30 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js +385 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.d.ts +10010 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.d.ts +5002 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.js +78224 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.d.ts +9973 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.d.ts +189 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js +431 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.d.ts +1387 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js +117 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.d.ts +89 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js +2145 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.d.ts +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js +2 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.d.ts +6 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js +19 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.d.ts +180 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js +949 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.d.ts +30 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js +344 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.d.ts +189 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js +390 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.d.ts +1387 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js +114 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/builders/package.json +7 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/http/package.json +7 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/rpc/package.json +6 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/http/package.json +7 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/meta/package.json +7 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/package.json +53 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/rpc/package.json +6 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_entity.proto +17 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_service.proto +121 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_result.proto +17 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_service.proto +76 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_quota_api.proto +159 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/identification.proto +41 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/media.proto +242 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/paging.proto +121 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/audio_v2.proto +31 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/content_disposition.proto +11 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/download_url.proto +12 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/error_code.proto +49 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/errors.proto +41 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/file_descriptor.proto +140 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/files_service.proto +1030 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folder.proto +48 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folders_service.proto +367 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/identity_info.proto +13 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/image_media.proto +84 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/media_type.proto +15 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/namespace.proto +21 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/operation_status.proto +27 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/other_media.proto +22 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/root_folders.proto +12 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_info.proto +24 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_service.proto +179 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/upload_protocol.proto +9 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/annotations.proto +393 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/callback.proto +156 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/entity.proto +122 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/errors.proto +119 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/validations.proto +137 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/media.proto +236 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/query.proto +795 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/wixlink.proto +201 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/definitions.proto +186 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-media-site-media-v1-file-descriptor/types/package.json +7 -0
- package/package.json +3 -2
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export var MediaType;
|
|
2
|
+
(function (MediaType) {
|
|
3
|
+
MediaType["UNKNOWN"] = "UNKNOWN";
|
|
4
|
+
MediaType["IMAGE"] = "IMAGE";
|
|
5
|
+
MediaType["VIDEO"] = "VIDEO";
|
|
6
|
+
MediaType["AUDIO"] = "AUDIO";
|
|
7
|
+
MediaType["DOCUMENT"] = "DOCUMENT";
|
|
8
|
+
MediaType["VECTOR"] = "VECTOR";
|
|
9
|
+
MediaType["ARCHIVE"] = "ARCHIVE";
|
|
10
|
+
MediaType["MODEL3D"] = "MODEL3D";
|
|
11
|
+
MediaType["OTHER"] = "OTHER";
|
|
12
|
+
})(MediaType || (MediaType = {}));
|
|
13
|
+
export var OperationStatus;
|
|
14
|
+
(function (OperationStatus) {
|
|
15
|
+
/** File upload or processing failed */
|
|
16
|
+
OperationStatus["FAILED"] = "FAILED";
|
|
17
|
+
/** File is ready for consumption */
|
|
18
|
+
OperationStatus["READY"] = "READY";
|
|
19
|
+
/** File is waiting for processing or currently being processed */
|
|
20
|
+
OperationStatus["PENDING"] = "PENDING";
|
|
21
|
+
})(OperationStatus || (OperationStatus = {}));
|
|
22
|
+
export var State;
|
|
23
|
+
(function (State) {
|
|
24
|
+
/** File is ready for consumption */
|
|
25
|
+
State["OK"] = "OK";
|
|
26
|
+
/** Deleted file */
|
|
27
|
+
State["DELETED"] = "DELETED";
|
|
28
|
+
})(State || (State = {}));
|
|
29
|
+
export var Namespace;
|
|
30
|
+
(function (Namespace) {
|
|
31
|
+
Namespace["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
32
|
+
Namespace["OTHERS"] = "OTHERS";
|
|
33
|
+
/** ANY = 2; */
|
|
34
|
+
Namespace["WIX_VIDEO"] = "WIX_VIDEO";
|
|
35
|
+
/** _nsWixMusic */
|
|
36
|
+
Namespace["WIX_MUSIC"] = "WIX_MUSIC";
|
|
37
|
+
/** _nsArtStore */
|
|
38
|
+
Namespace["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
39
|
+
/** _nsDigitalProduct */
|
|
40
|
+
Namespace["WIX_ECOM"] = "WIX_ECOM";
|
|
41
|
+
/** _nsPhotoShareApp */
|
|
42
|
+
Namespace["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
43
|
+
/** _nsSharingApp, */
|
|
44
|
+
Namespace["SHARING_APP"] = "SHARING_APP";
|
|
45
|
+
/** engage */
|
|
46
|
+
Namespace["CHAT"] = "CHAT";
|
|
47
|
+
/** logobuilder */
|
|
48
|
+
Namespace["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
49
|
+
/** WixExposure */
|
|
50
|
+
Namespace["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
51
|
+
/** chat-mobile-uploads */
|
|
52
|
+
Namespace["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
53
|
+
/** _nsWixForms */
|
|
54
|
+
Namespace["WIX_FORMS"] = "WIX_FORMS";
|
|
55
|
+
})(Namespace || (Namespace = {}));
|
|
56
|
+
export var IdentityType;
|
|
57
|
+
(function (IdentityType) {
|
|
58
|
+
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
59
|
+
IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
60
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
61
|
+
IdentityType["WIX_USER"] = "WIX_USER";
|
|
62
|
+
IdentityType["APP"] = "APP";
|
|
63
|
+
})(IdentityType || (IdentityType = {}));
|
|
64
|
+
export var ImageAnnotationType;
|
|
65
|
+
(function (ImageAnnotationType) {
|
|
66
|
+
ImageAnnotationType["UnknownAnnotationType"] = "UnknownAnnotationType";
|
|
67
|
+
ImageAnnotationType["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
68
|
+
ImageAnnotationType["IS_ANIMATED"] = "IS_ANIMATED";
|
|
69
|
+
ImageAnnotationType["FACES"] = "FACES";
|
|
70
|
+
ImageAnnotationType["LABELS"] = "LABELS";
|
|
71
|
+
ImageAnnotationType["COLORS"] = "COLORS";
|
|
72
|
+
ImageAnnotationType["CAPTION"] = "CAPTION";
|
|
73
|
+
})(ImageAnnotationType || (ImageAnnotationType = {}));
|
|
74
|
+
export var ContentDisposition;
|
|
75
|
+
(function (ContentDisposition) {
|
|
76
|
+
/** Using the link in the browser will download the file */
|
|
77
|
+
ContentDisposition["ATTACHMENT"] = "ATTACHMENT";
|
|
78
|
+
/** Using the link in the browser will open the file in the browser */
|
|
79
|
+
ContentDisposition["INLINE"] = "INLINE";
|
|
80
|
+
})(ContentDisposition || (ContentDisposition = {}));
|
|
81
|
+
export var UploadProtocol;
|
|
82
|
+
(function (UploadProtocol) {
|
|
83
|
+
/** The upload protocol to use for implementing the resumable upload. */
|
|
84
|
+
UploadProtocol["TUS"] = "TUS";
|
|
85
|
+
})(UploadProtocol || (UploadProtocol = {}));
|
|
86
|
+
export var SortOrder;
|
|
87
|
+
(function (SortOrder) {
|
|
88
|
+
SortOrder["ASC"] = "ASC";
|
|
89
|
+
SortOrder["DESC"] = "DESC";
|
|
90
|
+
})(SortOrder || (SortOrder = {}));
|
|
91
|
+
export var RootFolder;
|
|
92
|
+
(function (RootFolder) {
|
|
93
|
+
/** Root of all site media */
|
|
94
|
+
RootFolder["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
95
|
+
/** Root of the trash system folder */
|
|
96
|
+
RootFolder["TRASH_ROOT"] = "TRASH_ROOT";
|
|
97
|
+
/** Root of all visitor uploads */
|
|
98
|
+
RootFolder["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
99
|
+
})(RootFolder || (RootFolder = {}));
|
|
100
|
+
export var StreamFormat;
|
|
101
|
+
(function (StreamFormat) {
|
|
102
|
+
StreamFormat["UNKNOWN"] = "UNKNOWN";
|
|
103
|
+
StreamFormat["HLS"] = "HLS";
|
|
104
|
+
StreamFormat["DASH"] = "DASH";
|
|
105
|
+
})(StreamFormat || (StreamFormat = {}));
|
|
106
|
+
export var WebhookIdentityType;
|
|
107
|
+
(function (WebhookIdentityType) {
|
|
108
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
109
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
110
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
111
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
112
|
+
WebhookIdentityType["APP"] = "APP";
|
|
113
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
114
|
+
//# sourceMappingURL=types.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.impl.js","sourceRoot":"","sources":["../../types.impl.ts"],"names":[],"mappings":"AA6GA,MAAM,CAAN,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAVW,SAAS,KAAT,SAAS,QAUpB;AA8bD,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,uCAAuC;IACvC,oCAAiB,CAAA;IACjB,oCAAoC;IACpC,kCAAe,CAAA;IACf,kEAAkE;IAClE,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,KAAf,eAAe,QAO1B;AAED,MAAM,CAAN,IAAY,KAKX;AALD,WAAY,KAAK;IACf,oCAAoC;IACpC,kBAAS,CAAA;IACT,mBAAmB;IACnB,4BAAmB,CAAA;AACrB,CAAC,EALW,KAAK,KAAL,KAAK,QAKhB;AAED,MAAM,CAAN,IAAY,SAyBX;AAzBD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,eAAe;IACf,oCAAuB,CAAA;IACvB,kBAAkB;IAClB,oCAAuB,CAAA;IACvB,kBAAkB;IAClB,0DAA6C,CAAA;IAC7C,wBAAwB;IACxB,kCAAqB,CAAA;IACrB,uBAAuB;IACvB,gDAAmC,CAAA;IACnC,qBAAqB;IACrB,wCAA2B,CAAA;IAC3B,aAAa;IACb,0BAAa,CAAA;IACb,kBAAkB;IAClB,0CAA6B,CAAA;IAC7B,kBAAkB;IAClB,sCAAyB,CAAA;IACzB,0BAA0B;IAC1B,wCAA2B,CAAA;IAC3B,kBAAkB;IAClB,oCAAuB,CAAA;AACzB,CAAC,EAzBW,SAAS,KAAT,SAAS,QAyBpB;AASD,MAAM,CAAN,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,KAAZ,YAAY,QAMvB;AA2CD,MAAM,CAAN,IAAY,mBAQX;AARD,WAAY,mBAAmB;IAC7B,sEAA+C,CAAA;IAC/C,sDAA+B,CAAA;IAC/B,kDAA2B,CAAA;IAC3B,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;AACrB,CAAC,EARW,mBAAmB,KAAnB,mBAAmB,QAQ9B;AA+DD,MAAM,CAAN,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,2DAA2D;IAC3D,+CAAyB,CAAA;IACzB,sEAAsE;IACtE,uCAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,KAAlB,kBAAkB,QAK7B;AAyKD,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,wEAAwE;IACxE,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAoLD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAuFD,MAAM,CAAN,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,uCAAyB,CAAA;IACzB,sCAAsC;IACtC,uCAAyB,CAAA;IACzB,kCAAkC;IAClC,2DAA6C,CAAA;AAC/C,CAAC,EAPW,UAAU,KAAV,UAAU,QAOrB;AAqBD,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AA4PD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/ambassador-media-site-media-v1-file-descriptor",
|
|
3
|
+
"version": "1.0.128",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://npm-cache.dev.wixpress.com/",
|
|
6
|
+
"access": "restricted"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"build",
|
|
10
|
+
"http",
|
|
11
|
+
"rpc",
|
|
12
|
+
"builders",
|
|
13
|
+
"types",
|
|
14
|
+
"validators",
|
|
15
|
+
"meta",
|
|
16
|
+
"crud/!(*.ts)",
|
|
17
|
+
"src/main/proto"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "yarn proto && yarn tsc && cp -r proto build/cjs",
|
|
22
|
+
"proto": "wix-proto-codegen --module . --dir proto --stringEnums --tsClasses --stringLongs",
|
|
23
|
+
"tsc": "tsc -b tsconfig.json tsconfig.esm.json",
|
|
24
|
+
"test": ":"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@wix/http-client": "^1.0.0",
|
|
28
|
+
"@wix/metro-common-builders": "^1.0.0",
|
|
29
|
+
"@wix/metro-runtime": "^1.0.0",
|
|
30
|
+
"joi": "^17.0.0",
|
|
31
|
+
"callsite": "^1.0.0",
|
|
32
|
+
"@wix/auto-crud": "^1.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@types/callsite": "^1.0.0"
|
|
36
|
+
},
|
|
37
|
+
"wix": {
|
|
38
|
+
"artifact": {
|
|
39
|
+
"artifactId": "media-site-media-v1-file-descriptor",
|
|
40
|
+
"groupId": "com.wixpress.metro-packages"
|
|
41
|
+
},
|
|
42
|
+
"ambassador": {
|
|
43
|
+
"fqdn": "wix.media.site_media.v1.file_descriptor",
|
|
44
|
+
"protoArtifactId": "com.wixpress.proto:wix-privatemedia-proxy-api"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"falconPackageHash": "40863ca2a1014fbbf6a14250e8a35205f3c373bee93202371625e417",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/wix-private/metro-packages.git",
|
|
51
|
+
"directory": "packages/ambassador/media-site-media-v1-file-descriptor"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wix.media.media_manager.v1;
|
|
4
|
+
import "wix/api/entity.proto";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
//flynt-disable missing-entity-id-field
|
|
8
|
+
message MediaManagerEntity {
|
|
9
|
+
option (.wix.api.entity) = {
|
|
10
|
+
fqdn: "wix.media.media_manager.v1.media_manager_entity"
|
|
11
|
+
segment: USERS
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
reserved 1;
|
|
15
|
+
// a url pointing to the generated image
|
|
16
|
+
// string url = 2 [(.wix.api.maxLength) = 10000];
|
|
17
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wix.media.media_manager.v1;
|
|
4
|
+
|
|
5
|
+
import "wix/api/validations.proto";
|
|
6
|
+
import "wix/api/permissions.proto";
|
|
7
|
+
import "wix/api/annotations.proto";
|
|
8
|
+
import "google/api/annotations.proto";
|
|
9
|
+
import "wix/api/entity.proto";
|
|
10
|
+
import "google/protobuf/wrappers.proto";
|
|
11
|
+
import "com/wix/media/site_media/v1/file_descriptor.proto";
|
|
12
|
+
import "com/wix/media/site_media/upstream/wix/common/paging.proto";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
message ListTrashBinFilesInUseRequest {
|
|
17
|
+
// A list of file IDs to validate in the trash.
|
|
18
|
+
// Note - you can
|
|
19
|
+
// You can also pass the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
|
|
20
|
+
// Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
|
|
21
|
+
repeated google.protobuf.StringValue file_ids = 1 [(.wix.api.maxSize) = 1000, (.wix.api.maxLength) = 1000];
|
|
22
|
+
// Validates files under the folders in the trash.
|
|
23
|
+
repeated google.protobuf.StringValue folder_ids = 2 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 100];
|
|
24
|
+
// Validated all files under the trash root
|
|
25
|
+
// Note - when set to true, no file ids and parent folder ids are allowed
|
|
26
|
+
// Default - false
|
|
27
|
+
google.protobuf.BoolValue all_content = 3;
|
|
28
|
+
// The number of days to look for file use
|
|
29
|
+
// default 30 days
|
|
30
|
+
google.protobuf.Int32Value used_in_last_days = 4 [(.wix.api.min) = 1];
|
|
31
|
+
// Cursor and paging information.
|
|
32
|
+
// Note, cursor will only affect the results from folders or when searching for all files in trash
|
|
33
|
+
// Files return by the id list will always be returned in addition to files in selected folders
|
|
34
|
+
com.wix.media.site_media.upstream.wix.common.CursorPaging paging = 5;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message ListTrashBinFilesInUseResponse {
|
|
38
|
+
// A List of files that have been used in the selected period
|
|
39
|
+
repeated com.wix.media.site_media.v1.FileDescriptor files = 1 [(.wix.api.maxSize) = 1000];
|
|
40
|
+
// The metadata for the page including the next cursor if one exist
|
|
41
|
+
com.wix.media.site_media.upstream.wix.common.PagingMetadataV2 paging_metadata = 2;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
message BulkDeleteRequest {
|
|
46
|
+
enum DeleteMode {
|
|
47
|
+
// Delete only unused files according to the `usedInLastDays` - safe delete
|
|
48
|
+
ONLY_UNUSED = 0;
|
|
49
|
+
// Delete all files
|
|
50
|
+
ALL = 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
message BulkDeleteOptions{
|
|
54
|
+
// Validated all files under the trash root
|
|
55
|
+
// Note - when set to true, no file ids and parent folder ids are allowed
|
|
56
|
+
// Default - false
|
|
57
|
+
google.protobuf.BoolValue all_trash_content = 1;
|
|
58
|
+
// The number of days to look for file use
|
|
59
|
+
// default 30 days when delete mode is ONLY_UNUSED
|
|
60
|
+
// will return an error if delete mode is ALL
|
|
61
|
+
google.protobuf.Int32Value used_in_last_days = 2;
|
|
62
|
+
// Delete mode
|
|
63
|
+
DeleteMode delete_mode = 3;
|
|
64
|
+
// if the files should be permanently deleted
|
|
65
|
+
// Default - false
|
|
66
|
+
// note - false is not implemented yet
|
|
67
|
+
google.protobuf.BoolValue permanent = 4;
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
// A list of file IDs to validate in the trash.
|
|
71
|
+
// Note - you can
|
|
72
|
+
// You can also pass the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
|
|
73
|
+
// Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
|
|
74
|
+
repeated google.protobuf.StringValue file_ids = 1 [(.wix.api.maxSize) = 1000, (.wix.api.maxLength) = 1000];
|
|
75
|
+
// Validates files under the parent folders in the trash.
|
|
76
|
+
repeated google.protobuf.StringValue folder_ids = 2 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 100];
|
|
77
|
+
// Cursor and paging information.
|
|
78
|
+
// Note, pagingLimit will only affect the results from folders or when searching for all content in trash
|
|
79
|
+
// Files return by the id list will always be returned in addition to files in selected folders
|
|
80
|
+
google.protobuf.Int32Value paging_limit = 3;
|
|
81
|
+
// Options for the delete operation
|
|
82
|
+
BulkDeleteOptions options = 4;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message BulkDeleteResponse {
|
|
86
|
+
// A List of files that have been used in the selected period
|
|
87
|
+
repeated com.wix.media.site_media.v1.FileDescriptor files = 1 [(.wix.api.maxSize) = 1000];
|
|
88
|
+
// The metadata for the page including the next cursor if one exist
|
|
89
|
+
com.wix.media.site_media.upstream.wix.common.PagingMetadataV2 paging_metadata = 2;
|
|
90
|
+
// The operation id for the delete operation
|
|
91
|
+
google.protobuf.StringValue operation_id = 3 [(.wix.api.maxLength) = 30];
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
service MediaManagerService {
|
|
95
|
+
option (.wix.api.service_maturity) = ALPHA;
|
|
96
|
+
option (.wix.api.service_exposure) = INTERNAL;
|
|
97
|
+
option (.wix.api.service_entity).message = "com.wix.media.media_manager.v1.MediaManagerEntity";
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
// Use this endpoint to list files that have been used in the selected period that are in the trash
|
|
101
|
+
// Note - when this endpoint is called with file ids the files can be not from the trash bin
|
|
102
|
+
// Note - when this endpoint is called with folder ids, the folders must be folders that are in the trash-bin, folders not in the trash are ignored
|
|
103
|
+
rpc ListTrashBinFilesInUse(ListTrashBinFilesInUseRequest) returns (ListTrashBinFilesInUseResponse) {
|
|
104
|
+
option (google.api.http) = {
|
|
105
|
+
post : "/v1/trash-bin/media-manager/list-used"
|
|
106
|
+
};
|
|
107
|
+
option (.wix.api.permission).name = "MEDIA.MEDIA_MANAGER_LIST_USED_FILES";
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
// Use this endpoint to list files that have been used in the selected period that are in the trash
|
|
112
|
+
// Note - when this endpoint is called with file ids the files can be not from the trash bin
|
|
113
|
+
// Note - when this endpoint is called with folder ids, the folders must be folders that are in the trash-bin, folders not in the trash are ignored
|
|
114
|
+
rpc BulkDelete (BulkDeleteRequest) returns (BulkDeleteResponse) {
|
|
115
|
+
option (google.api.http) = {
|
|
116
|
+
post : "/v1/bulk/trash-bin/media-manager/delete"
|
|
117
|
+
};
|
|
118
|
+
option (.wix.api.permission).name = "MEDIA.MEDIA_MANAGER_PERMANENT_DELETE";
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wix.media.media_manager.v1;
|
|
4
|
+
import "wix/api/entity.proto";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
//flynt-disable missing-entity-id-field
|
|
8
|
+
message SearchResult {
|
|
9
|
+
option (.wix.api.entity) = {
|
|
10
|
+
fqdn: "wix.media.media_manager.v1.search_result"
|
|
11
|
+
segment: USERS
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
reserved 1;
|
|
15
|
+
// a url pointing to the generated image
|
|
16
|
+
// string url = 2 [(.wix.api.maxLength) = 10000];
|
|
17
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wix.media.media_manager.v1;
|
|
4
|
+
|
|
5
|
+
import "wix/api/validations.proto";
|
|
6
|
+
import "wix/api/permissions.proto";
|
|
7
|
+
import "wix/api/annotations.proto";
|
|
8
|
+
import "google/api/annotations.proto";
|
|
9
|
+
import "wix/api/entity.proto";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
message RecentSearch {
|
|
14
|
+
// The id of the recent search.
|
|
15
|
+
string recent_search_id = 1 [(.wix.api.maxLength) = 200];
|
|
16
|
+
// The search term.
|
|
17
|
+
string search_text = 2 [(.wix.api.maxLength) = 200];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message GetRecentSearchesRequest {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message GetRecentSearchesResponse {
|
|
24
|
+
// A list of recent searches.
|
|
25
|
+
repeated RecentSearch recent_searches = 1 [(.wix.api.maxSize) = 100];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message BulkDeleteRecentSearchesRequest {
|
|
29
|
+
// The ids of the recent searches to delete.
|
|
30
|
+
repeated string recent_search_ids = 1 [(.wix.api.maxSize) = 10, (.wix.api.minSize) = 1, (.wix.api.maxLength) = 100];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message BulkDeleteRecentSearchesResponse {
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
service SearchService {
|
|
38
|
+
option (.wix.api.service_maturity) = ALPHA;
|
|
39
|
+
option (.wix.api.service_exposure) = INTERNAL;
|
|
40
|
+
option (.wix.api.service_entity).message = "com.wix.media.media_manager.v1.SearchResult";
|
|
41
|
+
|
|
42
|
+
// Generates a URL for downloading a compressed file containing specific files in the Media Manager.
|
|
43
|
+
//
|
|
44
|
+
// The compressed file can contain up to 1000 files.
|
|
45
|
+
//
|
|
46
|
+
// To generate one or more temporary URLs for downloading a specific file in the Media Manager, use the [Generate File Download URL](/generate-file-download-url) endpoint.
|
|
47
|
+
// You can use the `expirationInMinutes` parameter to set the URL expiration time, making it more secure than the Generate Files Download URL endpoint.
|
|
48
|
+
// Therefore, to download private files, use the Generate File Download URL endpoint for each private file that you want to generate a download URL for.
|
|
49
|
+
rpc GetRecentSearches (GetRecentSearchesRequest) returns (GetRecentSearchesResponse) {
|
|
50
|
+
option (google.api.http) = {post: "/v1/search/recent-searches"};
|
|
51
|
+
option (.wix.api.permission).name = "MEDIA.MEDIA_MANAGER_RECENT_SEARCH_READ";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Deletes the specified files from the Media Manager. <br/>
|
|
55
|
+
//
|
|
56
|
+
// The deleted files are moved to the Media Manager's trash bin (`TRASH-ROOT` folder) unless permanently deleted. To permanently delete files, pass the `permanent` parameter with the value `true`. Permanently deleting files isn't reversible, so make sure that these files aren't being used in a site or in any other way as the files will no longer be accessible.
|
|
57
|
+
//
|
|
58
|
+
// Note the following:
|
|
59
|
+
// * The specified files can be from different folders.
|
|
60
|
+
// * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
|
|
61
|
+
// * Attempting to delete files that are already in the trash bin doesn't result in an error.
|
|
62
|
+
// * If your site contains deleted media files, the deleted media files still appear on your site as the files are still in the Media Manager (in the trash bin).
|
|
63
|
+
// * You can use the [Bulk Restore Files From Trash Bin](https://dev.wix.com/api/rest/media/media-manager/files/bulk-restore-files-from-trash-bin) endpoint to restore files from the Media Manager's trash bin.
|
|
64
|
+
rpc BulkDeleteRecentSearches (BulkDeleteRecentSearchesRequest) returns (BulkDeleteRecentSearchesResponse) {
|
|
65
|
+
option (.wix.api.required) = "BulkDeleteRecentSearchesRequest.recent_search_ids";
|
|
66
|
+
option (google.api.http) = {post: "/v1/bulk/search/recent-searches/delete"};
|
|
67
|
+
option (.wix.api.permission).name = "MEDIA.MEDIA_MANAGER_RECENT_SEARCH_DELETE";
|
|
68
|
+
option (.wix.api.crud) = {
|
|
69
|
+
method: BULK_DELETE
|
|
70
|
+
bulk_delete_options: {
|
|
71
|
+
ids_field: "recent_search_ids"
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
syntax = "proto3"; //flynt-disable deleted-field-enum-reserved
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
package wix.media.quota.v1;
|
|
5
|
+
|
|
6
|
+
import "wix/api/entity.proto";
|
|
7
|
+
import "wix/api/validations.proto";
|
|
8
|
+
import "wix/api/annotations.proto";
|
|
9
|
+
import "google/api/annotations.proto";
|
|
10
|
+
import "google/protobuf/timestamp.proto";
|
|
11
|
+
import "google/protobuf/wrappers.proto";
|
|
12
|
+
import "google/protobuf/field_mask.proto";
|
|
13
|
+
|
|
14
|
+
service MediaQuotaService {
|
|
15
|
+
option (.wix.api.service_entity).message = "wix.media.quota.v1.Total";
|
|
16
|
+
|
|
17
|
+
// Get total storage usage of a site
|
|
18
|
+
rpc GetTotal (GetTotalRequest) returns (GetTotalResponse) {
|
|
19
|
+
option (google.api.http).get = "/v1/total";
|
|
20
|
+
option (wix.api.exposure) = INTERNAL;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Get storage usage of a site, grouped by media type
|
|
24
|
+
rpc GetByMediaType (GetByMediaTypeRequest) returns (GetByMediaTypeResponse) {
|
|
25
|
+
option (google.api.http).get = "/v1/by-media-type";
|
|
26
|
+
option (wix.api.exposure) = INTERNAL;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
rpc PurgeSiteCache (PurgeSiteCacheRequest) returns (PurgeSiteCacheResponse) {
|
|
30
|
+
option (google.api.http).post = "/v1/purge-site-cache";
|
|
31
|
+
option (wix.api.exposure) = INTERNAL;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message Total {
|
|
36
|
+
option (.wix.api.entity) = {
|
|
37
|
+
fqdn: "wix.media.quota.v1.total"
|
|
38
|
+
segment: USERS
|
|
39
|
+
};
|
|
40
|
+
// Site ID
|
|
41
|
+
string id = 1 [(wix.api.readOnly) = true, (wix.api.format) = GUID];
|
|
42
|
+
// Quota of the site
|
|
43
|
+
TotalQuota quota = 2;
|
|
44
|
+
// Total storage usage of the site
|
|
45
|
+
TotalUsage usage = 3;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message ByMediaType {
|
|
49
|
+
option (.wix.api.entity) = {
|
|
50
|
+
fqdn: "wix.media.quota.v1.by_media_type"
|
|
51
|
+
segment: USERS
|
|
52
|
+
};
|
|
53
|
+
// Site ID
|
|
54
|
+
string id = 1 [(wix.api.readOnly) = true, (wix.api.format) = GUID];
|
|
55
|
+
// Quota of the site
|
|
56
|
+
QuotaByMediaType quotas = 2;
|
|
57
|
+
// Storage usage of the site, grouped by media type
|
|
58
|
+
UsageByMediaType usage = 3;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message TotalQuota {
|
|
62
|
+
// Storage quota in bytes
|
|
63
|
+
google.protobuf.Int64Value storage = 1;
|
|
64
|
+
// Plans that are related to the quota
|
|
65
|
+
Plans plans = 3;
|
|
66
|
+
// Time for which the quota is relevant - When the plans were retrieved from premium
|
|
67
|
+
google.protobuf.Timestamp timestamp = 4;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message TotalUsage {
|
|
71
|
+
// Storage usage in bytes
|
|
72
|
+
google.protobuf.Int64Value storage = 1;
|
|
73
|
+
// Time for which the usage is relevant - When the last file was added or deleted in the site
|
|
74
|
+
google.protobuf.Timestamp last_processed = 2;
|
|
75
|
+
// Number of files
|
|
76
|
+
google.protobuf.Int64Value files = 3;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message QuotaByMediaType {
|
|
80
|
+
// Storage quota in bytes
|
|
81
|
+
google.protobuf.Int64Value storage = 1;
|
|
82
|
+
// Plans that are related to the quotas
|
|
83
|
+
Plans plans = 3;
|
|
84
|
+
// Time for which the quota is relevant - When the plans were retrieved from premium
|
|
85
|
+
google.protobuf.Timestamp timestamp = 4;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
message UsageByMediaType {
|
|
89
|
+
// Storage usage distribution by media type
|
|
90
|
+
Distribution distribution = 1;
|
|
91
|
+
// Time for which the usage is relevant - When the last file was added or deleted in the site
|
|
92
|
+
google.protobuf.Timestamp last_processed = 4;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
message Distribution {
|
|
96
|
+
UsageEntry picture = 1;
|
|
97
|
+
UsageEntry music = 2;
|
|
98
|
+
UsageEntry video = 3;
|
|
99
|
+
UsageEntry document = 4;
|
|
100
|
+
UsageEntry archive = 5;
|
|
101
|
+
UsageEntry raw = 6;
|
|
102
|
+
UsageEntry three_dimensional = 7;
|
|
103
|
+
UsageEntry swf = 8;
|
|
104
|
+
UsageEntry shape = 9;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
message UsageEntry {
|
|
108
|
+
google.protobuf.Int64Value files = 1;
|
|
109
|
+
google.protobuf.Int64Value storage = 2;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
message Plan {
|
|
113
|
+
// Plan ID - Premium product ID
|
|
114
|
+
string id = 1 [(wix.api.readOnly) = true, (wix.api.format) = GUID];
|
|
115
|
+
// Plan name
|
|
116
|
+
string name = 2;
|
|
117
|
+
// When the plan was created
|
|
118
|
+
google.protobuf.Timestamp created_at = 3;
|
|
119
|
+
// When then plan expires
|
|
120
|
+
google.protobuf.Timestamp expires_at = 4;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message Plans {
|
|
124
|
+
// Premium Plan
|
|
125
|
+
Plan premium = 1;
|
|
126
|
+
// Upgrade URL - the URL which a site owner can use to upgrade their quota. May be empty if an upgrade is not available.
|
|
127
|
+
string upgrade_url = 2 [(.wix.api.format) = WEB_URL];
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message Projection {
|
|
131
|
+
enum Projection {
|
|
132
|
+
QUOTA_AND_USAGE = 0;
|
|
133
|
+
QUOTA = 1;
|
|
134
|
+
USAGE = 2;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message GetTotalRequest {
|
|
139
|
+
//Projection of fields to retrieve - quota/usage/both. If you only get one of them, the response time is quicker.
|
|
140
|
+
Projection.Projection projection = 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message GetTotalResponse {
|
|
144
|
+
// Total quota and usage
|
|
145
|
+
Total total = 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
message GetByMediaTypeRequest {
|
|
149
|
+
//Projection of fields to retrieve - quota/usage/both. If you only need one of them, the response time is quicker.
|
|
150
|
+
Projection.Projection projection = 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message GetByMediaTypeResponse {
|
|
154
|
+
// Quota and usage by media type
|
|
155
|
+
ByMediaType by_media_type = 1;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
message PurgeSiteCacheRequest {}
|
|
159
|
+
message PurgeSiteCacheResponse {}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wix.media.site_media.upstream.wix.common;
|
|
4
|
+
|
|
5
|
+
option java_multiple_files = true;
|
|
6
|
+
option java_package = "com.wix.media.site_media.upstream.wix.common";
|
|
7
|
+
|
|
8
|
+
import "google/protobuf/wrappers.proto";
|
|
9
|
+
import "wix/api/validations.proto";
|
|
10
|
+
import "wix/api/annotations.proto";
|
|
11
|
+
|
|
12
|
+
message IdentificationData {
|
|
13
|
+
option (.wix.api.decomposite_of) = "wix.common.IdentificationData";
|
|
14
|
+
option (.wix.api.decomposition_minimum_fields) = {
|
|
15
|
+
field: "identity_type"
|
|
16
|
+
field: "anonymous_visitor_id"
|
|
17
|
+
field: "member_id"
|
|
18
|
+
field: "wix_user_id"
|
|
19
|
+
field: "app_id"
|
|
20
|
+
};
|
|
21
|
+
enum IdentityType {
|
|
22
|
+
UNKNOWN = 0;
|
|
23
|
+
ANONYMOUS_VISITOR = 1;
|
|
24
|
+
MEMBER = 2;
|
|
25
|
+
WIX_USER = 3;
|
|
26
|
+
APP = 4;
|
|
27
|
+
}
|
|
28
|
+
// ID of of a contact in the site's [CRM by Ascend](https://www.wix.com/ascend/crm) system.
|
|
29
|
+
google.protobuf.StringValue contact_id = 1 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.contacts.v4.contact"];
|
|
30
|
+
IdentityType identity_type = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
|
|
31
|
+
oneof id {
|
|
32
|
+
// ID of a site visitor that has not logged in to the site.
|
|
33
|
+
string anonymous_visitor_id = 2 [(.wix.api.format) = GUID];
|
|
34
|
+
// ID of a site visitor that has logged in to the site.
|
|
35
|
+
string member_id = 3 [(.wix.api.format) = GUID, (.wix.api.referenced_entity) = "wix.members.v1.member"];
|
|
36
|
+
// ID of a Wix user (site owner, contributor, etc.).
|
|
37
|
+
string wix_user_id = 4 [(.wix.api.format) = GUID];
|
|
38
|
+
// ID of an app.
|
|
39
|
+
string app_id = 5 [(.wix.api.format) = GUID];
|
|
40
|
+
}
|
|
41
|
+
}
|