@wix/auto_sdk_media_files 1.0.18 → 1.0.20

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.
Files changed (121) hide show
  1. package/build/cjs/index.d.ts +315 -1
  2. package/build/cjs/index.js +2264 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2266 -1
  5. package/build/cjs/index.typings.js +1935 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1053 -1
  8. package/build/cjs/meta.js +1326 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/{internal/cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts → es/index.d.mts} +93 -36
  11. package/build/es/index.mjs +2212 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts → es/index.typings.d.mts} +227 -487
  14. package/build/es/index.typings.mjs +1887 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/{internal/es/src/media-site-media-v1-file-descriptor-files.types.d.ts → es/meta.d.mts} +106 -585
  17. package/build/es/meta.mjs +1287 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +315 -1
  20. package/build/internal/cjs/index.js +2264 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +2266 -1
  23. package/build/internal/cjs/index.typings.js +1935 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1053 -1
  26. package/build/internal/cjs/meta.js +1326 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/{cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts → internal/es/index.d.mts} +93 -36
  29. package/build/internal/es/index.mjs +2212 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/es/{src/media-site-media-v1-file-descriptor-files.universal.d.ts → index.typings.d.mts} +227 -487
  32. package/build/internal/es/index.typings.mjs +1887 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/{es/src/media-site-media-v1-file-descriptor-files.types.d.ts → internal/es/meta.d.mts} +106 -585
  35. package/build/internal/es/meta.mjs +1287 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +10 -9
  38. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  39. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js +0 -60
  40. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  41. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  42. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -1118
  43. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  44. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  45. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.js +0 -332
  46. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  47. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js +0 -265
  48. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  49. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +0 -1532
  50. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js +0 -119
  51. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  52. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts +0 -2526
  53. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1483
  54. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  65. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js +0 -45
  66. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  67. package/build/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  68. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -1099
  69. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  70. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  71. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.js +0 -290
  72. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  73. package/build/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +0 -258
  74. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js +0 -234
  75. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  76. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js +0 -116
  77. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  78. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.d.ts +0 -2526
  79. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1441
  80. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  81. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  82. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js +0 -60
  83. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  84. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  85. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -1118
  86. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  87. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  88. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.js +0 -332
  89. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  90. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js +0 -265
  91. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  92. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +0 -1532
  93. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js +0 -119
  94. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  95. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1483
  96. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  97. package/build/internal/es/index.d.ts +0 -1
  98. package/build/internal/es/index.js +0 -2
  99. package/build/internal/es/index.js.map +0 -1
  100. package/build/internal/es/index.typings.d.ts +0 -1
  101. package/build/internal/es/index.typings.js +0 -2
  102. package/build/internal/es/index.typings.js.map +0 -1
  103. package/build/internal/es/meta.d.ts +0 -1
  104. package/build/internal/es/meta.js +0 -2
  105. package/build/internal/es/meta.js.map +0 -1
  106. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  107. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js +0 -45
  108. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  109. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  110. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -1099
  111. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  112. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  113. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.js +0 -290
  114. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  115. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +0 -258
  116. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js +0 -234
  117. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  118. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js +0 -116
  119. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  120. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1441
  121. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
@@ -1,1532 +0,0 @@
1
- export interface FileDescriptor {
2
- /**
3
- * File ID. Generated when a file is uploaded to the Media Manager.
4
- * @readonly
5
- * @maxLength 1000
6
- */
7
- id?: string;
8
- /**
9
- * File name as it appears in the Media Manager.
10
- * @maxLength 200
11
- */
12
- displayName?: string;
13
- /**
14
- * Static URL of the file.
15
- * @readonly
16
- * @format WEB_URL
17
- */
18
- url?: string;
19
- /**
20
- * ID of the file's parent folder.
21
- * @maxLength 100
22
- */
23
- parentFolderId?: string | null;
24
- /**
25
- * File hash.
26
- * @readonly
27
- * @maxLength 100
28
- */
29
- hash?: string;
30
- /**
31
- * Size of the uploaded file in bytes.
32
- * @readonly
33
- * @format DECIMAL_VALUE
34
- * @decimalValue options { maxScale:0 }
35
- */
36
- sizeInBytes?: string | null;
37
- /**
38
- * Whether the file is public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)).
39
- * @readonly
40
- */
41
- private?: boolean;
42
- /**
43
- * Media file type.
44
- * @readonly
45
- */
46
- mediaType?: MediaTypeWithLiterals;
47
- /**
48
- * Media file content.
49
- * @readonly
50
- */
51
- media?: FileMedia;
52
- /**
53
- * Status of the file that was uploaded.
54
- * * `FAILED`: The file failed to upload, for example, during media post processing.
55
- * * `READY`: The file uploaded, finished all processing, and is ready for use.
56
- * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
57
- * @readonly
58
- */
59
- operationStatus?: OperationStatusWithLiterals;
60
- /**
61
- * URL where the file was uploaded from.
62
- * @readonly
63
- * @format WEB_URL
64
- */
65
- sourceUrl?: string | null;
66
- /**
67
- * URL of the file's thumbnail.
68
- * @readonly
69
- * @format WEB_URL
70
- */
71
- thumbnailUrl?: string | null;
72
- /**
73
- * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
74
- * @maxSize 100
75
- * @maxLength 200
76
- */
77
- labels?: string[];
78
- /**
79
- * Date and time the file was created.
80
- * @readonly
81
- */
82
- createdDate?: Date | null;
83
- /**
84
- * Date and time the file was updated.
85
- * @readonly
86
- */
87
- updatedDate?: Date | null;
88
- /**
89
- * The Wix site ID where the media file is stored.
90
- * @readonly
91
- * @maxLength 100
92
- */
93
- siteId?: string;
94
- /**
95
- * State of the file.
96
- * @readonly
97
- */
98
- state?: StateWithLiterals;
99
- }
100
- export declare enum MediaType {
101
- UNKNOWN = "UNKNOWN",
102
- IMAGE = "IMAGE",
103
- VIDEO = "VIDEO",
104
- AUDIO = "AUDIO",
105
- DOCUMENT = "DOCUMENT",
106
- VECTOR = "VECTOR",
107
- ARCHIVE = "ARCHIVE",
108
- MODEL3D = "MODEL3D",
109
- OTHER = "OTHER"
110
- }
111
- /** @enumType */
112
- export type MediaTypeWithLiterals = MediaType | 'UNKNOWN' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'VECTOR' | 'ARCHIVE' | 'MODEL3D' | 'OTHER';
113
- export interface FileMedia extends FileMediaMediaOneOf {
114
- /** Information about the image. */
115
- image?: ImageMedia;
116
- /** Information about the video. */
117
- video?: VideoV2;
118
- /** Information about the audio. */
119
- audio?: AudioV2;
120
- /** Information about the document. */
121
- document?: Document;
122
- /** Information about the vector. */
123
- vector?: ImageMedia;
124
- /** Information about the archive. */
125
- archive?: Archive;
126
- /** Information about the 3D Model. */
127
- model3d?: Model3D;
128
- }
129
- /** @oneof */
130
- export interface FileMediaMediaOneOf {
131
- /** Information about the image. */
132
- image?: ImageMedia;
133
- /** Information about the video. */
134
- video?: VideoV2;
135
- /** Information about the audio. */
136
- audio?: AudioV2;
137
- /** Information about the document. */
138
- document?: Document;
139
- /** Information about the vector. */
140
- vector?: ImageMedia;
141
- /** Information about the archive. */
142
- archive?: Archive;
143
- /** Information about the 3D Model. */
144
- model3d?: Model3D;
145
- }
146
- export interface ImageMedia {
147
- /** Image data. */
148
- image?: Image;
149
- /** Image colors. */
150
- colors?: Colors;
151
- /**
152
- * Information about faces in the image. Use to crop images without cutting out faces.
153
- * @maxSize 100
154
- */
155
- faces?: FaceRecognition[];
156
- /**
157
- * Information about the image preview.
158
- * You can use this to display a preview for private images.
159
- */
160
- previewImage?: Image;
161
- /**
162
- * Optional, An AI generated description of the image
163
- * @readonly
164
- * @maxLength 300
165
- */
166
- caption?: string | null;
167
- }
168
- export interface Image {
169
- /**
170
- * enum TextDetection{
171
- * // No detection was made
172
- * UNKNOWN_TEXT_DETECTION = 0;
173
- * // The image contains text
174
- * CONTAINS_TEXT = 1;
175
- * // The image does not contain text
176
- * NO_TEXT = 2;
177
- * }
178
- * enum AnimationDetection{
179
- * // No detection was made
180
- * UNKNOWN_ANIMATION_DETECTION = 0;
181
- * // The image contains animation
182
- * CONTAINS_ANIMATION = 1;
183
- * // The image does not contain animation
184
- * NO_ANIMATION = 2;
185
- * }
186
- * message ImageContent{
187
- * option (.wix.api.decomposite_of) = "wix.common.ImageContent";
188
- * // Text detection
189
- * TextDetection text = 1;
190
- * // Animation detection
191
- * AnimationDetection animation = 2;
192
- * }
193
- * WixMedia image ID.
194
- */
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 filename.
212
- * @readonly
213
- */
214
- filename?: string | null;
215
- }
216
- export interface FocalPoint {
217
- /** X-coordinate of the focal point. */
218
- x?: number;
219
- /** Y-coordinate of the focal point. */
220
- y?: number;
221
- /** crop by height */
222
- height?: number | null;
223
- /** crop by width */
224
- width?: number | null;
225
- }
226
- export interface Colors {
227
- /** Main color of the image. */
228
- prominent?: Color;
229
- /**
230
- * Color palette of the image.
231
- * @maxSize 100
232
- */
233
- palette?: Color[];
234
- }
235
- export interface Color {
236
- /**
237
- * HEX color.
238
- * @format COLOR_HEX
239
- */
240
- hex?: string | null;
241
- /** RGB color. */
242
- rgb?: ColorRGB;
243
- }
244
- export interface ColorRGB {
245
- /**
246
- * Red channel.
247
- * @max 255
248
- */
249
- r?: number | null;
250
- /**
251
- * Green channel.
252
- * @max 255
253
- */
254
- g?: number | null;
255
- /**
256
- * Blue channel.
257
- * @max 255
258
- */
259
- b?: number | null;
260
- }
261
- /**
262
- * Using this object you can crop images while centering on faces
263
- * ------------------------
264
- * | |
265
- * | x,y |
266
- * | *-------- |
267
- * | | . . | |
268
- * | | | | height |
269
- * | | \ / | |
270
- * | | | |
271
- * | --------- |
272
- * | width |
273
- * | |
274
- * |______________________|
275
- */
276
- export interface FaceRecognition {
277
- /** The accuracy percentage of the face recognition. The likelihood that a face is detected. */
278
- confidence?: number;
279
- /** Top left x pixel coordinate of the face. */
280
- x?: number;
281
- /** Top left y pixel coordinate of the face. */
282
- y?: number;
283
- /** Face pixel height. */
284
- height?: number;
285
- /** Face pixel width. */
286
- width?: number;
287
- }
288
- export interface VideoV2 {
289
- /** WixMedia ID. */
290
- id?: string;
291
- /**
292
- * Available resolutions for the video, starting with the optimal resolution.
293
- * @readonly
294
- * @maxSize 100
295
- */
296
- resolutions?: VideoResolution[];
297
- /**
298
- * Video filename.
299
- * @readonly
300
- */
301
- filename?: string | null;
302
- }
303
- export interface VideoResolution {
304
- /** Video URL. */
305
- url?: string;
306
- /** Video height. */
307
- height?: number;
308
- /** Video width. */
309
- width?: number;
310
- /**
311
- * Video format
312
- * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
313
- * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
314
- */
315
- format?: string;
316
- }
317
- export interface AudioV2 {
318
- /**
319
- * WixMedia ID.
320
- * @maxLength 200
321
- */
322
- id?: string;
323
- /**
324
- * Audio formats available for this file.
325
- * @maxSize 100
326
- */
327
- assets?: Audio[];
328
- /**
329
- * Audio bitrate.
330
- * @readonly
331
- */
332
- bitrate?: number | null;
333
- /**
334
- * Audio format.
335
- * @readonly
336
- * @maxLength 100
337
- */
338
- format?: string | null;
339
- /**
340
- * Audio duration in seconds.
341
- * @readonly
342
- */
343
- duration?: number | null;
344
- /**
345
- * Audio size in bytes.
346
- * @readonly
347
- * @format DECIMAL_VALUE
348
- * @decimalValue options { maxScale:0 }
349
- */
350
- sizeInBytes?: string | null;
351
- }
352
- export interface Audio {
353
- /** WixMedia ID. */
354
- id?: string;
355
- /** Audio URL. */
356
- url?: string;
357
- /**
358
- * Audio filename.
359
- * @readonly
360
- */
361
- filename?: string | null;
362
- }
363
- export interface Document {
364
- /** WixMedia ID. */
365
- id?: string;
366
- /** Document URL. */
367
- url?: string;
368
- /** Document filename. */
369
- filename?: string | null;
370
- }
371
- export interface Archive {
372
- /** WixMedia ID. */
373
- id?: string;
374
- /** Archive URL. */
375
- url?: string;
376
- /**
377
- * Archive URL expiration date (when relevant).
378
- * @readonly
379
- */
380
- urlExpirationDate?: Date | null;
381
- /**
382
- * Archive size in bytes.
383
- * @format DECIMAL_VALUE
384
- */
385
- sizeInBytes?: string | null;
386
- /** Archive filename. */
387
- filename?: string | null;
388
- }
389
- export interface Model3D {
390
- /** WixMedia 3D ID. */
391
- id?: string;
392
- /** 3D URL. */
393
- url?: string;
394
- /** 3D thumbnail Image */
395
- thumbnail?: Image;
396
- /** 3D alt text. */
397
- altText?: string | null;
398
- /**
399
- * 3D URL expiration date (when relevant).
400
- * @readonly
401
- */
402
- urlExpirationDate?: Date | null;
403
- /**
404
- * 3D filename.
405
- * @readonly
406
- */
407
- filename?: string | null;
408
- /**
409
- * 3D size in bytes.
410
- * @readonly
411
- * @format DECIMAL_VALUE
412
- */
413
- sizeInBytes?: string | null;
414
- }
415
- export interface OtherMedia {
416
- /**
417
- * WixMedia ID. for use with Site Media APIs only
418
- * @maxLength 200
419
- */
420
- id?: string;
421
- /**
422
- * The media type of the file: 'package', 'raw'
423
- * @readonly
424
- * @maxLength 100
425
- */
426
- internalMediaType?: string | null;
427
- /**
428
- * size in bytes. Optional.
429
- * @readonly
430
- * @format DECIMAL_VALUE
431
- * @decimalValue options { gte:0, maxScale:0 }
432
- */
433
- sizeInBytes?: string | null;
434
- /**
435
- * The file URL.
436
- * @format WEB_URL
437
- */
438
- url?: string;
439
- }
440
- export interface FontMedia {
441
- /**
442
- * WixMedia ID. for use with Site Media APIs only
443
- * @maxLength 200
444
- */
445
- id?: string | null;
446
- /**
447
- * size in bytes. Optional.
448
- * @readonly
449
- * @format DECIMAL_VALUE
450
- * @decimalValue options { gte:0, maxScale:0 }
451
- */
452
- sizeInBytes?: string | null;
453
- /**
454
- * The format of the font asset. ttf, woff, woff2
455
- * @maxLength 200
456
- */
457
- format?: string | null;
458
- /**
459
- * The font family name.
460
- * @maxLength 100
461
- */
462
- family?: string | null;
463
- /**
464
- * The font name
465
- * @maxLength 100
466
- */
467
- fontName?: string | null;
468
- /**
469
- * Font formats available for this file.
470
- * @maxSize 5
471
- */
472
- assets?: FontAsset[];
473
- }
474
- export interface FontAsset {
475
- /**
476
- * Keys for downloading different assets of a file.
477
- * Default: `src`, key representing the original file's format and quality.
478
- * @maxLength 100
479
- */
480
- assetKey?: string | null;
481
- /**
482
- * The URL of the font asset.
483
- * @maxLength 200
484
- */
485
- url?: string | null;
486
- /**
487
- * The format of the font asset. ttf, woff, woff2
488
- * @maxLength 200
489
- */
490
- format?: string | null;
491
- }
492
- export declare enum OperationStatus {
493
- /** File upload or processing failed */
494
- FAILED = "FAILED",
495
- /** File is ready for consumption */
496
- READY = "READY",
497
- /** File is waiting for processing or currently being processed */
498
- PENDING = "PENDING"
499
- }
500
- /** @enumType */
501
- export type OperationStatusWithLiterals = OperationStatus | 'FAILED' | 'READY' | 'PENDING';
502
- export declare enum State {
503
- /** File is ready for consumption */
504
- OK = "OK",
505
- /** Deleted file */
506
- DELETED = "DELETED"
507
- }
508
- /** @enumType */
509
- export type StateWithLiterals = State | 'OK' | 'DELETED';
510
- export declare enum Namespace {
511
- NO_NAMESPACE = "NO_NAMESPACE",
512
- OTHERS = "OTHERS",
513
- /** ANY = 2; */
514
- WIX_VIDEO = "WIX_VIDEO",
515
- /** _nsWixMusic */
516
- WIX_MUSIC = "WIX_MUSIC",
517
- /** _nsArtStore */
518
- ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
519
- /** _nsDigitalProduct */
520
- WIX_ECOM = "WIX_ECOM",
521
- /** _nsPhotoShareApp */
522
- PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
523
- /** _nsSharingApp, */
524
- SHARING_APP = "SHARING_APP",
525
- /** engage */
526
- CHAT = "CHAT",
527
- /** logobuilder */
528
- LOGO_BUILDER = "LOGO_BUILDER",
529
- /** WixExposure */
530
- ALBUMS_OLD = "ALBUMS_OLD",
531
- /** chat-mobile-uploads */
532
- CHAT_MOBILE = "CHAT_MOBILE",
533
- /** _nsWixForms */
534
- WIX_FORMS = "WIX_FORMS",
535
- /** _nsWixLegends */
536
- WIX_LEGENDS = "WIX_LEGENDS"
537
- }
538
- /** @enumType */
539
- export type NamespaceWithLiterals = Namespace | 'NO_NAMESPACE' | 'OTHERS' | 'WIX_VIDEO' | 'WIX_MUSIC' | 'ALBUMS_AND_ART_STORE' | 'WIX_ECOM' | 'PHOTO_SHARE_APP' | 'SHARING_APP' | 'CHAT' | 'LOGO_BUILDER' | 'ALBUMS_OLD' | 'CHAT_MOBILE' | 'WIX_FORMS' | 'WIX_LEGENDS';
540
- export interface IdentityInfo {
541
- /** The type of the user that uploaded the file */
542
- identityType?: IdentityTypeWithLiterals;
543
- /**
544
- * User Id. empty when UNKNOWN
545
- * @format GUID
546
- */
547
- identityId?: string | null;
548
- }
549
- export declare enum IdentityType {
550
- UNKNOWN = "UNKNOWN",
551
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
552
- MEMBER = "MEMBER",
553
- WIX_USER = "WIX_USER",
554
- APP = "APP"
555
- }
556
- /** @enumType */
557
- export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
558
- export interface FileReady {
559
- /** File entity that is ready with full information. */
560
- file?: FileDescriptor;
561
- /** External information specified in the file import or upload. */
562
- externalInfo?: ExternalInfo;
563
- /** File was restored from the trash-bin. */
564
- triggeredByUndelete?: boolean;
565
- }
566
- export interface ExternalInfo {
567
- /**
568
- * External information to specify in the File Ready or File Failed events.
569
- * @maxLength 1000
570
- */
571
- origin?: string;
572
- /**
573
- * External IDs to specify in the File Ready or File Failed events.
574
- * @maxSize 30
575
- * @maxLength 4000
576
- */
577
- externalIds?: string[];
578
- }
579
- export interface FileFailed {
580
- /** External information specified in the file import or upload. */
581
- externalInfo?: ExternalInfo;
582
- /** Error information. */
583
- error?: ApplicationError;
584
- }
585
- export interface ApplicationError {
586
- /** Error code. */
587
- code?: string;
588
- /** Description of the error. */
589
- description?: string;
590
- /** Data related to the error. */
591
- data?: Record<string, any> | null;
592
- }
593
- export interface DraftFilePublished {
594
- /** The file after it was published */
595
- file?: FileDescriptor;
596
- /** The namespace the file was published to */
597
- namespace?: NamespaceWithLiterals;
598
- }
599
- export interface BulkAnnotateImagesRequest {
600
- /**
601
- * The file ids to run detection on
602
- * @minSize 1
603
- * @maxSize 10
604
- * @maxLength 1000
605
- */
606
- fileIds?: string[];
607
- /**
608
- * A list of detections types to fill for the image
609
- * @minSize 1
610
- * @maxSize 10
611
- */
612
- annotationTypes?: ImageAnnotationTypeWithLiterals[];
613
- /** When true the endpoint will detect listed information even if the image has this information */
614
- overwrite?: boolean | null;
615
- /** Should the response return the item following the operation */
616
- returnEntity?: boolean;
617
- }
618
- export declare enum ImageAnnotationType {
619
- UNKNOWN_IMAGE_ANNOTATION_TYPE = "UNKNOWN_IMAGE_ANNOTATION_TYPE",
620
- CONTAINS_TEXT = "CONTAINS_TEXT",
621
- IS_ANIMATED = "IS_ANIMATED",
622
- FACES = "FACES",
623
- LABELS = "LABELS",
624
- COLORS = "COLORS",
625
- CAPTION = "CAPTION"
626
- }
627
- /** @enumType */
628
- export type ImageAnnotationTypeWithLiterals = ImageAnnotationType | 'UNKNOWN_IMAGE_ANNOTATION_TYPE' | 'CONTAINS_TEXT' | 'IS_ANIMATED' | 'FACES' | 'LABELS' | 'COLORS' | 'CAPTION';
629
- export interface BulkAnnotateImagesResponse {
630
- /** Results of individual items */
631
- results?: BulkAnnotateImageResult[];
632
- /** Metadata of the operation */
633
- bulkActionMetadata?: BulkActionMetadata;
634
- }
635
- export interface BulkAnnotateImageResult {
636
- /** Item metadata */
637
- itemMetadata?: ItemMetadata;
638
- /**
639
- * The item following the operation
640
- * Only returned if operation was successful and if returnEntity flag was on
641
- */
642
- item?: FileDescriptor;
643
- }
644
- export interface ItemMetadata {
645
- /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
646
- id?: string | null;
647
- /** Index of the item within the request array. Allows for correlation between request and response items. */
648
- originalIndex?: number;
649
- /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
650
- success?: boolean;
651
- /** Details about the error in case of failure. */
652
- error?: ApplicationError;
653
- }
654
- export interface BulkActionMetadata {
655
- /** Number of items that were successfully processed. */
656
- totalSuccesses?: number;
657
- /** Number of items that couldn't be processed. */
658
- totalFailures?: number;
659
- /** Number of failures without details because detailed failure threshold was exceeded. */
660
- undetailedFailures?: number;
661
- }
662
- export interface GenerateFilesDownloadUrlRequest {
663
- /**
664
- * IDs of the files to download.
665
- *
666
- * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
667
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
668
- * @minSize 1
669
- * @maxSize 1000
670
- * @maxLength 1000
671
- */
672
- fileIds: string[];
673
- }
674
- export interface GenerateFilesDownloadUrlResponse {
675
- /**
676
- * URL for downloading the compressed file containing the specified files in the Media Manager.
677
- * @format WEB_URL
678
- */
679
- downloadUrl?: string;
680
- }
681
- export interface GenerateFileDownloadUrlRequest {
682
- /**
683
- * File ID.
684
- *
685
- * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
686
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
687
- * @maxLength 1000
688
- */
689
- fileId: string;
690
- /**
691
- * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
692
- *
693
- * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
694
- * @maxLength 100
695
- */
696
- downloadFileName?: string | null;
697
- /**
698
- * The time that it takes in minutes for the download URL to expire. <br />
699
- * Default: `600`. <br />
700
- * Limit: `525600` (1 year).
701
- * @min 1
702
- */
703
- expirationInMinutes?: number | null;
704
- /**
705
- * The redirect URL for when the temporary download URL with a token expires. <br />
706
- * Default: A 403 Forbidden response page.
707
- * @format WEB_URL
708
- */
709
- expirationRedirectUrl?: string | null;
710
- /**
711
- * Keys for downloading different assets (format and quality) of a file.
712
- * Default: `src`, key representing the original file's format and quality.
713
- * @maxSize 100
714
- * @maxLength 100
715
- */
716
- assetKeys?: string[] | null;
717
- /**
718
- * Whether the link downloads the file or opens the file in the browser.
719
- *
720
- * - `ATTACHMENT`: The link downloads the file.
721
- * - `INLINE`: The link opens the file in the browser.
722
- *
723
- * Default: `ATTACHMENT`
724
- */
725
- contentDisposition?: ContentDispositionWithLiterals;
726
- }
727
- export declare enum ContentDisposition {
728
- /** Using the link in the browser will download the file */
729
- ATTACHMENT = "ATTACHMENT",
730
- /** Using the link in the browser will open the file in the browser */
731
- INLINE = "INLINE"
732
- }
733
- /** @enumType */
734
- export type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
735
- export interface GenerateFileDownloadUrlResponse {
736
- /**
737
- * URL for downloading a specific file in the Media Manager.
738
- * @maxSize 100
739
- */
740
- downloadUrls?: DownloadUrl[];
741
- }
742
- export interface DownloadUrl {
743
- /**
744
- * The file download URL.
745
- * @format WEB_URL
746
- */
747
- url?: string;
748
- /**
749
- * Key for downloading a different asset (format and quality) of a file.
750
- * Default: `src`, key representing the original file's format and quality.
751
- * @maxLength 100
752
- */
753
- assetKey?: string;
754
- }
755
- export interface ServiceError {
756
- /**
757
- * Error codes are groups of related errors
758
- * The error code can be used to provide additional details to wix support while debugging service errors
759
- * @maxLength 200
760
- */
761
- internalCode?: string | null;
762
- /** Debugging information, http status code returned from wix media internal API */
763
- internalHttpStatusCode?: number | null;
764
- /**
765
- * Optional Debugging information, error key will represent the error "family" returned from wix media internal API
766
- * @maxLength 200
767
- */
768
- internalKey?: string | null;
769
- }
770
- export interface GetFileDescriptorRequest {
771
- /**
772
- * File ID.
773
- *
774
- * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
775
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
776
- *
777
- * If you are working in REST, note that you must encode the Wix media URL to specify 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`.
778
- * @maxLength 1000
779
- */
780
- fileId: string;
781
- }
782
- export interface GetFileDescriptorResponse {
783
- /** Information about the file. */
784
- file?: FileDescriptor;
785
- }
786
- export interface GetFileDescriptorsRequest {
787
- /**
788
- * File IDs.
789
- *
790
- * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
791
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
792
- * @minSize 1
793
- * @maxSize 100
794
- * @maxLength 1000
795
- */
796
- fileIds: string[];
797
- }
798
- export interface GetFileDescriptorsResponse {
799
- /**
800
- * Information about the requested files.
801
- * @maxSize 100
802
- */
803
- files?: FileDescriptor[];
804
- }
805
- export interface UpdateFileDescriptorRequest {
806
- /** The file to update. */
807
- file: FileDescriptor;
808
- }
809
- export interface UpdateFileDescriptorResponse {
810
- /** Information about the updated file. */
811
- file?: FileDescriptor;
812
- }
813
- export interface UnsupportedRequestValueError {
814
- /**
815
- * Optional A list of allowed values
816
- * @maxSize 100
817
- * @maxLength 200
818
- */
819
- allowedValues?: string[];
820
- /**
821
- * The unsupported value send in the request
822
- * @maxLength 200
823
- */
824
- requestValue?: string;
825
- }
826
- export interface GenerateFileUploadUrlRequest {
827
- /**
828
- * File mime type.
829
- * @maxLength 100
830
- */
831
- mimeType: string | null;
832
- /**
833
- * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
834
- * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
835
- * @maxLength 200
836
- */
837
- fileName?: string | null;
838
- /**
839
- * File size in bytes.
840
- * @readonly
841
- * @format DECIMAL_VALUE
842
- * @decimalValue options { gte:0, maxScale:0 }
843
- */
844
- sizeInBytes?: string | null;
845
- /**
846
- * ID of the file's parent folder. <br />
847
- * This folder is the path root for the `filePath`.<br />
848
- * Default: `media-root`.
849
- * @maxLength 100
850
- */
851
- parentFolderId?: string | null;
852
- /** Whether the file will be public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
853
- private?: boolean | null;
854
- /**
855
- * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
856
- * @maxSize 50
857
- * @maxLength 200
858
- */
859
- labels?: string[] | null;
860
- /** A place to map an external entity to an uploaded file in the Wix Media Manager. */
861
- externalInfo?: ExternalInfo;
862
- /**
863
- * Path to the folder where the file will be stored.
864
- * For example, `/videos/2024/december`. <br/>
865
- * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
866
- * The folders in the path will be created if they don't already exist. <br />
867
- * @maxLength 100
868
- */
869
- filePath?: string | null;
870
- }
871
- export interface ImageAnnotationConfigurations {
872
- /** Whether to skip detection for the image */
873
- skipDetection?: boolean | null;
874
- /**
875
- * A list of detections types to fill for the image
876
- * If specified at least one valid annotation type should be provided
877
- * Default will be all detections
878
- * @maxSize 10
879
- */
880
- annotationTypes?: ImageAnnotationTypeWithLiterals[];
881
- }
882
- export interface GenerateFileUploadUrlResponse {
883
- /**
884
- * The URL for uploading a file to the Media Manager.
885
- * @format WEB_URL
886
- */
887
- uploadUrl?: string;
888
- }
889
- export interface SiteQuotaExceededError {
890
- /**
891
- * Error codes are groups of related errors
892
- * The error code can be used to provide additional details to wix support while debugging service errors
893
- * @maxLength 200
894
- */
895
- internalCode?: string | null;
896
- /** Debugging information, http status code returned from wix media internal API */
897
- internalHttpStatusCode?: number | null;
898
- /**
899
- * Optional Debugging information, error key will represent the error "family" returned from wix media internal API
900
- * @maxLength 200
901
- */
902
- internalKey?: string | null;
903
- /** The quota details */
904
- quota?: TotalQuota;
905
- }
906
- export interface TotalQuota {
907
- /** Storage quota in bytes */
908
- storage?: string | null;
909
- /** Plans that are related to the quota */
910
- plans?: Plans;
911
- /** Time for which the quota is relevant - When the plans were retrieved from premium */
912
- timestamp?: Date | null;
913
- }
914
- export interface Plans {
915
- /** Premium Plan */
916
- premium?: Plan;
917
- /**
918
- * Upgrade URL - the URL which a site owner can use to upgrade their quota. May be empty if an upgrade is not available.
919
- * @format WEB_URL
920
- */
921
- upgradeUrl?: string;
922
- }
923
- export interface Plan {
924
- /**
925
- * Plan ID - Premium product ID
926
- * @readonly
927
- * @format GUID
928
- */
929
- id?: string;
930
- /** Plan name */
931
- name?: string;
932
- /** When the plan was created */
933
- createdAt?: Date | null;
934
- /** When then plan expires */
935
- expiresAt?: Date | null;
936
- }
937
- export interface GenerateFileResumableUploadUrlRequest {
938
- /**
939
- * File mime type.
940
- * @maxLength 100
941
- */
942
- mimeType: string | null;
943
- /**
944
- * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
945
- * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
946
- * @maxLength 200
947
- */
948
- fileName?: string | null;
949
- /**
950
- * File size in bytes.
951
- * @readonly
952
- * @format DECIMAL_VALUE
953
- * @decimalValue options { gte:0, maxScale:0 }
954
- */
955
- sizeInBytes?: string | null;
956
- /**
957
- * ID of the file's parent folder. <br />
958
- * This folder is the path root for the `filePath`.<br />
959
- * Default: `media-root`.
960
- * @maxLength 100
961
- */
962
- parentFolderId?: string | null;
963
- /** Whether the file will be public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
964
- private?: boolean | null;
965
- /**
966
- * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
967
- * @maxSize 500
968
- * @maxLength 200
969
- */
970
- labels?: string[] | null;
971
- /** The upload protocol to use for implementing the resumable upload. */
972
- uploadProtocol?: UploadProtocolWithLiterals;
973
- /**
974
- * Path to the folder where the file will be stored.
975
- * For example, `/videos/2024/december`. <br/>
976
- * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
977
- * The folders in the path will be created if they don't already exist. <br />
978
- * @maxLength 100
979
- */
980
- filePath?: string | null;
981
- }
982
- export declare enum UploadProtocol {
983
- /** The upload protocol to use for implementing the resumable upload. */
984
- TUS = "TUS"
985
- }
986
- /** @enumType */
987
- export type UploadProtocolWithLiterals = UploadProtocol | 'TUS';
988
- export interface GenerateFileResumableUploadUrlResponse {
989
- /** The upload protocol to use for implementing the resumable upload. */
990
- uploadProtocol?: UploadProtocolWithLiterals;
991
- /**
992
- * The URL for uploading a file to the Media Manager.
993
- * @format WEB_URL
994
- */
995
- uploadUrl?: string;
996
- /**
997
- * Single-use upload token.
998
- * @maxLength 2000
999
- */
1000
- uploadToken?: string;
1001
- }
1002
- export interface ImportFileRequest {
1003
- /**
1004
- * Publicly accessible external file URL.
1005
- * @format WEB_URL
1006
- */
1007
- url: string;
1008
- /**
1009
- * Media type of the file to import.
1010
- * excluding: OTHER media type
1011
- */
1012
- mediaType?: MediaTypeWithLiterals;
1013
- /**
1014
- * File name that appears in the Media Manager.
1015
- * @maxLength 200
1016
- */
1017
- displayName?: string | null;
1018
- /**
1019
- * ID of the file's parent folder. <br />
1020
- * This folder is the path root for the `filePath`. <br />
1021
- * Default: `media-root`.
1022
- * @maxLength 100
1023
- */
1024
- parentFolderId?: string | null;
1025
- /** Whether the file will be public or private. Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1026
- private?: boolean | null;
1027
- /**
1028
- * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
1029
- * @maxSize 500
1030
- * @maxLength 200
1031
- */
1032
- labels?: string[] | null;
1033
- /**
1034
- * File mime type.
1035
- * @maxLength 100
1036
- */
1037
- mimeType?: string;
1038
- /** Information sent to the File Ready and File Failed events. See Importing Files ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/files/importing-files#backend-modules_media_files_using-externalinfo) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#using-externalinfo)) to learn more. */
1039
- externalInfo?: ExternalInfo;
1040
- /** Optional parameters that should be sent with the external URL. */
1041
- urlParams?: Record<string, any> | null;
1042
- /** Optional headers that should be sent with the external URL. */
1043
- urlHeaders?: Record<string, any> | null;
1044
- /**
1045
- * Path to the folder where the file will be stored.
1046
- * For example, `/videos/2024/december`. <br/>
1047
- * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
1048
- * The folders in the path will be created if they don't already exist. <br />
1049
- * @maxLength 100
1050
- */
1051
- filePath?: string | null;
1052
- }
1053
- export interface ImportFileResponse {
1054
- /** Information about the imported file. */
1055
- file?: FileDescriptor;
1056
- }
1057
- export interface BulkImportFilesRequest {
1058
- /**
1059
- * Information about the files to import.
1060
- * @minSize 1
1061
- * @maxSize 100
1062
- */
1063
- importFileRequests: ImportFileRequest[];
1064
- }
1065
- export interface BulkImportFilesResponse {
1066
- /**
1067
- * Information about the imported files.
1068
- * @maxSize 100
1069
- */
1070
- files?: FileDescriptor[];
1071
- }
1072
- export interface BulkImportFileRequest {
1073
- /**
1074
- * Information about the files to import.
1075
- * @minSize 1
1076
- * @maxSize 100
1077
- */
1078
- importFileRequests: ImportFileRequest[];
1079
- /** Default: `true` */
1080
- returnEntity?: boolean | null;
1081
- }
1082
- export interface BulkImportFileResponse {
1083
- /** Items created by bulk action. */
1084
- results?: BulkImportFileResult[];
1085
- /** Bulk action metadata. */
1086
- bulkActionMetadata?: BulkActionMetadata;
1087
- }
1088
- export interface BulkImportFileResult {
1089
- /** Item metadata. */
1090
- itemMetadata?: ItemMetadata;
1091
- /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
1092
- item?: FileDescriptor;
1093
- }
1094
- export interface ListFilesRequest {
1095
- /**
1096
- * ID of the file's parent folder. <br />
1097
- * Default:`media-root`.
1098
- * @maxLength 100
1099
- */
1100
- parentFolderId?: string | null;
1101
- /**
1102
- * File media type.
1103
- * @maxSize 30
1104
- */
1105
- mediaTypes?: MediaTypeWithLiterals[];
1106
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1107
- private?: boolean | null;
1108
- /**
1109
- * Field name and order to sort by. One of: <br />
1110
- * * `displayName`
1111
- * * `updatedDate`
1112
- * * `sizeInBytes`
1113
- * Default: `updatedDate` in `desc` order.
1114
- */
1115
- sort?: Sorting;
1116
- /** Cursor and paging information. */
1117
- paging?: CursorPaging;
1118
- }
1119
- export interface Sorting {
1120
- /**
1121
- * Name of the field to sort by.
1122
- * @maxLength 512
1123
- */
1124
- fieldName?: string;
1125
- /** Sort order. */
1126
- order?: SortOrderWithLiterals;
1127
- }
1128
- export declare enum SortOrder {
1129
- ASC = "ASC",
1130
- DESC = "DESC"
1131
- }
1132
- /** @enumType */
1133
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1134
- export interface CursorPaging {
1135
- /**
1136
- * Maximum number of items to return in the results.
1137
- * @max 100
1138
- */
1139
- limit?: number | null;
1140
- /**
1141
- * Pointer to the next or previous page in the list of results.
1142
- *
1143
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1144
- * Not relevant for the first request.
1145
- * @maxLength 16000
1146
- */
1147
- cursor?: string | null;
1148
- }
1149
- export interface ListFilesResponse {
1150
- /**
1151
- * List of files in the Media Manager.
1152
- * @maxSize 200
1153
- */
1154
- files?: FileDescriptor[];
1155
- /** The next cursor if it exists. */
1156
- nextCursor?: PagingMetadataV2;
1157
- }
1158
- export interface PagingMetadataV2 {
1159
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
1160
- total?: number | null;
1161
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
1162
- cursors?: Cursors;
1163
- }
1164
- export interface Cursors {
1165
- /**
1166
- * Cursor string pointing to the next page in the list of results.
1167
- * @maxLength 16000
1168
- */
1169
- next?: string | null;
1170
- }
1171
- export interface SearchFilesRequest {
1172
- /**
1173
- * Term to search for. Possible terms include the value of a file's
1174
- * `displayName`, `mimeType`, and `label`. <br />
1175
- * For example, if a file's label is cat, the search term is 'cat'.
1176
- * @maxLength 200
1177
- */
1178
- search?: string | null;
1179
- /**
1180
- * A root folder in the media manager to search in. <br />
1181
- * Default: `MEDIA_ROOT`.
1182
- */
1183
- rootFolder?: RootFolderWithLiterals;
1184
- /**
1185
- * File media type.
1186
- * @maxSize 30
1187
- */
1188
- mediaTypes?: MediaTypeWithLiterals[];
1189
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1190
- private?: boolean | null;
1191
- /**
1192
- * Field name and order to sort by. One of: <br />
1193
- * * `displayName`
1194
- * * `updatedDate`
1195
- * * `sizeInBytes`
1196
- * Default: `updatedDate` in `desc` order.
1197
- */
1198
- sort?: Sorting;
1199
- /** Cursor and paging information. */
1200
- paging?: CursorPaging;
1201
- }
1202
- export declare enum RootFolder {
1203
- /** Root of all site media */
1204
- MEDIA_ROOT = "MEDIA_ROOT",
1205
- /** Root of the trash system folder */
1206
- TRASH_ROOT = "TRASH_ROOT",
1207
- /** Root of all visitor uploads */
1208
- VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
1209
- }
1210
- /** @enumType */
1211
- export type RootFolderWithLiterals = RootFolder | 'MEDIA_ROOT' | 'TRASH_ROOT' | 'VISITOR_UPLOADS_ROOT';
1212
- export interface SearchFilesResponse {
1213
- /**
1214
- * Files matching the query.
1215
- * @maxSize 200
1216
- */
1217
- files?: FileDescriptor[];
1218
- /** The next cursor if it exists. */
1219
- nextCursor?: PagingMetadataV2;
1220
- }
1221
- export interface GenerateVideoStreamingUrlRequest {
1222
- /**
1223
- * File ID.
1224
- *
1225
- * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
1226
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1227
- * @maxLength 1000
1228
- */
1229
- fileId: string;
1230
- /** Video stream format. */
1231
- format?: StreamFormatWithLiterals;
1232
- }
1233
- export declare enum StreamFormat {
1234
- UNKNOWN = "UNKNOWN",
1235
- HLS = "HLS",
1236
- DASH = "DASH"
1237
- }
1238
- /** @enumType */
1239
- export type StreamFormatWithLiterals = StreamFormat | 'UNKNOWN' | 'HLS' | 'DASH';
1240
- export interface GenerateVideoStreamingUrlResponse {
1241
- /** URL for streaming a specific file in the Media Manager. */
1242
- downloadUrl?: DownloadUrl;
1243
- }
1244
- export interface GenerateWebSocketTokenRequest {
1245
- }
1246
- export interface GenerateWebSocketTokenResponse {
1247
- /**
1248
- * The web socket token for the identity in the request
1249
- * @maxLength 2000
1250
- */
1251
- token?: string;
1252
- }
1253
- export interface BulkDeleteFilesRequest {
1254
- /**
1255
- * IDs of the files to move to the Media Manager's trash bin.
1256
- *
1257
- * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1258
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1259
- * @maxSize 1000
1260
- * @maxLength 1000
1261
- */
1262
- fileIds: string[];
1263
- /**
1264
- * Whether the specified files are permanently deleted. <br />
1265
- * Default: `false`
1266
- */
1267
- permanent?: boolean;
1268
- }
1269
- export interface BulkDeleteFilesResponse {
1270
- }
1271
- export interface BulkRestoreFilesFromTrashBinRequest {
1272
- /**
1273
- * IDs of the files to restore from the Media Manager's trash bin.
1274
- *
1275
- * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1276
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1277
- * @maxSize 1000
1278
- * @maxLength 1000
1279
- */
1280
- fileIds: string[];
1281
- }
1282
- export interface BulkRestoreFilesFromTrashBinResponse {
1283
- }
1284
- export interface ListDeletedFilesRequest {
1285
- /**
1286
- * ID of the file's parent folder. <br />
1287
- * Default: `media-root`.
1288
- * @maxLength 100
1289
- */
1290
- parentFolderId?: string | null;
1291
- /**
1292
- * File media type.
1293
- * @maxSize 30
1294
- */
1295
- mediaTypes?: MediaTypeWithLiterals[];
1296
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1297
- private?: boolean | null;
1298
- /**
1299
- * Field name and order to sort by. One of: <br />
1300
- * * `displayName`
1301
- * * `updatedDate`
1302
- * * `sizeInBytes`
1303
- * Default: `updatedDate` in `desc` order.
1304
- */
1305
- sort?: Sorting;
1306
- /** Cursor and paging information. */
1307
- paging?: CursorPaging;
1308
- }
1309
- export interface ListDeletedFilesResponse {
1310
- /**
1311
- * List of files in the Media Manager's trash bin.
1312
- * @maxSize 200
1313
- */
1314
- files?: FileDescriptor[];
1315
- /** The next cursor if it exists. */
1316
- nextCursor?: PagingMetadataV2;
1317
- }
1318
- export interface BulkPublishDraftFilesRequest {
1319
- /**
1320
- * IDs of the draft files to be published.
1321
- *
1322
- * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1323
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1324
- * @maxSize 100
1325
- * @maxLength 1000
1326
- */
1327
- fileIds?: string[];
1328
- /**
1329
- * The namespace the files will be published to
1330
- * Note, private files must have a namespace
1331
- */
1332
- namespace?: NamespaceWithLiterals;
1333
- /**
1334
- * ID of the file's parent folder. <br />
1335
- * This folder is the path root for the `filePath`. <br />
1336
- * Default: `media-root`.
1337
- * @maxLength 100
1338
- */
1339
- parentFolderId?: string | null;
1340
- /**
1341
- * Path to the folder where the file will be stored.
1342
- * For example, `/videos/2024/december`. <br/>
1343
- * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
1344
- * The folders in the path will be created if they don't already exist. <br />
1345
- * @maxLength 100
1346
- */
1347
- filePath?: string | null;
1348
- /** Should the response return the item following the operation */
1349
- returnEntity?: boolean;
1350
- }
1351
- export interface BulkPublishDraftFilesResponse {
1352
- /** Results of individual items */
1353
- results?: BulkPublishDraftFileResult[];
1354
- /** Metadata of the operation */
1355
- bulkActionMetadata?: BulkActionMetadata;
1356
- }
1357
- export interface BulkPublishDraftFileResult {
1358
- /** Item metadata */
1359
- itemMetadata?: ItemMetadata;
1360
- /**
1361
- * The item following the operation
1362
- * Only returned if operation was successful and if returnEntity flag was on
1363
- */
1364
- item?: FileDescriptor;
1365
- }
1366
- export interface UpdateFileRequest {
1367
- /**
1368
- * ID of the file to update.
1369
- *
1370
- * You can also specify the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
1371
- * Learn more about the file ID parameter ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/file-and-folder-ids#file-id-as-a-parameter) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter)).
1372
- * @maxLength 1000
1373
- */
1374
- fileId?: string;
1375
- /**
1376
- * File name that appears in the Media Manager.
1377
- * @maxLength 200
1378
- */
1379
- displayName?: string | null;
1380
- /**
1381
- * ID of the file's parent folder. <br />
1382
- * Default: `media-root`.
1383
- * @maxLength 100
1384
- */
1385
- parentFolderId?: string | null;
1386
- /**
1387
- * Labels assigned to media files that describe and categorize them. Provided by the Wix user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
1388
- * @maxSize 500
1389
- * @maxLength 200
1390
- */
1391
- labels?: string[] | null;
1392
- }
1393
- export interface UpdateFileResponse {
1394
- /** Information about the updated file. */
1395
- file?: FileDescriptor;
1396
- }
1397
- export interface DomainEvent extends DomainEventBodyOneOf {
1398
- createdEvent?: EntityCreatedEvent;
1399
- updatedEvent?: EntityUpdatedEvent;
1400
- deletedEvent?: EntityDeletedEvent;
1401
- actionEvent?: ActionEvent;
1402
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
1403
- id?: string;
1404
- /**
1405
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
1406
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
1407
- */
1408
- entityFqdn?: string;
1409
- /**
1410
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
1411
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
1412
- */
1413
- slug?: string;
1414
- /** ID of the entity associated with the event. */
1415
- entityId?: string;
1416
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
1417
- eventTime?: Date | null;
1418
- /**
1419
- * Whether the event was triggered as a result of a privacy regulation application
1420
- * (for example, GDPR).
1421
- */
1422
- triggeredByAnonymizeRequest?: boolean | null;
1423
- /** If present, indicates the action that triggered the event. */
1424
- originatedFrom?: string | null;
1425
- /**
1426
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
1427
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
1428
- */
1429
- entityEventSequence?: string | null;
1430
- }
1431
- /** @oneof */
1432
- export interface DomainEventBodyOneOf {
1433
- createdEvent?: EntityCreatedEvent;
1434
- updatedEvent?: EntityUpdatedEvent;
1435
- deletedEvent?: EntityDeletedEvent;
1436
- actionEvent?: ActionEvent;
1437
- }
1438
- export interface EntityCreatedEvent {
1439
- entityAsJson?: string;
1440
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
1441
- restoreInfo?: RestoreInfo;
1442
- }
1443
- export interface RestoreInfo {
1444
- deletedDate?: Date | null;
1445
- }
1446
- export interface EntityUpdatedEvent {
1447
- /**
1448
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1449
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1450
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1451
- */
1452
- currentEntityAsJson?: string;
1453
- }
1454
- export interface EntityDeletedEvent {
1455
- /** Entity that was deleted. */
1456
- deletedEntityAsJson?: string | null;
1457
- }
1458
- export interface ActionEvent {
1459
- bodyAsJson?: string;
1460
- }
1461
- export interface MessageEnvelope {
1462
- /**
1463
- * App instance ID.
1464
- * @format GUID
1465
- */
1466
- instanceId?: string | null;
1467
- /**
1468
- * Event type.
1469
- * @maxLength 150
1470
- */
1471
- eventType?: string;
1472
- /** The identification type and identity data. */
1473
- identity?: IdentificationData;
1474
- /** Stringify payload. */
1475
- data?: string;
1476
- }
1477
- export interface IdentificationData extends IdentificationDataIdOneOf {
1478
- /**
1479
- * ID of a site visitor that has not logged in to the site.
1480
- * @format GUID
1481
- */
1482
- anonymousVisitorId?: string;
1483
- /**
1484
- * ID of a site visitor that has logged in to the site.
1485
- * @format GUID
1486
- */
1487
- memberId?: string;
1488
- /**
1489
- * ID of a Wix user (site owner, contributor, etc.).
1490
- * @format GUID
1491
- */
1492
- wixUserId?: string;
1493
- /**
1494
- * ID of an app.
1495
- * @format GUID
1496
- */
1497
- appId?: string;
1498
- /** @readonly */
1499
- identityType?: WebhookIdentityTypeWithLiterals;
1500
- }
1501
- /** @oneof */
1502
- export interface IdentificationDataIdOneOf {
1503
- /**
1504
- * ID of a site visitor that has not logged in to the site.
1505
- * @format GUID
1506
- */
1507
- anonymousVisitorId?: string;
1508
- /**
1509
- * ID of a site visitor that has logged in to the site.
1510
- * @format GUID
1511
- */
1512
- memberId?: string;
1513
- /**
1514
- * ID of a Wix user (site owner, contributor, etc.).
1515
- * @format GUID
1516
- */
1517
- wixUserId?: string;
1518
- /**
1519
- * ID of an app.
1520
- * @format GUID
1521
- */
1522
- appId?: string;
1523
- }
1524
- export declare enum WebhookIdentityType {
1525
- UNKNOWN = "UNKNOWN",
1526
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1527
- MEMBER = "MEMBER",
1528
- WIX_USER = "WIX_USER",
1529
- APP = "APP"
1530
- }
1531
- /** @enumType */
1532
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';