@wix/media 1.0.95 → 1.0.97

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.95",
3
+ "version": "1.0.97",
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.32",
23
+ "@wix/media_files": "1.0.34",
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": "e1f6e363f5ca2708b51f7deabe220d45418fb0fd4790337ee78673e1"
49
+ "falconPackageHash": "e8e15791e47dc59a99b8b5a2a939f44857c60de1a0efcafabc10bc10"
50
50
  }
@@ -1843,7 +1843,12 @@ interface FileFailed {
1843
1843
  externalInfo?: ExternalInfo;
1844
1844
  }
1845
1845
  interface GenerateFilesDownloadUrlRequest {
1846
- /** IDs or Wix media URLs of the files to download. */
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 about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
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
- /** File ID, or the file's Wix media URL. */
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 about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
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,14 @@ interface DownloadUrl {
1905
1915
  assetKey?: string;
1906
1916
  }
1907
1917
  interface GetFileDescriptorRequest {
1908
- /** File ID, or the file's Wix media URL. */
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 about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
1923
+ *
1924
+ * 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`.
1925
+ */
1909
1926
  fileId: string;
1910
1927
  }
1911
1928
  interface GetFileDescriptorResponse {
@@ -1913,7 +1930,12 @@ interface GetFileDescriptorResponse {
1913
1930
  file?: FileDescriptor;
1914
1931
  }
1915
1932
  interface GetFileDescriptorsRequest {
1916
- /** File IDs, or the files' Wix media URLs. */
1933
+ /**
1934
+ * File IDs.
1935
+ *
1936
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1937
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
1938
+ */
1917
1939
  fileIds: string[];
1918
1940
  }
1919
1941
  interface GetFileDescriptorsResponse {
@@ -2217,7 +2239,12 @@ interface SearchFilesResponse {
2217
2239
  nextCursor?: PagingMetadataV2$1;
2218
2240
  }
2219
2241
  interface GenerateVideoStreamingUrlRequest {
2220
- /** File ID, or the file's Wix media URL. */
2242
+ /**
2243
+ * File ID.
2244
+ *
2245
+ * 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`.
2246
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
2247
+ */
2221
2248
  fileId: string;
2222
2249
  /** Video stream format. */
2223
2250
  format?: StreamFormat;
@@ -2238,7 +2265,12 @@ interface GenerateWebSocketTokenResponse {
2238
2265
  token?: string;
2239
2266
  }
2240
2267
  interface BulkDeleteFilesRequest {
2241
- /** IDs or Wix media URLs of the files to move to the Media Manager's trash bin. */
2268
+ /**
2269
+ * IDs of the files to move to the Media Manager's trash bin.
2270
+ *
2271
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2272
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
2273
+ */
2242
2274
  fileIds: string[];
2243
2275
  /**
2244
2276
  * Whether the specified files are permanently deleted. <br />
@@ -2249,7 +2281,12 @@ interface BulkDeleteFilesRequest {
2249
2281
  interface BulkDeleteFilesResponse {
2250
2282
  }
2251
2283
  interface BulkRestoreFilesFromTrashBinRequest {
2252
- /** IDs or Wix media URLs of the files to restore from the Media Manager's trash bin. */
2284
+ /**
2285
+ * IDs of the files to restore from the Media Manager's trash bin.
2286
+ *
2287
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2288
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
2289
+ */
2253
2290
  fileIds: string[];
2254
2291
  }
2255
2292
  interface BulkRestoreFilesFromTrashBinResponse {
@@ -2287,7 +2324,12 @@ interface ListDeletedFilesResponse {
2287
2324
  nextCursor?: PagingMetadataV2$1;
2288
2325
  }
2289
2326
  interface UpdateFileRequest {
2290
- /** ID or Wix media URL of the file to update. */
2327
+ /**
2328
+ * ID of the file to update.
2329
+ *
2330
+ * 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`.
2331
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
2332
+ */
2291
2333
  fileId?: string;
2292
2334
  /** File name that appears in the Media Manager. */
2293
2335
  displayName?: string | null;
@@ -2143,7 +2143,12 @@ interface ExternalInfo$1 {
2143
2143
  externalIds?: string[];
2144
2144
  }
2145
2145
  interface GenerateFilesDownloadUrlRequest$1 {
2146
- /** IDs or Wix media URLs of the files to download. */
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
- /** File ID, or the file's Wix media URL. */
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
- /** File ID, or the file's Wix media URL. */
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
- /** File IDs, or the files' Wix media URLs. */
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](/media/media-manager/files/descriptor-file-ready) and [Descriptor File Failed](/media/media-manager/files/descriptor-file-failed) webhooks. See [Importing Files](/media/media-manager/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
- /** File ID, or the file's Wix media URL. */
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
- /** IDs or Wix media URLs of the files to move to the Media Manager's trash bin. */
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
- /** IDs or Wix media URLs of the files to restore from the Media Manager's trash bin. */
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
- /** IDs or Wix media URLs of the files to download. */
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 about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
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
- /** File ID, or the file's Wix media URL. */
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 about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
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,14 @@ interface DownloadUrl {
4022
4069
  assetKey?: string;
4023
4070
  }
4024
4071
  interface GetFileDescriptorRequest {
4025
- /** File ID, or the file's Wix media URL. */
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 about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
4077
+ *
4078
+ * 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`.
4079
+ */
4026
4080
  fileId: string;
4027
4081
  }
4028
4082
  interface GetFileDescriptorResponse {
@@ -4030,7 +4084,12 @@ interface GetFileDescriptorResponse {
4030
4084
  file?: FileDescriptor;
4031
4085
  }
4032
4086
  interface GetFileDescriptorsRequest {
4033
- /** File IDs, or the files' Wix media URLs. */
4087
+ /**
4088
+ * File IDs.
4089
+ *
4090
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
4091
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
4092
+ */
4034
4093
  fileIds: string[];
4035
4094
  }
4036
4095
  interface GetFileDescriptorsResponse {
@@ -4334,7 +4393,12 @@ interface SearchFilesResponse {
4334
4393
  nextCursor?: PagingMetadataV2$2;
4335
4394
  }
4336
4395
  interface GenerateVideoStreamingUrlRequest {
4337
- /** File ID, or the file's Wix media URL. */
4396
+ /**
4397
+ * File ID.
4398
+ *
4399
+ * 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`.
4400
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
4401
+ */
4338
4402
  fileId: string;
4339
4403
  /** Video stream format. */
4340
4404
  format?: StreamFormat;
@@ -4349,7 +4413,12 @@ interface GenerateVideoStreamingUrlResponse {
4349
4413
  downloadUrl?: DownloadUrl;
4350
4414
  }
4351
4415
  interface BulkDeleteFilesRequest {
4352
- /** IDs or Wix media URLs of the files to move to the Media Manager's trash bin. */
4416
+ /**
4417
+ * IDs of the files to move to the Media Manager's trash bin.
4418
+ *
4419
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
4420
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
4421
+ */
4353
4422
  fileIds: string[];
4354
4423
  /**
4355
4424
  * Whether the specified files are permanently deleted. <br />
@@ -4360,7 +4429,12 @@ interface BulkDeleteFilesRequest {
4360
4429
  interface BulkDeleteFilesResponse {
4361
4430
  }
4362
4431
  interface BulkRestoreFilesFromTrashBinRequest {
4363
- /** IDs or Wix media URLs of the files to restore from the Media Manager's trash bin. */
4432
+ /**
4433
+ * IDs of the files to restore from the Media Manager's trash bin.
4434
+ *
4435
+ * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
4436
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/file-id#file-id-as-a-parameter).
4437
+ */
4364
4438
  fileIds: string[];
4365
4439
  }
4366
4440
  interface BulkRestoreFilesFromTrashBinResponse {