@wix/auto_sdk_media_files 1.0.22 → 1.0.24

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.
@@ -428,35 +428,39 @@ declare enum State {
428
428
  /** @enumType */
429
429
  type StateWithLiterals = State | 'OK' | 'DELETED';
430
430
  declare enum Namespace {
431
+ /** No namespaces */
431
432
  NO_NAMESPACE = "NO_NAMESPACE",
433
+ /** Custom namespace */
432
434
  OTHERS = "OTHERS",
433
- /** ANY = 2; */
435
+ /** Wix videos */
434
436
  WIX_VIDEO = "WIX_VIDEO",
435
- /** _nsWixMusic */
437
+ /** Wix music */
436
438
  WIX_MUSIC = "WIX_MUSIC",
437
- /** _nsArtStore */
439
+ /** Albums and art store */
438
440
  ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
439
- /** _nsDigitalProduct */
441
+ /** Wix ecom */
440
442
  WIX_ECOM = "WIX_ECOM",
441
- /** _nsPhotoShareApp */
443
+ /** Photo share */
442
444
  PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
443
- /** _nsSharingApp, */
445
+ /** Sharing app */
444
446
  SHARING_APP = "SHARING_APP",
445
- /** engage */
447
+ /** Chat (engage) */
446
448
  CHAT = "CHAT",
447
- /** logobuilder */
449
+ /** Logo builder */
448
450
  LOGO_BUILDER = "LOGO_BUILDER",
449
- /** WixExposure */
451
+ /** Albums old namespace */
450
452
  ALBUMS_OLD = "ALBUMS_OLD",
451
- /** chat-mobile-uploads */
453
+ /** Mobile chat */
452
454
  CHAT_MOBILE = "CHAT_MOBILE",
453
- /** _nsWixForms */
455
+ /** Wix Forms */
454
456
  WIX_FORMS = "WIX_FORMS",
455
- /** _nsWixLegends */
456
- WIX_LEGENDS = "WIX_LEGENDS"
457
+ /** Wix legends */
458
+ WIX_LEGENDS = "WIX_LEGENDS",
459
+ /** Portfolio */
460
+ PORTFOLIO = "PORTFOLIO"
457
461
  }
458
462
  /** @enumType */
459
- type NamespaceWithLiterals = Namespace | 'NO_NAMESPACE' | 'OTHERS' | 'WIX_VIDEO' | 'WIX_MUSIC' | 'ALBUMS_AND_ART_STORE' | 'WIX_ECOM' | 'PHOTO_SHARE_APP' | 'SHARING_APP' | 'CHAT' | 'LOGO_BUILDER' | 'ALBUMS_OLD' | 'CHAT_MOBILE' | 'WIX_FORMS' | 'WIX_LEGENDS';
463
+ type NamespaceWithLiterals = Namespace | 'NO_NAMESPACE' | 'OTHERS' | 'WIX_VIDEO' | 'WIX_MUSIC' | 'ALBUMS_AND_ART_STORE' | 'WIX_ECOM' | 'PHOTO_SHARE_APP' | 'SHARING_APP' | 'CHAT' | 'LOGO_BUILDER' | 'ALBUMS_OLD' | 'CHAT_MOBILE' | 'WIX_FORMS' | 'WIX_LEGENDS' | 'PORTFOLIO';
460
464
  interface IdentityInfo {
461
465
  /** The type of the user that uploaded the file */
462
466
  identityType?: IdentityTypeWithLiterals;
@@ -1013,8 +1017,9 @@ interface BulkImportFileResult {
1013
1017
  }
1014
1018
  interface ListFilesRequest {
1015
1019
  /**
1016
- * ID of the file's parent folder. <br />
1017
- * Default:`media-root`.
1020
+ * ID of the file's parent folder.
1021
+ *
1022
+ * Default: `media-root`.
1018
1023
  * @maxLength 100
1019
1024
  */
1020
1025
  parentFolderId?: string | null;
@@ -1023,13 +1028,22 @@ interface ListFilesRequest {
1023
1028
  * @maxSize 30
1024
1029
  */
1025
1030
  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)). */
1031
+ /**
1032
+ * Whether to return only private or only public files.
1033
+ * + `true`: Returns only private files.
1034
+ * + `false`: Returns only public files.
1035
+ * + `undefined`: Returns public and private files.
1036
+ *
1037
+ * 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)).
1038
+ */
1027
1039
  private?: boolean | null;
1028
1040
  /**
1029
- * Field name and order to sort by. One of: <br />
1030
- * * `displayName`
1031
- * * `updatedDate`
1032
- * * `sizeInBytes`
1041
+ * Field name and order to sort by. One of:
1042
+ *
1043
+ * `displayName`
1044
+ * `updatedDate`
1045
+ * `sizeInBytes`
1046
+ *
1033
1047
  * Default: `updatedDate` in `desc` order.
1034
1048
  */
1035
1049
  sort?: Sorting;
@@ -1090,14 +1104,17 @@ interface Cursors {
1090
1104
  }
1091
1105
  interface SearchFilesRequest {
1092
1106
  /**
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'.
1107
+ * Free text to match in searchable fields.
1108
+ *
1109
+ * For example, search for specific values in a file's
1110
+ * `displayName`, `mimeType`, or `label`.
1096
1111
  * @maxLength 200
1097
1112
  */
1098
1113
  search?: string | null;
1099
1114
  /**
1100
- * A root folder in the media manager to search in. <br />
1115
+ * The root folder in the media manager to search in.
1116
+ * 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)).
1117
+ *
1101
1118
  * Default: `MEDIA_ROOT`.
1102
1119
  */
1103
1120
  rootFolder?: RootFolderWithLiterals;
@@ -1106,13 +1123,23 @@ interface SearchFilesRequest {
1106
1123
  * @maxSize 30
1107
1124
  */
1108
1125
  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)). */
1126
+ /**
1127
+ * Whether to return only private or only public files.
1128
+ * + `true`: Returns only private files.
1129
+ * + `false`: Returns only public files.
1130
+ * + `undefined`: Returns public and private files.
1131
+ *
1132
+ * 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)).
1133
+ */
1110
1134
  private?: boolean | null;
1111
1135
  /**
1112
- * Field name and order to sort by. One of: <br />
1113
- * * `displayName`
1114
- * * `updatedDate`
1115
- * * `sizeInBytes`
1136
+ * Field name and order to sort by.
1137
+ *
1138
+ * One of:
1139
+ * `displayName`
1140
+ * `updatedDate`
1141
+ * `sizeInBytes`
1142
+ *
1116
1143
  * Default: `updatedDate` in `desc` order.
1117
1144
  */
1118
1145
  sort?: Sorting;
@@ -1120,18 +1147,20 @@ interface SearchFilesRequest {
1120
1147
  paging?: CursorPaging;
1121
1148
  }
1122
1149
  declare enum RootFolder {
1123
- /** Root of all site media */
1150
+ /** Contains all files and folders in the Media Manager's **Site Files** tab in the UI. */
1124
1151
  MEDIA_ROOT = "MEDIA_ROOT",
1125
- /** Root of the trash system folder */
1152
+ /** Contains all files and folders in the Media Manager's **Trash** tab in the UI. */
1126
1153
  TRASH_ROOT = "TRASH_ROOT",
1127
- /** Root of all visitor uploads */
1154
+ /** Contains all files and folders created by site visitors or members. */
1128
1155
  VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
1129
1156
  }
1130
1157
  /** @enumType */
1131
1158
  type RootFolderWithLiterals = RootFolder | 'MEDIA_ROOT' | 'TRASH_ROOT' | 'VISITOR_UPLOADS_ROOT';
1132
1159
  interface SearchFilesResponse {
1133
1160
  /**
1134
- * Files matching the query.
1161
+ * Retrieved files that match the search criteria specified in the request.
1162
+ *
1163
+ * Each file includes all standard file information.
1135
1164
  * @maxSize 200
1136
1165
  */
1137
1166
  files?: FileDescriptor[];
@@ -1448,18 +1477,23 @@ declare enum WebhookIdentityType {
1448
1477
  }
1449
1478
  /** @enumType */
1450
1479
  type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1480
+ /** @docsIgnore */
1451
1481
  type GenerateFileDownloadUrlValidationErrors = {
1452
1482
  ruleName?: 'INVALID_ASSET_KEY';
1453
1483
  };
1484
+ /** @docsIgnore */
1454
1485
  type GetFileDescriptorValidationErrors = {
1455
1486
  ruleName?: 'RESOURCE_NOT_FOUND';
1456
1487
  };
1488
+ /** @docsIgnore */
1457
1489
  type GetFileDescriptorsValidationErrors = {
1458
1490
  ruleName?: 'RESOURCE_NOT_FOUND';
1459
1491
  };
1492
+ /** @docsIgnore */
1460
1493
  type UpdateFileDescriptorValidationErrors = {
1461
1494
  ruleName?: 'FIELD_MASK_IS_EMPTY_OR_MISSING';
1462
1495
  };
1496
+ /** @docsIgnore */
1463
1497
  type GenerateFileUploadUrlValidationErrors = {
1464
1498
  ruleName?: 'MISMATCH_MIME_TYPE';
1465
1499
  } | {
@@ -1471,6 +1505,7 @@ type GenerateFileUploadUrlValidationErrors = {
1471
1505
  } | {
1472
1506
  ruleName?: 'SITE_QUOTA_EXCEEDED';
1473
1507
  };
1508
+ /** @docsIgnore */
1474
1509
  type GenerateFileResumableUploadUrlValidationErrors = {
1475
1510
  ruleName?: 'MISMATCH_MIME_TYPE';
1476
1511
  } | {
@@ -1480,19 +1515,23 @@ type GenerateFileResumableUploadUrlValidationErrors = {
1480
1515
  } | {
1481
1516
  ruleName?: 'FILE_SIZE_OVER_LIMIT';
1482
1517
  };
1518
+ /** @docsIgnore */
1483
1519
  type ImportFileValidationErrors = {
1484
1520
  ruleName?: 'SITE_QUOTA_EXCEEDED';
1485
1521
  };
1522
+ /** @docsIgnore */
1486
1523
  type ListFilesValidationErrors = {
1487
1524
  ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1488
1525
  } | {
1489
1526
  ruleName?: 'UNSUPPORTED_SORT_VALUE';
1490
1527
  };
1528
+ /** @docsIgnore */
1491
1529
  type SearchFilesValidationErrors = {
1492
1530
  ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1493
1531
  } | {
1494
1532
  ruleName?: 'UNSUPPORTED_SORT_VALUE';
1495
1533
  };
1534
+ /** @docsIgnore */
1496
1535
  type ListDeletedFilesValidationErrors = {
1497
1536
  ruleName?: 'UNSUPPORTED_MEDIA_TYPE';
1498
1537
  } | {
@@ -2087,8 +2126,9 @@ declare function listFiles(options?: ListFilesOptions): Promise<NonNullablePaths
2087
2126
  }>;
2088
2127
  interface ListFilesOptions {
2089
2128
  /**
2090
- * ID of the file's parent folder. <br />
2091
- * Default:`media-root`.
2129
+ * ID of the file's parent folder.
2130
+ *
2131
+ * Default: `media-root`.
2092
2132
  * @maxLength 100
2093
2133
  */
2094
2134
  parentFolderId?: string | null;
@@ -2097,13 +2137,22 @@ interface ListFilesOptions {
2097
2137
  * @maxSize 30
2098
2138
  */
2099
2139
  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)). */
2140
+ /**
2141
+ * Whether to return only private or only public files.
2142
+ * + `true`: Returns only private files.
2143
+ * + `false`: Returns only public files.
2144
+ * + `undefined`: Returns public and private files.
2145
+ *
2146
+ * 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)).
2147
+ */
2101
2148
  private?: boolean | null;
2102
2149
  /**
2103
- * Field name and order to sort by. One of: <br />
2104
- * * `displayName`
2105
- * * `updatedDate`
2106
- * * `sizeInBytes`
2150
+ * Field name and order to sort by. One of:
2151
+ *
2152
+ * `displayName`
2153
+ * `updatedDate`
2154
+ * `sizeInBytes`
2155
+ *
2107
2156
  * Default: `updatedDate` in `desc` order.
2108
2157
  */
2109
2158
  sort?: Sorting;
@@ -2111,9 +2160,27 @@ interface ListFilesOptions {
2111
2160
  paging?: CursorPaging;
2112
2161
  }
2113
2162
  /**
2114
- * Searches all folders in the Media Manager and returns a list of files that match the terms specified in the parameters. <br/>
2163
+ * Retrieves a list of up to 200 files with the specified filtering, sorting, and cursor paging.
2164
+ *
2165
+ * If no parameters are specified, the method returns all files in the `MEDIA_ROOT` folder.
2166
+ *
2167
+ * ## Defaults
2168
+ *
2169
+ * Search Files has the following default setting, which you can override:
2170
+ * + Sorted by `updatedDate` in descending order.
2171
+ *
2172
+ * ## Filters
2115
2173
  *
2116
- * If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
2174
+ * When using filters for dates, you must use
2175
+ * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).
2176
+ *
2177
+ * ## See also
2178
+ *
2179
+ * To learn about working with *Search* methods, see
2180
+ * _API Query Language_
2181
+ * ([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))
2182
+ * and *Sorting and Paging*
2183
+ * ([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
2184
  * @public
2118
2185
  * @param options - Options to specify which folders to search.
2119
2186
  * @permissionId MEDIA.SITE_MEDIA_FILES_LIST
@@ -2125,14 +2192,17 @@ declare function searchFiles(options?: SearchFilesOptions): Promise<NonNullableP
2125
2192
  }>;
2126
2193
  interface SearchFilesOptions {
2127
2194
  /**
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'.
2195
+ * Free text to match in searchable fields.
2196
+ *
2197
+ * For example, search for specific values in a file's
2198
+ * `displayName`, `mimeType`, or `label`.
2131
2199
  * @maxLength 200
2132
2200
  */
2133
2201
  search?: string | null;
2134
2202
  /**
2135
- * A root folder in the media manager to search in. <br />
2203
+ * The root folder in the media manager to search in.
2204
+ * 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)).
2205
+ *
2136
2206
  * Default: `MEDIA_ROOT`.
2137
2207
  */
2138
2208
  rootFolder?: RootFolderWithLiterals;
@@ -2141,13 +2211,23 @@ interface SearchFilesOptions {
2141
2211
  * @maxSize 30
2142
2212
  */
2143
2213
  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)). */
2214
+ /**
2215
+ * Whether to return only private or only public files.
2216
+ * + `true`: Returns only private files.
2217
+ * + `false`: Returns only public files.
2218
+ * + `undefined`: Returns public and private files.
2219
+ *
2220
+ * 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)).
2221
+ */
2145
2222
  private?: boolean | null;
2146
2223
  /**
2147
- * Field name and order to sort by. One of: <br />
2148
- * * `displayName`
2149
- * * `updatedDate`
2150
- * * `sizeInBytes`
2224
+ * Field name and order to sort by.
2225
+ *
2226
+ * One of:
2227
+ * `displayName`
2228
+ * `updatedDate`
2229
+ * `sizeInBytes`
2230
+ *
2151
2231
  * Default: `updatedDate` in `desc` order.
2152
2232
  */
2153
2233
  sort?: Sorting;
@@ -1022,6 +1022,7 @@ var Namespace = /* @__PURE__ */ ((Namespace2) => {
1022
1022
  Namespace2["CHAT_MOBILE"] = "CHAT_MOBILE";
1023
1023
  Namespace2["WIX_FORMS"] = "WIX_FORMS";
1024
1024
  Namespace2["WIX_LEGENDS"] = "WIX_LEGENDS";
1025
+ Namespace2["PORTFOLIO"] = "PORTFOLIO";
1025
1026
  return Namespace2;
1026
1027
  })(Namespace || {});
1027
1028
  var IdentityType = /* @__PURE__ */ ((IdentityType2) => {