@wix/media 1.0.131 → 1.0.132

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.
@@ -2434,7 +2434,7 @@ interface FileDescriptor {
2434
2434
  */
2435
2435
  sizeInBytes?: string | null;
2436
2436
  /**
2437
- * Whether the file is public or private. For more, see the Private Files article.
2437
+ * Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).
2438
2438
  * @readonly
2439
2439
  */
2440
2440
  private?: boolean;
@@ -2712,9 +2712,9 @@ declare enum IdentityType {
2712
2712
  APP = "APP"
2713
2713
  }
2714
2714
  interface ExternalInfo {
2715
- /** External information to pass in the File Ready or File Failed events. */
2715
+ /** External information to pass in the [File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-ready) or [File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-failed) events. */
2716
2716
  origin?: string;
2717
- /** External IDs to pass in the File Ready or File Failed events. */
2717
+ /** External IDs to pass in the [File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-ready) or [File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-failed) events. */
2718
2718
  externalIds?: string[];
2719
2719
  }
2720
2720
  interface ApplicationError {
@@ -2730,7 +2730,7 @@ interface GenerateFilesDownloadUrlRequest {
2730
2730
  * IDs of the files to download.
2731
2731
  *
2732
2732
  * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2733
- * Learn more in the File and Folder IDs article.
2733
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
2734
2734
  */
2735
2735
  fileIds: string[];
2736
2736
  }
@@ -2742,8 +2742,8 @@ interface GenerateFileDownloadUrlRequest {
2742
2742
  /**
2743
2743
  * File ID.
2744
2744
  *
2745
- * 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"]`.
2746
- * Learn more in the File and Folder IDs article.
2745
+ * 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`.
2746
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
2747
2747
  */
2748
2748
  fileId: string;
2749
2749
  /**
@@ -2801,8 +2801,10 @@ interface GetFileDescriptorRequest {
2801
2801
  /**
2802
2802
  * File ID.
2803
2803
  *
2804
- * 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"]`.
2805
- * Learn more in the File and Folder IDs article.
2804
+ * 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`.
2805
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
2806
+ *
2807
+ * 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`.
2806
2808
  */
2807
2809
  fileId: string;
2808
2810
  }
@@ -2815,7 +2817,7 @@ interface GetFileDescriptorsRequest {
2815
2817
  * File IDs.
2816
2818
  *
2817
2819
  * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
2818
- * Learn more in the File and Folder IDs article.
2820
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
2819
2821
  */
2820
2822
  fileIds: string[];
2821
2823
  }
@@ -2850,11 +2852,11 @@ interface GenerateFileUploadUrlRequest {
2850
2852
  * Default: `media-root`.
2851
2853
  */
2852
2854
  parentFolderId?: string | null;
2853
- /** Whether the file will be public or private. For more, see the Private Files article. */
2855
+ /** 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). */
2854
2856
  private?: boolean | null;
2855
2857
  /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
2856
2858
  labels?: string[] | null;
2857
- /** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
2859
+ /** A place to map an external entity to an uploaded file in the Wix Media Manager. */
2858
2860
  externalInfo?: ExternalInfo;
2859
2861
  /**
2860
2862
  * Path to the folder where the file will be stored.
@@ -2887,7 +2889,7 @@ interface GenerateFileResumableUploadUrlRequest {
2887
2889
  * Default: `media-root`.
2888
2890
  */
2889
2891
  parentFolderId?: string | null;
2890
- /** Whether the file will be public or private. For more, see the Private Files article. */
2892
+ /** 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). */
2891
2893
  private?: boolean | null;
2892
2894
  /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
2893
2895
  labels?: string[] | null;
@@ -2906,11 +2908,7 @@ declare enum UploadProtocol {
2906
2908
  TUS = "TUS"
2907
2909
  }
2908
2910
  interface GenerateFileResumableUploadUrlResponse {
2909
- /**
2910
- * The upload protocol to use for implementing the resumable upload.
2911
- *
2912
- * Supported values: `"TUS"`
2913
- */
2911
+ /** The upload protocol to use for implementing the resumable upload. */
2914
2912
  uploadProtocol?: UploadProtocol;
2915
2913
  /** The URL for uploading a file to the Media Manager. */
2916
2914
  uploadUrl?: string;
@@ -2920,7 +2918,10 @@ interface GenerateFileResumableUploadUrlResponse {
2920
2918
  interface ImportFileRequest {
2921
2919
  /** Publicly accessible external file URL. */
2922
2920
  url: string;
2923
- /** Media type of the file to import. */
2921
+ /**
2922
+ * Media type of the file to import.
2923
+ * excluding: OTHER media type
2924
+ */
2924
2925
  mediaType?: MediaType;
2925
2926
  /** File name that appears in the Media Manager. */
2926
2927
  displayName?: string | null;
@@ -2930,13 +2931,13 @@ interface ImportFileRequest {
2930
2931
  * Default: `media-root`.
2931
2932
  */
2932
2933
  parentFolderId?: string | null;
2933
- /** Whether the file will be public or private. For more, see the Private Files article. */
2934
+ /** 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). */
2934
2935
  private?: boolean | null;
2935
2936
  /** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
2936
2937
  labels?: string[] | null;
2937
2938
  /** File mime type. */
2938
2939
  mimeType?: string;
2939
- /** Information sent to the `onFileDescriptorFileReady( )` and `onFileDescriptorFileFailed( )` events. See the Importing Files article to learn more. */
2940
+ /** Information sent to the [File Ready](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-ready) and [File Failed](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-failed) webhooks. See [Importing Files](/files/importing-files#using-externalinfo) to learn more. */
2940
2941
  externalInfo?: ExternalInfo;
2941
2942
  /** Optional parameters that should be sent with the external URL. */
2942
2943
  urlParams?: Record<string, any> | null;
@@ -3013,21 +3014,14 @@ interface ListFilesRequest {
3013
3014
  * excluding: OTHER media type
3014
3015
  */
3015
3016
  mediaTypes?: MediaType[];
3016
- /**
3017
- * `true`: Returns only private files.
3018
- * `false`: Returns only public files.
3019
- * `undefined`: Returns public and private files.
3020
- * For more, see the Private Files article.
3021
- */
3017
+ /** \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). */
3022
3018
  private?: boolean | null;
3023
3019
  /**
3024
- * Field name and order to sort by. One of:
3025
- *
3026
- * - `displayName`
3027
- * - `_updatedDate`
3028
- * - `sizeInBytes`
3029
- *
3030
- * Default: `_updatedDate` in `"DESC"` order.
3020
+ * Field name and order to sort by. One of: <br />
3021
+ * * `displayName`
3022
+ * * `updatedDate`
3023
+ * * `sizeInBytes`
3024
+ * Default: `updatedDate` in `desc` order.
3031
3025
  */
3032
3026
  sort?: Sorting$2;
3033
3027
  /** Cursor and paging information. */
@@ -3087,21 +3081,14 @@ interface SearchFilesRequest {
3087
3081
  * excluding: OTHER media type
3088
3082
  */
3089
3083
  mediaTypes?: MediaType[];
3090
- /**
3091
- * `true`: Returns only private files.
3092
- * `false`: Returns only public files.
3093
- * `undefined`: Returns public and private files.
3094
- * For more, see the Private Files article.
3095
- */
3084
+ /** \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). */
3096
3085
  private?: boolean | null;
3097
3086
  /**
3098
- * Field name and order to sort by. One of:
3099
- *
3100
- * - `displayName`
3101
- * - `_updatedDate`
3102
- * - `sizeInBytes`
3103
- *
3104
- * Default: `_updatedDate` in `"DESC"` order.
3087
+ * Field name and order to sort by. One of: <br />
3088
+ * * `displayName`
3089
+ * * `updatedDate`
3090
+ * * `sizeInBytes`
3091
+ * Default: `updatedDate` in `desc` order.
3105
3092
  */
3106
3093
  sort?: Sorting$2;
3107
3094
  /** Cursor and paging information. */
@@ -3125,8 +3112,8 @@ interface GenerateVideoStreamingUrlRequest {
3125
3112
  /**
3126
3113
  * File ID.
3127
3114
  *
3128
- * 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"]`.
3129
- * Learn more in the File and Folder IDs article.
3115
+ * 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`.
3116
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
3130
3117
  */
3131
3118
  fileId: string;
3132
3119
  /** Video stream format. */
@@ -3146,7 +3133,7 @@ interface BulkDeleteFilesRequest {
3146
3133
  * IDs of the files to move to the Media Manager's trash bin.
3147
3134
  *
3148
3135
  * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
3149
- * Learn more in the File and Folder IDs article.
3136
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
3150
3137
  */
3151
3138
  fileIds: string[];
3152
3139
  /**
@@ -3162,7 +3149,7 @@ interface BulkRestoreFilesFromTrashBinRequest {
3162
3149
  * IDs of the files to restore from the Media Manager's trash bin.
3163
3150
  *
3164
3151
  * You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
3165
- * Learn more in the File and Folder IDs article.
3152
+ * Learn more about the [file ID parameter](https://dev.wix.com/docs/rest/assets/media/media-manager/files/file-id#file-id-as-a-parameter).
3166
3153
  */
3167
3154
  fileIds: string[];
3168
3155
  }
@@ -3179,21 +3166,14 @@ interface ListDeletedFilesRequest {
3179
3166
  * excluding: OTHER media type
3180
3167
  */
3181
3168
  mediaTypes?: MediaType[];
3182
- /**
3183
- * `true`: Returns only private files.
3184
- * `false`: Returns only public files.
3185
- * `undefined`: Returns public and private files.
3186
- * For more, see the Private Files article.
3187
- */
3169
+ /** \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). */
3188
3170
  private?: boolean | null;
3189
3171
  /**
3190
- * Field name and order to sort by. One of:
3191
- *
3192
- * - `displayName`
3193
- * - `_updatedDate`
3194
- * - `sizeInBytes`
3195
- *
3196
- * Default: `_updatedDate` in `"DESC"` order.
3172
+ * Field name and order to sort by. One of: <br />
3173
+ * * `displayName`
3174
+ * * `updatedDate`
3175
+ * * `sizeInBytes`
3176
+ * Default: `updatedDate` in `desc` order.
3197
3177
  */
3198
3178
  sort?: Sorting$2;
3199
3179
  /** Cursor and paging information. */