@wix/bex-utils 2.31.0 → 2.32.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/package.json +2 -3
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.d.ts +0 -89
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js +0 -2249
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.d.ts +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js +0 -5
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.d.ts +0 -6
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js +0 -24
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.d.ts +0 -180
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js +0 -971
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.d.ts +0 -30
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js +0 -385
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.d.ts +0 -10010
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.js +0 -2
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.d.ts +0 -5002
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.js +0 -78224
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.d.ts +0 -9973
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.js +0 -2
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.d.ts +0 -189
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js +0 -431
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.d.ts +0 -1387
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js +0 -117
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.d.ts +0 -89
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js +0 -2145
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.d.ts +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js +0 -2
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.d.ts +0 -6
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js +0 -19
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.d.ts +0 -180
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js +0 -949
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.d.ts +0 -30
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js +0 -344
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.d.ts +0 -189
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js +0 -390
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.d.ts +0 -1387
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js +0 -114
- package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js.map +0 -1
- package/@wix/ambassador-media-site-media-v1-file-descriptor/builders/package.json +0 -7
- package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/http/package.json +0 -7
- package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/rpc/package.json +0 -6
- package/@wix/ambassador-media-site-media-v1-file-descriptor/http/package.json +0 -7
- package/@wix/ambassador-media-site-media-v1-file-descriptor/meta/package.json +0 -7
- package/@wix/ambassador-media-site-media-v1-file-descriptor/package.json +0 -53
- package/@wix/ambassador-media-site-media-v1-file-descriptor/rpc/package.json +0 -6
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_entity.proto +0 -17
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_service.proto +0 -121
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_result.proto +0 -17
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_service.proto +0 -76
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_quota_api.proto +0 -159
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/identification.proto +0 -41
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/media.proto +0 -242
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/paging.proto +0 -121
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/audio_v2.proto +0 -31
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/content_disposition.proto +0 -11
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/download_url.proto +0 -12
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/error_code.proto +0 -49
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/errors.proto +0 -41
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/file_descriptor.proto +0 -140
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/files_service.proto +0 -1030
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folder.proto +0 -48
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folders_service.proto +0 -367
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/identity_info.proto +0 -13
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/image_media.proto +0 -84
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/media_type.proto +0 -15
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/namespace.proto +0 -21
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/operation_status.proto +0 -27
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/other_media.proto +0 -22
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/root_folders.proto +0 -12
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_info.proto +0 -24
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_service.proto +0 -179
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/upload_protocol.proto +0 -9
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/action_payload.proto +0 -33
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/annotations.proto +0 -393
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/api_errors.proto +0 -117
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/callback.proto +0 -156
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/context.proto +0 -19
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/entity.proto +0 -122
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/errors.proto +0 -119
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/idempotency.proto +0 -25
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/permissions.proto +0 -40
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/sla.proto +0 -24
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/subscription.proto +0 -32
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/validations.proto +0 -137
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/address.proto +0 -148
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/bulk.proto +0 -53
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/identification.proto +0 -40
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/image.proto +0 -8
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/media.proto +0 -236
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/money.proto +0 -32
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/pageurl.proto +0 -32
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/paging.proto +0 -121
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/query.proto +0 -795
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/sorting.proto +0 -36
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/spi.proto +0 -85
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/tags.proto +0 -55
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/wixlink.proto +0 -201
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/graphql/definitions.proto +0 -13
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/http/field_mask.proto +0 -46
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/sdk/definitions.proto +0 -191
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/definitions.proto +0 -186
- package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/http_error_status.proto +0 -24
- package/@wix/ambassador-media-site-media-v1-file-descriptor/types/package.json +0 -7
|
@@ -1,1387 +0,0 @@
|
|
|
1
|
-
export interface FileDescriptor {
|
|
2
|
-
/**
|
|
3
|
-
* File ID. Generated when a file is uploaded to the Media Manager.
|
|
4
|
-
* @readonly
|
|
5
|
-
*/
|
|
6
|
-
id?: string;
|
|
7
|
-
/** File name as it appears in the Media Manager. */
|
|
8
|
-
displayName?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Static URL of the file.
|
|
11
|
-
* @readonly
|
|
12
|
-
*/
|
|
13
|
-
url?: string;
|
|
14
|
-
/** ID of the file's parent folder. */
|
|
15
|
-
parentFolderId?: string | null;
|
|
16
|
-
/**
|
|
17
|
-
* File hash.
|
|
18
|
-
* @readonly
|
|
19
|
-
*/
|
|
20
|
-
hash?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Size of the uploaded file in bytes.
|
|
23
|
-
* @readonly
|
|
24
|
-
*/
|
|
25
|
-
sizeInBytes?: string | null;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the link to the uploaded file is public or private. Private links require a token.
|
|
28
|
-
* @readonly
|
|
29
|
-
*/
|
|
30
|
-
private?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Media file type.
|
|
33
|
-
* @readonly
|
|
34
|
-
*/
|
|
35
|
-
mediaType?: MediaType;
|
|
36
|
-
/**
|
|
37
|
-
* Media file content.
|
|
38
|
-
* @readonly
|
|
39
|
-
*/
|
|
40
|
-
media?: FileMedia;
|
|
41
|
-
/**
|
|
42
|
-
* Status of the file that was uploaded.
|
|
43
|
-
* * `FAILED`: The file failed to upload, for example, during media post processing.
|
|
44
|
-
* * `READY`: The file uploaded, finished all processing, and is ready for use.
|
|
45
|
-
* * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
|
|
46
|
-
* @readonly
|
|
47
|
-
*/
|
|
48
|
-
operationStatus?: OperationStatus;
|
|
49
|
-
/**
|
|
50
|
-
* URL where the file was uploaded from.
|
|
51
|
-
* @readonly
|
|
52
|
-
*/
|
|
53
|
-
sourceUrl?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
* URL of the file's thumbnail.
|
|
56
|
-
* @readonly
|
|
57
|
-
*/
|
|
58
|
-
thumbnailUrl?: string | null;
|
|
59
|
-
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
60
|
-
labels?: string[];
|
|
61
|
-
/**
|
|
62
|
-
* Date and time the file was created.
|
|
63
|
-
* @readonly
|
|
64
|
-
*/
|
|
65
|
-
createdDate?: Date | null;
|
|
66
|
-
/**
|
|
67
|
-
* Date and time the file was updated.
|
|
68
|
-
* @readonly
|
|
69
|
-
*/
|
|
70
|
-
updatedDate?: Date | null;
|
|
71
|
-
/**
|
|
72
|
-
* The Wix site ID where the media file is stored.
|
|
73
|
-
* @readonly
|
|
74
|
-
*/
|
|
75
|
-
siteId?: string;
|
|
76
|
-
/**
|
|
77
|
-
* State of the file.
|
|
78
|
-
* @readonly
|
|
79
|
-
*/
|
|
80
|
-
state?: State;
|
|
81
|
-
/**
|
|
82
|
-
* Internal tags describing the item, can be used in specific clients use cases
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
internalTags?: string[];
|
|
86
|
-
/**
|
|
87
|
-
* The namespace containing the file
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
namespace?: Namespace;
|
|
91
|
-
/**
|
|
92
|
-
* Information about the identity that added this file
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
|
-
addedBy?: IdentityInfo;
|
|
96
|
-
/**
|
|
97
|
-
* The raw namespace containing the file
|
|
98
|
-
* @internal
|
|
99
|
-
* @readonly
|
|
100
|
-
*/
|
|
101
|
-
rawNamespace?: string | null;
|
|
102
|
-
/**
|
|
103
|
-
* The date this file was last viewed from the last day, can be used to know if this file is still in use
|
|
104
|
-
* @internal
|
|
105
|
-
* @readonly
|
|
106
|
-
*/
|
|
107
|
-
lastUsedDate?: Date | null;
|
|
108
|
-
}
|
|
109
|
-
export declare enum MediaType {
|
|
110
|
-
UNKNOWN = "UNKNOWN",
|
|
111
|
-
IMAGE = "IMAGE",
|
|
112
|
-
VIDEO = "VIDEO",
|
|
113
|
-
AUDIO = "AUDIO",
|
|
114
|
-
DOCUMENT = "DOCUMENT",
|
|
115
|
-
VECTOR = "VECTOR",
|
|
116
|
-
ARCHIVE = "ARCHIVE",
|
|
117
|
-
MODEL3D = "MODEL3D",
|
|
118
|
-
OTHER = "OTHER"
|
|
119
|
-
}
|
|
120
|
-
export interface FileMedia extends FileMediaMediaOneOf {
|
|
121
|
-
/** Information about the image. */
|
|
122
|
-
image?: ImageMedia;
|
|
123
|
-
/** Information about the video. */
|
|
124
|
-
video?: VideoV2;
|
|
125
|
-
/** Information about the audio. */
|
|
126
|
-
audio?: AudioV2;
|
|
127
|
-
/** Information about the document. */
|
|
128
|
-
document?: Document;
|
|
129
|
-
/** Information about the vector. */
|
|
130
|
-
vector?: ImageMedia;
|
|
131
|
-
/** Information about the archive. */
|
|
132
|
-
archive?: Archive;
|
|
133
|
-
/** Information about the 3D Model. */
|
|
134
|
-
model3d?: Model3D;
|
|
135
|
-
/**
|
|
136
|
-
* Information about other file types
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
139
|
-
other?: OtherMedia;
|
|
140
|
-
}
|
|
141
|
-
/** @oneof */
|
|
142
|
-
export interface FileMediaMediaOneOf {
|
|
143
|
-
/** Information about the image. */
|
|
144
|
-
image?: ImageMedia;
|
|
145
|
-
/** Information about the video. */
|
|
146
|
-
video?: VideoV2;
|
|
147
|
-
/** Information about the audio. */
|
|
148
|
-
audio?: AudioV2;
|
|
149
|
-
/** Information about the document. */
|
|
150
|
-
document?: Document;
|
|
151
|
-
/** Information about the vector. */
|
|
152
|
-
vector?: ImageMedia;
|
|
153
|
-
/** Information about the archive. */
|
|
154
|
-
archive?: Archive;
|
|
155
|
-
/** Information about the 3D Model. */
|
|
156
|
-
model3d?: Model3D;
|
|
157
|
-
/**
|
|
158
|
-
* Information about other file types
|
|
159
|
-
* @internal
|
|
160
|
-
*/
|
|
161
|
-
other?: OtherMedia;
|
|
162
|
-
}
|
|
163
|
-
export interface ImageMedia {
|
|
164
|
-
/** Image data. */
|
|
165
|
-
image?: Image;
|
|
166
|
-
/** Image colors. */
|
|
167
|
-
colors?: Colors;
|
|
168
|
-
/** Information about faces in the image. Use to crop images without cutting out faces. */
|
|
169
|
-
faces?: FaceRecognition[];
|
|
170
|
-
/**
|
|
171
|
-
* Information about the image preview.
|
|
172
|
-
* You can use this to display a preview for private images.
|
|
173
|
-
*/
|
|
174
|
-
previewImage?: Image;
|
|
175
|
-
/**
|
|
176
|
-
* Optional, An AI generated description of the image
|
|
177
|
-
* @readonly
|
|
178
|
-
*/
|
|
179
|
-
caption?: string | null;
|
|
180
|
-
/**
|
|
181
|
-
* Optional, return true or false if the image has text, or empty for unknown
|
|
182
|
-
* @internal
|
|
183
|
-
* @readonly
|
|
184
|
-
*/
|
|
185
|
-
containsText?: boolean | null;
|
|
186
|
-
/**
|
|
187
|
-
* Optional, return true or false if the image has text, or empty for unknown
|
|
188
|
-
* @internal
|
|
189
|
-
* @readonly
|
|
190
|
-
*/
|
|
191
|
-
animated?: boolean | null;
|
|
192
|
-
}
|
|
193
|
-
export interface Image {
|
|
194
|
-
/** WixMedia image ID. */
|
|
195
|
-
id?: string;
|
|
196
|
-
/** Image URL. */
|
|
197
|
-
url?: string;
|
|
198
|
-
/**
|
|
199
|
-
* Original image height.
|
|
200
|
-
* @readonly
|
|
201
|
-
*/
|
|
202
|
-
height?: number;
|
|
203
|
-
/**
|
|
204
|
-
* Original image width.
|
|
205
|
-
* @readonly
|
|
206
|
-
*/
|
|
207
|
-
width?: number;
|
|
208
|
-
/** Image alt text. */
|
|
209
|
-
altText?: string | null;
|
|
210
|
-
/**
|
|
211
|
-
* Image URL expiration date (when relevant).
|
|
212
|
-
* @internal
|
|
213
|
-
* @readonly
|
|
214
|
-
*/
|
|
215
|
-
urlExpirationDate?: Date | null;
|
|
216
|
-
/**
|
|
217
|
-
* Image filename.
|
|
218
|
-
* @readonly
|
|
219
|
-
*/
|
|
220
|
-
filename?: string | null;
|
|
221
|
-
/**
|
|
222
|
-
* Image size in bytes.
|
|
223
|
-
* @internal
|
|
224
|
-
* @readonly
|
|
225
|
-
*/
|
|
226
|
-
sizeInBytes?: string | null;
|
|
227
|
-
}
|
|
228
|
-
export interface Colors {
|
|
229
|
-
/** Main color of the image. */
|
|
230
|
-
prominent?: Color;
|
|
231
|
-
/** Color palette of the image. */
|
|
232
|
-
palette?: Color[];
|
|
233
|
-
}
|
|
234
|
-
export interface Color {
|
|
235
|
-
/** HEX color. */
|
|
236
|
-
hex?: string | null;
|
|
237
|
-
/** RGB color. */
|
|
238
|
-
rgb?: ColorRGB;
|
|
239
|
-
}
|
|
240
|
-
export interface ColorRGB {
|
|
241
|
-
/** Red channel. */
|
|
242
|
-
r?: number | null;
|
|
243
|
-
/** Green channel. */
|
|
244
|
-
g?: number | null;
|
|
245
|
-
/** Blue channel. */
|
|
246
|
-
b?: number | null;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Using this object you can crop images while centering on faces
|
|
250
|
-
* ------------------------
|
|
251
|
-
* | |
|
|
252
|
-
* | x,y |
|
|
253
|
-
* | *-------- |
|
|
254
|
-
* | | . . | |
|
|
255
|
-
* | | | | height |
|
|
256
|
-
* | | \ / | |
|
|
257
|
-
* | | | |
|
|
258
|
-
* | --------- |
|
|
259
|
-
* | width |
|
|
260
|
-
* | |
|
|
261
|
-
* |______________________|
|
|
262
|
-
*/
|
|
263
|
-
export interface FaceRecognition {
|
|
264
|
-
/** The accuracy percentage of the face recognition. The likelihood that a face is detected. */
|
|
265
|
-
confidence?: number;
|
|
266
|
-
/** Top left x pixel coordinate of the face. */
|
|
267
|
-
x?: number;
|
|
268
|
-
/** Top left y pixel coordinate of the face. */
|
|
269
|
-
y?: number;
|
|
270
|
-
/** Face pixel height. */
|
|
271
|
-
height?: number;
|
|
272
|
-
/** Face pixel width. */
|
|
273
|
-
width?: number;
|
|
274
|
-
}
|
|
275
|
-
export interface VideoV2 {
|
|
276
|
-
/** WixMedia ID. */
|
|
277
|
-
id?: string;
|
|
278
|
-
/**
|
|
279
|
-
* Original video URL.
|
|
280
|
-
* @internal
|
|
281
|
-
*/
|
|
282
|
-
url?: string;
|
|
283
|
-
/**
|
|
284
|
-
* Available resolutions for the video, starting with the optimal resolution.
|
|
285
|
-
* @readonly
|
|
286
|
-
*/
|
|
287
|
-
resolutions?: VideoResolution[];
|
|
288
|
-
/**
|
|
289
|
-
* Video filename.
|
|
290
|
-
* @readonly
|
|
291
|
-
*/
|
|
292
|
-
filename?: string | null;
|
|
293
|
-
/**
|
|
294
|
-
* Video posters.
|
|
295
|
-
* @internal
|
|
296
|
-
* @readonly
|
|
297
|
-
*/
|
|
298
|
-
posters?: Image[];
|
|
299
|
-
/**
|
|
300
|
-
* Original video size in bytes.
|
|
301
|
-
* @internal
|
|
302
|
-
* @readonly
|
|
303
|
-
*/
|
|
304
|
-
sizeInBytes?: string | null;
|
|
305
|
-
/**
|
|
306
|
-
* Video URL expiration date (when relevant).
|
|
307
|
-
* @internal
|
|
308
|
-
* @readonly
|
|
309
|
-
*/
|
|
310
|
-
urlExpirationDate?: Date | null;
|
|
311
|
-
/**
|
|
312
|
-
* Original video duration in milliseconds.
|
|
313
|
-
* @internal
|
|
314
|
-
* @readonly
|
|
315
|
-
*/
|
|
316
|
-
durationInMilliseconds?: number | null;
|
|
317
|
-
}
|
|
318
|
-
export interface VideoResolution {
|
|
319
|
-
/** Video URL. */
|
|
320
|
-
url?: string;
|
|
321
|
-
/** Video height. */
|
|
322
|
-
height?: number;
|
|
323
|
-
/** Video width. */
|
|
324
|
-
width?: number;
|
|
325
|
-
/**
|
|
326
|
-
* Deprecated. Use the `posters` property in the parent entity instead.
|
|
327
|
-
* @internal
|
|
328
|
-
* @deprecated
|
|
329
|
-
*/
|
|
330
|
-
poster?: Image;
|
|
331
|
-
/**
|
|
332
|
-
* Video format
|
|
333
|
-
* Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
|
|
334
|
-
* '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
|
|
335
|
-
*/
|
|
336
|
-
format?: string;
|
|
337
|
-
/**
|
|
338
|
-
* Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
|
|
339
|
-
* @internal
|
|
340
|
-
* @deprecated
|
|
341
|
-
*/
|
|
342
|
-
urlExpirationDate?: Date | null;
|
|
343
|
-
/**
|
|
344
|
-
* Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
|
|
345
|
-
* @internal
|
|
346
|
-
* @deprecated
|
|
347
|
-
*/
|
|
348
|
-
sizeInBytes?: string | null;
|
|
349
|
-
/**
|
|
350
|
-
* Video quality. For example: 480p, 720p.
|
|
351
|
-
* @internal
|
|
352
|
-
*/
|
|
353
|
-
quality?: string | null;
|
|
354
|
-
/**
|
|
355
|
-
* Video filename.
|
|
356
|
-
* @internal
|
|
357
|
-
*/
|
|
358
|
-
filename?: string | null;
|
|
359
|
-
/**
|
|
360
|
-
* Video duration in seconds.
|
|
361
|
-
* @internal
|
|
362
|
-
* @readonly
|
|
363
|
-
* @deprecated Video duration in seconds.
|
|
364
|
-
* @replacedBy duration_in_milliseconds
|
|
365
|
-
* @targetRemovalDate 2024-08-01
|
|
366
|
-
*/
|
|
367
|
-
durationInSeconds?: number | null;
|
|
368
|
-
/**
|
|
369
|
-
* Video duration in milliseconds.
|
|
370
|
-
* @internal
|
|
371
|
-
* @readonly
|
|
372
|
-
*/
|
|
373
|
-
durationInMilliseconds?: number | null;
|
|
374
|
-
/**
|
|
375
|
-
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
376
|
-
* In order to access private assets, make a request to:
|
|
377
|
-
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
378
|
-
* @internal
|
|
379
|
-
* @readonly
|
|
380
|
-
*/
|
|
381
|
-
private?: boolean | null;
|
|
382
|
-
/**
|
|
383
|
-
* Key to identify the video resolution's relationship to the original media in WixMedia.
|
|
384
|
-
* Can be used to request a download for the specific video resolution.
|
|
385
|
-
* For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
|
|
386
|
-
* @internal
|
|
387
|
-
* @readonly
|
|
388
|
-
*/
|
|
389
|
-
assetKey?: string | null;
|
|
390
|
-
}
|
|
391
|
-
export interface AudioV2 {
|
|
392
|
-
/** WixMedia ID. */
|
|
393
|
-
id?: string;
|
|
394
|
-
/** Audio formats available for this file. */
|
|
395
|
-
assets?: Audio[];
|
|
396
|
-
/**
|
|
397
|
-
* Audio bitrate.
|
|
398
|
-
* @readonly
|
|
399
|
-
*/
|
|
400
|
-
bitrate?: number | null;
|
|
401
|
-
/**
|
|
402
|
-
* Audio format.
|
|
403
|
-
* @readonly
|
|
404
|
-
*/
|
|
405
|
-
format?: string | null;
|
|
406
|
-
/**
|
|
407
|
-
* Audio duration in seconds.
|
|
408
|
-
* @readonly
|
|
409
|
-
*/
|
|
410
|
-
duration?: number | null;
|
|
411
|
-
/**
|
|
412
|
-
* Audio size in bytes.
|
|
413
|
-
* @readonly
|
|
414
|
-
*/
|
|
415
|
-
sizeInBytes?: string | null;
|
|
416
|
-
}
|
|
417
|
-
export interface Audio {
|
|
418
|
-
/** WixMedia ID. */
|
|
419
|
-
id?: string;
|
|
420
|
-
/** Audio URL. */
|
|
421
|
-
url?: string;
|
|
422
|
-
/**
|
|
423
|
-
* Audio URL expiration date (when relevant).
|
|
424
|
-
* @internal
|
|
425
|
-
* @readonly
|
|
426
|
-
*/
|
|
427
|
-
urlExpirationDate?: Date | null;
|
|
428
|
-
/**
|
|
429
|
-
* Audio size in bytes.
|
|
430
|
-
* @internal
|
|
431
|
-
* @readonly
|
|
432
|
-
*/
|
|
433
|
-
sizeInBytes?: string | null;
|
|
434
|
-
/**
|
|
435
|
-
* Audio filename.
|
|
436
|
-
* @readonly
|
|
437
|
-
*/
|
|
438
|
-
filename?: string | null;
|
|
439
|
-
/**
|
|
440
|
-
* Audio duration in milliseconds.
|
|
441
|
-
* @internal
|
|
442
|
-
* @readonly
|
|
443
|
-
*/
|
|
444
|
-
duration?: number | null;
|
|
445
|
-
/**
|
|
446
|
-
* When true, this is a protected asset, and calling the URL will return a 403 error.
|
|
447
|
-
* In order to access private assets, make a request to:
|
|
448
|
-
* `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
|
|
449
|
-
* @internal
|
|
450
|
-
* @readonly
|
|
451
|
-
*/
|
|
452
|
-
private?: boolean | null;
|
|
453
|
-
/**
|
|
454
|
-
* Key to identify the object relationship to the original media in WixMedia.
|
|
455
|
-
* Can be used to request a download for the specific asset.
|
|
456
|
-
* For example: 128-30kbs.mp3, 320kbs.mp3, 128kbs.mp3
|
|
457
|
-
* @internal
|
|
458
|
-
* @readonly
|
|
459
|
-
*/
|
|
460
|
-
assetKey?: string | null;
|
|
461
|
-
/**
|
|
462
|
-
* Audio format.
|
|
463
|
-
* @internal
|
|
464
|
-
* @readonly
|
|
465
|
-
*/
|
|
466
|
-
format?: string | null;
|
|
467
|
-
/**
|
|
468
|
-
* Audio quality.
|
|
469
|
-
* @internal
|
|
470
|
-
* @readonly
|
|
471
|
-
*/
|
|
472
|
-
quality?: string | null;
|
|
473
|
-
}
|
|
474
|
-
export interface Document {
|
|
475
|
-
/** WixMedia ID. */
|
|
476
|
-
id?: string;
|
|
477
|
-
/** Document URL. */
|
|
478
|
-
url?: string;
|
|
479
|
-
/**
|
|
480
|
-
* Document URL expiration date (when relevant).
|
|
481
|
-
* @internal
|
|
482
|
-
*/
|
|
483
|
-
urlExpirationDate?: Date | null;
|
|
484
|
-
/**
|
|
485
|
-
* Document size in bytes.
|
|
486
|
-
* @internal
|
|
487
|
-
*/
|
|
488
|
-
sizeInBytes?: string | null;
|
|
489
|
-
/** Document filename. */
|
|
490
|
-
filename?: string | null;
|
|
491
|
-
}
|
|
492
|
-
export interface Archive {
|
|
493
|
-
/** WixMedia ID. */
|
|
494
|
-
id?: string;
|
|
495
|
-
/** Archive URL. */
|
|
496
|
-
url?: string;
|
|
497
|
-
/**
|
|
498
|
-
* Archive URL expiration date (when relevant).
|
|
499
|
-
* @readonly
|
|
500
|
-
*/
|
|
501
|
-
urlExpirationDate?: Date | null;
|
|
502
|
-
/** Archive size in bytes. */
|
|
503
|
-
sizeInBytes?: string | null;
|
|
504
|
-
/** Archive filename. */
|
|
505
|
-
filename?: string | null;
|
|
506
|
-
}
|
|
507
|
-
export interface Model3D {
|
|
508
|
-
/** WixMedia 3D ID. */
|
|
509
|
-
id?: string;
|
|
510
|
-
/** 3D URL. */
|
|
511
|
-
url?: string;
|
|
512
|
-
/** 3D thumbnail Image */
|
|
513
|
-
thumbnail?: Image;
|
|
514
|
-
/** 3D alt text. */
|
|
515
|
-
altText?: string | null;
|
|
516
|
-
/**
|
|
517
|
-
* 3D URL expiration date (when relevant).
|
|
518
|
-
* @readonly
|
|
519
|
-
*/
|
|
520
|
-
urlExpirationDate?: Date | null;
|
|
521
|
-
/**
|
|
522
|
-
* 3D filename.
|
|
523
|
-
* @readonly
|
|
524
|
-
*/
|
|
525
|
-
filename?: string | null;
|
|
526
|
-
/**
|
|
527
|
-
* 3D size in bytes.
|
|
528
|
-
* @readonly
|
|
529
|
-
*/
|
|
530
|
-
sizeInBytes?: string | null;
|
|
531
|
-
}
|
|
532
|
-
export interface OtherMedia {
|
|
533
|
-
/** WixMedia ID. for use with Site Media APIs only */
|
|
534
|
-
id?: string;
|
|
535
|
-
/**
|
|
536
|
-
* The media type of the file: 'site_icon', 'swf', 'package', 'ufont'
|
|
537
|
-
* @readonly
|
|
538
|
-
*/
|
|
539
|
-
internalMediaType?: string | null;
|
|
540
|
-
/**
|
|
541
|
-
* size in bytes. Optional.
|
|
542
|
-
* @readonly
|
|
543
|
-
*/
|
|
544
|
-
sizeInBytes?: string | null;
|
|
545
|
-
/** The file URL. */
|
|
546
|
-
url?: string;
|
|
547
|
-
}
|
|
548
|
-
export declare enum OperationStatus {
|
|
549
|
-
/** File upload or processing failed */
|
|
550
|
-
FAILED = "FAILED",
|
|
551
|
-
/** File is ready for consumption */
|
|
552
|
-
READY = "READY",
|
|
553
|
-
/** File is waiting for processing or currently being processed */
|
|
554
|
-
PENDING = "PENDING"
|
|
555
|
-
}
|
|
556
|
-
export declare enum State {
|
|
557
|
-
/** File is ready for consumption */
|
|
558
|
-
OK = "OK",
|
|
559
|
-
/** Deleted file */
|
|
560
|
-
DELETED = "DELETED"
|
|
561
|
-
}
|
|
562
|
-
export declare enum Namespace {
|
|
563
|
-
NO_NAMESPACE = "NO_NAMESPACE",
|
|
564
|
-
OTHERS = "OTHERS",
|
|
565
|
-
/** ANY = 2; */
|
|
566
|
-
WIX_VIDEO = "WIX_VIDEO",
|
|
567
|
-
/** _nsWixMusic */
|
|
568
|
-
WIX_MUSIC = "WIX_MUSIC",
|
|
569
|
-
/** _nsArtStore */
|
|
570
|
-
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
571
|
-
/** _nsDigitalProduct */
|
|
572
|
-
WIX_ECOM = "WIX_ECOM",
|
|
573
|
-
/** _nsPhotoShareApp */
|
|
574
|
-
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
575
|
-
/** _nsSharingApp, */
|
|
576
|
-
SHARING_APP = "SHARING_APP",
|
|
577
|
-
/** engage */
|
|
578
|
-
CHAT = "CHAT",
|
|
579
|
-
/** logobuilder */
|
|
580
|
-
LOGO_BUILDER = "LOGO_BUILDER",
|
|
581
|
-
/** WixExposure */
|
|
582
|
-
ALBUMS_OLD = "ALBUMS_OLD",
|
|
583
|
-
/** chat-mobile-uploads */
|
|
584
|
-
CHAT_MOBILE = "CHAT_MOBILE",
|
|
585
|
-
/** _nsWixForms */
|
|
586
|
-
WIX_FORMS = "WIX_FORMS"
|
|
587
|
-
}
|
|
588
|
-
export interface IdentityInfo {
|
|
589
|
-
/** The type of the user that uploaded the file */
|
|
590
|
-
identityType?: IdentityType;
|
|
591
|
-
/** User Id. empty when UNKNOWN */
|
|
592
|
-
identityId?: string | null;
|
|
593
|
-
}
|
|
594
|
-
export declare enum IdentityType {
|
|
595
|
-
UNKNOWN = "UNKNOWN",
|
|
596
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
597
|
-
MEMBER = "MEMBER",
|
|
598
|
-
WIX_USER = "WIX_USER",
|
|
599
|
-
APP = "APP"
|
|
600
|
-
}
|
|
601
|
-
export interface FileReady {
|
|
602
|
-
/** File entity that is ready with full information */
|
|
603
|
-
file?: FileDescriptor;
|
|
604
|
-
/** External information passed in the file import or upload. */
|
|
605
|
-
externalInfo?: ExternalInfo;
|
|
606
|
-
/** The File was restored from the trash-bin */
|
|
607
|
-
triggeredByUndelete?: boolean;
|
|
608
|
-
}
|
|
609
|
-
export interface ExternalInfo {
|
|
610
|
-
/** External information to pass in the [File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-ready) or [File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-failed) events. */
|
|
611
|
-
origin?: string;
|
|
612
|
-
/** External IDs to pass in the [File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-ready) or [File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-failed) events. */
|
|
613
|
-
externalIds?: string[];
|
|
614
|
-
}
|
|
615
|
-
export interface FileFailed {
|
|
616
|
-
/** External information passed in the file import or upload. */
|
|
617
|
-
externalInfo?: ExternalInfo;
|
|
618
|
-
/** Error information */
|
|
619
|
-
error?: ApplicationError;
|
|
620
|
-
}
|
|
621
|
-
export interface ApplicationError {
|
|
622
|
-
/** Error code. */
|
|
623
|
-
code?: string;
|
|
624
|
-
/** Description of the error. */
|
|
625
|
-
description?: string;
|
|
626
|
-
/** Data related to the error. */
|
|
627
|
-
data?: Record<string, any> | null;
|
|
628
|
-
}
|
|
629
|
-
export interface BulkAnnotateImagesRequest {
|
|
630
|
-
/** The file ids to run detection on */
|
|
631
|
-
fileIds: string[];
|
|
632
|
-
/** A list of detections types to fill for the image */
|
|
633
|
-
annotationTypes: ImageAnnotationType[];
|
|
634
|
-
/** When true the endpoint will detect listed information even if the image has this information */
|
|
635
|
-
overwrite?: boolean | null;
|
|
636
|
-
}
|
|
637
|
-
export declare enum ImageAnnotationType {
|
|
638
|
-
UnknownAnnotationType = "UnknownAnnotationType",
|
|
639
|
-
CONTAINS_TEXT = "CONTAINS_TEXT",
|
|
640
|
-
IS_ANIMATED = "IS_ANIMATED",
|
|
641
|
-
FACES = "FACES",
|
|
642
|
-
LABELS = "LABELS",
|
|
643
|
-
COLORS = "COLORS",
|
|
644
|
-
CAPTION = "CAPTION"
|
|
645
|
-
}
|
|
646
|
-
export interface BulkAnnotateImagesResponse {
|
|
647
|
-
/** The updated file info */
|
|
648
|
-
files?: FileDescriptor[];
|
|
649
|
-
}
|
|
650
|
-
export interface GenerateFilesDownloadUrlRequest {
|
|
651
|
-
/**
|
|
652
|
-
* IDs of the files to download.
|
|
653
|
-
*
|
|
654
|
-
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
655
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
656
|
-
*/
|
|
657
|
-
fileIds: string[];
|
|
658
|
-
}
|
|
659
|
-
export interface GenerateFilesDownloadUrlResponse {
|
|
660
|
-
/** URL for downloading the compressed file containing the specified files in the Media Manager. */
|
|
661
|
-
downloadUrl?: string;
|
|
662
|
-
}
|
|
663
|
-
export interface GenerateFileDownloadUrlRequest {
|
|
664
|
-
/**
|
|
665
|
-
* File ID.
|
|
666
|
-
*
|
|
667
|
-
* 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`.
|
|
668
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
669
|
-
*/
|
|
670
|
-
fileId: string;
|
|
671
|
-
/**
|
|
672
|
-
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
673
|
-
*
|
|
674
|
-
* **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
675
|
-
*/
|
|
676
|
-
downloadFileName?: string | null;
|
|
677
|
-
/**
|
|
678
|
-
* The time that it takes in minutes for the download URL to expire. <br />
|
|
679
|
-
* Default: `600`. <br />
|
|
680
|
-
* Limit: `525600` (1 year).
|
|
681
|
-
*/
|
|
682
|
-
expirationInMinutes?: number | null;
|
|
683
|
-
/**
|
|
684
|
-
* The redirect URL for when the temporary download URL with a token expires. <br />
|
|
685
|
-
* Default: A 403 Forbidden response page.
|
|
686
|
-
*/
|
|
687
|
-
expirationRedirectUrl?: string | null;
|
|
688
|
-
/**
|
|
689
|
-
* Keys for downloading different assets (format and quality) of a file.
|
|
690
|
-
* Default: `src`, key representing the original file's format and quality.
|
|
691
|
-
*/
|
|
692
|
-
assetKeys?: string[] | null;
|
|
693
|
-
/**
|
|
694
|
-
* Whether the link downloads the file or opens the file in the browser.
|
|
695
|
-
*
|
|
696
|
-
* - `ATTACHMENT`: The link downloads the file.
|
|
697
|
-
* - `INLINE`: The link opens the file in the browser.
|
|
698
|
-
*
|
|
699
|
-
* Default: `ATTACHMENT`
|
|
700
|
-
*/
|
|
701
|
-
contentDisposition?: ContentDisposition;
|
|
702
|
-
}
|
|
703
|
-
export declare enum ContentDisposition {
|
|
704
|
-
/** Using the link in the browser will download the file */
|
|
705
|
-
ATTACHMENT = "ATTACHMENT",
|
|
706
|
-
/** Using the link in the browser will open the file in the browser */
|
|
707
|
-
INLINE = "INLINE"
|
|
708
|
-
}
|
|
709
|
-
export interface GenerateFileDownloadUrlResponse {
|
|
710
|
-
/** URL for downloading a specific file in the Media Manager. */
|
|
711
|
-
downloadUrls?: DownloadUrl[];
|
|
712
|
-
}
|
|
713
|
-
export interface DownloadUrl {
|
|
714
|
-
/** The file download URL. */
|
|
715
|
-
url?: string;
|
|
716
|
-
/**
|
|
717
|
-
* Key for downloading a different asset (format and quality) of a file.
|
|
718
|
-
* Default: `src`, key representing the original file's format and quality.
|
|
719
|
-
*/
|
|
720
|
-
assetKey?: string;
|
|
721
|
-
}
|
|
722
|
-
export interface GetFileDescriptorRequest {
|
|
723
|
-
/**
|
|
724
|
-
* File ID.
|
|
725
|
-
*
|
|
726
|
-
* 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`.
|
|
727
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
728
|
-
*
|
|
729
|
-
* Note that you must encode the Wix media URL to pass it as a query param because it contains special characters. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032` becomes `wix%3Aimage%3A%2F%2Fv1%2F0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg%2Fleon.jpg%23originWidth%3D3024%26originHeight%3D4032`.
|
|
730
|
-
*/
|
|
731
|
-
fileId: string;
|
|
732
|
-
}
|
|
733
|
-
export interface GetFileDescriptorResponse {
|
|
734
|
-
/** Information about the file. */
|
|
735
|
-
file?: FileDescriptor;
|
|
736
|
-
}
|
|
737
|
-
export interface GetFileDescriptorsRequest {
|
|
738
|
-
/**
|
|
739
|
-
* File IDs.
|
|
740
|
-
*
|
|
741
|
-
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
742
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
743
|
-
*/
|
|
744
|
-
fileIds: string[];
|
|
745
|
-
}
|
|
746
|
-
export interface GetFileDescriptorsResponse {
|
|
747
|
-
/** Information about the requested files. */
|
|
748
|
-
files?: FileDescriptor[];
|
|
749
|
-
}
|
|
750
|
-
export interface UpdateFileDescriptorRequest {
|
|
751
|
-
/** The file to update. */
|
|
752
|
-
file: FileDescriptor;
|
|
753
|
-
/**
|
|
754
|
-
* Set of fields to update. Fields that aren't included in `fieldMask.paths` are ignored.
|
|
755
|
-
* @internal
|
|
756
|
-
*/
|
|
757
|
-
fieldMask?: string[];
|
|
758
|
-
}
|
|
759
|
-
export interface UpdateFileDescriptorResponse {
|
|
760
|
-
/** Information about the updated file. */
|
|
761
|
-
file?: FileDescriptor;
|
|
762
|
-
}
|
|
763
|
-
export interface GenerateFileUploadUrlRequest {
|
|
764
|
-
/** File mime type. */
|
|
765
|
-
mimeType: string | null;
|
|
766
|
-
/**
|
|
767
|
-
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
768
|
-
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
769
|
-
*/
|
|
770
|
-
fileName?: string | null;
|
|
771
|
-
/**
|
|
772
|
-
* File size in bytes.
|
|
773
|
-
* @readonly
|
|
774
|
-
*/
|
|
775
|
-
sizeInBytes?: string | null;
|
|
776
|
-
/**
|
|
777
|
-
* ID of the file's parent folder. <br />
|
|
778
|
-
* This folder is the path root for the `filePath`.<br />
|
|
779
|
-
* Default: `media-root`.
|
|
780
|
-
*/
|
|
781
|
-
parentFolderId?: string | null;
|
|
782
|
-
/** Whether the link to the uploaded file is public or private. See `Private Files` in terminology. */
|
|
783
|
-
private?: boolean | null;
|
|
784
|
-
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
785
|
-
labels?: string[] | null;
|
|
786
|
-
/** A place to map an external entity to an uploaded file in the Wix Media Manager. */
|
|
787
|
-
externalInfo?: ExternalInfo;
|
|
788
|
-
/**
|
|
789
|
-
* The uploaded file will be created under this namespace
|
|
790
|
-
* @internal
|
|
791
|
-
*/
|
|
792
|
-
rawNamespace?: string | null;
|
|
793
|
-
/**
|
|
794
|
-
* The uploaded file will be created under this namespace
|
|
795
|
-
* Note - Namespace value `Others` is not supported and will produce an error
|
|
796
|
-
* @internal
|
|
797
|
-
*/
|
|
798
|
-
namespace?: Namespace;
|
|
799
|
-
/**
|
|
800
|
-
* Path to the folder where the file will be stored.
|
|
801
|
-
* For example, `/videos/2024/december`. <br/>
|
|
802
|
-
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
803
|
-
* The folders in the path will be created if they don't already exist. <br />
|
|
804
|
-
*/
|
|
805
|
-
filePath?: string | null;
|
|
806
|
-
/**
|
|
807
|
-
* Internal tags describing the item, can be used in specific clients use cases
|
|
808
|
-
* @internal
|
|
809
|
-
*/
|
|
810
|
-
internalTags?: string[];
|
|
811
|
-
}
|
|
812
|
-
export interface GenerateFileUploadUrlResponse {
|
|
813
|
-
/** The URL for uploading a file to the Media Manager. */
|
|
814
|
-
uploadUrl?: string;
|
|
815
|
-
}
|
|
816
|
-
export interface GenerateFileResumableUploadUrlRequest {
|
|
817
|
-
/** File mime type. */
|
|
818
|
-
mimeType: string | null;
|
|
819
|
-
/**
|
|
820
|
-
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
821
|
-
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
822
|
-
*/
|
|
823
|
-
fileName?: string | null;
|
|
824
|
-
/**
|
|
825
|
-
* File size in bytes.
|
|
826
|
-
* @readonly
|
|
827
|
-
*/
|
|
828
|
-
sizeInBytes?: string | null;
|
|
829
|
-
/**
|
|
830
|
-
* ID of the file's parent folder. <br />
|
|
831
|
-
* This folder is the path root for the `filePath`.<br />
|
|
832
|
-
* Default: `media-root`.
|
|
833
|
-
*/
|
|
834
|
-
parentFolderId?: string | null;
|
|
835
|
-
/** Whether the link to the imported file is public or private. See `Private Files` in terminology. */
|
|
836
|
-
private?: boolean | null;
|
|
837
|
-
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
838
|
-
labels?: string[] | null;
|
|
839
|
-
/** The upload protocol to use for implementing the resumable upload. */
|
|
840
|
-
uploadProtocol?: UploadProtocol;
|
|
841
|
-
/**
|
|
842
|
-
* The uploaded file will be created under this namespace
|
|
843
|
-
* @internal
|
|
844
|
-
*/
|
|
845
|
-
rawNamespace?: string | null;
|
|
846
|
-
/**
|
|
847
|
-
* The uploaded file will be created under this namespace
|
|
848
|
-
* Note - Namespace value `Others` is not supported and will produce an error
|
|
849
|
-
* @internal
|
|
850
|
-
*/
|
|
851
|
-
namespace?: Namespace;
|
|
852
|
-
/**
|
|
853
|
-
* Path to the folder where the file will be stored.
|
|
854
|
-
* For example, `/videos/2024/december`. <br/>
|
|
855
|
-
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
856
|
-
* The folders in the path will be created if they don't already exist. <br />
|
|
857
|
-
*/
|
|
858
|
-
filePath?: string | null;
|
|
859
|
-
/**
|
|
860
|
-
* Internal tags describing the item, can be used in specific clients use cases
|
|
861
|
-
* @internal
|
|
862
|
-
*/
|
|
863
|
-
internalTags?: string[];
|
|
864
|
-
}
|
|
865
|
-
export declare enum UploadProtocol {
|
|
866
|
-
/** The upload protocol to use for implementing the resumable upload. */
|
|
867
|
-
TUS = "TUS"
|
|
868
|
-
}
|
|
869
|
-
export interface GenerateFileResumableUploadUrlResponse {
|
|
870
|
-
/** The upload protocol to use for implementing the resumable upload. */
|
|
871
|
-
uploadProtocol?: UploadProtocol;
|
|
872
|
-
/** The URL for uploading a file to the Media Manager. */
|
|
873
|
-
uploadUrl?: string;
|
|
874
|
-
/** Single-use upload token. */
|
|
875
|
-
uploadToken?: string;
|
|
876
|
-
}
|
|
877
|
-
export interface ImportFileRequest {
|
|
878
|
-
/** Publicly accessible external file URL. */
|
|
879
|
-
url: string;
|
|
880
|
-
/**
|
|
881
|
-
* Media type of the file to import.
|
|
882
|
-
* excluding: OTHER media type
|
|
883
|
-
*/
|
|
884
|
-
mediaType?: MediaType;
|
|
885
|
-
/** File name that appears in the Media Manager. */
|
|
886
|
-
displayName?: string | null;
|
|
887
|
-
/**
|
|
888
|
-
* ID of the file's parent folder. <br />
|
|
889
|
-
* This folder is the path root for the `filePath`. <br />
|
|
890
|
-
* Default: `media-root`.
|
|
891
|
-
*/
|
|
892
|
-
parentFolderId?: string | null;
|
|
893
|
-
/** Whether the link to the imported file is public or private. */
|
|
894
|
-
private?: boolean | null;
|
|
895
|
-
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
896
|
-
labels?: string[] | null;
|
|
897
|
-
/** File mime type. */
|
|
898
|
-
mimeType?: string;
|
|
899
|
-
/** Information sent to the [File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-ready) and [File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-failed) webhooks. See [Importing Files](/importing-files#using-externalinfo) to learn more. */
|
|
900
|
-
externalInfo?: ExternalInfo;
|
|
901
|
-
/** Optional parameters that should be sent with the external URL. */
|
|
902
|
-
urlParams?: Record<string, any> | null;
|
|
903
|
-
/** Optional headers that should be sent with the external URL. */
|
|
904
|
-
urlHeaders?: Record<string, any> | null;
|
|
905
|
-
/**
|
|
906
|
-
* The imported file will be created under this namespace
|
|
907
|
-
* @internal
|
|
908
|
-
*/
|
|
909
|
-
rawNamespace?: string | null;
|
|
910
|
-
/**
|
|
911
|
-
* The imported file will be created under this namespace
|
|
912
|
-
* Note - Namespace value `Others` is not supported and will produce an error
|
|
913
|
-
* @internal
|
|
914
|
-
*/
|
|
915
|
-
namespace?: Namespace;
|
|
916
|
-
/**
|
|
917
|
-
* Path to the folder where the file will be stored.
|
|
918
|
-
* For example, `/videos/2024/december`. <br/>
|
|
919
|
-
* If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
|
|
920
|
-
* The folders in the path will be created if they don't already exist. <br />
|
|
921
|
-
*/
|
|
922
|
-
filePath?: string | null;
|
|
923
|
-
/**
|
|
924
|
-
* Internal tags describing the item, can be used in specific clients use cases
|
|
925
|
-
* @internal
|
|
926
|
-
*/
|
|
927
|
-
internalTags?: string[];
|
|
928
|
-
}
|
|
929
|
-
export interface ImportFileResponse {
|
|
930
|
-
/** Information about the imported file. */
|
|
931
|
-
file?: FileDescriptor;
|
|
932
|
-
}
|
|
933
|
-
export interface BulkImportFilesRequest {
|
|
934
|
-
/** Information about the files to import. */
|
|
935
|
-
importFileRequests: ImportFileRequest[];
|
|
936
|
-
}
|
|
937
|
-
export interface BulkImportFilesResponse {
|
|
938
|
-
/** Information about the imported files. */
|
|
939
|
-
files?: FileDescriptor[];
|
|
940
|
-
}
|
|
941
|
-
export interface BulkImportFileRequest {
|
|
942
|
-
/** Information about the files to import. */
|
|
943
|
-
importFileRequests: ImportFileRequest[];
|
|
944
|
-
/**
|
|
945
|
-
* Whether to include the imported File Descriptor in the response. Set to `false` to exclude the File Descriptor from the returned object.
|
|
946
|
-
*
|
|
947
|
-
* Default: `true`
|
|
948
|
-
*/
|
|
949
|
-
returnEntity?: boolean | null;
|
|
950
|
-
}
|
|
951
|
-
export interface BulkImportFileResponse {
|
|
952
|
-
/** Items created by bulk action. */
|
|
953
|
-
results?: BulkImportFileResult[];
|
|
954
|
-
/** Bulk action metadata. */
|
|
955
|
-
bulkActionMetadata?: BulkActionMetadata;
|
|
956
|
-
}
|
|
957
|
-
export interface BulkImportFileResult {
|
|
958
|
-
/** Item metadata. */
|
|
959
|
-
itemMetadata?: ItemMetadata;
|
|
960
|
-
/** Imported file. This field is returned if the operation was successful and `returnEntity` is not set to `false`. */
|
|
961
|
-
item?: FileDescriptor;
|
|
962
|
-
}
|
|
963
|
-
export interface ItemMetadata {
|
|
964
|
-
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
|
|
965
|
-
id?: string | null;
|
|
966
|
-
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
967
|
-
originalIndex?: number;
|
|
968
|
-
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
|
|
969
|
-
success?: boolean;
|
|
970
|
-
/** Details about the error in case of failure. */
|
|
971
|
-
error?: ApplicationError;
|
|
972
|
-
}
|
|
973
|
-
export interface BulkActionMetadata {
|
|
974
|
-
/** Number of items that were successfully processed. */
|
|
975
|
-
totalSuccesses?: number;
|
|
976
|
-
/** Number of items that couldn't be processed. */
|
|
977
|
-
totalFailures?: number;
|
|
978
|
-
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
979
|
-
undetailedFailures?: number;
|
|
980
|
-
}
|
|
981
|
-
export interface ListFilesRequest {
|
|
982
|
-
/**
|
|
983
|
-
* ID of the file's parent folder. <br />
|
|
984
|
-
* Default:`media-root`.
|
|
985
|
-
*/
|
|
986
|
-
parentFolderId?: string | null;
|
|
987
|
-
/**
|
|
988
|
-
* File media type.
|
|
989
|
-
* excluding: OTHER media type
|
|
990
|
-
*/
|
|
991
|
-
mediaTypes?: MediaType[];
|
|
992
|
-
/** Whether the link to the imported file is public or private. */
|
|
993
|
-
private?: boolean | null;
|
|
994
|
-
/**
|
|
995
|
-
* Field name and order to sort by. One of: <br />
|
|
996
|
-
* * `displayName`
|
|
997
|
-
* * `updatedDate`
|
|
998
|
-
* * `sizeInBytes`
|
|
999
|
-
* Default: `updatedDate` in `desc` order.
|
|
1000
|
-
*/
|
|
1001
|
-
sort?: Sorting;
|
|
1002
|
-
/** Cursor and paging information. */
|
|
1003
|
-
paging?: CursorPaging;
|
|
1004
|
-
/**
|
|
1005
|
-
* List files of the specified namespace
|
|
1006
|
-
* @internal
|
|
1007
|
-
*/
|
|
1008
|
-
rawNamespace?: string | null;
|
|
1009
|
-
/**
|
|
1010
|
-
* List files of the specified namespace
|
|
1011
|
-
* Note - Namespace value `Others` is not supported and will produce an error
|
|
1012
|
-
* @internal
|
|
1013
|
-
*/
|
|
1014
|
-
namespace?: Namespace;
|
|
1015
|
-
}
|
|
1016
|
-
export interface Sorting {
|
|
1017
|
-
/** Name of the field to sort by. */
|
|
1018
|
-
fieldName?: string;
|
|
1019
|
-
/** Sort order. */
|
|
1020
|
-
order?: SortOrder;
|
|
1021
|
-
/**
|
|
1022
|
-
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
1023
|
-
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
1024
|
-
*
|
|
1025
|
-
* If multiple filters are provided, they are combined with AND operator.
|
|
1026
|
-
*
|
|
1027
|
-
* Example:
|
|
1028
|
-
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
1029
|
-
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
1030
|
-
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
1031
|
-
* @internal
|
|
1032
|
-
*/
|
|
1033
|
-
selectItemsBy?: Record<string, any>[] | null;
|
|
1034
|
-
}
|
|
1035
|
-
export declare enum SortOrder {
|
|
1036
|
-
ASC = "ASC",
|
|
1037
|
-
DESC = "DESC"
|
|
1038
|
-
}
|
|
1039
|
-
export interface CursorPaging {
|
|
1040
|
-
/** Maximum number of items to return in the results. */
|
|
1041
|
-
limit?: number | null;
|
|
1042
|
-
/**
|
|
1043
|
-
* Pointer to the next or previous page in the list of results.
|
|
1044
|
-
*
|
|
1045
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1046
|
-
* Not relevant for the first request.
|
|
1047
|
-
*/
|
|
1048
|
-
cursor?: string | null;
|
|
1049
|
-
}
|
|
1050
|
-
export interface ListFilesResponse {
|
|
1051
|
-
/** List of files in the Media Manager. */
|
|
1052
|
-
files?: FileDescriptor[];
|
|
1053
|
-
/** The next cursor if it exists. */
|
|
1054
|
-
nextCursor?: PagingMetadataV2;
|
|
1055
|
-
}
|
|
1056
|
-
export interface PagingMetadataV2 {
|
|
1057
|
-
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
1058
|
-
total?: number | null;
|
|
1059
|
-
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
1060
|
-
cursors?: Cursors;
|
|
1061
|
-
/**
|
|
1062
|
-
* Indicates if there are more results after the current page.
|
|
1063
|
-
* If `true`, another page of results can be retrieved.
|
|
1064
|
-
* If `false`, this is the last page.
|
|
1065
|
-
* @internal
|
|
1066
|
-
*/
|
|
1067
|
-
hasNext?: boolean | null;
|
|
1068
|
-
}
|
|
1069
|
-
export interface Cursors {
|
|
1070
|
-
/** Cursor string pointing to the next page in the list of results. */
|
|
1071
|
-
next?: string | null;
|
|
1072
|
-
}
|
|
1073
|
-
export interface SearchFilesRequest {
|
|
1074
|
-
/**
|
|
1075
|
-
* Term to search for. Possible terms include the value of a file's
|
|
1076
|
-
* `displayName`, `mimeType`, and `label`. <br />
|
|
1077
|
-
* For example, if a file's label is cat, the search term is 'cat'.
|
|
1078
|
-
*/
|
|
1079
|
-
search?: string | null;
|
|
1080
|
-
/**
|
|
1081
|
-
* A root folder in the media manager to search in. <br />
|
|
1082
|
-
* Default: `MEDIA_ROOT`.
|
|
1083
|
-
*/
|
|
1084
|
-
rootFolder?: RootFolder;
|
|
1085
|
-
/**
|
|
1086
|
-
* File media type.
|
|
1087
|
-
* excluding: OTHER media type
|
|
1088
|
-
*/
|
|
1089
|
-
mediaTypes?: MediaType[];
|
|
1090
|
-
/** Whether the link to the imported file is public or private. */
|
|
1091
|
-
private?: boolean | null;
|
|
1092
|
-
/**
|
|
1093
|
-
* Field name and order to sort by. One of: <br />
|
|
1094
|
-
* * `displayName`
|
|
1095
|
-
* * `updatedDate`
|
|
1096
|
-
* * `sizeInBytes`
|
|
1097
|
-
* Default: `updatedDate` in `desc` order.
|
|
1098
|
-
*/
|
|
1099
|
-
sort?: Sorting;
|
|
1100
|
-
/** Cursor and paging information. */
|
|
1101
|
-
paging?: CursorPaging;
|
|
1102
|
-
/**
|
|
1103
|
-
* search by an internal tag that describe the item - for internal wix use only
|
|
1104
|
-
* @internal
|
|
1105
|
-
*/
|
|
1106
|
-
internalTag?: string | null;
|
|
1107
|
-
/**
|
|
1108
|
-
* Search files of the specified namespace
|
|
1109
|
-
* @internal
|
|
1110
|
-
*/
|
|
1111
|
-
rawNamespace?: string | null;
|
|
1112
|
-
/**
|
|
1113
|
-
* Search files of the specified namespace <br/>
|
|
1114
|
-
* Note - Namespace value `Others` is not supported in this request and will produce an error
|
|
1115
|
-
* @internal
|
|
1116
|
-
*/
|
|
1117
|
-
namespace?: Namespace;
|
|
1118
|
-
}
|
|
1119
|
-
export declare enum RootFolder {
|
|
1120
|
-
/** Root of all site media */
|
|
1121
|
-
MEDIA_ROOT = "MEDIA_ROOT",
|
|
1122
|
-
/** Root of the trash system folder */
|
|
1123
|
-
TRASH_ROOT = "TRASH_ROOT",
|
|
1124
|
-
/** Root of all visitor uploads */
|
|
1125
|
-
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
1126
|
-
}
|
|
1127
|
-
export interface SearchFilesResponse {
|
|
1128
|
-
/** Files matching the query. */
|
|
1129
|
-
files?: FileDescriptor[];
|
|
1130
|
-
/** The next cursor if it exists. */
|
|
1131
|
-
nextCursor?: PagingMetadataV2;
|
|
1132
|
-
}
|
|
1133
|
-
export interface GenerateVideoStreamingUrlRequest {
|
|
1134
|
-
/**
|
|
1135
|
-
* File ID.
|
|
1136
|
-
*
|
|
1137
|
-
* 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`.
|
|
1138
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
1139
|
-
*/
|
|
1140
|
-
fileId: string;
|
|
1141
|
-
/** Video stream format. */
|
|
1142
|
-
format?: StreamFormat;
|
|
1143
|
-
}
|
|
1144
|
-
export declare enum StreamFormat {
|
|
1145
|
-
UNKNOWN = "UNKNOWN",
|
|
1146
|
-
HLS = "HLS",
|
|
1147
|
-
DASH = "DASH"
|
|
1148
|
-
}
|
|
1149
|
-
export interface GenerateVideoStreamingUrlResponse {
|
|
1150
|
-
/** URL for streaming a specific file in the Media Manager. */
|
|
1151
|
-
downloadUrl?: DownloadUrl;
|
|
1152
|
-
}
|
|
1153
|
-
export interface GenerateWebSocketTokenRequest {
|
|
1154
|
-
}
|
|
1155
|
-
export interface GenerateWebSocketTokenResponse {
|
|
1156
|
-
/** The web socket token for the identity in the request */
|
|
1157
|
-
token?: string;
|
|
1158
|
-
}
|
|
1159
|
-
export interface BulkDeleteFilesRequest {
|
|
1160
|
-
/**
|
|
1161
|
-
* IDs of the files to move to the Media Manager's trash bin.
|
|
1162
|
-
*
|
|
1163
|
-
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1164
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
1165
|
-
*/
|
|
1166
|
-
fileIds: string[];
|
|
1167
|
-
/**
|
|
1168
|
-
* Whether the specified files are permanently deleted. <br />
|
|
1169
|
-
* Default: `false`
|
|
1170
|
-
*/
|
|
1171
|
-
permanent?: boolean;
|
|
1172
|
-
}
|
|
1173
|
-
export interface BulkDeleteFilesResponse {
|
|
1174
|
-
}
|
|
1175
|
-
export interface BulkRestoreFilesFromTrashBinRequest {
|
|
1176
|
-
/**
|
|
1177
|
-
* IDs of the files to restore from the Media Manager's trash bin.
|
|
1178
|
-
*
|
|
1179
|
-
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1180
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
1181
|
-
*/
|
|
1182
|
-
fileIds: string[];
|
|
1183
|
-
}
|
|
1184
|
-
export interface BulkRestoreFilesFromTrashBinResponse {
|
|
1185
|
-
}
|
|
1186
|
-
export interface ListDeletedFilesRequest {
|
|
1187
|
-
/**
|
|
1188
|
-
* ID of the file's parent folder. <br />
|
|
1189
|
-
* Default: `media-root`.
|
|
1190
|
-
*/
|
|
1191
|
-
parentFolderId?: string | null;
|
|
1192
|
-
/**
|
|
1193
|
-
* File media type.
|
|
1194
|
-
* excluding: OTHER media type
|
|
1195
|
-
*/
|
|
1196
|
-
mediaTypes?: MediaType[];
|
|
1197
|
-
/** Whether the link to the imported file is public or private. */
|
|
1198
|
-
private?: boolean | null;
|
|
1199
|
-
/**
|
|
1200
|
-
* Field name and order to sort by. One of: <br />
|
|
1201
|
-
* * `displayName`
|
|
1202
|
-
* * `updatedDate`
|
|
1203
|
-
* * `sizeInBytes`
|
|
1204
|
-
* Default: `updatedDate` in `desc` order.
|
|
1205
|
-
*/
|
|
1206
|
-
sort?: Sorting;
|
|
1207
|
-
/** Cursor and paging information. */
|
|
1208
|
-
paging?: CursorPaging;
|
|
1209
|
-
/**
|
|
1210
|
-
* List files of the specified namespace
|
|
1211
|
-
* @internal
|
|
1212
|
-
*/
|
|
1213
|
-
rawNamespace?: string | null;
|
|
1214
|
-
/**
|
|
1215
|
-
* List files of the specified namespace
|
|
1216
|
-
* Note - Namespace value `Others` is not supported and will produce an error
|
|
1217
|
-
* @internal
|
|
1218
|
-
*/
|
|
1219
|
-
namespace?: Namespace;
|
|
1220
|
-
}
|
|
1221
|
-
export interface ListDeletedFilesResponse {
|
|
1222
|
-
/** List of files in the Media Manager's trash bin. */
|
|
1223
|
-
files?: FileDescriptor[];
|
|
1224
|
-
/** The next cursor if it exists. */
|
|
1225
|
-
nextCursor?: PagingMetadataV2;
|
|
1226
|
-
}
|
|
1227
|
-
export interface UpdateFileRequest {
|
|
1228
|
-
/**
|
|
1229
|
-
* ID of the file to update.
|
|
1230
|
-
*
|
|
1231
|
-
* 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`.
|
|
1232
|
-
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
1233
|
-
*/
|
|
1234
|
-
fileId: string;
|
|
1235
|
-
/** File name that appears in the Media Manager. */
|
|
1236
|
-
displayName?: string | null;
|
|
1237
|
-
/**
|
|
1238
|
-
* ID of the file's parent folder. <br />
|
|
1239
|
-
* Default: `media-root`.
|
|
1240
|
-
*/
|
|
1241
|
-
parentFolderId?: string | null;
|
|
1242
|
-
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
1243
|
-
labels?: string[] | null;
|
|
1244
|
-
}
|
|
1245
|
-
export interface UpdateFileResponse {
|
|
1246
|
-
/** Information about the updated file. */
|
|
1247
|
-
file?: FileDescriptor;
|
|
1248
|
-
}
|
|
1249
|
-
export interface DomainEvent extends DomainEventBodyOneOf {
|
|
1250
|
-
createdEvent?: EntityCreatedEvent;
|
|
1251
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1252
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1253
|
-
actionEvent?: ActionEvent;
|
|
1254
|
-
/**
|
|
1255
|
-
* Unique event ID.
|
|
1256
|
-
* Allows clients to ignore duplicate webhooks.
|
|
1257
|
-
*/
|
|
1258
|
-
id?: string;
|
|
1259
|
-
/**
|
|
1260
|
-
* Assumes actions are also always typed to an entity_type
|
|
1261
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
1262
|
-
*/
|
|
1263
|
-
entityFqdn?: string;
|
|
1264
|
-
/**
|
|
1265
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
1266
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
1267
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
1268
|
-
*/
|
|
1269
|
-
slug?: string;
|
|
1270
|
-
/** ID of the entity associated with the event. */
|
|
1271
|
-
entityId?: string;
|
|
1272
|
-
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
1273
|
-
eventTime?: Date | null;
|
|
1274
|
-
/**
|
|
1275
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
1276
|
-
* (for example, GDPR).
|
|
1277
|
-
*/
|
|
1278
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
1279
|
-
/** If present, indicates the action that triggered the event. */
|
|
1280
|
-
originatedFrom?: string | null;
|
|
1281
|
-
/**
|
|
1282
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
1283
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
1284
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
1285
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
1286
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
1287
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
1288
|
-
*/
|
|
1289
|
-
entityEventSequence?: string | null;
|
|
1290
|
-
}
|
|
1291
|
-
/** @oneof */
|
|
1292
|
-
export interface DomainEventBodyOneOf {
|
|
1293
|
-
createdEvent?: EntityCreatedEvent;
|
|
1294
|
-
updatedEvent?: EntityUpdatedEvent;
|
|
1295
|
-
deletedEvent?: EntityDeletedEvent;
|
|
1296
|
-
actionEvent?: ActionEvent;
|
|
1297
|
-
}
|
|
1298
|
-
export interface EntityCreatedEvent {
|
|
1299
|
-
entityAsJson?: string;
|
|
1300
|
-
/**
|
|
1301
|
-
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
1302
|
-
* @internal
|
|
1303
|
-
*/
|
|
1304
|
-
triggeredByUndelete?: boolean | null;
|
|
1305
|
-
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
1306
|
-
restoreInfo?: RestoreInfo;
|
|
1307
|
-
}
|
|
1308
|
-
export interface RestoreInfo {
|
|
1309
|
-
deletedDate?: Date | null;
|
|
1310
|
-
}
|
|
1311
|
-
export interface EntityUpdatedEvent {
|
|
1312
|
-
/**
|
|
1313
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1314
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
1315
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
1316
|
-
*/
|
|
1317
|
-
currentEntityAsJson?: string;
|
|
1318
|
-
/**
|
|
1319
|
-
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
1320
|
-
* wont populate it / have any reference to it in the API.
|
|
1321
|
-
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
1322
|
-
* the developer should send only the new (current) entity.
|
|
1323
|
-
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
1324
|
-
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
1325
|
-
* @internal
|
|
1326
|
-
* @deprecated
|
|
1327
|
-
*/
|
|
1328
|
-
previousEntityAsJson?: string | null;
|
|
1329
|
-
/**
|
|
1330
|
-
* WIP - This property will hold both names and values of the updated fields of the entity.
|
|
1331
|
-
* For more details please see [adr](https://docs.google.com/document/d/1PdqsOM20Ph2HAkmx8zvUnzzk3Sekp3BR9h34wSvsRnI/edit#heading=h.phlw87mh2imx) or [issue](https://github.com/wix-private/nile-tracker/issues/363)
|
|
1332
|
-
* @internal
|
|
1333
|
-
*/
|
|
1334
|
-
modifiedFields?: Record<string, any>;
|
|
1335
|
-
}
|
|
1336
|
-
export interface EntityDeletedEvent {
|
|
1337
|
-
/**
|
|
1338
|
-
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
1339
|
-
* @internal
|
|
1340
|
-
*/
|
|
1341
|
-
movedToTrash?: boolean | null;
|
|
1342
|
-
/** Entity that was deleted */
|
|
1343
|
-
deletedEntityAsJson?: string | null;
|
|
1344
|
-
}
|
|
1345
|
-
export interface ActionEvent {
|
|
1346
|
-
bodyAsJson?: string;
|
|
1347
|
-
}
|
|
1348
|
-
export interface MessageEnvelope {
|
|
1349
|
-
/** App instance ID. */
|
|
1350
|
-
instanceId?: string | null;
|
|
1351
|
-
/** Event type. */
|
|
1352
|
-
eventType?: string;
|
|
1353
|
-
/** The identification type and identity data. */
|
|
1354
|
-
identity?: IdentificationData;
|
|
1355
|
-
/** Stringify payload. */
|
|
1356
|
-
data?: string;
|
|
1357
|
-
}
|
|
1358
|
-
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
1359
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
1360
|
-
anonymousVisitorId?: string;
|
|
1361
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
1362
|
-
memberId?: string;
|
|
1363
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
1364
|
-
wixUserId?: string;
|
|
1365
|
-
/** ID of an app. */
|
|
1366
|
-
appId?: string;
|
|
1367
|
-
/** @readonly */
|
|
1368
|
-
identityType?: WebhookIdentityType;
|
|
1369
|
-
}
|
|
1370
|
-
/** @oneof */
|
|
1371
|
-
export interface IdentificationDataIdOneOf {
|
|
1372
|
-
/** ID of a site visitor that has not logged in to the site. */
|
|
1373
|
-
anonymousVisitorId?: string;
|
|
1374
|
-
/** ID of a site visitor that has logged in to the site. */
|
|
1375
|
-
memberId?: string;
|
|
1376
|
-
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
1377
|
-
wixUserId?: string;
|
|
1378
|
-
/** ID of an app. */
|
|
1379
|
-
appId?: string;
|
|
1380
|
-
}
|
|
1381
|
-
export declare enum WebhookIdentityType {
|
|
1382
|
-
UNKNOWN = "UNKNOWN",
|
|
1383
|
-
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1384
|
-
MEMBER = "MEMBER",
|
|
1385
|
-
WIX_USER = "WIX_USER",
|
|
1386
|
-
APP = "APP"
|
|
1387
|
-
}
|