@wix/media 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/build/cjs/index.d.ts +2 -0
  2. package/build/cjs/index.js +25 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/src/media-site-media-v1-file-descriptor.http.d.ts +107 -0
  5. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +555 -0
  6. package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -0
  7. package/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +18 -0
  8. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +97 -0
  9. package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -0
  10. package/build/cjs/src/media-site-media-v1-file-descriptor.types.d.ts +562 -0
  11. package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +52 -0
  12. package/build/cjs/src/media-site-media-v1-file-descriptor.types.js.map +1 -0
  13. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +845 -0
  14. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +962 -0
  15. package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -0
  16. package/build/cjs/src/media-site-media-v1-folder.http.d.ts +49 -0
  17. package/build/cjs/src/media-site-media-v1-folder.http.js +285 -0
  18. package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -0
  19. package/build/cjs/src/media-site-media-v1-folder.public.d.ts +13 -0
  20. package/build/cjs/src/media-site-media-v1-folder.public.js +63 -0
  21. package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -0
  22. package/build/cjs/src/media-site-media-v1-folder.types.d.ts +179 -0
  23. package/build/cjs/src/media-site-media-v1-folder.types.js +23 -0
  24. package/build/cjs/src/media-site-media-v1-folder.types.js.map +1 -0
  25. package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +337 -0
  26. package/build/cjs/src/media-site-media-v1-folder.universal.js +584 -0
  27. package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -0
  28. package/build/es/index.d.ts +2 -0
  29. package/build/es/index.js +3 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/src/media-site-media-v1-file-descriptor.http.d.ts +107 -0
  32. package/build/es/src/media-site-media-v1-file-descriptor.http.js +538 -0
  33. package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -0
  34. package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +18 -0
  35. package/build/es/src/media-site-media-v1-file-descriptor.public.js +73 -0
  36. package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -0
  37. package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +562 -0
  38. package/build/es/src/media-site-media-v1-file-descriptor.types.js +49 -0
  39. package/build/es/src/media-site-media-v1-file-descriptor.types.js.map +1 -0
  40. package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +845 -0
  41. package/build/es/src/media-site-media-v1-file-descriptor.universal.js +926 -0
  42. package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -0
  43. package/build/es/src/media-site-media-v1-folder.http.d.ts +49 -0
  44. package/build/es/src/media-site-media-v1-folder.http.js +273 -0
  45. package/build/es/src/media-site-media-v1-folder.http.js.map +1 -0
  46. package/build/es/src/media-site-media-v1-folder.public.d.ts +13 -0
  47. package/build/es/src/media-site-media-v1-folder.public.js +48 -0
  48. package/build/es/src/media-site-media-v1-folder.public.js.map +1 -0
  49. package/build/es/src/media-site-media-v1-folder.types.d.ts +179 -0
  50. package/build/es/src/media-site-media-v1-folder.types.js +20 -0
  51. package/build/es/src/media-site-media-v1-folder.types.js.map +1 -0
  52. package/build/es/src/media-site-media-v1-folder.universal.d.ts +337 -0
  53. package/build/es/src/media-site-media-v1-folder.universal.js +553 -0
  54. package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -0
  55. package/package.json +37 -0
@@ -0,0 +1,555 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFile = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = void 0;
4
+ const metro_runtime_1 = require("@wix/metro-runtime");
5
+ const ambassador_1 = require("@wix/metro-runtime/ambassador");
6
+ const metro_runtime_2 = require("@wix/metro-runtime");
7
+ const _audio = { urlExpirationDate: 'google.protobuf.Timestamp' };
8
+ const _audioV2 = { assets: '_audio' };
9
+ const _bulkDeleteFilesRequest = {};
10
+ const _bulkDeleteFilesResponse = {};
11
+ const _bulkImportFilesRequest = { importFileRequests: '_importFileRequest' };
12
+ const _bulkImportFilesResponse = { files: '_fileDescriptor' };
13
+ const _bulkRestoreFilesFromTrashBinRequest = {};
14
+ const _bulkRestoreFilesFromTrashBinResponse = {};
15
+ const _document = { urlExpirationDate: 'google.protobuf.Timestamp' };
16
+ const _faceRecognition = { confidence: 'DOUBLE' };
17
+ const _fileDescriptor = {
18
+ createdDate: 'google.protobuf.Timestamp',
19
+ updatedDate: 'google.protobuf.Timestamp',
20
+ media: '_fileMedia',
21
+ };
22
+ const _fileMedia = {
23
+ image: '_imageMedia',
24
+ video: '_videoV2',
25
+ audio: '_audioV2',
26
+ document: '_document',
27
+ vector: '_imageMedia',
28
+ };
29
+ const _generateFileDownloadUrlRequest = {};
30
+ const _generateFileDownloadUrlResponse = {};
31
+ const _generateFileResumableUploadUrlRequest = {};
32
+ const _generateFileResumableUploadUrlResponse = {};
33
+ const _generateFilesDownloadUrlRequest = {};
34
+ const _generateFilesDownloadUrlResponse = {};
35
+ const _generateFileUploadUrlRequest = {};
36
+ const _generateFileUploadUrlResponse = {};
37
+ const _generateVideoStreamingUrlRequest = {};
38
+ const _generateVideoStreamingUrlResponse = {};
39
+ const _getFileDescriptorRequest = {};
40
+ const _getFileDescriptorResponse = { file: '_fileDescriptor' };
41
+ const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
42
+ const _imageMedia = {
43
+ image: '_image',
44
+ faces: '_faceRecognition',
45
+ previewImage: '_image',
46
+ };
47
+ const _importFileRequest = {};
48
+ const _importFileResponse = { file: '_fileDescriptor' };
49
+ const _listDeletedFilesRequest = {};
50
+ const _listDeletedFilesResponse = { files: '_fileDescriptor' };
51
+ const _listFilesRequest = {};
52
+ const _listFilesResponse = { files: '_fileDescriptor' };
53
+ const _searchFilesRequest = {};
54
+ const _searchFilesResponse = { files: '_fileDescriptor' };
55
+ const _updateFileRequest = {};
56
+ const _updateFileResponse = { file: '_fileDescriptor' };
57
+ const _videoResolution = {
58
+ urlExpirationDate: 'google.protobuf.Timestamp',
59
+ poster: '_image',
60
+ };
61
+ const _videoV2 = {
62
+ urlExpirationDate: 'google.protobuf.Timestamp',
63
+ resolutions: '_videoResolution',
64
+ posters: '_image',
65
+ };
66
+ function resolveComWixMediaSiteMediaV1FilesServiceUrl(opts) {
67
+ const domainToMappings = {
68
+ 'apps._base_domain_': [
69
+ {
70
+ srcPath: '/_api/wix-privatemedia-proxy-server',
71
+ destPath: '/api',
72
+ },
73
+ {
74
+ srcPath: '/_api/wix-privatemedia-proxy-server/v1',
75
+ destPath: '/v1',
76
+ },
77
+ ],
78
+ 'manage._base_domain_': [
79
+ {
80
+ srcPath: '/_api/wix-privatemedia-proxy-server',
81
+ destPath: '',
82
+ },
83
+ ],
84
+ 'www.wixapis.com': [
85
+ {
86
+ srcPath: '/site-media/v1',
87
+ destPath: '/v1',
88
+ },
89
+ ],
90
+ };
91
+ return metro_runtime_2.resolveUrl(Object.assign(opts, { domainToMappings }));
92
+ }
93
+ /**
94
+ * Generates a URL for downloading a compressed file containing specific files in the Media Manager. <br/>
95
+ *
96
+ * The compressed file can contain up to 1000 files.
97
+ */
98
+ function generateFilesDownloadUrl(payload) {
99
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_generateFilesDownloadUrlRequest, {});
100
+ const { fromJSON: fromRes } = ambassador_1.serializer(_generateFilesDownloadUrlResponse, {});
101
+ function __generateFilesDownloadUrl({ host }) {
102
+ const serializedData = toReq(payload);
103
+ const metadata = {
104
+ method: 'POST',
105
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
106
+ protoPath: '/v1/files/generate-download-url',
107
+ data: serializedData,
108
+ host,
109
+ }),
110
+ data: serializedData,
111
+ transformResponse: fromRes,
112
+ };
113
+ return metadata;
114
+ }
115
+ __generateFilesDownloadUrl.fromReq = fromReq;
116
+ return __generateFilesDownloadUrl;
117
+ }
118
+ exports.generateFilesDownloadUrl = generateFilesDownloadUrl;
119
+ /**
120
+ * Generates one or more temporary URLs for downloading a specific file in the Media Manager.
121
+ *
122
+ * To download different assets of the file, use the `assetKeys` parameter which generates a download URL for each asset.
123
+ * If no `assetKey` is specified, it defaults to `src`, which generates one download URL in the original file's format and quality.
124
+ *
125
+ * Use this endpoint to grant external clients access to a private media file. Use the `expirationInMinutes` parameter to set the URL expiration time, and the `expirationRedirectUrl` parameter to add a redirect url when the URL expires.
126
+ */
127
+ function generateFileDownloadUrl(payload) {
128
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_generateFileDownloadUrlRequest, {});
129
+ const { fromJSON: fromRes } = ambassador_1.serializer(_generateFileDownloadUrlResponse, {});
130
+ function __generateFileDownloadUrl({ host }) {
131
+ const serializedData = toReq(payload);
132
+ const metadata = {
133
+ method: 'POST',
134
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
135
+ protoPath: '/v1/files/{fileId}/generate-download-url',
136
+ data: serializedData,
137
+ host,
138
+ }),
139
+ data: serializedData,
140
+ transformResponse: fromRes,
141
+ };
142
+ return metadata;
143
+ }
144
+ __generateFileDownloadUrl.fromReq = fromReq;
145
+ return __generateFileDownloadUrl;
146
+ }
147
+ exports.generateFileDownloadUrl = generateFileDownloadUrl;
148
+ /** Gets information about a specific file in the Media Manager. */
149
+ function getFileDescriptor(payload) {
150
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_getFileDescriptorRequest, {});
151
+ const { fromJSON: fromRes } = ambassador_1.serializer(_getFileDescriptorResponse, {
152
+ _audio,
153
+ _audioV2,
154
+ _document,
155
+ _faceRecognition,
156
+ _fileDescriptor,
157
+ _fileMedia,
158
+ _image,
159
+ _imageMedia,
160
+ _videoResolution,
161
+ _videoV2,
162
+ });
163
+ function __getFileDescriptor({ host }) {
164
+ const serializedData = toReq(payload);
165
+ const metadata = {
166
+ method: 'GET',
167
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
168
+ protoPath: '/v1/files/{fileId}',
169
+ data: serializedData,
170
+ host,
171
+ }),
172
+ params: metro_runtime_1.toURLSearchParams(serializedData),
173
+ transformResponse: fromRes,
174
+ };
175
+ return metadata;
176
+ }
177
+ __getFileDescriptor.fromReq = fromReq;
178
+ return __getFileDescriptor;
179
+ }
180
+ exports.getFileDescriptor = getFileDescriptor;
181
+ /**
182
+ * Updates a file. <br />
183
+ *
184
+ * You can use the `parentFolderId` parameter to move a file from its current folder to a different folder.
185
+ */
186
+ function updateFile(payload) {
187
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_updateFileRequest, {});
188
+ const { fromJSON: fromRes } = ambassador_1.serializer(_updateFileResponse, {
189
+ _audio,
190
+ _audioV2,
191
+ _document,
192
+ _faceRecognition,
193
+ _fileDescriptor,
194
+ _fileMedia,
195
+ _image,
196
+ _imageMedia,
197
+ _videoResolution,
198
+ _videoV2,
199
+ });
200
+ function __updateFile({ host }) {
201
+ const serializedData = toReq(payload);
202
+ const metadata = {
203
+ method: 'PATCH',
204
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
205
+ protoPath: '/v1/files/{fileId}',
206
+ data: serializedData,
207
+ host,
208
+ }),
209
+ data: serializedData,
210
+ transformResponse: fromRes,
211
+ };
212
+ return metadata;
213
+ }
214
+ __updateFile.fromReq = fromReq;
215
+ return __updateFile;
216
+ }
217
+ exports.updateFile = updateFile;
218
+ /**
219
+ * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
220
+ *
221
+ * To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see [Using the Upload Url](#upload-api) article.
222
+ * >**Note:** Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, use the [Generate File Resumable Upload Url](https://dev.wix.com/api/rest/all-apis/site-media---media-manager-backend/files/generate-file-resumable-upload-url) instead. With the resumable upload URL, any interruption in the upload process pauses the file upload, and resumes the file upload process after the interruption.
223
+ */
224
+ function generateFileUploadUrl(payload) {
225
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_generateFileUploadUrlRequest, {});
226
+ const { fromJSON: fromRes } = ambassador_1.serializer(_generateFileUploadUrlResponse, {});
227
+ function __generateFileUploadUrl({ host }) {
228
+ const serializedData = toReq(payload);
229
+ const metadata = {
230
+ method: 'POST',
231
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
232
+ protoPath: '/v1/files/generate-upload-url',
233
+ data: serializedData,
234
+ host,
235
+ }),
236
+ data: serializedData,
237
+ transformResponse: fromRes,
238
+ };
239
+ return metadata;
240
+ }
241
+ __generateFileUploadUrl.fromReq = fromReq;
242
+ return __generateFileUploadUrl;
243
+ }
244
+ exports.generateFileUploadUrl = generateFileUploadUrl;
245
+ /**
246
+ * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
247
+ *
248
+ * With the resumable upload URL, any interruptions in the upload process pauses the file upload, and resumes the file upload process after the interruption. The resumable upload URL is also helpful when network connection is poor.
249
+ * To learn how external clients can use the generated upload URL in the response to upload large files to the Media Manager, see [Using the Resumable Upload Url](#upload-api) article.
250
+ */
251
+ function generateFileResumableUploadUrl(payload) {
252
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_generateFileResumableUploadUrlRequest, {});
253
+ const { fromJSON: fromRes } = ambassador_1.serializer(_generateFileResumableUploadUrlResponse, {});
254
+ function __generateFileResumableUploadUrl({ host }) {
255
+ const serializedData = toReq(payload);
256
+ const metadata = {
257
+ method: 'POST',
258
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
259
+ protoPath: '/v1/files/generate-resumable-upload-url',
260
+ data: serializedData,
261
+ host,
262
+ }),
263
+ data: serializedData,
264
+ transformResponse: fromRes,
265
+ };
266
+ return metadata;
267
+ }
268
+ __generateFileResumableUploadUrl.fromReq = fromReq;
269
+ return __generateFileResumableUploadUrl;
270
+ }
271
+ exports.generateFileResumableUploadUrl = generateFileResumableUploadUrl;
272
+ /**
273
+ * Imports a file to the Media Manager using an external url.
274
+ *
275
+ * Returns information about the imported file.
276
+ * Use the `parentFolderId` parameter to specify which folder you want the file to be imported to.
277
+ * If no folder is specified, the file is imported to the `media-root` folder.
278
+ *
279
+ * To import a file, you need to provide one of the following:
280
+ * 1. Pass the file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` parameter of the request. For example, 'image/png'.
281
+ * 2. Pass the file's name and extenstion. For example, 'my-image.png'.
282
+ * 3. If you don't know the file's extension or MIME type, pass its media type in the `mediaType` parameter of the request. For example, 'IMAGE'. Note that this option only works if the server hosting the media allows a 'HEAD' request.
283
+ *
284
+ * >**Note:** The `media` property isn't returned in the `files` response object.
285
+ */
286
+ function importFile(payload) {
287
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_importFileRequest, {});
288
+ const { fromJSON: fromRes } = ambassador_1.serializer(_importFileResponse, {
289
+ _audio,
290
+ _audioV2,
291
+ _document,
292
+ _faceRecognition,
293
+ _fileDescriptor,
294
+ _fileMedia,
295
+ _image,
296
+ _imageMedia,
297
+ _videoResolution,
298
+ _videoV2,
299
+ });
300
+ function __importFile({ host }) {
301
+ const serializedData = toReq(payload);
302
+ const metadata = {
303
+ method: 'POST',
304
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
305
+ protoPath: '/v1/files/import',
306
+ data: serializedData,
307
+ host,
308
+ }),
309
+ data: serializedData,
310
+ transformResponse: fromRes,
311
+ };
312
+ return metadata;
313
+ }
314
+ __importFile.fromReq = fromReq;
315
+ return __importFile;
316
+ }
317
+ exports.importFile = importFile;
318
+ /**
319
+ * Imports a bulk of files to the Media Manager using external urls. <br/>
320
+ *
321
+ * Returns information about the imported files. Use the `parentFolderId` parameter to specify in which folder you want each file to be imported to.
322
+ * If no folder is specified, the file is imported to the `media-root` folder.
323
+ *
324
+ * To import files, you need to provide one of the following:
325
+ * 1. Pass each file's [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` parameter of the request. For example, 'image/png'.
326
+ * 2. Pass each file's name and extenstion. For example, 'my-image.png'.
327
+ * 3. If you don't know a file's extension or MIME type, pass its media type in the `mediaType` parameter of the request. For example, 'IMAGE'. Note that this option only works if the server hosting the media allows a 'HEAD' request.
328
+ *
329
+ * >**Note:** The `media` property isn't returned in the `files` response object.
330
+ */
331
+ function bulkImportFiles(payload) {
332
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_bulkImportFilesRequest, { _importFileRequest });
333
+ const { fromJSON: fromRes } = ambassador_1.serializer(_bulkImportFilesResponse, {
334
+ _audio,
335
+ _audioV2,
336
+ _document,
337
+ _faceRecognition,
338
+ _fileDescriptor,
339
+ _fileMedia,
340
+ _image,
341
+ _imageMedia,
342
+ _videoResolution,
343
+ _videoV2,
344
+ });
345
+ function __bulkImportFiles({ host }) {
346
+ const serializedData = toReq(payload);
347
+ const metadata = {
348
+ method: 'POST',
349
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
350
+ protoPath: '/v1/bulk/files/import',
351
+ data: serializedData,
352
+ host,
353
+ }),
354
+ data: serializedData,
355
+ transformResponse: fromRes,
356
+ };
357
+ return metadata;
358
+ }
359
+ __bulkImportFiles.fromReq = fromReq;
360
+ return __bulkImportFiles;
361
+ }
362
+ exports.bulkImportFiles = bulkImportFiles;
363
+ /**
364
+ * Retrieves a list of files in the Media Manager.
365
+ *
366
+ * To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves the list of files in the root folder of the Media Manager.
367
+ */
368
+ function listFiles(payload) {
369
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_listFilesRequest, {});
370
+ const { fromJSON: fromRes } = ambassador_1.serializer(_listFilesResponse, {
371
+ _audio,
372
+ _audioV2,
373
+ _document,
374
+ _faceRecognition,
375
+ _fileDescriptor,
376
+ _fileMedia,
377
+ _image,
378
+ _imageMedia,
379
+ _videoResolution,
380
+ _videoV2,
381
+ });
382
+ function __listFiles({ host }) {
383
+ const serializedData = toReq(payload);
384
+ const metadata = {
385
+ method: 'GET',
386
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
387
+ protoPath: '/v1/files',
388
+ data: serializedData,
389
+ host,
390
+ }),
391
+ params: metro_runtime_1.toURLSearchParams(serializedData),
392
+ transformResponse: fromRes,
393
+ };
394
+ return metadata;
395
+ }
396
+ __listFiles.fromReq = fromReq;
397
+ return __listFiles;
398
+ }
399
+ exports.listFiles = listFiles;
400
+ /**
401
+ * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
402
+ *
403
+ * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
404
+ */
405
+ function searchFiles(payload) {
406
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_searchFilesRequest, {});
407
+ const { fromJSON: fromRes } = ambassador_1.serializer(_searchFilesResponse, {
408
+ _audio,
409
+ _audioV2,
410
+ _document,
411
+ _faceRecognition,
412
+ _fileDescriptor,
413
+ _fileMedia,
414
+ _image,
415
+ _imageMedia,
416
+ _videoResolution,
417
+ _videoV2,
418
+ });
419
+ function __searchFiles({ host }) {
420
+ const serializedData = toReq(payload);
421
+ const metadata = {
422
+ method: 'POST',
423
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
424
+ protoPath: '/v1/files/search',
425
+ data: serializedData,
426
+ host,
427
+ }),
428
+ data: serializedData,
429
+ transformResponse: fromRes,
430
+ };
431
+ return metadata;
432
+ }
433
+ __searchFiles.fromReq = fromReq;
434
+ return __searchFiles;
435
+ }
436
+ exports.searchFiles = searchFiles;
437
+ /**
438
+ * Generates a URL for streaming a specific video file in the Media Manager. <br/>
439
+ *
440
+ * To stream different assets of the file, use the `assetKeys` parameter which generates a video streaming URL for each asset. If no assetKey is specified, it defaults to `src`, which generates one video streaming URL in the original file's format and quality.
441
+ */
442
+ function generateVideoStreamingUrl(payload) {
443
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_generateVideoStreamingUrlRequest, {});
444
+ const { fromJSON: fromRes } = ambassador_1.serializer(_generateVideoStreamingUrlResponse, {});
445
+ function __generateVideoStreamingUrl({ host }) {
446
+ const serializedData = toReq(payload);
447
+ const metadata = {
448
+ method: 'POST',
449
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
450
+ protoPath: '/v1/files/video/{fileId}/generate-stream-url',
451
+ data: serializedData,
452
+ host,
453
+ }),
454
+ data: serializedData,
455
+ transformResponse: fromRes,
456
+ };
457
+ return metadata;
458
+ }
459
+ __generateVideoStreamingUrl.fromReq = fromReq;
460
+ return __generateVideoStreamingUrl;
461
+ }
462
+ exports.generateVideoStreamingUrl = generateVideoStreamingUrl;
463
+ /**
464
+ * Deletes the specified files from the Media Manager. <br/>
465
+ *
466
+ * The deleted files are moved to the Media Manager's trash bin (`TRASH-ROOT` folder) unless permanently deleted. To permanently delete files, pass the `permanent` parameter with the value `true`. Permanently deleting files isn't reversible, so make sure that these files aren't being used in a site or in any other way as the files will no longer be accessible.
467
+ *
468
+ * Note the following:
469
+ * * The specified files can be from different folders.
470
+ * * Moving multiple files at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
471
+ * * Attempting to delete files that are already in the trash bin doesn't result in an error.
472
+ * * If your site contains deleted media files, the deleted media files still appear on your site as the files are still in the Media Manager (in the trash bin).
473
+ * * You can use the [Bulk Restore Files From Trash Bin](bulk-restore-files-from-trash-bin) endpoint to restore files from the Media Manager's trash bin.
474
+ */
475
+ function bulkDeleteFiles(payload) {
476
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_bulkDeleteFilesRequest, {});
477
+ const { fromJSON: fromRes } = ambassador_1.serializer(_bulkDeleteFilesResponse, {});
478
+ function __bulkDeleteFiles({ host }) {
479
+ const serializedData = toReq(payload);
480
+ const metadata = {
481
+ method: 'DELETE',
482
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
483
+ protoPath: '/v1/bulk/files',
484
+ data: serializedData,
485
+ host,
486
+ }),
487
+ params: metro_runtime_1.toURLSearchParams(serializedData),
488
+ transformResponse: fromRes,
489
+ };
490
+ return metadata;
491
+ }
492
+ __bulkDeleteFiles.fromReq = fromReq;
493
+ return __bulkDeleteFiles;
494
+ }
495
+ exports.bulkDeleteFiles = bulkDeleteFiles;
496
+ /** Restores the specified files from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. */
497
+ function bulkRestoreFilesFromTrashBin(payload) {
498
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_bulkRestoreFilesFromTrashBinRequest, {});
499
+ const { fromJSON: fromRes } = ambassador_1.serializer(_bulkRestoreFilesFromTrashBinResponse, {});
500
+ function __bulkRestoreFilesFromTrashBin({ host }) {
501
+ const serializedData = toReq(payload);
502
+ const metadata = {
503
+ method: 'POST',
504
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
505
+ protoPath: '/v1/bulk/trash-bin/files/restore',
506
+ data: serializedData,
507
+ host,
508
+ }),
509
+ data: serializedData,
510
+ transformResponse: fromRes,
511
+ };
512
+ return metadata;
513
+ }
514
+ __bulkRestoreFilesFromTrashBin.fromReq = fromReq;
515
+ return __bulkRestoreFilesFromTrashBin;
516
+ }
517
+ exports.bulkRestoreFilesFromTrashBin = bulkRestoreFilesFromTrashBin;
518
+ /**
519
+ * Retrieves a list of files in the Media Manager's trash bin. <br/>
520
+ *
521
+ * >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
522
+ */
523
+ function listDeletedFiles(payload) {
524
+ const { toJSON: toReq, fromJSON: fromReq } = ambassador_1.serializer(_listDeletedFilesRequest, {});
525
+ const { fromJSON: fromRes } = ambassador_1.serializer(_listDeletedFilesResponse, {
526
+ _audio,
527
+ _audioV2,
528
+ _document,
529
+ _faceRecognition,
530
+ _fileDescriptor,
531
+ _fileMedia,
532
+ _image,
533
+ _imageMedia,
534
+ _videoResolution,
535
+ _videoV2,
536
+ });
537
+ function __listDeletedFiles({ host }) {
538
+ const serializedData = toReq(payload);
539
+ const metadata = {
540
+ method: 'GET',
541
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
542
+ protoPath: '/v1/trash-bin/files',
543
+ data: serializedData,
544
+ host,
545
+ }),
546
+ params: metro_runtime_1.toURLSearchParams(serializedData),
547
+ transformResponse: fromRes,
548
+ };
549
+ return metadata;
550
+ }
551
+ __listDeletedFiles.fromReq = fromReq;
552
+ return __listDeletedFiles;
553
+ }
554
+ exports.listDeletedFiles = listDeletedFiles;
555
+ //# sourceMappingURL=media-site-media-v1-file-descriptor.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-site-media-v1-file-descriptor.http.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.http.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AACvD,8DAA2D;AAC3D,sDAAgD;AAkChD,MAAM,MAAM,GAAG,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,CAAC;AAClE,MAAM,QAAQ,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACtC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AACnC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC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BulkDeleteFilesOptions, BulkImportFilesOptions, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions, UpdateFileOptions } from './media-site-media-v1-file-descriptor.universal';
3
+ export declare function generateFilesDownloadUrl(httpClient: HttpClient): (fileIds: string[]) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFilesDownloadUrlResponse>;
4
+ export declare function generateFileDownloadUrl(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFileDownloadUrlResponse>;
5
+ export declare function getFileDescriptor(httpClient: HttpClient): (fileId: string) => Promise<import("./media-site-media-v1-file-descriptor.universal").GetFileDescriptorResponse>;
6
+ export declare function updateFile(httpClient: HttpClient): (fileId: string, options?: UpdateFileOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").UpdateFileResponse>;
7
+ export declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFileUploadUrlResponse>;
8
+ export declare function generateFileResumableUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFileResumableUploadUrlResponse>;
9
+ export declare function importFile(httpClient: HttpClient): (url: string, options?: ImportFileOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").ImportFileResponse>;
10
+ export declare function bulkImportFiles(httpClient: HttpClient): (options?: BulkImportFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").BulkImportFilesResponse>;
11
+ export declare function listFiles(httpClient: HttpClient): (options?: ListFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").ListFilesResponse>;
12
+ export declare function searchFiles(httpClient: HttpClient): (options?: SearchFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").SearchFilesResponse>;
13
+ export declare function generateVideoStreamingUrl(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateVideoStreamingUrlResponse>;
14
+ export declare function bulkDeleteFiles(httpClient: HttpClient): (options?: BulkDeleteFilesOptions | undefined) => Promise<void>;
15
+ export declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
16
+ export declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").ListDeletedFilesResponse>;
17
+ export { MediaType, OperationStatus, State, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor.universal';
18
+ export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, FileReady, ExternalInfo, FileFailed, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, GetFileDescriptorRequest, GetFileDescriptorResponse, UpdateFileRequest, UpdateFileResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, GenerateFileDownloadUrlOptions, UpdateFileOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFilesOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor.universal';