@wix/auto_sdk_media_files 1.0.76 → 1.0.77

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.
@@ -609,7 +609,7 @@ interface GenerateFilesDownloadUrlRequest {
609
609
  * IDs of the files to download.
610
610
  *
611
611
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
612
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
612
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
613
613
  * @minSize 1
614
614
  * @maxSize 1000
615
615
  * @maxLength 1000
@@ -628,7 +628,7 @@ interface GenerateFileDownloadUrlRequest {
628
628
  * File ID.
629
629
  *
630
630
  * 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`.
631
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
631
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
632
632
  * @maxLength 1000
633
633
  */
634
634
  fileId: string;
@@ -717,7 +717,7 @@ interface GetFileDescriptorRequest {
717
717
  * File ID.
718
718
  *
719
719
  * 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`.
720
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
720
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
721
721
  *
722
722
  * 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`.
723
723
  * @maxLength 1000
@@ -733,7 +733,7 @@ interface GetFileDescriptorsRequest {
733
733
  * File IDs.
734
734
  *
735
735
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
736
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
736
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
737
737
  * @minSize 1
738
738
  * @maxSize 100
739
739
  * @maxLength 1000
@@ -819,7 +819,7 @@ interface GenerateFileUploadUrlRequest {
819
819
  * @maxLength 100
820
820
  */
821
821
  parentFolderId?: string | null;
822
- /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
822
+ /** Whether the file will be public or private. Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
823
823
  private?: boolean | null;
824
824
  /**
825
825
  * 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.
@@ -930,7 +930,7 @@ interface GenerateFileResumableUploadUrlRequest {
930
930
  * @maxLength 100
931
931
  */
932
932
  parentFolderId?: string | null;
933
- /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
933
+ /** Whether the file will be public or private. Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
934
934
  private?: boolean | null;
935
935
  /**
936
936
  * 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.
@@ -993,7 +993,7 @@ interface ImportFileRequest {
993
993
  * @maxLength 100
994
994
  */
995
995
  parentFolderId?: string | null;
996
- /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
996
+ /** Whether the file will be public or private. Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
997
997
  private?: boolean | null;
998
998
  /**
999
999
  * 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.
@@ -1206,7 +1206,7 @@ interface SearchFilesRequest {
1206
1206
  * + `false`: Returns only public files.
1207
1207
  * + `undefined`: Returns public and private files.
1208
1208
  *
1209
- * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).
1209
+ * Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files).
1210
1210
  */
1211
1211
  private?: boolean | null;
1212
1212
  /**
@@ -1249,7 +1249,7 @@ interface GenerateVideoStreamingUrlRequest {
1249
1249
  * File ID.
1250
1250
  *
1251
1251
  * 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`.
1252
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1252
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1253
1253
  * @maxLength 1000
1254
1254
  */
1255
1255
  fileId: string;
@@ -1281,7 +1281,7 @@ interface BulkDeleteFilesRequest {
1281
1281
  * IDs of the files to move to the Media Manager's trash bin.
1282
1282
  *
1283
1283
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1284
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1284
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1285
1285
  * @maxSize 1000
1286
1286
  * @maxLength 1000
1287
1287
  */
@@ -1299,7 +1299,7 @@ interface BulkRestoreFilesFromTrashBinRequest {
1299
1299
  * IDs of the files to restore from the Media Manager's trash bin.
1300
1300
  *
1301
1301
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1302
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1302
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1303
1303
  * @maxSize 1000
1304
1304
  * @maxLength 1000
1305
1305
  */
@@ -1319,7 +1319,7 @@ interface ListDeletedFilesRequest {
1319
1319
  * @maxSize 30
1320
1320
  */
1321
1321
  mediaTypes?: MediaTypeWithLiterals[];
1322
- /** \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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
1322
+ /** \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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
1323
1323
  private?: boolean | null;
1324
1324
  /**
1325
1325
  * Field name and order to sort by. One of: <br />
@@ -1346,7 +1346,7 @@ interface BulkPublishDraftFilesRequest {
1346
1346
  * IDs of the draft files to be published.
1347
1347
  *
1348
1348
  * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
1349
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1349
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1350
1350
  * @maxSize 100
1351
1351
  * @maxLength 1000
1352
1352
  */
@@ -1394,7 +1394,7 @@ interface UpdateFileRequest {
1394
1394
  * ID of the file to update.
1395
1395
  *
1396
1396
  * 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`.
1397
- * Learn more about the [file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1397
+ * Learn more [about the file ID parameter](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/file-id).
1398
1398
  * @maxLength 1000
1399
1399
  */
1400
1400
  fileId?: string;
@@ -1421,7 +1421,12 @@ interface UpdateFileResponse {
1421
1421
  file?: FileDescriptor;
1422
1422
  }
1423
1423
  interface QueryFileDescriptorsRequest {
1424
- /** Query object */
1424
+ /**
1425
+ * Query options, including filter, sort, and cursor paging.
1426
+ *
1427
+ * See [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) and
1428
+ * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging) for more information.
1429
+ */
1425
1430
  query?: CursorQuery;
1426
1431
  }
1427
1432
  interface CursorQuery extends CursorQueryPagingMethodOneOf {
@@ -1460,7 +1465,11 @@ interface Sorting {
1460
1465
  * @maxLength 512
1461
1466
  */
1462
1467
  fieldName?: string;
1463
- /** Sort order. */
1468
+ /**
1469
+ * Sort order. Use `ASC` for ascending order or `DESC` for descending order.
1470
+ *
1471
+ * Default: `ASC`
1472
+ */
1464
1473
  order?: SortOrderWithLiterals;
1465
1474
  }
1466
1475
  declare enum SortOrder {
@@ -1471,11 +1480,11 @@ declare enum SortOrder {
1471
1480
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1472
1481
  interface QueryFileDescriptorsResponse {
1473
1482
  /**
1474
- * The retrieved files that match the query
1483
+ * Retrieved files that match the query.
1475
1484
  * @maxSize 200
1476
1485
  */
1477
1486
  files?: FileDescriptor[];
1478
- /** The metadata for the page including the next cursor if one exist */
1487
+ /** Paging metadata, including the cursors for the next and previous pages. */
1479
1488
  pagingMetadata?: PagingMetadataV2;
1480
1489
  }
1481
1490
  interface ListRecentItemsRequest {
@@ -1963,9 +1972,9 @@ declare function updateFileDescriptor(file: NonNullablePaths<FileDescriptor, `_i
1963
1972
  /**
1964
1973
  * Generates an upload URL to allow external clients to upload a file to the Media Manager. <br/>
1965
1974
  *
1966
- * To learn how external clients can use the generated upload URL in the response to upload a file to the Media Manager, see the [Upload API](https://dev.wix.com/docs/rest/assets/media/media-manager/files/upload-api).
1975
+ * Learn how to use the generated upload URL to [upload a file to the Media Manager](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/upload-api).
1967
1976
  * > **Notes:**
1968
- * > - When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).
1977
+ * > - When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files).
1969
1978
  * > - Any interruption in the upload process stops the file upload. For files larger than 10MB, or when network connection is poor, call 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.
1970
1979
  * @param mimeType - File mime type.
1971
1980
  * @public
@@ -1999,7 +2008,7 @@ interface GenerateFileUploadUrlOptions {
1999
2008
  * @maxLength 100
2000
2009
  */
2001
2010
  parentFolderId?: string | null;
2002
- /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
2011
+ /** Whether the file will be public or private. Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
2003
2012
  private?: boolean | null;
2004
2013
  /**
2005
2014
  * 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.
@@ -2022,7 +2031,7 @@ interface GenerateFileUploadUrlOptions {
2022
2031
  * Generates a resumable upload URL to allow external clients to easily upload large files over 10MB to the Media Manager. <br/>
2023
2032
  *
2024
2033
  * 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.
2025
- * To learn how external clients can use the generated upload URL in the response to upload large files to the Media Manager, see [Resumable Upload API](https://dev.wix.com/docs/rest/assets/media/media-manager/files/resumable-upload-api).
2034
+ * Learn how to use the generated upload URL in the response to [upload large files to the Media Manager](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/resumable-upload-api).
2026
2035
  *
2027
2036
  * > **Note:** When you upload a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).
2028
2037
  * @param mimeType - File mime type.
@@ -2057,7 +2066,7 @@ interface GenerateFileResumableUploadUrlOptions {
2057
2066
  * @maxLength 100
2058
2067
  */
2059
2068
  parentFolderId?: string | null;
2060
- /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
2069
+ /** Whether the file will be public or private. Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
2061
2070
  private?: boolean | null;
2062
2071
  /**
2063
2072
  * 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.
@@ -2121,7 +2130,7 @@ interface ImportFileOptions {
2121
2130
  * @maxLength 100
2122
2131
  */
2123
2132
  parentFolderId?: string | null;
2124
- /** Whether the file will be public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
2133
+ /** Whether the file will be public or private. Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
2125
2134
  private?: boolean | null;
2126
2135
  /**
2127
2136
  * 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.
@@ -2159,7 +2168,7 @@ interface ImportFileOptions {
2159
2168
  *
2160
2169
  * >**Notes:**
2161
2170
  * > - The `media` property isn't returned in the `files` response object.
2162
- * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).
2171
+ * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files).
2163
2172
  *
2164
2173
  * To import files, you need to do one of the following for each file:
2165
2174
  * - Specify its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
@@ -2189,7 +2198,7 @@ declare function bulkImportFiles(importFileRequests: NonNullablePaths<ImportFile
2189
2198
  *
2190
2199
  * >**Notes:**
2191
2200
  * > - The `media` property isn't returned in the `files` response object.
2192
- * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files#knowing-when-a-file-is-ready).
2201
+ * > - When you import a file, it's not immediately available, meaning you can't manage or use the file straight away. Learn more about [knowing when a file is ready](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/importing-files).
2193
2202
  *
2194
2203
  * To import files, you need to do one of the following for each file:
2195
2204
  * - Specify its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`.
@@ -2314,7 +2323,7 @@ interface SearchFilesOptions {
2314
2323
  * + `false`: Returns only public files.
2315
2324
  * + `undefined`: Returns public and private files.
2316
2325
  *
2317
- * Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).
2326
+ * Learn more [about private files](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files).
2318
2327
  */
2319
2328
  private?: boolean | null;
2320
2329
  /**
@@ -2419,7 +2428,7 @@ interface ListDeletedFilesOptions {
2419
2428
  * @maxSize 30
2420
2429
  */
2421
2430
  mediaTypes?: MediaTypeWithLiterals[];
2422
- /** \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](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files). */
2431
+ /** \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](https://dev.wix.com/docs/api-reference/assets/media/media-manager/files/private-files). */
2423
2432
  private?: boolean | null;
2424
2433
  /**
2425
2434
  * Field name and order to sort by. One of: <br />
@@ -2433,14 +2442,15 @@ interface ListDeletedFilesOptions {
2433
2442
  paging?: CursorPaging;
2434
2443
  }
2435
2444
  /**
2436
- * Retrieves a list of files in the Media Manager, given the provided [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging), filtering, and sorting.
2445
+ * Retrieves a list of files in the Media Manager, given the provided [cursor paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#cursor-paging), filtering, and sorting.
2437
2446
  *
2438
2447
  * Up to 200 files can be returned per request.
2448
+ *
2439
2449
  * When filtering by `mediaType`, supported values are: `IMAGE`, `VIDEO`, `AUDIO`, `DOCUMENT`, `VECTOR`, `ARCHIVE`, and `MODEL3D`.
2440
2450
  *
2441
2451
  * To learn about working with *Query* methods, see
2442
- * [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) and
2443
- * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
2452
+ * [API Query Language](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language) and
2453
+ * [Sorting and Paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-sorting-and-paging).
2444
2454
  * @public
2445
2455
  * @permissionId media:site_media:v1:file_descriptor:query_file_descriptors
2446
2456
  * @applicableIdentity APP
@@ -2558,7 +2568,9 @@ type FileDescriptorQuery = {
2558
2568
  */
2559
2569
  fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
2560
2570
  /**
2561
- Sort order.
2571
+ Sort order. Use `ASC` for ascending order or `DESC` for descending order.
2572
+
2573
+ Default: `ASC`
2562
2574
  */
2563
2575
  order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
2564
2576
  }[];