@wix/media 1.0.96 → 1.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.98",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/media_enterprise-media-categories": "1.0.23",
|
|
22
22
|
"@wix/media_enterprise-media-items": "1.0.26",
|
|
23
|
-
"@wix/media_files": "1.0.
|
|
23
|
+
"@wix/media_files": "1.0.35",
|
|
24
24
|
"@wix/media_folders": "1.0.26"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "f9a34a3b4dc15ab560164024784cf13fb08d6ce308cc9bb822e2b18e"
|
|
50
50
|
}
|
|
@@ -1843,7 +1843,12 @@ interface FileFailed {
|
|
|
1843
1843
|
externalInfo?: ExternalInfo;
|
|
1844
1844
|
}
|
|
1845
1845
|
interface GenerateFilesDownloadUrlRequest {
|
|
1846
|
-
/**
|
|
1846
|
+
/**
|
|
1847
|
+
* IDs of the files to download.
|
|
1848
|
+
*
|
|
1849
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1850
|
+
* Learn more in the File and Folder IDs article.
|
|
1851
|
+
*/
|
|
1847
1852
|
fileIds: string[];
|
|
1848
1853
|
}
|
|
1849
1854
|
interface GenerateFilesDownloadUrlResponse {
|
|
@@ -1851,7 +1856,12 @@ interface GenerateFilesDownloadUrlResponse {
|
|
|
1851
1856
|
downloadUrl?: string;
|
|
1852
1857
|
}
|
|
1853
1858
|
interface GenerateFileDownloadUrlRequest {
|
|
1854
|
-
/**
|
|
1859
|
+
/**
|
|
1860
|
+
* File ID.
|
|
1861
|
+
*
|
|
1862
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1863
|
+
* Learn more in the File and Folder IDs article.
|
|
1864
|
+
*/
|
|
1855
1865
|
fileId: string;
|
|
1856
1866
|
/**
|
|
1857
1867
|
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
@@ -1905,7 +1915,12 @@ interface DownloadUrl {
|
|
|
1905
1915
|
assetKey?: string;
|
|
1906
1916
|
}
|
|
1907
1917
|
interface GetFileDescriptorRequest {
|
|
1908
|
-
/**
|
|
1918
|
+
/**
|
|
1919
|
+
* File ID.
|
|
1920
|
+
*
|
|
1921
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1922
|
+
* Learn more in the File and Folder IDs article.
|
|
1923
|
+
*/
|
|
1909
1924
|
fileId: string;
|
|
1910
1925
|
}
|
|
1911
1926
|
interface GetFileDescriptorResponse {
|
|
@@ -1913,7 +1928,12 @@ interface GetFileDescriptorResponse {
|
|
|
1913
1928
|
file?: FileDescriptor;
|
|
1914
1929
|
}
|
|
1915
1930
|
interface GetFileDescriptorsRequest {
|
|
1916
|
-
/**
|
|
1931
|
+
/**
|
|
1932
|
+
* File IDs.
|
|
1933
|
+
*
|
|
1934
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
1935
|
+
* Learn more in the File and Folder IDs article.
|
|
1936
|
+
*/
|
|
1917
1937
|
fileIds: string[];
|
|
1918
1938
|
}
|
|
1919
1939
|
interface GetFileDescriptorsResponse {
|
|
@@ -2217,7 +2237,12 @@ interface SearchFilesResponse {
|
|
|
2217
2237
|
nextCursor?: PagingMetadataV2$1;
|
|
2218
2238
|
}
|
|
2219
2239
|
interface GenerateVideoStreamingUrlRequest {
|
|
2220
|
-
/**
|
|
2240
|
+
/**
|
|
2241
|
+
* File ID.
|
|
2242
|
+
*
|
|
2243
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2244
|
+
* Learn more in the File and Folder IDs article.
|
|
2245
|
+
*/
|
|
2221
2246
|
fileId: string;
|
|
2222
2247
|
/** Video stream format. */
|
|
2223
2248
|
format?: StreamFormat;
|
|
@@ -2238,7 +2263,12 @@ interface GenerateWebSocketTokenResponse {
|
|
|
2238
2263
|
token?: string;
|
|
2239
2264
|
}
|
|
2240
2265
|
interface BulkDeleteFilesRequest {
|
|
2241
|
-
/**
|
|
2266
|
+
/**
|
|
2267
|
+
* IDs of the files to move to the Media Manager's trash bin.
|
|
2268
|
+
*
|
|
2269
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2270
|
+
* Learn more in the File and Folder IDs article.
|
|
2271
|
+
*/
|
|
2242
2272
|
fileIds: string[];
|
|
2243
2273
|
/**
|
|
2244
2274
|
* Whether the specified files are permanently deleted. <br />
|
|
@@ -2249,7 +2279,12 @@ interface BulkDeleteFilesRequest {
|
|
|
2249
2279
|
interface BulkDeleteFilesResponse {
|
|
2250
2280
|
}
|
|
2251
2281
|
interface BulkRestoreFilesFromTrashBinRequest {
|
|
2252
|
-
/**
|
|
2282
|
+
/**
|
|
2283
|
+
* IDs of the files to restore from the Media Manager's trash bin.
|
|
2284
|
+
*
|
|
2285
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2286
|
+
* Learn more in the File and Folder IDs article.
|
|
2287
|
+
*/
|
|
2253
2288
|
fileIds: string[];
|
|
2254
2289
|
}
|
|
2255
2290
|
interface BulkRestoreFilesFromTrashBinResponse {
|
|
@@ -2287,7 +2322,12 @@ interface ListDeletedFilesResponse {
|
|
|
2287
2322
|
nextCursor?: PagingMetadataV2$1;
|
|
2288
2323
|
}
|
|
2289
2324
|
interface UpdateFileRequest {
|
|
2290
|
-
/**
|
|
2325
|
+
/**
|
|
2326
|
+
* ID of the file to update.
|
|
2327
|
+
*
|
|
2328
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2329
|
+
* Learn more in the File and Folder IDs article.
|
|
2330
|
+
*/
|
|
2291
2331
|
fileId?: string;
|
|
2292
2332
|
/** File name that appears in the Media Manager. */
|
|
2293
2333
|
displayName?: string | null;
|
|
@@ -2143,7 +2143,12 @@ interface ExternalInfo$1 {
|
|
|
2143
2143
|
externalIds?: string[];
|
|
2144
2144
|
}
|
|
2145
2145
|
interface GenerateFilesDownloadUrlRequest$1 {
|
|
2146
|
-
/**
|
|
2146
|
+
/**
|
|
2147
|
+
* IDs of the files to download.
|
|
2148
|
+
*
|
|
2149
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2150
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2151
|
+
*/
|
|
2147
2152
|
fileIds: string[];
|
|
2148
2153
|
}
|
|
2149
2154
|
interface GenerateFilesDownloadUrlResponse$1 {
|
|
@@ -2151,7 +2156,12 @@ interface GenerateFilesDownloadUrlResponse$1 {
|
|
|
2151
2156
|
downloadUrl?: string;
|
|
2152
2157
|
}
|
|
2153
2158
|
interface GenerateFileDownloadUrlRequest$1 {
|
|
2154
|
-
/**
|
|
2159
|
+
/**
|
|
2160
|
+
* File ID.
|
|
2161
|
+
*
|
|
2162
|
+
* You can also pass the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
|
|
2163
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2164
|
+
*/
|
|
2155
2165
|
fileId: string;
|
|
2156
2166
|
/**
|
|
2157
2167
|
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
@@ -2205,7 +2215,14 @@ interface DownloadUrl$1 {
|
|
|
2205
2215
|
assetKey?: string;
|
|
2206
2216
|
}
|
|
2207
2217
|
interface GetFileDescriptorRequest$1 {
|
|
2208
|
-
/**
|
|
2218
|
+
/**
|
|
2219
|
+
* File ID.
|
|
2220
|
+
*
|
|
2221
|
+
* You can also pass the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
|
|
2222
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2223
|
+
*
|
|
2224
|
+
* Note that you must encode the Wix media URL to pass it as a query param because it contains special characters. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032` becomes `wix%3Aimage%3A%2F%2Fv1%2F0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg%2Fleon.jpg%23originWidth%3D3024%26originHeight%3D4032`.
|
|
2225
|
+
*/
|
|
2209
2226
|
fileId: string;
|
|
2210
2227
|
}
|
|
2211
2228
|
interface GetFileDescriptorResponse$1 {
|
|
@@ -2213,7 +2230,12 @@ interface GetFileDescriptorResponse$1 {
|
|
|
2213
2230
|
file?: FileDescriptor$1;
|
|
2214
2231
|
}
|
|
2215
2232
|
interface GetFileDescriptorsRequest$1 {
|
|
2216
|
-
/**
|
|
2233
|
+
/**
|
|
2234
|
+
* File IDs.
|
|
2235
|
+
*
|
|
2236
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2237
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2238
|
+
*/
|
|
2217
2239
|
fileIds: string[];
|
|
2218
2240
|
}
|
|
2219
2241
|
interface GetFileDescriptorsResponse$1 {
|
|
@@ -2331,7 +2353,7 @@ interface ImportFileRequest$1 {
|
|
|
2331
2353
|
labels?: string[] | null;
|
|
2332
2354
|
/** File mime type. */
|
|
2333
2355
|
mimeType?: string;
|
|
2334
|
-
/** Information sent to the [Descriptor File Ready](/files/descriptor-file-ready) and [Descriptor File Failed](/files/descriptor-file-failed) webhooks. See [Importing Files](/importing-files#using-externalinfo) to learn more. */
|
|
2356
|
+
/** Information sent to the [Descriptor File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/descriptor-file-ready) and [Descriptor File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/descriptor-file-failed) webhooks. See [Importing Files](/importing-files#using-externalinfo) to learn more. */
|
|
2335
2357
|
externalInfo?: ExternalInfo$1;
|
|
2336
2358
|
/** Optional parameters that should be sent with the external URL. */
|
|
2337
2359
|
urlParams?: Record<string, any> | null;
|
|
@@ -2512,7 +2534,12 @@ interface SearchFilesResponse$1 {
|
|
|
2512
2534
|
nextCursor?: PagingMetadataV2$3;
|
|
2513
2535
|
}
|
|
2514
2536
|
interface GenerateVideoStreamingUrlRequest$1 {
|
|
2515
|
-
/**
|
|
2537
|
+
/**
|
|
2538
|
+
* File ID.
|
|
2539
|
+
*
|
|
2540
|
+
* You can also pass the file's Wix media URL. For example, `wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032`.
|
|
2541
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2542
|
+
*/
|
|
2516
2543
|
fileId: string;
|
|
2517
2544
|
/** Video stream format. */
|
|
2518
2545
|
format?: StreamFormat$1;
|
|
@@ -2527,7 +2554,12 @@ interface GenerateVideoStreamingUrlResponse$1 {
|
|
|
2527
2554
|
downloadUrl?: DownloadUrl$1;
|
|
2528
2555
|
}
|
|
2529
2556
|
interface BulkDeleteFilesRequest$1 {
|
|
2530
|
-
/**
|
|
2557
|
+
/**
|
|
2558
|
+
* IDs of the files to move to the Media Manager's trash bin.
|
|
2559
|
+
*
|
|
2560
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2561
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2562
|
+
*/
|
|
2531
2563
|
fileIds: string[];
|
|
2532
2564
|
/**
|
|
2533
2565
|
* Whether the specified files are permanently deleted. <br />
|
|
@@ -2538,7 +2570,12 @@ interface BulkDeleteFilesRequest$1 {
|
|
|
2538
2570
|
interface BulkDeleteFilesResponse$1 {
|
|
2539
2571
|
}
|
|
2540
2572
|
interface BulkRestoreFilesFromTrashBinRequest$1 {
|
|
2541
|
-
/**
|
|
2573
|
+
/**
|
|
2574
|
+
* IDs of the files to restore from the Media Manager's trash bin.
|
|
2575
|
+
*
|
|
2576
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
2577
|
+
* Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
|
|
2578
|
+
*/
|
|
2542
2579
|
fileIds: string[];
|
|
2543
2580
|
}
|
|
2544
2581
|
interface BulkRestoreFilesFromTrashBinResponse$1 {
|
|
@@ -3960,7 +3997,12 @@ interface ExternalInfo {
|
|
|
3960
3997
|
externalIds?: string[];
|
|
3961
3998
|
}
|
|
3962
3999
|
interface GenerateFilesDownloadUrlRequest {
|
|
3963
|
-
/**
|
|
4000
|
+
/**
|
|
4001
|
+
* IDs of the files to download.
|
|
4002
|
+
*
|
|
4003
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4004
|
+
* Learn more in the File and Folder IDs article.
|
|
4005
|
+
*/
|
|
3964
4006
|
fileIds: string[];
|
|
3965
4007
|
}
|
|
3966
4008
|
interface GenerateFilesDownloadUrlResponse {
|
|
@@ -3968,7 +4010,12 @@ interface GenerateFilesDownloadUrlResponse {
|
|
|
3968
4010
|
downloadUrl?: string;
|
|
3969
4011
|
}
|
|
3970
4012
|
interface GenerateFileDownloadUrlRequest {
|
|
3971
|
-
/**
|
|
4013
|
+
/**
|
|
4014
|
+
* File ID.
|
|
4015
|
+
*
|
|
4016
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4017
|
+
* Learn more in the File and Folder IDs article.
|
|
4018
|
+
*/
|
|
3972
4019
|
fileId: string;
|
|
3973
4020
|
/**
|
|
3974
4021
|
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
@@ -4022,7 +4069,12 @@ interface DownloadUrl {
|
|
|
4022
4069
|
assetKey?: string;
|
|
4023
4070
|
}
|
|
4024
4071
|
interface GetFileDescriptorRequest {
|
|
4025
|
-
/**
|
|
4072
|
+
/**
|
|
4073
|
+
* File ID.
|
|
4074
|
+
*
|
|
4075
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4076
|
+
* Learn more in the File and Folder IDs article.
|
|
4077
|
+
*/
|
|
4026
4078
|
fileId: string;
|
|
4027
4079
|
}
|
|
4028
4080
|
interface GetFileDescriptorResponse {
|
|
@@ -4030,7 +4082,12 @@ interface GetFileDescriptorResponse {
|
|
|
4030
4082
|
file?: FileDescriptor;
|
|
4031
4083
|
}
|
|
4032
4084
|
interface GetFileDescriptorsRequest {
|
|
4033
|
-
/**
|
|
4085
|
+
/**
|
|
4086
|
+
* File IDs.
|
|
4087
|
+
*
|
|
4088
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4089
|
+
* Learn more in the File and Folder IDs article.
|
|
4090
|
+
*/
|
|
4034
4091
|
fileIds: string[];
|
|
4035
4092
|
}
|
|
4036
4093
|
interface GetFileDescriptorsResponse {
|
|
@@ -4334,7 +4391,12 @@ interface SearchFilesResponse {
|
|
|
4334
4391
|
nextCursor?: PagingMetadataV2$2;
|
|
4335
4392
|
}
|
|
4336
4393
|
interface GenerateVideoStreamingUrlRequest {
|
|
4337
|
-
/**
|
|
4394
|
+
/**
|
|
4395
|
+
* File ID.
|
|
4396
|
+
*
|
|
4397
|
+
* You can also pass the file's Wix media URL. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4398
|
+
* Learn more in the File and Folder IDs article.
|
|
4399
|
+
*/
|
|
4338
4400
|
fileId: string;
|
|
4339
4401
|
/** Video stream format. */
|
|
4340
4402
|
format?: StreamFormat;
|
|
@@ -4349,7 +4411,12 @@ interface GenerateVideoStreamingUrlResponse {
|
|
|
4349
4411
|
downloadUrl?: DownloadUrl;
|
|
4350
4412
|
}
|
|
4351
4413
|
interface BulkDeleteFilesRequest {
|
|
4352
|
-
/**
|
|
4414
|
+
/**
|
|
4415
|
+
* IDs of the files to move to the Media Manager's trash bin.
|
|
4416
|
+
*
|
|
4417
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4418
|
+
* Learn more in the File and Folder IDs article.
|
|
4419
|
+
*/
|
|
4353
4420
|
fileIds: string[];
|
|
4354
4421
|
/**
|
|
4355
4422
|
* Whether the specified files are permanently deleted. <br />
|
|
@@ -4360,7 +4427,12 @@ interface BulkDeleteFilesRequest {
|
|
|
4360
4427
|
interface BulkDeleteFilesResponse {
|
|
4361
4428
|
}
|
|
4362
4429
|
interface BulkRestoreFilesFromTrashBinRequest {
|
|
4363
|
-
/**
|
|
4430
|
+
/**
|
|
4431
|
+
* IDs of the files to restore from the Media Manager's trash bin.
|
|
4432
|
+
*
|
|
4433
|
+
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
4434
|
+
* Learn more in the File and Folder IDs article.
|
|
4435
|
+
*/
|
|
4364
4436
|
fileIds: string[];
|
|
4365
4437
|
}
|
|
4366
4438
|
interface BulkRestoreFilesFromTrashBinResponse {
|