@wix/auto_sdk_media_files 1.0.22 → 1.0.23

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.
@@ -1013,8 +1013,9 @@ interface BulkImportFileResult {
1013
1013
  }
1014
1014
  interface ListFilesRequest {
1015
1015
  /**
1016
- * ID of the file's parent folder. <br />
1017
- * Default:`media-root`.
1016
+ * ID of the file's parent folder.
1017
+ *
1018
+ * Default: `media-root`.
1018
1019
  * @maxLength 100
1019
1020
  */
1020
1021
  parentFolderId?: string | null;
@@ -1023,13 +1024,22 @@ interface ListFilesRequest {
1023
1024
  * @maxSize 30
1024
1025
  */
1025
1026
  mediaTypes?: MediaTypeWithLiterals[];
1026
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1027
+ /**
1028
+ * Whether to return only private or only public files.
1029
+ * + `true`: Returns only private files.
1030
+ * + `false`: Returns only public files.
1031
+ * + `undefined`: Returns public and private files.
1032
+ *
1033
+ * Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)).
1034
+ */
1027
1035
  private?: boolean | null;
1028
1036
  /**
1029
- * Field name and order to sort by. One of: <br />
1030
- * * `displayName`
1031
- * * `updatedDate`
1032
- * * `sizeInBytes`
1037
+ * Field name and order to sort by. One of:
1038
+ *
1039
+ * `displayName`
1040
+ * `updatedDate`
1041
+ * `sizeInBytes`
1042
+ *
1033
1043
  * Default: `updatedDate` in `desc` order.
1034
1044
  */
1035
1045
  sort?: Sorting;
@@ -1090,14 +1100,17 @@ interface Cursors {
1090
1100
  }
1091
1101
  interface SearchFilesRequest {
1092
1102
  /**
1093
- * Term to search for. Possible terms include the value of a file's
1094
- * `displayName`, `mimeType`, and `label`. <br />
1095
- * For example, if a file's label is cat, the search term is 'cat'.
1103
+ * Free text to match in searchable fields.
1104
+ *
1105
+ * For example, search for specific values in a file's
1106
+ * `displayName`, `mimeType`, or `label`.
1096
1107
  * @maxLength 200
1097
1108
  */
1098
1109
  search?: string | null;
1099
1110
  /**
1100
- * A root folder in the media manager to search in. <br />
1111
+ * The root folder in the media manager to search in.
1112
+ * For more information, see Root Folders in Terminology ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/introduction#terminology) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction#terminology)).
1113
+ *
1101
1114
  * Default: `MEDIA_ROOT`.
1102
1115
  */
1103
1116
  rootFolder?: RootFolderWithLiterals;
@@ -1106,13 +1119,23 @@ interface SearchFilesRequest {
1106
1119
  * @maxSize 30
1107
1120
  */
1108
1121
  mediaTypes?: MediaTypeWithLiterals[];
1109
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
1122
+ /**
1123
+ * Whether to return only private or only public files.
1124
+ * + `true`: Returns only private files.
1125
+ * + `false`: Returns only public files.
1126
+ * + `undefined`: Returns public and private files.
1127
+ *
1128
+ * Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)).
1129
+ */
1110
1130
  private?: boolean | null;
1111
1131
  /**
1112
- * Field name and order to sort by. One of: <br />
1113
- * * `displayName`
1114
- * * `updatedDate`
1115
- * * `sizeInBytes`
1132
+ * Field name and order to sort by.
1133
+ *
1134
+ * One of:
1135
+ * `displayName`
1136
+ * `updatedDate`
1137
+ * `sizeInBytes`
1138
+ *
1116
1139
  * Default: `updatedDate` in `desc` order.
1117
1140
  */
1118
1141
  sort?: Sorting;
@@ -1120,18 +1143,20 @@ interface SearchFilesRequest {
1120
1143
  paging?: CursorPaging;
1121
1144
  }
1122
1145
  declare enum RootFolder {
1123
- /** Root of all site media */
1146
+ /** Contains all files and folders in the Media Manager's **Site Files** tab in the UI. */
1124
1147
  MEDIA_ROOT = "MEDIA_ROOT",
1125
- /** Root of the trash system folder */
1148
+ /** Contains all files and folders in the Media Manager's **Trash** tab in the UI. */
1126
1149
  TRASH_ROOT = "TRASH_ROOT",
1127
- /** Root of all visitor uploads */
1150
+ /** Contains all files and folders created by site visitors or members. */
1128
1151
  VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
1129
1152
  }
1130
1153
  /** @enumType */
1131
1154
  type RootFolderWithLiterals = RootFolder | 'MEDIA_ROOT' | 'TRASH_ROOT' | 'VISITOR_UPLOADS_ROOT';
1132
1155
  interface SearchFilesResponse {
1133
1156
  /**
1134
- * Files matching the query.
1157
+ * Retrieved files that match the search criteria specified in the request.
1158
+ *
1159
+ * Each file includes all standard file information.
1135
1160
  * @maxSize 200
1136
1161
  */
1137
1162
  files?: FileDescriptor[];
@@ -1448,18 +1473,23 @@ declare enum WebhookIdentityType {
1448
1473
  }
1449
1474
  /** @enumType */
1450
1475
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1476
+ /** @docsIgnore */
1451
1477
  type GenerateFileDownloadUrlValidationErrors = {
1452
1478
  ruleName?: 'INVALID_ASSET_KEY';
1453
1479
  };
1480
+ /** @docsIgnore */
1454
1481
  type GetFileDescriptorValidationErrors = {
1455
1482
  ruleName?: 'RESOURCE_NOT_FOUND';
1456
1483
  };
1484
+ /** @docsIgnore */
1457
1485
  type GetFileDescriptorsValidationErrors = {
1458
1486
  ruleName?: 'RESOURCE_NOT_FOUND';
1459
1487
  };
1488
+ /** @docsIgnore */
1460
1489
  type UpdateFileDescriptorValidationErrors = {
1461
1490
  ruleName?: 'FIELD_MASK_IS_EMPTY_OR_MISSING';
1462
1491
  };
1492
+ /** @docsIgnore */
1463
1493
  type GenerateFileUploadUrlValidationErrors = {
1464
1494
  ruleName?: 'MISMATCH_MIME_TYPE';
1465
1495
  } | {
@@ -1471,6 +1501,7 @@ type GenerateFileUploadUrlValidationErrors = {
1471
1501
  } | {
1472
1502
  ruleName?: 'SITE_QUOTA_EXCEEDED';
1473
1503
  };
1504
+ /** @docsIgnore */
1474
1505
  type GenerateFileResumableUploadUrlValidationErrors = {
1475
1506
  ruleName?: 'MISMATCH_MIME_TYPE';
1476
1507
  } | {
@@ -1480,19 +1511,23 @@ type GenerateFileResumableUploadUrlValidationErrors = {
1480
1511
  } | {
1481
1512
  ruleName?: 'FILE_SIZE_OVER_LIMIT';
1482
1513
  };
1514
+ /** @docsIgnore */
1483
1515
  type ImportFileValidationErrors = {
1484
1516
  ruleName?: 'SITE_QUOTA_EXCEEDED';
1485
1517
  };
1518
+ /** @docsIgnore */
1486
1519
  type ListFilesValidationErrors = {
1487
1520
  ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1488
1521
  } | {
1489
1522
  ruleName?: 'UNSUPPORTED_SORT_VALUE';
1490
1523
  };
1524
+ /** @docsIgnore */
1491
1525
  type SearchFilesValidationErrors = {
1492
1526
  ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1493
1527
  } | {
1494
1528
  ruleName?: 'UNSUPPORTED_SORT_VALUE';
1495
1529
  };
1530
+ /** @docsIgnore */
1496
1531
  type ListDeletedFilesValidationErrors = {
1497
1532
  ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1498
1533
  } | {
@@ -2087,8 +2122,9 @@ declare function listFiles(options?: ListFilesOptions): Promise<NonNullablePaths
2087
2122
  }>;
2088
2123
  interface ListFilesOptions {
2089
2124
  /**
2090
- * ID of the file's parent folder. <br />
2091
- * Default:`media-root`.
2125
+ * ID of the file's parent folder.
2126
+ *
2127
+ * Default: `media-root`.
2092
2128
  * @maxLength 100
2093
2129
  */
2094
2130
  parentFolderId?: string | null;
@@ -2097,13 +2133,22 @@ interface ListFilesOptions {
2097
2133
  * @maxSize 30
2098
2134
  */
2099
2135
  mediaTypes?: MediaTypeWithLiterals[];
2100
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
2136
+ /**
2137
+ * Whether to return only private or only public files.
2138
+ * + `true`: Returns only private files.
2139
+ * + `false`: Returns only public files.
2140
+ * + `undefined`: Returns public and private files.
2141
+ *
2142
+ * Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)).
2143
+ */
2101
2144
  private?: boolean | null;
2102
2145
  /**
2103
- * Field name and order to sort by. One of: <br />
2104
- * * `displayName`
2105
- * * `updatedDate`
2106
- * * `sizeInBytes`
2146
+ * Field name and order to sort by. One of:
2147
+ *
2148
+ * `displayName`
2149
+ * `updatedDate`
2150
+ * `sizeInBytes`
2151
+ *
2107
2152
  * Default: `updatedDate` in `desc` order.
2108
2153
  */
2109
2154
  sort?: Sorting;
@@ -2111,9 +2156,27 @@ interface ListFilesOptions {
2111
2156
  paging?: CursorPaging;
2112
2157
  }
2113
2158
  /**
2114
- * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
2159
+ * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.
2160
+ *
2161
+ * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.
2162
+ *
2163
+ * ## Defaults
2164
+ *
2165
+ * Search Files has the following default setting, which you can override:
2166
+ * + Sorted by `updatedDate` in descending order.
2167
+ *
2168
+ * ## Filters
2115
2169
  *
2116
- * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
2170
+ * When using filters for dates, you must use
2171
+ * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
2172
+ *
2173
+ * ## See also
2174
+ *
2175
+ * To learn about working with *Search* methods, see
2176
+ * _API Query Language_
2177
+ * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language) | [REST](https://dev.wix.com/docs/rest/articles/get-started/api-query-language))
2178
+ * and *Sorting and Paging*
2179
+ * ([SDK](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language#the-sort-array) | [REST](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging)).
2117
2180
  * @public
2118
2181
  * @param options - Options to specify which folders to search.
2119
2182
  * @permissionId MEDIA.SITE_MEDIA_FILES_LIST
@@ -2125,14 +2188,17 @@ declare function searchFiles(options?: SearchFilesOptions): Promise<NonNullableP
2125
2188
  }>;
2126
2189
  interface SearchFilesOptions {
2127
2190
  /**
2128
- * Term to search for. Possible terms include the value of a file's
2129
- * `displayName`, `mimeType`, and `label`. <br />
2130
- * For example, if a file's label is cat, the search term is 'cat'.
2191
+ * Free text to match in searchable fields.
2192
+ *
2193
+ * For example, search for specific values in a file's
2194
+ * `displayName`, `mimeType`, or `label`.
2131
2195
  * @maxLength 200
2132
2196
  */
2133
2197
  search?: string | null;
2134
2198
  /**
2135
- * A root folder in the media manager to search in. <br />
2199
+ * The root folder in the media manager to search in.
2200
+ * For more information, see Root Folders in Terminology ([SDK](https://dev.wix.com/docs/sdk/backend-modules/media/introduction#terminology) | [REST](https://dev.wix.com/docs/rest/assets/media/media-manager/introduction#terminology)).
2201
+ *
2136
2202
  * Default: `MEDIA_ROOT`.
2137
2203
  */
2138
2204
  rootFolder?: RootFolderWithLiterals;
@@ -2141,13 +2207,23 @@ interface SearchFilesOptions {
2141
2207
  * @maxSize 30
2142
2208
  */
2143
2209
  mediaTypes?: MediaTypeWithLiterals[];
2144
- /** \n`true`: Returns only private files. \n`false`: Returns only public files. \n`undefined`: Returns public and private files. \n Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)). */
2210
+ /**
2211
+ * Whether to return only private or only public files.
2212
+ * + `true`: Returns only private files.
2213
+ * + `false`: Returns only public files.
2214
+ * + `undefined`: Returns public and private files.
2215
+ *
2216
+ * Learn more about private files ([SDK](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files) | [REST](https://dev.wix.com/docs/sdk/backend-modules/media/files/private-files)).
2217
+ */
2145
2218
  private?: boolean | null;
2146
2219
  /**
2147
- * Field name and order to sort by. One of: <br />
2148
- * * `displayName`
2149
- * * `updatedDate`
2150
- * * `sizeInBytes`
2220
+ * Field name and order to sort by.
2221
+ *
2222
+ * One of:
2223
+ * `displayName`
2224
+ * `updatedDate`
2225
+ * `sizeInBytes`
2226
+ *
2151
2227
  * Default: `updatedDate` in `desc` order.
2152
2228
  */
2153
2229
  sort?: Sorting;