@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 +1,1053 @@
1
- export * from './src/media-site-media-v1-file-descriptor-files.meta.js';
1
+ import { GenerateFilesDownloadUrlRequest as GenerateFilesDownloadUrlRequest$1, GenerateFilesDownloadUrlResponse as GenerateFilesDownloadUrlResponse$1, GenerateFileDownloadUrlRequest as GenerateFileDownloadUrlRequest$1, GenerateFileDownloadUrlResponse as GenerateFileDownloadUrlResponse$1, GetFileDescriptorRequest as GetFileDescriptorRequest$1, GetFileDescriptorResponse as GetFileDescriptorResponse$1, GetFileDescriptorsRequest as GetFileDescriptorsRequest$1, GetFileDescriptorsResponse as GetFileDescriptorsResponse$1, UpdateFileDescriptorRequest as UpdateFileDescriptorRequest$1, UpdateFileDescriptorResponse as UpdateFileDescriptorResponse$1, GenerateFileUploadUrlRequest as GenerateFileUploadUrlRequest$1, GenerateFileUploadUrlResponse as GenerateFileUploadUrlResponse$1, GenerateFileResumableUploadUrlRequest as GenerateFileResumableUploadUrlRequest$1, GenerateFileResumableUploadUrlResponse as GenerateFileResumableUploadUrlResponse$1, ImportFileRequest as ImportFileRequest$1, ImportFileResponse as ImportFileResponse$1, BulkImportFilesRequest as BulkImportFilesRequest$1, BulkImportFilesResponse as BulkImportFilesResponse$1, BulkImportFileRequest as BulkImportFileRequest$1, BulkImportFileResponse as BulkImportFileResponse$1, ListFilesRequest as ListFilesRequest$1, ListFilesResponse as ListFilesResponse$1, SearchFilesRequest as SearchFilesRequest$1, SearchFilesResponse as SearchFilesResponse$1, GenerateVideoStreamingUrlRequest as GenerateVideoStreamingUrlRequest$1, GenerateVideoStreamingUrlResponse as GenerateVideoStreamingUrlResponse$1, BulkDeleteFilesRequest as BulkDeleteFilesRequest$1, BulkDeleteFilesResponse as BulkDeleteFilesResponse$1, BulkRestoreFilesFromTrashBinRequest as BulkRestoreFilesFromTrashBinRequest$1, BulkRestoreFilesFromTrashBinResponse as BulkRestoreFilesFromTrashBinResponse$1, ListDeletedFilesRequest as ListDeletedFilesRequest$1, ListDeletedFilesResponse as ListDeletedFilesResponse$1 } from './index.typings.js';
2
+ import '@wix/sdk-types';
3
+
4
+ interface FileDescriptor {
5
+ /**
6
+ * File ID. Generated when a file is uploaded to the Media Manager.
7
+ * @readonly
8
+ * @maxLength 1000
9
+ */
10
+ id?: string;
11
+ /**
12
+ * File name as it appears in the Media Manager.
13
+ * @maxLength 200
14
+ */
15
+ displayName?: string;
16
+ /**
17
+ * Static URL of the file.
18
+ * @readonly
19
+ * @format WEB_URL
20
+ */
21
+ url?: string;
22
+ /**
23
+ * ID of the file's parent folder.
24
+ * @maxLength 100
25
+ */
26
+ parentFolderId?: string | null;
27
+ /**
28
+ * File hash.
29
+ * @readonly
30
+ * @maxLength 100
31
+ */
32
+ hash?: string;
33
+ /**
34
+ * Size of the uploaded file in bytes.
35
+ * @readonly
36
+ * @format DECIMAL_VALUE
37
+ * @decimalValue options { maxScale:0 }
38
+ */
39
+ sizeInBytes?: string | null;
40
+ /**
41
+ * 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)).
42
+ * @readonly
43
+ */
44
+ private?: boolean;
45
+ /**
46
+ * Media file type.
47
+ * @readonly
48
+ */
49
+ mediaType?: MediaTypeWithLiterals;
50
+ /**
51
+ * Media file content.
52
+ * @readonly
53
+ */
54
+ media?: FileMedia;
55
+ /**
56
+ * Status of the file that was uploaded.
57
+ * * `FAILED`: The file failed to upload, for example, during media post processing.
58
+ * * `READY`: The file uploaded, finished all processing, and is ready for use.
59
+ * * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
60
+ * @readonly
61
+ */
62
+ operationStatus?: OperationStatusWithLiterals;
63
+ /**
64
+ * URL where the file was uploaded from.
65
+ * @readonly
66
+ * @format WEB_URL
67
+ */
68
+ sourceUrl?: string | null;
69
+ /**
70
+ * URL of the file's thumbnail.
71
+ * @readonly
72
+ * @format WEB_URL
73
+ */
74
+ thumbnailUrl?: string | null;
75
+ /**
76
+ * 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.
77
+ * @maxSize 100
78
+ * @maxLength 200
79
+ */
80
+ labels?: string[];
81
+ /**
82
+ * Date and time the file was created.
83
+ * @readonly
84
+ */
85
+ createdDate?: Date | null;
86
+ /**
87
+ * Date and time the file was updated.
88
+ * @readonly
89
+ */
90
+ updatedDate?: Date | null;
91
+ /**
92
+ * The Wix site ID where the media file is stored.
93
+ * @readonly
94
+ * @maxLength 100
95
+ */
96
+ siteId?: string;
97
+ /**
98
+ * State of the file.
99
+ * @readonly
100
+ */
101
+ state?: StateWithLiterals;
102
+ }
103
+ declare enum MediaType {
104
+ UNKNOWN = "UNKNOWN",
105
+ IMAGE = "IMAGE",
106
+ VIDEO = "VIDEO",
107
+ AUDIO = "AUDIO",
108
+ DOCUMENT = "DOCUMENT",
109
+ VECTOR = "VECTOR",
110
+ ARCHIVE = "ARCHIVE",
111
+ MODEL3D = "MODEL3D",
112
+ OTHER = "OTHER"
113
+ }
114
+ /** @enumType */
115
+ type MediaTypeWithLiterals = MediaType | 'UNKNOWN' | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'VECTOR' | 'ARCHIVE' | 'MODEL3D' | 'OTHER';
116
+ interface FileMedia extends FileMediaMediaOneOf {
117
+ /** Information about the image. */
118
+ image?: ImageMedia;
119
+ /** Information about the video. */
120
+ video?: VideoV2;
121
+ /** Information about the audio. */
122
+ audio?: AudioV2;
123
+ /** Information about the document. */
124
+ document?: Document;
125
+ /** Information about the vector. */
126
+ vector?: ImageMedia;
127
+ /** Information about the archive. */
128
+ archive?: Archive;
129
+ /** Information about the 3D Model. */
130
+ model3d?: Model3D;
131
+ }
132
+ /** @oneof */
133
+ interface FileMediaMediaOneOf {
134
+ /** Information about the image. */
135
+ image?: ImageMedia;
136
+ /** Information about the video. */
137
+ video?: VideoV2;
138
+ /** Information about the audio. */
139
+ audio?: AudioV2;
140
+ /** Information about the document. */
141
+ document?: Document;
142
+ /** Information about the vector. */
143
+ vector?: ImageMedia;
144
+ /** Information about the archive. */
145
+ archive?: Archive;
146
+ /** Information about the 3D Model. */
147
+ model3d?: Model3D;
148
+ }
149
+ interface ImageMedia {
150
+ /** Image data. */
151
+ image?: Image;
152
+ /** Image colors. */
153
+ colors?: Colors;
154
+ /**
155
+ * Information about faces in the image. Use to crop images without cutting out faces.
156
+ * @maxSize 100
157
+ */
158
+ faces?: FaceRecognition[];
159
+ /**
160
+ * Information about the image preview.
161
+ * You can use this to display a preview for private images.
162
+ */
163
+ previewImage?: Image;
164
+ /**
165
+ * Optional, An AI generated description of the image
166
+ * @readonly
167
+ * @maxLength 300
168
+ */
169
+ caption?: string | null;
170
+ }
171
+ interface Image {
172
+ /**
173
+ * enum TextDetection{
174
+ * // No detection was made
175
+ * UNKNOWN_TEXT_DETECTION = 0;
176
+ * // The image contains text
177
+ * CONTAINS_TEXT = 1;
178
+ * // The image does not contain text
179
+ * NO_TEXT = 2;
180
+ * }
181
+ * enum AnimationDetection{
182
+ * // No detection was made
183
+ * UNKNOWN_ANIMATION_DETECTION = 0;
184
+ * // The image contains animation
185
+ * CONTAINS_ANIMATION = 1;
186
+ * // The image does not contain animation
187
+ * NO_ANIMATION = 2;
188
+ * }
189
+ * message ImageContent{
190
+ * option (.wix.api.decomposite_of) = "wix.common.ImageContent";
191
+ * // Text detection
192
+ * TextDetection text = 1;
193
+ * // Animation detection
194
+ * AnimationDetection animation = 2;
195
+ * }
196
+ * WixMedia image ID.
197
+ */
198
+ id?: string;
199
+ /** Image URL. */
200
+ url?: string;
201
+ /**
202
+ * Original image height.
203
+ * @readonly
204
+ */
205
+ height?: number;
206
+ /**
207
+ * Original image width.
208
+ * @readonly
209
+ */
210
+ width?: number;
211
+ /** Image alt text. */
212
+ altText?: string | null;
213
+ /**
214
+ * Image filename.
215
+ * @readonly
216
+ */
217
+ filename?: string | null;
218
+ }
219
+ interface Colors {
220
+ /** Main color of the image. */
221
+ prominent?: Color;
222
+ /**
223
+ * Color palette of the image.
224
+ * @maxSize 100
225
+ */
226
+ palette?: Color[];
227
+ }
228
+ interface Color {
229
+ /**
230
+ * HEX color.
231
+ * @format COLOR_HEX
232
+ */
233
+ hex?: string | null;
234
+ /** RGB color. */
235
+ rgb?: ColorRGB;
236
+ }
237
+ interface ColorRGB {
238
+ /**
239
+ * Red channel.
240
+ * @max 255
241
+ */
242
+ r?: number | null;
243
+ /**
244
+ * Green channel.
245
+ * @max 255
246
+ */
247
+ g?: number | null;
248
+ /**
249
+ * Blue channel.
250
+ * @max 255
251
+ */
252
+ b?: number | null;
253
+ }
254
+ /**
255
+ * Using this object you can crop images while centering on faces
256
+ * ------------------------
257
+ * | |
258
+ * | x,y |
259
+ * | *-------- |
260
+ * | | . . | |
261
+ * | | | | height |
262
+ * | | \ / | |
263
+ * | | | |
264
+ * | --------- |
265
+ * | width |
266
+ * | |
267
+ * |______________________|
268
+ */
269
+ interface FaceRecognition {
270
+ /** The accuracy percentage of the face recognition. The likelihood that a face is detected. */
271
+ confidence?: number;
272
+ /** Top left x pixel coordinate of the face. */
273
+ x?: number;
274
+ /** Top left y pixel coordinate of the face. */
275
+ y?: number;
276
+ /** Face pixel height. */
277
+ height?: number;
278
+ /** Face pixel width. */
279
+ width?: number;
280
+ }
281
+ interface VideoV2 {
282
+ /** WixMedia ID. */
283
+ id?: string;
284
+ /**
285
+ * Available resolutions for the video, starting with the optimal resolution.
286
+ * @readonly
287
+ * @maxSize 100
288
+ */
289
+ resolutions?: VideoResolution[];
290
+ /**
291
+ * Video filename.
292
+ * @readonly
293
+ */
294
+ filename?: string | null;
295
+ }
296
+ interface VideoResolution {
297
+ /** Video URL. */
298
+ url?: string;
299
+ /** Video height. */
300
+ height?: number;
301
+ /** Video width. */
302
+ width?: number;
303
+ /**
304
+ * Video format
305
+ * Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
306
+ * '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
307
+ */
308
+ format?: string;
309
+ }
310
+ interface AudioV2 {
311
+ /**
312
+ * WixMedia ID.
313
+ * @maxLength 200
314
+ */
315
+ id?: string;
316
+ /**
317
+ * Audio formats available for this file.
318
+ * @maxSize 100
319
+ */
320
+ assets?: Audio[];
321
+ /**
322
+ * Audio bitrate.
323
+ * @readonly
324
+ */
325
+ bitrate?: number | null;
326
+ /**
327
+ * Audio format.
328
+ * @readonly
329
+ * @maxLength 100
330
+ */
331
+ format?: string | null;
332
+ /**
333
+ * Audio duration in seconds.
334
+ * @readonly
335
+ */
336
+ duration?: number | null;
337
+ /**
338
+ * Audio size in bytes.
339
+ * @readonly
340
+ * @format DECIMAL_VALUE
341
+ * @decimalValue options { maxScale:0 }
342
+ */
343
+ sizeInBytes?: string | null;
344
+ }
345
+ interface Audio {
346
+ /** WixMedia ID. */
347
+ id?: string;
348
+ /** Audio URL. */
349
+ url?: string;
350
+ /**
351
+ * Audio filename.
352
+ * @readonly
353
+ */
354
+ filename?: string | null;
355
+ }
356
+ interface Document {
357
+ /** WixMedia ID. */
358
+ id?: string;
359
+ /** Document URL. */
360
+ url?: string;
361
+ /** Document filename. */
362
+ filename?: string | null;
363
+ }
364
+ interface Archive {
365
+ /** WixMedia ID. */
366
+ id?: string;
367
+ /** Archive URL. */
368
+ url?: string;
369
+ /**
370
+ * Archive URL expiration date (when relevant).
371
+ * @readonly
372
+ */
373
+ urlExpirationDate?: Date | null;
374
+ /**
375
+ * Archive size in bytes.
376
+ * @format DECIMAL_VALUE
377
+ */
378
+ sizeInBytes?: string | null;
379
+ /** Archive filename. */
380
+ filename?: string | null;
381
+ }
382
+ interface Model3D {
383
+ /** WixMedia 3D ID. */
384
+ id?: string;
385
+ /** 3D URL. */
386
+ url?: string;
387
+ /** 3D thumbnail Image */
388
+ thumbnail?: Image;
389
+ /** 3D alt text. */
390
+ altText?: string | null;
391
+ /**
392
+ * 3D URL expiration date (when relevant).
393
+ * @readonly
394
+ */
395
+ urlExpirationDate?: Date | null;
396
+ /**
397
+ * 3D filename.
398
+ * @readonly
399
+ */
400
+ filename?: string | null;
401
+ /**
402
+ * 3D size in bytes.
403
+ * @readonly
404
+ * @format DECIMAL_VALUE
405
+ */
406
+ sizeInBytes?: string | null;
407
+ }
408
+ declare enum OperationStatus {
409
+ /** File upload or processing failed */
410
+ FAILED = "FAILED",
411
+ /** File is ready for consumption */
412
+ READY = "READY",
413
+ /** File is waiting for processing or currently being processed */
414
+ PENDING = "PENDING"
415
+ }
416
+ /** @enumType */
417
+ type OperationStatusWithLiterals = OperationStatus | 'FAILED' | 'READY' | 'PENDING';
418
+ declare enum State {
419
+ /** File is ready for consumption */
420
+ OK = "OK",
421
+ /** Deleted file */
422
+ DELETED = "DELETED"
423
+ }
424
+ /** @enumType */
425
+ type StateWithLiterals = State | 'OK' | 'DELETED';
426
+ interface ExternalInfo {
427
+ /**
428
+ * External information to specify in the File Ready or File Failed events.
429
+ * @maxLength 1000
430
+ */
431
+ origin?: string;
432
+ /**
433
+ * External IDs to specify in the File Ready or File Failed events.
434
+ * @maxSize 30
435
+ * @maxLength 4000
436
+ */
437
+ externalIds?: string[];
438
+ }
439
+ interface ApplicationError {
440
+ /** Error code. */
441
+ code?: string;
442
+ /** Description of the error. */
443
+ description?: string;
444
+ /** Data related to the error. */
445
+ data?: Record<string, any> | null;
446
+ }
447
+ interface ItemMetadata {
448
+ /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */
449
+ id?: string | null;
450
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
451
+ originalIndex?: number;
452
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
453
+ success?: boolean;
454
+ /** Details about the error in case of failure. */
455
+ error?: ApplicationError;
456
+ }
457
+ interface BulkActionMetadata {
458
+ /** Number of items that were successfully processed. */
459
+ totalSuccesses?: number;
460
+ /** Number of items that couldn't be processed. */
461
+ totalFailures?: number;
462
+ /** Number of failures without details because detailed failure threshold was exceeded. */
463
+ undetailedFailures?: number;
464
+ }
465
+ interface GenerateFilesDownloadUrlRequest {
466
+ /**
467
+ * IDs of the files to download.
468
+ *
469
+ * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
470
+ * 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)).
471
+ * @minSize 1
472
+ * @maxSize 1000
473
+ * @maxLength 1000
474
+ */
475
+ fileIds: string[];
476
+ }
477
+ interface GenerateFilesDownloadUrlResponse {
478
+ /**
479
+ * URL for downloading the compressed file containing the specified files in the Media Manager.
480
+ * @format WEB_URL
481
+ */
482
+ downloadUrl?: string;
483
+ }
484
+ interface GenerateFileDownloadUrlRequest {
485
+ /**
486
+ * File ID.
487
+ *
488
+ * 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`.
489
+ * 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)).
490
+ * @maxLength 1000
491
+ */
492
+ fileId: string;
493
+ /**
494
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
495
+ *
496
+ * **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
497
+ * @maxLength 100
498
+ */
499
+ downloadFileName?: string | null;
500
+ /**
501
+ * The time that it takes in minutes for the download URL to expire. <br />
502
+ * Default: `600`. <br />
503
+ * Limit: `525600` (1 year).
504
+ * @min 1
505
+ */
506
+ expirationInMinutes?: number | null;
507
+ /**
508
+ * The redirect URL for when the temporary download URL with a token expires. <br />
509
+ * Default: A 403 Forbidden response page.
510
+ * @format WEB_URL
511
+ */
512
+ expirationRedirectUrl?: string | null;
513
+ /**
514
+ * Keys for downloading different assets (format and quality) of a file.
515
+ * Default: `src`, key representing the original file's format and quality.
516
+ * @maxSize 100
517
+ * @maxLength 100
518
+ */
519
+ assetKeys?: string[] | null;
520
+ /**
521
+ * Whether the link downloads the file or opens the file in the browser.
522
+ *
523
+ * - `ATTACHMENT`: The link downloads the file.
524
+ * - `INLINE`: The link opens the file in the browser.
525
+ *
526
+ * Default: `ATTACHMENT`
527
+ */
528
+ contentDisposition?: ContentDispositionWithLiterals;
529
+ }
530
+ declare enum ContentDisposition {
531
+ /** Using the link in the browser will download the file */
532
+ ATTACHMENT = "ATTACHMENT",
533
+ /** Using the link in the browser will open the file in the browser */
534
+ INLINE = "INLINE"
535
+ }
536
+ /** @enumType */
537
+ type ContentDispositionWithLiterals = ContentDisposition | 'ATTACHMENT' | 'INLINE';
538
+ interface GenerateFileDownloadUrlResponse {
539
+ /**
540
+ * URL for downloading a specific file in the Media Manager.
541
+ * @maxSize 100
542
+ */
543
+ downloadUrls?: DownloadUrl[];
544
+ }
545
+ interface DownloadUrl {
546
+ /**
547
+ * The file download URL.
548
+ * @format WEB_URL
549
+ */
550
+ url?: string;
551
+ /**
552
+ * Key for downloading a different asset (format and quality) of a file.
553
+ * Default: `src`, key representing the original file's format and quality.
554
+ * @maxLength 100
555
+ */
556
+ assetKey?: string;
557
+ }
558
+ interface GetFileDescriptorRequest {
559
+ /**
560
+ * File ID.
561
+ *
562
+ * 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`.
563
+ * 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)).
564
+ *
565
+ * 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`.
566
+ * @maxLength 1000
567
+ */
568
+ fileId: string;
569
+ }
570
+ interface GetFileDescriptorResponse {
571
+ /** Information about the file. */
572
+ file?: FileDescriptor;
573
+ }
574
+ interface GetFileDescriptorsRequest {
575
+ /**
576
+ * File IDs.
577
+ *
578
+ * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
579
+ * 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)).
580
+ * @minSize 1
581
+ * @maxSize 100
582
+ * @maxLength 1000
583
+ */
584
+ fileIds: string[];
585
+ }
586
+ interface GetFileDescriptorsResponse {
587
+ /**
588
+ * Information about the requested files.
589
+ * @maxSize 100
590
+ */
591
+ files?: FileDescriptor[];
592
+ }
593
+ interface UpdateFileDescriptorRequest {
594
+ /** The file to update. */
595
+ file: FileDescriptor;
596
+ }
597
+ interface UpdateFileDescriptorResponse {
598
+ /** Information about the updated file. */
599
+ file?: FileDescriptor;
600
+ }
601
+ interface GenerateFileUploadUrlRequest {
602
+ /**
603
+ * File mime type.
604
+ * @maxLength 100
605
+ */
606
+ mimeType: string | null;
607
+ /**
608
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
609
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
610
+ * @maxLength 200
611
+ */
612
+ fileName?: string | null;
613
+ /**
614
+ * File size in bytes.
615
+ * @readonly
616
+ * @format DECIMAL_VALUE
617
+ * @decimalValue options { gte:0, maxScale:0 }
618
+ */
619
+ sizeInBytes?: string | null;
620
+ /**
621
+ * ID of the file's parent folder. <br />
622
+ * This folder is the path root for the `filePath`.<br />
623
+ * Default: `media-root`.
624
+ * @maxLength 100
625
+ */
626
+ parentFolderId?: string | null;
627
+ /** 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)). */
628
+ private?: boolean | null;
629
+ /**
630
+ * 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.
631
+ * @maxSize 50
632
+ * @maxLength 200
633
+ */
634
+ labels?: string[] | null;
635
+ /** A place to map an external entity to an uploaded file in the Wix Media Manager. */
636
+ externalInfo?: ExternalInfo;
637
+ /**
638
+ * Path to the folder where the file will be stored.
639
+ * For example, `/videos/2024/december`. <br/>
640
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
641
+ * The folders in the path will be created if they don't already exist. <br />
642
+ * @maxLength 100
643
+ */
644
+ filePath?: string | null;
645
+ }
646
+ interface GenerateFileUploadUrlResponse {
647
+ /**
648
+ * The URL for uploading a file to the Media Manager.
649
+ * @format WEB_URL
650
+ */
651
+ uploadUrl?: string;
652
+ }
653
+ interface GenerateFileResumableUploadUrlRequest {
654
+ /**
655
+ * File mime type.
656
+ * @maxLength 100
657
+ */
658
+ mimeType: string | null;
659
+ /**
660
+ * Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
661
+ * <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` parameter in the Generate File Upload Url call.
662
+ * @maxLength 200
663
+ */
664
+ fileName?: string | null;
665
+ /**
666
+ * File size in bytes.
667
+ * @readonly
668
+ * @format DECIMAL_VALUE
669
+ * @decimalValue options { gte:0, maxScale:0 }
670
+ */
671
+ sizeInBytes?: string | null;
672
+ /**
673
+ * ID of the file's parent folder. <br />
674
+ * This folder is the path root for the `filePath`.<br />
675
+ * Default: `media-root`.
676
+ * @maxLength 100
677
+ */
678
+ parentFolderId?: string | null;
679
+ /** 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)). */
680
+ private?: boolean | null;
681
+ /**
682
+ * 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.
683
+ * @maxSize 500
684
+ * @maxLength 200
685
+ */
686
+ labels?: string[] | null;
687
+ /** The upload protocol to use for implementing the resumable upload. */
688
+ uploadProtocol?: UploadProtocolWithLiterals;
689
+ /**
690
+ * Path to the folder where the file will be stored.
691
+ * For example, `/videos/2024/december`. <br/>
692
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
693
+ * The folders in the path will be created if they don't already exist. <br />
694
+ * @maxLength 100
695
+ */
696
+ filePath?: string | null;
697
+ }
698
+ declare enum UploadProtocol {
699
+ /** The upload protocol to use for implementing the resumable upload. */
700
+ TUS = "TUS"
701
+ }
702
+ /** @enumType */
703
+ type UploadProtocolWithLiterals = UploadProtocol | 'TUS';
704
+ interface GenerateFileResumableUploadUrlResponse {
705
+ /** The upload protocol to use for implementing the resumable upload. */
706
+ uploadProtocol?: UploadProtocolWithLiterals;
707
+ /**
708
+ * The URL for uploading a file to the Media Manager.
709
+ * @format WEB_URL
710
+ */
711
+ uploadUrl?: string;
712
+ /**
713
+ * Single-use upload token.
714
+ * @maxLength 2000
715
+ */
716
+ uploadToken?: string;
717
+ }
718
+ interface ImportFileRequest {
719
+ /**
720
+ * Publicly accessible external file URL.
721
+ * @format WEB_URL
722
+ */
723
+ url: string;
724
+ /**
725
+ * Media type of the file to import.
726
+ * excluding: OTHER media type
727
+ */
728
+ mediaType?: MediaTypeWithLiterals;
729
+ /**
730
+ * File name that appears in the Media Manager.
731
+ * @maxLength 200
732
+ */
733
+ displayName?: string | null;
734
+ /**
735
+ * ID of the file's parent folder. <br />
736
+ * This folder is the path root for the `filePath`. <br />
737
+ * Default: `media-root`.
738
+ * @maxLength 100
739
+ */
740
+ parentFolderId?: string | null;
741
+ /** 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)). */
742
+ private?: boolean | null;
743
+ /**
744
+ * 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.
745
+ * @maxSize 500
746
+ * @maxLength 200
747
+ */
748
+ labels?: string[] | null;
749
+ /**
750
+ * File mime type.
751
+ * @maxLength 100
752
+ */
753
+ mimeType?: string;
754
+ /** 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. */
755
+ externalInfo?: ExternalInfo;
756
+ /** Optional parameters that should be sent with the external URL. */
757
+ urlParams?: Record<string, any> | null;
758
+ /** Optional headers that should be sent with the external URL. */
759
+ urlHeaders?: Record<string, any> | null;
760
+ /**
761
+ * Path to the folder where the file will be stored.
762
+ * For example, `/videos/2024/december`. <br/>
763
+ * If `parentFolderId` is defined, the parent folder is used as the path root. Otherwise, the root is `media-root`.
764
+ * The folders in the path will be created if they don't already exist. <br />
765
+ * @maxLength 100
766
+ */
767
+ filePath?: string | null;
768
+ }
769
+ interface ImportFileResponse {
770
+ /** Information about the imported file. */
771
+ file?: FileDescriptor;
772
+ }
773
+ interface BulkImportFilesRequest {
774
+ /**
775
+ * Information about the files to import.
776
+ * @minSize 1
777
+ * @maxSize 100
778
+ */
779
+ importFileRequests: ImportFileRequest[];
780
+ }
781
+ interface BulkImportFilesResponse {
782
+ /**
783
+ * Information about the imported files.
784
+ * @maxSize 100
785
+ */
786
+ files?: FileDescriptor[];
787
+ }
788
+ interface BulkImportFileRequest {
789
+ /**
790
+ * Information about the files to import.
791
+ * @minSize 1
792
+ * @maxSize 100
793
+ */
794
+ importFileRequests: ImportFileRequest[];
795
+ /** Default: `true` */
796
+ returnEntity?: boolean | null;
797
+ }
798
+ interface BulkImportFileResponse {
799
+ /** Items created by bulk action. */
800
+ results?: BulkImportFileResult[];
801
+ /** Bulk action metadata. */
802
+ bulkActionMetadata?: BulkActionMetadata;
803
+ }
804
+ interface BulkImportFileResult {
805
+ /** Item metadata. */
806
+ itemMetadata?: ItemMetadata;
807
+ /** Imported file. This field is included in the response if the operation was successful and `returnEntity` is not set to `false`. */
808
+ item?: FileDescriptor;
809
+ }
810
+ interface ListFilesRequest {
811
+ /**
812
+ * ID of the file's parent folder. <br />
813
+ * Default:`media-root`.
814
+ * @maxLength 100
815
+ */
816
+ parentFolderId?: string | null;
817
+ /**
818
+ * File media type.
819
+ * @maxSize 30
820
+ */
821
+ mediaTypes?: MediaTypeWithLiterals[];
822
+ /** \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)). */
823
+ private?: boolean | null;
824
+ /**
825
+ * Field name and order to sort by. One of: <br />
826
+ * * `displayName`
827
+ * * `updatedDate`
828
+ * * `sizeInBytes`
829
+ * Default: `updatedDate` in `desc` order.
830
+ */
831
+ sort?: Sorting;
832
+ /** Cursor and paging information. */
833
+ paging?: CursorPaging;
834
+ }
835
+ interface Sorting {
836
+ /**
837
+ * Name of the field to sort by.
838
+ * @maxLength 512
839
+ */
840
+ fieldName?: string;
841
+ /** Sort order. */
842
+ order?: SortOrderWithLiterals;
843
+ }
844
+ declare enum SortOrder {
845
+ ASC = "ASC",
846
+ DESC = "DESC"
847
+ }
848
+ /** @enumType */
849
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
850
+ interface CursorPaging {
851
+ /**
852
+ * Maximum number of items to return in the results.
853
+ * @max 100
854
+ */
855
+ limit?: number | null;
856
+ /**
857
+ * Pointer to the next or previous page in the list of results.
858
+ *
859
+ * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
860
+ * Not relevant for the first request.
861
+ * @maxLength 16000
862
+ */
863
+ cursor?: string | null;
864
+ }
865
+ interface ListFilesResponse {
866
+ /**
867
+ * List of files in the Media Manager.
868
+ * @maxSize 200
869
+ */
870
+ files?: FileDescriptor[];
871
+ /** The next cursor if it exists. */
872
+ nextCursor?: PagingMetadataV2;
873
+ }
874
+ interface PagingMetadataV2 {
875
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
876
+ total?: number | null;
877
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
878
+ cursors?: Cursors;
879
+ }
880
+ interface Cursors {
881
+ /**
882
+ * Cursor string pointing to the next page in the list of results.
883
+ * @maxLength 16000
884
+ */
885
+ next?: string | null;
886
+ }
887
+ interface SearchFilesRequest {
888
+ /**
889
+ * Term to search for. Possible terms include the value of a file's
890
+ * `displayName`, `mimeType`, and `label`. <br />
891
+ * For example, if a file's label is cat, the search term is 'cat'.
892
+ * @maxLength 200
893
+ */
894
+ search?: string | null;
895
+ /**
896
+ * A root folder in the media manager to search in. <br />
897
+ * Default: `MEDIA_ROOT`.
898
+ */
899
+ rootFolder?: RootFolderWithLiterals;
900
+ /**
901
+ * File media type.
902
+ * @maxSize 30
903
+ */
904
+ mediaTypes?: MediaTypeWithLiterals[];
905
+ /** \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)). */
906
+ private?: boolean | null;
907
+ /**
908
+ * Field name and order to sort by. One of: <br />
909
+ * * `displayName`
910
+ * * `updatedDate`
911
+ * * `sizeInBytes`
912
+ * Default: `updatedDate` in `desc` order.
913
+ */
914
+ sort?: Sorting;
915
+ /** Cursor and paging information. */
916
+ paging?: CursorPaging;
917
+ }
918
+ declare enum RootFolder {
919
+ /** Root of all site media */
920
+ MEDIA_ROOT = "MEDIA_ROOT",
921
+ /** Root of the trash system folder */
922
+ TRASH_ROOT = "TRASH_ROOT",
923
+ /** Root of all visitor uploads */
924
+ VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
925
+ }
926
+ /** @enumType */
927
+ type RootFolderWithLiterals = RootFolder | 'MEDIA_ROOT' | 'TRASH_ROOT' | 'VISITOR_UPLOADS_ROOT';
928
+ interface SearchFilesResponse {
929
+ /**
930
+ * Files matching the query.
931
+ * @maxSize 200
932
+ */
933
+ files?: FileDescriptor[];
934
+ /** The next cursor if it exists. */
935
+ nextCursor?: PagingMetadataV2;
936
+ }
937
+ interface GenerateVideoStreamingUrlRequest {
938
+ /**
939
+ * File ID.
940
+ *
941
+ * 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`.
942
+ * 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)).
943
+ * @maxLength 1000
944
+ */
945
+ fileId: string;
946
+ /** Video stream format. */
947
+ format?: StreamFormatWithLiterals;
948
+ }
949
+ declare enum StreamFormat {
950
+ UNKNOWN = "UNKNOWN",
951
+ HLS = "HLS",
952
+ DASH = "DASH"
953
+ }
954
+ /** @enumType */
955
+ type StreamFormatWithLiterals = StreamFormat | 'UNKNOWN' | 'HLS' | 'DASH';
956
+ interface GenerateVideoStreamingUrlResponse {
957
+ /** URL for streaming a specific file in the Media Manager. */
958
+ downloadUrl?: DownloadUrl;
959
+ }
960
+ interface BulkDeleteFilesRequest {
961
+ /**
962
+ * IDs of the files to move to the Media Manager's trash bin.
963
+ *
964
+ * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
965
+ * 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)).
966
+ * @maxSize 1000
967
+ * @maxLength 1000
968
+ */
969
+ fileIds: string[];
970
+ /**
971
+ * Whether the specified files are permanently deleted. <br />
972
+ * Default: `false`
973
+ */
974
+ permanent?: boolean;
975
+ }
976
+ interface BulkDeleteFilesResponse {
977
+ }
978
+ interface BulkRestoreFilesFromTrashBinRequest {
979
+ /**
980
+ * IDs of the files to restore from the Media Manager's trash bin.
981
+ *
982
+ * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
983
+ * 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)).
984
+ * @maxSize 1000
985
+ * @maxLength 1000
986
+ */
987
+ fileIds: string[];
988
+ }
989
+ interface BulkRestoreFilesFromTrashBinResponse {
990
+ }
991
+ interface ListDeletedFilesRequest {
992
+ /**
993
+ * ID of the file's parent folder. <br />
994
+ * Default: `media-root`.
995
+ * @maxLength 100
996
+ */
997
+ parentFolderId?: string | null;
998
+ /**
999
+ * File media type.
1000
+ * @maxSize 30
1001
+ */
1002
+ mediaTypes?: MediaTypeWithLiterals[];
1003
+ /** \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)). */
1004
+ private?: boolean | null;
1005
+ /**
1006
+ * Field name and order to sort by. One of: <br />
1007
+ * * `displayName`
1008
+ * * `updatedDate`
1009
+ * * `sizeInBytes`
1010
+ * Default: `updatedDate` in `desc` order.
1011
+ */
1012
+ sort?: Sorting;
1013
+ /** Cursor and paging information. */
1014
+ paging?: CursorPaging;
1015
+ }
1016
+ interface ListDeletedFilesResponse {
1017
+ /**
1018
+ * List of files in the Media Manager's trash bin.
1019
+ * @maxSize 200
1020
+ */
1021
+ files?: FileDescriptor[];
1022
+ /** The next cursor if it exists. */
1023
+ nextCursor?: PagingMetadataV2;
1024
+ }
1025
+
1026
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1027
+ getUrl: (context: any) => string;
1028
+ httpMethod: K;
1029
+ path: string;
1030
+ pathParams: M;
1031
+ __requestType: T;
1032
+ __originalRequestType: S;
1033
+ __responseType: Q;
1034
+ __originalResponseType: R;
1035
+ };
1036
+ declare function generateFilesDownloadUrl(): __PublicMethodMetaInfo<'POST', {}, GenerateFilesDownloadUrlRequest$1, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse$1, GenerateFilesDownloadUrlResponse>;
1037
+ declare function generateFileDownloadUrl(): __PublicMethodMetaInfo<'POST', {}, GenerateFileDownloadUrlRequest$1, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse$1, GenerateFileDownloadUrlResponse>;
1038
+ declare function getFileDescriptor(): __PublicMethodMetaInfo<'GET', {}, GetFileDescriptorRequest$1, GetFileDescriptorRequest, GetFileDescriptorResponse$1, GetFileDescriptorResponse>;
1039
+ declare function getFileDescriptors(): __PublicMethodMetaInfo<'POST', {}, GetFileDescriptorsRequest$1, GetFileDescriptorsRequest, GetFileDescriptorsResponse$1, GetFileDescriptorsResponse>;
1040
+ declare function updateFileDescriptor(): __PublicMethodMetaInfo<'PATCH', {}, UpdateFileDescriptorRequest$1, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse$1, UpdateFileDescriptorResponse>;
1041
+ declare function generateFileUploadUrl(): __PublicMethodMetaInfo<'POST', {}, GenerateFileUploadUrlRequest$1, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse$1, GenerateFileUploadUrlResponse>;
1042
+ declare function generateFileResumableUploadUrl(): __PublicMethodMetaInfo<'POST', {}, GenerateFileResumableUploadUrlRequest$1, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse$1, GenerateFileResumableUploadUrlResponse>;
1043
+ declare function importFile(): __PublicMethodMetaInfo<'POST', {}, ImportFileRequest$1, ImportFileRequest, ImportFileResponse$1, ImportFileResponse>;
1044
+ declare function bulkImportFiles(): __PublicMethodMetaInfo<'POST', {}, BulkImportFilesRequest$1, BulkImportFilesRequest, BulkImportFilesResponse$1, BulkImportFilesResponse>;
1045
+ declare function bulkImportFile(): __PublicMethodMetaInfo<'POST', {}, BulkImportFileRequest$1, BulkImportFileRequest, BulkImportFileResponse$1, BulkImportFileResponse>;
1046
+ declare function listFiles(): __PublicMethodMetaInfo<'GET', {}, ListFilesRequest$1, ListFilesRequest, ListFilesResponse$1, ListFilesResponse>;
1047
+ declare function searchFiles(): __PublicMethodMetaInfo<'POST', {}, SearchFilesRequest$1, SearchFilesRequest, SearchFilesResponse$1, SearchFilesResponse>;
1048
+ declare function generateVideoStreamingUrl(): __PublicMethodMetaInfo<'POST', {}, GenerateVideoStreamingUrlRequest$1, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse$1, GenerateVideoStreamingUrlResponse>;
1049
+ declare function bulkDeleteFiles(): __PublicMethodMetaInfo<'POST', {}, BulkDeleteFilesRequest$1, BulkDeleteFilesRequest, BulkDeleteFilesResponse$1, BulkDeleteFilesResponse>;
1050
+ declare function bulkRestoreFilesFromTrashBin(): __PublicMethodMetaInfo<'POST', {}, BulkRestoreFilesFromTrashBinRequest$1, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse$1, BulkRestoreFilesFromTrashBinResponse>;
1051
+ declare function listDeletedFiles(): __PublicMethodMetaInfo<'GET', {}, ListDeletedFilesRequest$1, ListDeletedFilesRequest, ListDeletedFilesResponse$1, ListDeletedFilesResponse>;
1052
+
1053
+ export { type __PublicMethodMetaInfo, bulkDeleteFiles, bulkImportFile, bulkImportFiles, bulkRestoreFilesFromTrashBin, generateFileDownloadUrl, generateFileResumableUploadUrl, generateFileUploadUrl, generateFilesDownloadUrl, generateVideoStreamingUrl, getFileDescriptor, getFileDescriptors, importFile, listDeletedFiles, listFiles, searchFiles, updateFileDescriptor };