@wix/media 1.0.31 → 1.0.33
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/meta.d.ts +2 -0
- package/build/cjs/meta.js +25 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.d.ts +15 -19
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js +1 -5
- package/build/cjs/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.meta.d.ts +35 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.meta.js +309 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.meta.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.d.ts +126 -14
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.d.ts +986 -7
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +1 -0
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +561 -23
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +1 -2
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.http.d.ts +8 -8
- package/build/cjs/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.meta.d.ts +27 -0
- package/build/cjs/src/media-site-media-v1-folder.meta.js +195 -0
- package/build/cjs/src/media-site-media-v1-folder.meta.js.map +1 -0
- package/build/cjs/src/media-site-media-v1-folder.public.d.ts +18 -8
- package/build/cjs/src/media-site-media-v1-folder.types.d.ts +51 -0
- package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +58 -7
- package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/build/es/meta.d.ts +2 -0
- package/build/es/meta.js +3 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.http.d.ts +15 -19
- package/build/es/src/media-site-media-v1-file-descriptor.http.js +1 -5
- package/build/es/src/media-site-media-v1-file-descriptor.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.meta.d.ts +35 -0
- package/build/es/src/media-site-media-v1-file-descriptor.meta.js +272 -0
- package/build/es/src/media-site-media-v1-file-descriptor.meta.js.map +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +126 -14
- package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +986 -7
- package/build/es/src/media-site-media-v1-file-descriptor.types.js +1 -0
- package/build/es/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +561 -23
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +1 -2
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.http.d.ts +8 -8
- package/build/es/src/media-site-media-v1-folder.http.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.meta.d.ts +27 -0
- package/build/es/src/media-site-media-v1-folder.meta.js +164 -0
- package/build/es/src/media-site-media-v1-folder.meta.js.map +1 -0
- package/build/es/src/media-site-media-v1-folder.public.d.ts +18 -8
- package/build/es/src/media-site-media-v1-folder.types.d.ts +51 -0
- package/build/es/src/media-site-media-v1-folder.universal.d.ts +58 -7
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/meta/package.json +6 -0
- package/package.json +4 -3
|
@@ -99,7 +99,8 @@ export declare enum MediaType {
|
|
|
99
99
|
DOCUMENT = "DOCUMENT",
|
|
100
100
|
VECTOR = "VECTOR",
|
|
101
101
|
ARCHIVE = "ARCHIVE",
|
|
102
|
-
MODEL3D = "MODEL3D"
|
|
102
|
+
MODEL3D = "MODEL3D",
|
|
103
|
+
OTHER = "OTHER"
|
|
103
104
|
}
|
|
104
105
|
export interface FileMedia extends FileMediaMediaOneOf {
|
|
105
106
|
/** Information about the image. */
|
|
@@ -274,6 +275,20 @@ export interface Model3D {
|
|
|
274
275
|
*/
|
|
275
276
|
sizeInBytes?: string | null;
|
|
276
277
|
}
|
|
278
|
+
export interface OtherMedia {
|
|
279
|
+
/** WixMedia ID. for use with Site Media APIs only */
|
|
280
|
+
_id?: string;
|
|
281
|
+
/**
|
|
282
|
+
* The media type of the file: 'site_icon', 'swf', 'package', 'ufont'
|
|
283
|
+
* @readonly
|
|
284
|
+
*/
|
|
285
|
+
internalMediaType?: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* size in bytes. Optional.
|
|
288
|
+
* @readonly
|
|
289
|
+
*/
|
|
290
|
+
sizeInBytes?: string | null;
|
|
291
|
+
}
|
|
277
292
|
export declare enum OperationStatus {
|
|
278
293
|
/** File upload or processing failed */
|
|
279
294
|
FAILED = "FAILED",
|
|
@@ -400,7 +415,10 @@ export interface GenerateFileUploadUrlRequest {
|
|
|
400
415
|
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
401
416
|
*/
|
|
402
417
|
fileName?: string | null;
|
|
403
|
-
/**
|
|
418
|
+
/**
|
|
419
|
+
* File size in bytes.
|
|
420
|
+
* @readonly
|
|
421
|
+
*/
|
|
404
422
|
sizeInBytes?: string | null;
|
|
405
423
|
/**
|
|
406
424
|
* ID of the file's parent folder. <br />
|
|
@@ -426,7 +444,10 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
426
444
|
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
427
445
|
*/
|
|
428
446
|
fileName?: string | null;
|
|
429
|
-
/**
|
|
447
|
+
/**
|
|
448
|
+
* File size in bytes.
|
|
449
|
+
* @readonly
|
|
450
|
+
*/
|
|
430
451
|
sizeInBytes?: string | null;
|
|
431
452
|
/**
|
|
432
453
|
* ID of the file's parent folder. <br />
|
|
@@ -503,7 +524,10 @@ export interface ListFilesRequest {
|
|
|
503
524
|
* Default:`media-root`.
|
|
504
525
|
*/
|
|
505
526
|
parentFolderId?: string | null;
|
|
506
|
-
/**
|
|
527
|
+
/**
|
|
528
|
+
* File media type.
|
|
529
|
+
* excluding: OTHER media type
|
|
530
|
+
*/
|
|
507
531
|
mediaTypes?: MediaType[];
|
|
508
532
|
/** Whether the link to the imported file is public or private. */
|
|
509
533
|
private?: boolean | null;
|
|
@@ -511,6 +535,7 @@ export interface ListFilesRequest {
|
|
|
511
535
|
* Field name and order to sort by. One of: <br />
|
|
512
536
|
* * `displayName`
|
|
513
537
|
* * `updatedDate`
|
|
538
|
+
* * `sizeInBytes`
|
|
514
539
|
* Default: `updatedDate` in `desc` order.
|
|
515
540
|
*/
|
|
516
541
|
sort?: Sorting;
|
|
@@ -569,7 +594,10 @@ export interface SearchFilesRequest {
|
|
|
569
594
|
* Default: `MEDIA_ROOT`.
|
|
570
595
|
*/
|
|
571
596
|
rootFolder?: RootFolder;
|
|
572
|
-
/**
|
|
597
|
+
/**
|
|
598
|
+
* File media type.
|
|
599
|
+
* excluding: OTHER media type
|
|
600
|
+
*/
|
|
573
601
|
mediaTypes?: MediaType[];
|
|
574
602
|
/** Whether the link to the imported file is public or private. */
|
|
575
603
|
private?: boolean | null;
|
|
@@ -577,6 +605,7 @@ export interface SearchFilesRequest {
|
|
|
577
605
|
* Field name and order to sort by. One of: <br />
|
|
578
606
|
* * `displayName`
|
|
579
607
|
* * `updatedDate`
|
|
608
|
+
* * `sizeInBytes`
|
|
580
609
|
* Default: `updatedDate` in `desc` order.
|
|
581
610
|
*/
|
|
582
611
|
sort?: Sorting;
|
|
@@ -641,7 +670,10 @@ export interface ListDeletedFilesRequest {
|
|
|
641
670
|
* Default: `media-root`.
|
|
642
671
|
*/
|
|
643
672
|
parentFolderId?: string | null;
|
|
644
|
-
/**
|
|
673
|
+
/**
|
|
674
|
+
* File media type.
|
|
675
|
+
* excluding: OTHER media type
|
|
676
|
+
*/
|
|
645
677
|
mediaTypes?: MediaType[];
|
|
646
678
|
/** Whether the link to the imported file is public or private. */
|
|
647
679
|
private?: boolean | null;
|
|
@@ -649,6 +681,7 @@ export interface ListDeletedFilesRequest {
|
|
|
649
681
|
* Field name and order to sort by. One of: <br />
|
|
650
682
|
* * `displayName`
|
|
651
683
|
* * `updatedDate`
|
|
684
|
+
* * `sizeInBytes`
|
|
652
685
|
* Default: `updatedDate` in `desc` order.
|
|
653
686
|
*/
|
|
654
687
|
sort?: Sorting;
|
|
@@ -661,6 +694,501 @@ export interface ListDeletedFilesResponse {
|
|
|
661
694
|
/** The next cursor if it exists. */
|
|
662
695
|
nextCursor?: PagingMetadataV2;
|
|
663
696
|
}
|
|
697
|
+
export interface GenerateFilesDownloadUrlResponseNonNullableFields {
|
|
698
|
+
downloadUrl: string;
|
|
699
|
+
}
|
|
700
|
+
export interface GenerateFileDownloadUrlResponseNonNullableFields {
|
|
701
|
+
downloadUrls: {
|
|
702
|
+
url: string;
|
|
703
|
+
assetKey: string;
|
|
704
|
+
}[];
|
|
705
|
+
}
|
|
706
|
+
export interface GetFileDescriptorResponseNonNullableFields {
|
|
707
|
+
file?: {
|
|
708
|
+
_id: string;
|
|
709
|
+
displayName: string;
|
|
710
|
+
url: string;
|
|
711
|
+
hash: string;
|
|
712
|
+
private: boolean;
|
|
713
|
+
mediaType: MediaType;
|
|
714
|
+
media?: {
|
|
715
|
+
image?: {
|
|
716
|
+
image: string;
|
|
717
|
+
colors?: {
|
|
718
|
+
palette: Color[];
|
|
719
|
+
};
|
|
720
|
+
faces: {
|
|
721
|
+
confidence: number;
|
|
722
|
+
x: number;
|
|
723
|
+
y: number;
|
|
724
|
+
height: number;
|
|
725
|
+
width: number;
|
|
726
|
+
}[];
|
|
727
|
+
previewImage: string;
|
|
728
|
+
};
|
|
729
|
+
video: string;
|
|
730
|
+
audio?: {
|
|
731
|
+
_id: string;
|
|
732
|
+
assets: string;
|
|
733
|
+
};
|
|
734
|
+
document: string;
|
|
735
|
+
vector?: {
|
|
736
|
+
image: string;
|
|
737
|
+
colors?: {
|
|
738
|
+
palette: Color[];
|
|
739
|
+
};
|
|
740
|
+
faces: {
|
|
741
|
+
confidence: number;
|
|
742
|
+
x: number;
|
|
743
|
+
y: number;
|
|
744
|
+
height: number;
|
|
745
|
+
width: number;
|
|
746
|
+
}[];
|
|
747
|
+
previewImage: string;
|
|
748
|
+
};
|
|
749
|
+
archive?: {
|
|
750
|
+
_id: string;
|
|
751
|
+
url: string;
|
|
752
|
+
};
|
|
753
|
+
model3d?: {
|
|
754
|
+
_id: string;
|
|
755
|
+
url: string;
|
|
756
|
+
thumbnail: string;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
operationStatus: OperationStatus;
|
|
760
|
+
labels: string[];
|
|
761
|
+
siteId: string;
|
|
762
|
+
state: State;
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
export interface GetFileDescriptorsResponseNonNullableFields {
|
|
766
|
+
files: {
|
|
767
|
+
_id: string;
|
|
768
|
+
displayName: string;
|
|
769
|
+
url: string;
|
|
770
|
+
hash: string;
|
|
771
|
+
private: boolean;
|
|
772
|
+
mediaType: MediaType;
|
|
773
|
+
media?: {
|
|
774
|
+
image?: {
|
|
775
|
+
image: string;
|
|
776
|
+
colors?: {
|
|
777
|
+
palette: Color[];
|
|
778
|
+
};
|
|
779
|
+
faces: {
|
|
780
|
+
confidence: number;
|
|
781
|
+
x: number;
|
|
782
|
+
y: number;
|
|
783
|
+
height: number;
|
|
784
|
+
width: number;
|
|
785
|
+
}[];
|
|
786
|
+
previewImage: string;
|
|
787
|
+
};
|
|
788
|
+
video: string;
|
|
789
|
+
audio?: {
|
|
790
|
+
_id: string;
|
|
791
|
+
assets: string;
|
|
792
|
+
};
|
|
793
|
+
document: string;
|
|
794
|
+
vector?: {
|
|
795
|
+
image: string;
|
|
796
|
+
colors?: {
|
|
797
|
+
palette: Color[];
|
|
798
|
+
};
|
|
799
|
+
faces: {
|
|
800
|
+
confidence: number;
|
|
801
|
+
x: number;
|
|
802
|
+
y: number;
|
|
803
|
+
height: number;
|
|
804
|
+
width: number;
|
|
805
|
+
}[];
|
|
806
|
+
previewImage: string;
|
|
807
|
+
};
|
|
808
|
+
archive?: {
|
|
809
|
+
_id: string;
|
|
810
|
+
url: string;
|
|
811
|
+
};
|
|
812
|
+
model3d?: {
|
|
813
|
+
_id: string;
|
|
814
|
+
url: string;
|
|
815
|
+
thumbnail: string;
|
|
816
|
+
};
|
|
817
|
+
};
|
|
818
|
+
operationStatus: OperationStatus;
|
|
819
|
+
labels: string[];
|
|
820
|
+
siteId: string;
|
|
821
|
+
state: State;
|
|
822
|
+
}[];
|
|
823
|
+
}
|
|
824
|
+
export interface UpdateFileDescriptorResponseNonNullableFields {
|
|
825
|
+
file?: {
|
|
826
|
+
_id: string;
|
|
827
|
+
displayName: string;
|
|
828
|
+
url: string;
|
|
829
|
+
hash: string;
|
|
830
|
+
private: boolean;
|
|
831
|
+
mediaType: MediaType;
|
|
832
|
+
media?: {
|
|
833
|
+
image?: {
|
|
834
|
+
image: string;
|
|
835
|
+
colors?: {
|
|
836
|
+
palette: Color[];
|
|
837
|
+
};
|
|
838
|
+
faces: {
|
|
839
|
+
confidence: number;
|
|
840
|
+
x: number;
|
|
841
|
+
y: number;
|
|
842
|
+
height: number;
|
|
843
|
+
width: number;
|
|
844
|
+
}[];
|
|
845
|
+
previewImage: string;
|
|
846
|
+
};
|
|
847
|
+
video: string;
|
|
848
|
+
audio?: {
|
|
849
|
+
_id: string;
|
|
850
|
+
assets: string;
|
|
851
|
+
};
|
|
852
|
+
document: string;
|
|
853
|
+
vector?: {
|
|
854
|
+
image: string;
|
|
855
|
+
colors?: {
|
|
856
|
+
palette: Color[];
|
|
857
|
+
};
|
|
858
|
+
faces: {
|
|
859
|
+
confidence: number;
|
|
860
|
+
x: number;
|
|
861
|
+
y: number;
|
|
862
|
+
height: number;
|
|
863
|
+
width: number;
|
|
864
|
+
}[];
|
|
865
|
+
previewImage: string;
|
|
866
|
+
};
|
|
867
|
+
archive?: {
|
|
868
|
+
_id: string;
|
|
869
|
+
url: string;
|
|
870
|
+
};
|
|
871
|
+
model3d?: {
|
|
872
|
+
_id: string;
|
|
873
|
+
url: string;
|
|
874
|
+
thumbnail: string;
|
|
875
|
+
};
|
|
876
|
+
};
|
|
877
|
+
operationStatus: OperationStatus;
|
|
878
|
+
labels: string[];
|
|
879
|
+
siteId: string;
|
|
880
|
+
state: State;
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
export interface GenerateFileUploadUrlResponseNonNullableFields {
|
|
884
|
+
uploadUrl: string;
|
|
885
|
+
}
|
|
886
|
+
export interface GenerateFileResumableUploadUrlResponseNonNullableFields {
|
|
887
|
+
uploadProtocol: UploadProtocol;
|
|
888
|
+
uploadUrl: string;
|
|
889
|
+
uploadToken: string;
|
|
890
|
+
}
|
|
891
|
+
export interface ImportFileResponseNonNullableFields {
|
|
892
|
+
file?: {
|
|
893
|
+
_id: string;
|
|
894
|
+
displayName: string;
|
|
895
|
+
url: string;
|
|
896
|
+
hash: string;
|
|
897
|
+
private: boolean;
|
|
898
|
+
mediaType: MediaType;
|
|
899
|
+
media?: {
|
|
900
|
+
image?: {
|
|
901
|
+
image: string;
|
|
902
|
+
colors?: {
|
|
903
|
+
palette: Color[];
|
|
904
|
+
};
|
|
905
|
+
faces: {
|
|
906
|
+
confidence: number;
|
|
907
|
+
x: number;
|
|
908
|
+
y: number;
|
|
909
|
+
height: number;
|
|
910
|
+
width: number;
|
|
911
|
+
}[];
|
|
912
|
+
previewImage: string;
|
|
913
|
+
};
|
|
914
|
+
video: string;
|
|
915
|
+
audio?: {
|
|
916
|
+
_id: string;
|
|
917
|
+
assets: string;
|
|
918
|
+
};
|
|
919
|
+
document: string;
|
|
920
|
+
vector?: {
|
|
921
|
+
image: string;
|
|
922
|
+
colors?: {
|
|
923
|
+
palette: Color[];
|
|
924
|
+
};
|
|
925
|
+
faces: {
|
|
926
|
+
confidence: number;
|
|
927
|
+
x: number;
|
|
928
|
+
y: number;
|
|
929
|
+
height: number;
|
|
930
|
+
width: number;
|
|
931
|
+
}[];
|
|
932
|
+
previewImage: string;
|
|
933
|
+
};
|
|
934
|
+
archive?: {
|
|
935
|
+
_id: string;
|
|
936
|
+
url: string;
|
|
937
|
+
};
|
|
938
|
+
model3d?: {
|
|
939
|
+
_id: string;
|
|
940
|
+
url: string;
|
|
941
|
+
thumbnail: string;
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
operationStatus: OperationStatus;
|
|
945
|
+
labels: string[];
|
|
946
|
+
siteId: string;
|
|
947
|
+
state: State;
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
export interface BulkImportFilesResponseNonNullableFields {
|
|
951
|
+
files: {
|
|
952
|
+
_id: string;
|
|
953
|
+
displayName: string;
|
|
954
|
+
url: string;
|
|
955
|
+
hash: string;
|
|
956
|
+
private: boolean;
|
|
957
|
+
mediaType: MediaType;
|
|
958
|
+
media?: {
|
|
959
|
+
image?: {
|
|
960
|
+
image: string;
|
|
961
|
+
colors?: {
|
|
962
|
+
palette: Color[];
|
|
963
|
+
};
|
|
964
|
+
faces: {
|
|
965
|
+
confidence: number;
|
|
966
|
+
x: number;
|
|
967
|
+
y: number;
|
|
968
|
+
height: number;
|
|
969
|
+
width: number;
|
|
970
|
+
}[];
|
|
971
|
+
previewImage: string;
|
|
972
|
+
};
|
|
973
|
+
video: string;
|
|
974
|
+
audio?: {
|
|
975
|
+
_id: string;
|
|
976
|
+
assets: string;
|
|
977
|
+
};
|
|
978
|
+
document: string;
|
|
979
|
+
vector?: {
|
|
980
|
+
image: string;
|
|
981
|
+
colors?: {
|
|
982
|
+
palette: Color[];
|
|
983
|
+
};
|
|
984
|
+
faces: {
|
|
985
|
+
confidence: number;
|
|
986
|
+
x: number;
|
|
987
|
+
y: number;
|
|
988
|
+
height: number;
|
|
989
|
+
width: number;
|
|
990
|
+
}[];
|
|
991
|
+
previewImage: string;
|
|
992
|
+
};
|
|
993
|
+
archive?: {
|
|
994
|
+
_id: string;
|
|
995
|
+
url: string;
|
|
996
|
+
};
|
|
997
|
+
model3d?: {
|
|
998
|
+
_id: string;
|
|
999
|
+
url: string;
|
|
1000
|
+
thumbnail: string;
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
operationStatus: OperationStatus;
|
|
1004
|
+
labels: string[];
|
|
1005
|
+
siteId: string;
|
|
1006
|
+
state: State;
|
|
1007
|
+
}[];
|
|
1008
|
+
}
|
|
1009
|
+
export interface ListFilesResponseNonNullableFields {
|
|
1010
|
+
files: {
|
|
1011
|
+
_id: string;
|
|
1012
|
+
displayName: string;
|
|
1013
|
+
url: string;
|
|
1014
|
+
hash: string;
|
|
1015
|
+
private: boolean;
|
|
1016
|
+
mediaType: MediaType;
|
|
1017
|
+
media?: {
|
|
1018
|
+
image?: {
|
|
1019
|
+
image: string;
|
|
1020
|
+
colors?: {
|
|
1021
|
+
palette: Color[];
|
|
1022
|
+
};
|
|
1023
|
+
faces: {
|
|
1024
|
+
confidence: number;
|
|
1025
|
+
x: number;
|
|
1026
|
+
y: number;
|
|
1027
|
+
height: number;
|
|
1028
|
+
width: number;
|
|
1029
|
+
}[];
|
|
1030
|
+
previewImage: string;
|
|
1031
|
+
};
|
|
1032
|
+
video: string;
|
|
1033
|
+
audio?: {
|
|
1034
|
+
_id: string;
|
|
1035
|
+
assets: string;
|
|
1036
|
+
};
|
|
1037
|
+
document: string;
|
|
1038
|
+
vector?: {
|
|
1039
|
+
image: string;
|
|
1040
|
+
colors?: {
|
|
1041
|
+
palette: Color[];
|
|
1042
|
+
};
|
|
1043
|
+
faces: {
|
|
1044
|
+
confidence: number;
|
|
1045
|
+
x: number;
|
|
1046
|
+
y: number;
|
|
1047
|
+
height: number;
|
|
1048
|
+
width: number;
|
|
1049
|
+
}[];
|
|
1050
|
+
previewImage: string;
|
|
1051
|
+
};
|
|
1052
|
+
archive?: {
|
|
1053
|
+
_id: string;
|
|
1054
|
+
url: string;
|
|
1055
|
+
};
|
|
1056
|
+
model3d?: {
|
|
1057
|
+
_id: string;
|
|
1058
|
+
url: string;
|
|
1059
|
+
thumbnail: string;
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
operationStatus: OperationStatus;
|
|
1063
|
+
labels: string[];
|
|
1064
|
+
siteId: string;
|
|
1065
|
+
state: State;
|
|
1066
|
+
}[];
|
|
1067
|
+
}
|
|
1068
|
+
export interface SearchFilesResponseNonNullableFields {
|
|
1069
|
+
files: {
|
|
1070
|
+
_id: string;
|
|
1071
|
+
displayName: string;
|
|
1072
|
+
url: string;
|
|
1073
|
+
hash: string;
|
|
1074
|
+
private: boolean;
|
|
1075
|
+
mediaType: MediaType;
|
|
1076
|
+
media?: {
|
|
1077
|
+
image?: {
|
|
1078
|
+
image: string;
|
|
1079
|
+
colors?: {
|
|
1080
|
+
palette: Color[];
|
|
1081
|
+
};
|
|
1082
|
+
faces: {
|
|
1083
|
+
confidence: number;
|
|
1084
|
+
x: number;
|
|
1085
|
+
y: number;
|
|
1086
|
+
height: number;
|
|
1087
|
+
width: number;
|
|
1088
|
+
}[];
|
|
1089
|
+
previewImage: string;
|
|
1090
|
+
};
|
|
1091
|
+
video: string;
|
|
1092
|
+
audio?: {
|
|
1093
|
+
_id: string;
|
|
1094
|
+
assets: string;
|
|
1095
|
+
};
|
|
1096
|
+
document: string;
|
|
1097
|
+
vector?: {
|
|
1098
|
+
image: string;
|
|
1099
|
+
colors?: {
|
|
1100
|
+
palette: Color[];
|
|
1101
|
+
};
|
|
1102
|
+
faces: {
|
|
1103
|
+
confidence: number;
|
|
1104
|
+
x: number;
|
|
1105
|
+
y: number;
|
|
1106
|
+
height: number;
|
|
1107
|
+
width: number;
|
|
1108
|
+
}[];
|
|
1109
|
+
previewImage: string;
|
|
1110
|
+
};
|
|
1111
|
+
archive?: {
|
|
1112
|
+
_id: string;
|
|
1113
|
+
url: string;
|
|
1114
|
+
};
|
|
1115
|
+
model3d?: {
|
|
1116
|
+
_id: string;
|
|
1117
|
+
url: string;
|
|
1118
|
+
thumbnail: string;
|
|
1119
|
+
};
|
|
1120
|
+
};
|
|
1121
|
+
operationStatus: OperationStatus;
|
|
1122
|
+
labels: string[];
|
|
1123
|
+
siteId: string;
|
|
1124
|
+
state: State;
|
|
1125
|
+
}[];
|
|
1126
|
+
}
|
|
1127
|
+
export interface GenerateVideoStreamingUrlResponseNonNullableFields {
|
|
1128
|
+
downloadUrl?: {
|
|
1129
|
+
url: string;
|
|
1130
|
+
assetKey: string;
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
export interface ListDeletedFilesResponseNonNullableFields {
|
|
1134
|
+
files: {
|
|
1135
|
+
_id: string;
|
|
1136
|
+
displayName: string;
|
|
1137
|
+
url: string;
|
|
1138
|
+
hash: string;
|
|
1139
|
+
private: boolean;
|
|
1140
|
+
mediaType: MediaType;
|
|
1141
|
+
media?: {
|
|
1142
|
+
image?: {
|
|
1143
|
+
image: string;
|
|
1144
|
+
colors?: {
|
|
1145
|
+
palette: Color[];
|
|
1146
|
+
};
|
|
1147
|
+
faces: {
|
|
1148
|
+
confidence: number;
|
|
1149
|
+
x: number;
|
|
1150
|
+
y: number;
|
|
1151
|
+
height: number;
|
|
1152
|
+
width: number;
|
|
1153
|
+
}[];
|
|
1154
|
+
previewImage: string;
|
|
1155
|
+
};
|
|
1156
|
+
video: string;
|
|
1157
|
+
audio?: {
|
|
1158
|
+
_id: string;
|
|
1159
|
+
assets: string;
|
|
1160
|
+
};
|
|
1161
|
+
document: string;
|
|
1162
|
+
vector?: {
|
|
1163
|
+
image: string;
|
|
1164
|
+
colors?: {
|
|
1165
|
+
palette: Color[];
|
|
1166
|
+
};
|
|
1167
|
+
faces: {
|
|
1168
|
+
confidence: number;
|
|
1169
|
+
x: number;
|
|
1170
|
+
y: number;
|
|
1171
|
+
height: number;
|
|
1172
|
+
width: number;
|
|
1173
|
+
}[];
|
|
1174
|
+
previewImage: string;
|
|
1175
|
+
};
|
|
1176
|
+
archive?: {
|
|
1177
|
+
_id: string;
|
|
1178
|
+
url: string;
|
|
1179
|
+
};
|
|
1180
|
+
model3d?: {
|
|
1181
|
+
_id: string;
|
|
1182
|
+
url: string;
|
|
1183
|
+
thumbnail: string;
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
operationStatus: OperationStatus;
|
|
1187
|
+
labels: string[];
|
|
1188
|
+
siteId: string;
|
|
1189
|
+
state: State;
|
|
1190
|
+
}[];
|
|
1191
|
+
}
|
|
664
1192
|
/**
|
|
665
1193
|
* Generates a URL for downloading a compressed file containing specific files in the Media Manager.
|
|
666
1194
|
*
|
|
@@ -671,7 +1199,7 @@ export interface ListDeletedFilesResponse {
|
|
|
671
1199
|
* @permissionScope Manage Media Manager
|
|
672
1200
|
* @applicableIdentity APP
|
|
673
1201
|
*/
|
|
674
|
-
export declare function generateFilesDownloadUrl(fileIds: string[]): Promise<GenerateFilesDownloadUrlResponse>;
|
|
1202
|
+
export declare function generateFilesDownloadUrl(fileIds: string[]): Promise<GenerateFilesDownloadUrlResponse & GenerateFilesDownloadUrlResponseNonNullableFields>;
|
|
675
1203
|
/**
|
|
676
1204
|
* Generates one or more temporary URLs for downloading a specific file in the Media Manager.
|
|
677
1205
|
*
|
|
@@ -686,7 +1214,7 @@ export declare function generateFilesDownloadUrl(fileIds: string[]): Promise<Gen
|
|
|
686
1214
|
* @permissionScope Manage Media Manager
|
|
687
1215
|
* @applicableIdentity APP
|
|
688
1216
|
*/
|
|
689
|
-
export declare function generateFileDownloadUrl(fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<GenerateFileDownloadUrlResponse>;
|
|
1217
|
+
export declare function generateFileDownloadUrl(fileId: string, options?: GenerateFileDownloadUrlOptions): Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
690
1218
|
export interface GenerateFileDownloadUrlOptions {
|
|
691
1219
|
/**
|
|
692
1220
|
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type. <br />
|
|
@@ -720,7 +1248,7 @@ export interface GenerateFileDownloadUrlOptions {
|
|
|
720
1248
|
* @applicableIdentity APP
|
|
721
1249
|
* @returns Information about the file.
|
|
722
1250
|
*/
|
|
723
|
-
export declare function getFileDescriptor(fileId: string): Promise<FileDescriptor>;
|
|
1251
|
+
export declare function getFileDescriptor(fileId: string): Promise<FileDescriptor & NonNullable<GetFileDescriptorResponseNonNullableFields>['file']>;
|
|
724
1252
|
/**
|
|
725
1253
|
* Gets information about the specified files in the Media Manager.
|
|
726
1254
|
* @param fileIds - File IDs.
|
|
@@ -729,7 +1257,7 @@ export declare function getFileDescriptor(fileId: string): Promise<FileDescripto
|
|
|
729
1257
|
* @permissionScope Read Media Manager
|
|
730
1258
|
* @applicableIdentity APP
|
|
731
1259
|
*/
|
|
732
|
-
export declare function getFileDescriptors(fileIds: string[]): Promise<GetFileDescriptorsResponse>;
|
|
1260
|
+
export declare function getFileDescriptors(fileIds: string[]): Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
733
1261
|
/**
|
|
734
1262
|
* Updates a file. <br />
|
|
735
1263
|
*
|
|
@@ -742,7 +1270,7 @@ export declare function getFileDescriptors(fileIds: string[]): Promise<GetFileDe
|
|
|
742
1270
|
* @applicableIdentity APP
|
|
743
1271
|
* @returns Information about the updated file.
|
|
744
1272
|
*/
|
|
745
|
-
export declare function updateFileDescriptor(_id: string, file: UpdateFileDescriptorFile): Promise<FileDescriptor>;
|
|
1273
|
+
export declare function updateFileDescriptor(_id: string, file: UpdateFileDescriptorFile): Promise<FileDescriptor & NonNullable<UpdateFileDescriptorResponseNonNullableFields>['file']>;
|
|
746
1274
|
export interface UpdateFileDescriptorFile {
|
|
747
1275
|
/**
|
|
748
1276
|
* File ID. Generated when a file is uploaded to the Media Manager.
|
|
@@ -843,14 +1371,17 @@ export interface UpdateFileDescriptorFile {
|
|
|
843
1371
|
* @permissionScope Manage Media Manager
|
|
844
1372
|
* @applicableIdentity APP
|
|
845
1373
|
*/
|
|
846
|
-
export declare function generateFileUploadUrl(mimeType: string | null, options?: GenerateFileUploadUrlOptions): Promise<GenerateFileUploadUrlResponse>;
|
|
1374
|
+
export declare function generateFileUploadUrl(mimeType: string | null, options?: GenerateFileUploadUrlOptions): Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
847
1375
|
export interface GenerateFileUploadUrlOptions {
|
|
848
1376
|
/**
|
|
849
1377
|
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
850
1378
|
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
851
1379
|
*/
|
|
852
1380
|
fileName?: string | null;
|
|
853
|
-
/**
|
|
1381
|
+
/**
|
|
1382
|
+
* File size in bytes.
|
|
1383
|
+
* @readonly
|
|
1384
|
+
*/
|
|
854
1385
|
sizeInBytes?: string | null;
|
|
855
1386
|
/**
|
|
856
1387
|
* ID of the file's parent folder. <br />
|
|
@@ -877,14 +1408,17 @@ export interface GenerateFileUploadUrlOptions {
|
|
|
877
1408
|
* @permissionScope Manage Media Manager
|
|
878
1409
|
* @applicableIdentity APP
|
|
879
1410
|
*/
|
|
880
|
-
export declare function generateFileResumableUploadUrl(mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions): Promise<GenerateFileResumableUploadUrlResponse>;
|
|
1411
|
+
export declare function generateFileResumableUploadUrl(mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions): Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
881
1412
|
export interface GenerateFileResumableUploadUrlOptions {
|
|
882
1413
|
/**
|
|
883
1414
|
* Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.
|
|
884
1415
|
* <br /> **Note:** The name that appears in the Media Manager is taken from the `filename` query parameter in the upload request.
|
|
885
1416
|
*/
|
|
886
1417
|
fileName?: string | null;
|
|
887
|
-
/**
|
|
1418
|
+
/**
|
|
1419
|
+
* File size in bytes.
|
|
1420
|
+
* @readonly
|
|
1421
|
+
*/
|
|
888
1422
|
sizeInBytes?: string | null;
|
|
889
1423
|
/**
|
|
890
1424
|
* ID of the file's parent folder. <br />
|
|
@@ -923,7 +1457,7 @@ export interface GenerateFileResumableUploadUrlOptions {
|
|
|
923
1457
|
* @permissionScope Manage Media Manager
|
|
924
1458
|
* @applicableIdentity APP
|
|
925
1459
|
*/
|
|
926
|
-
export declare function importFile(url: string, options?: ImportFileOptions): Promise<ImportFileResponse>;
|
|
1460
|
+
export declare function importFile(url: string, options?: ImportFileOptions): Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|
|
927
1461
|
export interface ImportFileOptions {
|
|
928
1462
|
/**
|
|
929
1463
|
* Media type of the file to import.
|
|
@@ -971,7 +1505,7 @@ export interface ImportFileOptions {
|
|
|
971
1505
|
* @permissionScope Manage Media Manager
|
|
972
1506
|
* @applicableIdentity APP
|
|
973
1507
|
*/
|
|
974
|
-
export declare function bulkImportFiles(importFileRequests: ImportFileRequest[]): Promise<BulkImportFilesResponse>;
|
|
1508
|
+
export declare function bulkImportFiles(importFileRequests: ImportFileRequest[]): Promise<BulkImportFilesResponse & BulkImportFilesResponseNonNullableFields>;
|
|
975
1509
|
/**
|
|
976
1510
|
* Retrieves a list of files in the Media Manager.
|
|
977
1511
|
*
|
|
@@ -981,7 +1515,7 @@ export declare function bulkImportFiles(importFileRequests: ImportFileRequest[])
|
|
|
981
1515
|
* @permissionScope Read Media Manager
|
|
982
1516
|
* @applicableIdentity APP
|
|
983
1517
|
*/
|
|
984
|
-
export declare function listFiles(options?: ListFilesOptions): Promise<ListFilesResponse>;
|
|
1518
|
+
export declare function listFiles(options?: ListFilesOptions): Promise<ListFilesResponse & ListFilesResponseNonNullableFields>;
|
|
985
1519
|
export interface ListFilesOptions {
|
|
986
1520
|
/**
|
|
987
1521
|
* ID of the file's parent folder. <br />
|
|
@@ -1000,6 +1534,7 @@ export interface ListFilesOptions {
|
|
|
1000
1534
|
* Field name and order to sort by. One of: <br />
|
|
1001
1535
|
* * `displayName`
|
|
1002
1536
|
* * `updatedDate`
|
|
1537
|
+
* * `sizeInBytes`
|
|
1003
1538
|
* Default: `updatedDate` in `desc` order.
|
|
1004
1539
|
*/
|
|
1005
1540
|
sort?: Sorting;
|
|
@@ -1015,7 +1550,7 @@ export interface ListFilesOptions {
|
|
|
1015
1550
|
* @permissionScope Read Media Manager
|
|
1016
1551
|
* @applicableIdentity APP
|
|
1017
1552
|
*/
|
|
1018
|
-
export declare function searchFiles(options?: SearchFilesOptions): Promise<SearchFilesResponse>;
|
|
1553
|
+
export declare function searchFiles(options?: SearchFilesOptions): Promise<SearchFilesResponse & SearchFilesResponseNonNullableFields>;
|
|
1019
1554
|
export interface SearchFilesOptions {
|
|
1020
1555
|
/**
|
|
1021
1556
|
* Term to search for. Possible terms include the value of a file's
|
|
@@ -1025,6 +1560,9 @@ export interface SearchFilesOptions {
|
|
|
1025
1560
|
search?: string | null;
|
|
1026
1561
|
/**
|
|
1027
1562
|
* A root folder in the media manager to search in. <br />
|
|
1563
|
+
*
|
|
1564
|
+
* Supported values: `"MEDIA_ROOT"`, `"TRASH_ROOT"`, `"VISITOR_UPLOADS_ROOT"`
|
|
1565
|
+
*
|
|
1028
1566
|
* Default: `MEDIA_ROOT`.
|
|
1029
1567
|
*/
|
|
1030
1568
|
rootFolder?: RootFolder;
|
|
@@ -1040,6 +1578,7 @@ export interface SearchFilesOptions {
|
|
|
1040
1578
|
* Field name and order to sort by. One of: <br />
|
|
1041
1579
|
* * `displayName`
|
|
1042
1580
|
* * `updatedDate`
|
|
1581
|
+
* * `sizeInBytes`
|
|
1043
1582
|
* Default: `updatedDate` in `desc` order.
|
|
1044
1583
|
*/
|
|
1045
1584
|
sort?: Sorting;
|
|
@@ -1048,8 +1587,6 @@ export interface SearchFilesOptions {
|
|
|
1048
1587
|
}
|
|
1049
1588
|
/**
|
|
1050
1589
|
* Generates a URL for streaming a specific video file in the Media Manager.
|
|
1051
|
-
*
|
|
1052
|
-
* To stream different assets of the file, use the `assetKeys` parameter which generates a video streaming URL for each asset. If no assetKey is specified, it defaults to `src`, which generates one video streaming URL in the original file's format and quality.
|
|
1053
1590
|
* @param fileId - File ID.
|
|
1054
1591
|
* @public
|
|
1055
1592
|
* @requiredField fileId
|
|
@@ -1057,7 +1594,7 @@ export interface SearchFilesOptions {
|
|
|
1057
1594
|
* @permissionScope Read Media Manager
|
|
1058
1595
|
* @applicableIdentity APP
|
|
1059
1596
|
*/
|
|
1060
|
-
export declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<GenerateVideoStreamingUrlResponse>;
|
|
1597
|
+
export declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVideoStreamingUrlOptions): Promise<GenerateVideoStreamingUrlResponse & GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
1061
1598
|
export interface GenerateVideoStreamingUrlOptions {
|
|
1062
1599
|
/**
|
|
1063
1600
|
* Video stream format.
|
|
@@ -1113,7 +1650,7 @@ export declare function bulkRestoreFilesFromTrashBin(fileIds: string[]): Promise
|
|
|
1113
1650
|
* @permissionScope Read Media Manager
|
|
1114
1651
|
* @applicableIdentity APP
|
|
1115
1652
|
*/
|
|
1116
|
-
export declare function listDeletedFiles(options?: ListDeletedFilesOptions): Promise<ListDeletedFilesResponse>;
|
|
1653
|
+
export declare function listDeletedFiles(options?: ListDeletedFilesOptions): Promise<ListDeletedFilesResponse & ListDeletedFilesResponseNonNullableFields>;
|
|
1117
1654
|
export interface ListDeletedFilesOptions {
|
|
1118
1655
|
/**
|
|
1119
1656
|
* ID of the file's parent folder. <br />
|
|
@@ -1132,6 +1669,7 @@ export interface ListDeletedFilesOptions {
|
|
|
1132
1669
|
* Field name and order to sort by. One of: <br />
|
|
1133
1670
|
* * `displayName`
|
|
1134
1671
|
* * `updatedDate`
|
|
1672
|
+
* * `sizeInBytes`
|
|
1135
1673
|
* Default: `updatedDate` in `desc` order.
|
|
1136
1674
|
*/
|
|
1137
1675
|
sort?: Sorting;
|