@wix/auto_sdk_media_files 1.0.19 → 1.0.20
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/build/cjs/index.d.ts +32 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.ts → index.typings.d.ts} +498 -1
- package/build/cjs/index.typings.js +1938 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +32 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.mts → index.typings.d.mts} +498 -1
- package/build/es/index.typings.mjs +1887 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +32 -12
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.ts → index.typings.d.ts} +498 -1
- package/build/internal/cjs/index.typings.js +1938 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +32 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.mts → index.typings.d.mts} +498 -1
- package/build/internal/es/index.typings.mjs +1887 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlValidationErrors, FileDescriptor, GetFileDescriptorValidationErrors, GetFileDescriptorsResponse, GetFileDescriptorsValidationErrors, UpdateFileDescriptorValidationErrors, GenerateFileUploadUrlOptions, GenerateFileUploadUrlResponse, GenerateFileUploadUrlValidationErrors, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlValidationErrors, ImportFileOptions, ImportFileResponse, ImportFileValidationErrors, ImportFileRequest, BulkImportFilesResponse, BulkImportFileOptions, BulkImportFileResponse, ListFilesOptions, ListFilesResponse, ListFilesValidationErrors, SearchFilesOptions, SearchFilesResponse, SearchFilesValidationErrors, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlResponse, BulkDeleteFilesOptions, ListDeletedFilesOptions, ListDeletedFilesResponse, ListDeletedFilesValidationErrors, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileRequest, BulkImportFileResult, BulkImportFilesRequest, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlRequest, GenerateFileResumableUploadUrlRequest, GenerateFileUploadUrlRequest, GenerateFilesDownloadUrlRequest, GenerateVideoStreamingUrlRequest, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ItemMetadata, ListDeletedFilesRequest, ListFilesRequest, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesRequest, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function generateFilesDownloadUrl$1(httpClient: HttpClient): GenerateFilesDownloadUrlSignature;
|
|
6
6
|
interface GenerateFilesDownloadUrlSignature {
|
|
@@ -38,7 +38,9 @@ interface GenerateFileDownloadUrlSignature {
|
|
|
38
38
|
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
39
39
|
* Learn more in the File and Folder IDs article.
|
|
40
40
|
*/
|
|
41
|
-
(fileId: string, options?: GenerateFileDownloadUrlOptions | undefined): Promise<GenerateFileDownloadUrlResponse
|
|
41
|
+
(fileId: string, options?: GenerateFileDownloadUrlOptions | undefined): Promise<GenerateFileDownloadUrlResponse & {
|
|
42
|
+
__validationErrorsType?: GenerateFileDownloadUrlValidationErrors | undefined;
|
|
43
|
+
}>;
|
|
42
44
|
}
|
|
43
45
|
declare function getFileDescriptor$1(httpClient: HttpClient): GetFileDescriptorSignature;
|
|
44
46
|
interface GetFileDescriptorSignature {
|
|
@@ -50,7 +52,9 @@ interface GetFileDescriptorSignature {
|
|
|
50
52
|
* Learn more in the File and Folder IDs article.
|
|
51
53
|
* @returns Information about the file.
|
|
52
54
|
*/
|
|
53
|
-
(fileId: string): Promise<FileDescriptor
|
|
55
|
+
(fileId: string): Promise<FileDescriptor & {
|
|
56
|
+
__validationErrorsType?: GetFileDescriptorValidationErrors | undefined;
|
|
57
|
+
}>;
|
|
54
58
|
}
|
|
55
59
|
declare function getFileDescriptors$1(httpClient: HttpClient): GetFileDescriptorsSignature;
|
|
56
60
|
interface GetFileDescriptorsSignature {
|
|
@@ -61,7 +65,9 @@ interface GetFileDescriptorsSignature {
|
|
|
61
65
|
* You can also pass the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.
|
|
62
66
|
* Learn more in the File and Folder IDs article.
|
|
63
67
|
*/
|
|
64
|
-
(fileIds: string[]): Promise<GetFileDescriptorsResponse
|
|
68
|
+
(fileIds: string[]): Promise<GetFileDescriptorsResponse & {
|
|
69
|
+
__validationErrorsType?: GetFileDescriptorsValidationErrors | undefined;
|
|
70
|
+
}>;
|
|
65
71
|
}
|
|
66
72
|
declare function updateFileDescriptor$1(httpClient: HttpClient): UpdateFileDescriptorSignature;
|
|
67
73
|
interface UpdateFileDescriptorSignature {
|
|
@@ -72,7 +78,9 @@ interface UpdateFileDescriptorSignature {
|
|
|
72
78
|
* @param - The file to update.
|
|
73
79
|
* @returns Information about the updated file.
|
|
74
80
|
*/
|
|
75
|
-
(file: FileDescriptor): Promise<FileDescriptor
|
|
81
|
+
(file: FileDescriptor): Promise<FileDescriptor & {
|
|
82
|
+
__validationErrorsType?: UpdateFileDescriptorValidationErrors | undefined;
|
|
83
|
+
}>;
|
|
76
84
|
}
|
|
77
85
|
declare function generateFileUploadUrl$1(httpClient: HttpClient): GenerateFileUploadUrlSignature;
|
|
78
86
|
interface GenerateFileUploadUrlSignature {
|
|
@@ -86,7 +94,9 @@ interface GenerateFileUploadUrlSignature {
|
|
|
86
94
|
* @param - File mime type.
|
|
87
95
|
* @param - Options to use when generating a file's upload URL.
|
|
88
96
|
*/
|
|
89
|
-
(mimeType: string, options?: GenerateFileUploadUrlOptions | undefined): Promise<GenerateFileUploadUrlResponse
|
|
97
|
+
(mimeType: string, options?: GenerateFileUploadUrlOptions | undefined): Promise<GenerateFileUploadUrlResponse & {
|
|
98
|
+
__validationErrorsType?: GenerateFileUploadUrlValidationErrors | undefined;
|
|
99
|
+
}>;
|
|
90
100
|
}
|
|
91
101
|
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient): GenerateFileResumableUploadUrlSignature;
|
|
92
102
|
interface GenerateFileResumableUploadUrlSignature {
|
|
@@ -100,7 +110,9 @@ interface GenerateFileResumableUploadUrlSignature {
|
|
|
100
110
|
* @param - File mime type.
|
|
101
111
|
* @param - Options to use when generating a resumable upload URL.
|
|
102
112
|
*/
|
|
103
|
-
(mimeType: string, options?: GenerateFileResumableUploadUrlOptions | undefined): Promise<GenerateFileResumableUploadUrlResponse
|
|
113
|
+
(mimeType: string, options?: GenerateFileResumableUploadUrlOptions | undefined): Promise<GenerateFileResumableUploadUrlResponse & {
|
|
114
|
+
__validationErrorsType?: GenerateFileResumableUploadUrlValidationErrors | undefined;
|
|
115
|
+
}>;
|
|
104
116
|
}
|
|
105
117
|
declare function importFile$1(httpClient: HttpClient): ImportFileSignature;
|
|
106
118
|
interface ImportFileSignature {
|
|
@@ -123,7 +135,9 @@ interface ImportFileSignature {
|
|
|
123
135
|
* @param - Publicly accessible external file URL.
|
|
124
136
|
* @param - Options to use when importing a single file.
|
|
125
137
|
*/
|
|
126
|
-
(url: string, options?: ImportFileOptions | undefined): Promise<ImportFileResponse
|
|
138
|
+
(url: string, options?: ImportFileOptions | undefined): Promise<ImportFileResponse & {
|
|
139
|
+
__validationErrorsType?: ImportFileValidationErrors | undefined;
|
|
140
|
+
}>;
|
|
127
141
|
}
|
|
128
142
|
declare function bulkImportFiles$1(httpClient: HttpClient): BulkImportFilesSignature;
|
|
129
143
|
interface BulkImportFilesSignature {
|
|
@@ -182,7 +196,9 @@ interface ListFilesSignature {
|
|
|
182
196
|
* To retrieve a list of files within a specific folder in the Media Manager, specify the folder's ID in the `parentFolderId` parameter. If no folder is specified, the method retrieves the list of files in the root folder of the Media Manager.
|
|
183
197
|
* @param - Options to use when listing media files.
|
|
184
198
|
*/
|
|
185
|
-
(options?: ListFilesOptions | undefined): Promise<ListFilesResponse
|
|
199
|
+
(options?: ListFilesOptions | undefined): Promise<ListFilesResponse & {
|
|
200
|
+
__validationErrorsType?: ListFilesValidationErrors | undefined;
|
|
201
|
+
}>;
|
|
186
202
|
}
|
|
187
203
|
declare function searchFiles$1(httpClient: HttpClient): SearchFilesSignature;
|
|
188
204
|
interface SearchFilesSignature {
|
|
@@ -192,7 +208,9 @@ interface SearchFilesSignature {
|
|
|
192
208
|
* If no parameters are specified, the endpoint returns all files in the `MEDIA_ROOT` folder.
|
|
193
209
|
* @param - Options to specify which folders to search.
|
|
194
210
|
*/
|
|
195
|
-
(options?: SearchFilesOptions | undefined): Promise<SearchFilesResponse
|
|
211
|
+
(options?: SearchFilesOptions | undefined): Promise<SearchFilesResponse & {
|
|
212
|
+
__validationErrorsType?: SearchFilesValidationErrors | undefined;
|
|
213
|
+
}>;
|
|
196
214
|
}
|
|
197
215
|
declare function generateVideoStreamingUrl$1(httpClient: HttpClient): GenerateVideoStreamingUrlSignature;
|
|
198
216
|
interface GenerateVideoStreamingUrlSignature {
|
|
@@ -248,7 +266,9 @@ interface ListDeletedFilesSignature {
|
|
|
248
266
|
* >**Note:** The Media Manager's trash bin (`TRASH-ROOT` folder) only contains temporarily deleted files, not permanently deleted files.
|
|
249
267
|
* @param - Options to use when listing deleted files from the trash bin.
|
|
250
268
|
*/
|
|
251
|
-
(options?: ListDeletedFilesOptions | undefined): Promise<ListDeletedFilesResponse
|
|
269
|
+
(options?: ListDeletedFilesOptions | undefined): Promise<ListDeletedFilesResponse & {
|
|
270
|
+
__validationErrorsType?: ListDeletedFilesValidationErrors | undefined;
|
|
271
|
+
}>;
|
|
252
272
|
}
|
|
253
273
|
declare const onFileDescriptorDeleted$1: EventDefinition<FileDescriptorDeletedEnvelope, "wix.media.site_media.v1.file_descriptor_deleted">;
|
|
254
274
|
declare const onFileDescriptorFileFailed$1: EventDefinition<FileDescriptorFileFailedEnvelope, "wix.media.site_media.v1.file_descriptor_file_failed">;
|