@wix/auto_sdk_media_files 1.0.92 → 1.0.94
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 +14 -3
- package/build/cjs/index.js +139 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +40 -9
- package/build/cjs/index.typings.js +131 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -7
- package/build/cjs/meta.js +97 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +197 -1
- package/build/cjs/schemas.js +252 -7
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +14 -3
- package/build/es/index.mjs +138 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +40 -9
- package/build/es/index.typings.mjs +130 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -7
- package/build/es/meta.mjs +96 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +197 -1
- package/build/es/schemas.mjs +250 -7
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -3
- package/build/internal/cjs/index.js +139 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +40 -9
- package/build/internal/cjs/index.typings.js +131 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +22 -7
- package/build/internal/cjs/meta.js +97 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +197 -1
- package/build/internal/cjs/schemas.js +252 -7
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -3
- package/build/internal/es/index.mjs +138 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +40 -9
- package/build/internal/es/index.typings.mjs +130 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +22 -7
- package/build/internal/es/meta.mjs +96 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +197 -1
- package/build/internal/es/schemas.mjs +250 -7
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1880,6 +1880,202 @@ declare const SearchFilesResponse: z.ZodObject<{
|
|
|
1880
1880
|
}, z.core.$strip>>;
|
|
1881
1881
|
}, z.core.$strip>>;
|
|
1882
1882
|
}, z.core.$strip>;
|
|
1883
|
+
declare const SearchFilesCrossSiteRequest: z.ZodObject<{
|
|
1884
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
1885
|
+
mediaType: z.ZodOptional<z.ZodEnum<{
|
|
1886
|
+
UNKNOWN: "UNKNOWN";
|
|
1887
|
+
IMAGE: "IMAGE";
|
|
1888
|
+
VIDEO: "VIDEO";
|
|
1889
|
+
AUDIO: "AUDIO";
|
|
1890
|
+
DOCUMENT: "DOCUMENT";
|
|
1891
|
+
VECTOR: "VECTOR";
|
|
1892
|
+
ARCHIVE: "ARCHIVE";
|
|
1893
|
+
MODEL3D: "MODEL3D";
|
|
1894
|
+
OTHER: "OTHER";
|
|
1895
|
+
}>>;
|
|
1896
|
+
}, z.core.$strip>>;
|
|
1897
|
+
}, z.core.$strip>;
|
|
1898
|
+
declare const SearchFilesCrossSiteResponse: z.ZodObject<{
|
|
1899
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1900
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1901
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1902
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1903
|
+
parentFolderId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1904
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
1905
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1906
|
+
private: z.ZodOptional<z.ZodBoolean>;
|
|
1907
|
+
mediaType: z.ZodOptional<z.ZodEnum<{
|
|
1908
|
+
UNKNOWN: "UNKNOWN";
|
|
1909
|
+
IMAGE: "IMAGE";
|
|
1910
|
+
VIDEO: "VIDEO";
|
|
1911
|
+
AUDIO: "AUDIO";
|
|
1912
|
+
DOCUMENT: "DOCUMENT";
|
|
1913
|
+
VECTOR: "VECTOR";
|
|
1914
|
+
ARCHIVE: "ARCHIVE";
|
|
1915
|
+
MODEL3D: "MODEL3D";
|
|
1916
|
+
OTHER: "OTHER";
|
|
1917
|
+
}>>;
|
|
1918
|
+
media: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
1919
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
1920
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
1921
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
1922
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
1923
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
1924
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
1925
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
1926
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1927
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
1928
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
1929
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
1930
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
1931
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
1932
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
1933
|
+
image: z.ZodObject<{
|
|
1934
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1935
|
+
colors: z.ZodOptional<z.ZodObject<{
|
|
1936
|
+
prominent: z.ZodOptional<z.ZodObject<{
|
|
1937
|
+
hex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1938
|
+
rgb: z.ZodOptional<z.ZodObject<{
|
|
1939
|
+
r: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1940
|
+
g: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1941
|
+
b: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1942
|
+
}, z.core.$strip>>;
|
|
1943
|
+
}, z.core.$strip>>;
|
|
1944
|
+
palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1945
|
+
hex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1946
|
+
rgb: z.ZodOptional<z.ZodObject<{
|
|
1947
|
+
r: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1948
|
+
g: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1949
|
+
b: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1950
|
+
}, z.core.$strip>>;
|
|
1951
|
+
}, z.core.$strip>>>;
|
|
1952
|
+
}, z.core.$strip>>;
|
|
1953
|
+
faces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1954
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1955
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
1956
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
1957
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1958
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1959
|
+
}, z.core.$strip>>>;
|
|
1960
|
+
previewImage: z.ZodOptional<z.ZodString>;
|
|
1961
|
+
caption: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1962
|
+
}, z.core.$strip>;
|
|
1963
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1964
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
1965
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
1966
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
1967
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
1968
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
1969
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
1970
|
+
video: z.ZodString;
|
|
1971
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1972
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
1973
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
1974
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
1975
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
1976
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
1977
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
1978
|
+
audio: z.ZodObject<{
|
|
1979
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
1980
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1981
|
+
bitrate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1982
|
+
format: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1983
|
+
duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1984
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1985
|
+
}, z.core.$strip>;
|
|
1986
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1987
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
1988
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
1989
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
1990
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
1991
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
1992
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
1993
|
+
document: z.ZodString;
|
|
1994
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1995
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
1996
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
1997
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
1998
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
1999
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
2000
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
2001
|
+
vector: z.ZodObject<{
|
|
2002
|
+
image: z.ZodOptional<z.ZodString>;
|
|
2003
|
+
colors: z.ZodOptional<z.ZodObject<{
|
|
2004
|
+
prominent: z.ZodOptional<z.ZodObject<{
|
|
2005
|
+
hex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2006
|
+
rgb: z.ZodOptional<z.ZodObject<{
|
|
2007
|
+
r: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2008
|
+
g: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2009
|
+
b: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2010
|
+
}, z.core.$strip>>;
|
|
2011
|
+
}, z.core.$strip>>;
|
|
2012
|
+
palette: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2013
|
+
hex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2014
|
+
rgb: z.ZodOptional<z.ZodObject<{
|
|
2015
|
+
r: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2016
|
+
g: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2017
|
+
b: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2018
|
+
}, z.core.$strip>>;
|
|
2019
|
+
}, z.core.$strip>>>;
|
|
2020
|
+
}, z.core.$strip>>;
|
|
2021
|
+
faces: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2022
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
2023
|
+
x: z.ZodOptional<z.ZodNumber>;
|
|
2024
|
+
y: z.ZodOptional<z.ZodNumber>;
|
|
2025
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
2026
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
2027
|
+
}, z.core.$strip>>>;
|
|
2028
|
+
previewImage: z.ZodOptional<z.ZodString>;
|
|
2029
|
+
caption: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2030
|
+
}, z.core.$strip>;
|
|
2031
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2032
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
2033
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
2034
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
2035
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
2036
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
2037
|
+
model3d: z.ZodOptional<z.ZodNever>;
|
|
2038
|
+
archive: z.ZodObject<{
|
|
2039
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
2040
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2041
|
+
urlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2042
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2043
|
+
filename: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2044
|
+
}, z.core.$strip>;
|
|
2045
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2046
|
+
image: z.ZodOptional<z.ZodNever>;
|
|
2047
|
+
video: z.ZodOptional<z.ZodNever>;
|
|
2048
|
+
audio: z.ZodOptional<z.ZodNever>;
|
|
2049
|
+
document: z.ZodOptional<z.ZodNever>;
|
|
2050
|
+
vector: z.ZodOptional<z.ZodNever>;
|
|
2051
|
+
archive: z.ZodOptional<z.ZodNever>;
|
|
2052
|
+
model3d: z.ZodObject<{
|
|
2053
|
+
_id: z.ZodOptional<z.ZodString>;
|
|
2054
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2055
|
+
thumbnail: z.ZodOptional<z.ZodString>;
|
|
2056
|
+
altText: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2057
|
+
urlExpirationDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2058
|
+
filename: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2059
|
+
sizeInBytes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2060
|
+
}, z.core.$strip>;
|
|
2061
|
+
}, z.core.$strip>]>>>;
|
|
2062
|
+
operationStatus: z.ZodOptional<z.ZodEnum<{
|
|
2063
|
+
FAILED: "FAILED";
|
|
2064
|
+
READY: "READY";
|
|
2065
|
+
PENDING: "PENDING";
|
|
2066
|
+
}>>;
|
|
2067
|
+
sourceUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2068
|
+
thumbnailUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2069
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2070
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2071
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
2072
|
+
siteId: z.ZodOptional<z.ZodString>;
|
|
2073
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
2074
|
+
OK: "OK";
|
|
2075
|
+
DELETED: "DELETED";
|
|
2076
|
+
}>>;
|
|
2077
|
+
}, z.core.$strip>>>;
|
|
2078
|
+
}, z.core.$strip>;
|
|
1883
2079
|
declare const GenerateVideoStreamingUrlRequest: z.ZodObject<{
|
|
1884
2080
|
fileId: z.ZodString;
|
|
1885
2081
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -2334,4 +2530,4 @@ declare const QueryFileDescriptorsResponse: z.ZodObject<{
|
|
|
2334
2530
|
}, z.core.$strip>>;
|
|
2335
2531
|
}, z.core.$strip>;
|
|
2336
2532
|
|
|
2337
|
-
export { BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, ImportFileRequest, ImportFileResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, ListFilesRequest, ListFilesResponse, QueryFileDescriptorsRequest, QueryFileDescriptorsResponse, SearchFilesRequest, SearchFilesResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse };
|
|
2533
|
+
export { BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, ImportFileRequest, ImportFileResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, ListFilesRequest, ListFilesResponse, QueryFileDescriptorsRequest, QueryFileDescriptorsResponse, SearchFilesCrossSiteRequest, SearchFilesCrossSiteResponse, SearchFilesRequest, SearchFilesResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse };
|
|
@@ -60,6 +60,8 @@ __export(schemas_exports, {
|
|
|
60
60
|
ListFilesResponse: () => ListFilesResponse,
|
|
61
61
|
QueryFileDescriptorsRequest: () => QueryFileDescriptorsRequest,
|
|
62
62
|
QueryFileDescriptorsResponse: () => QueryFileDescriptorsResponse,
|
|
63
|
+
SearchFilesCrossSiteRequest: () => SearchFilesCrossSiteRequest,
|
|
64
|
+
SearchFilesCrossSiteResponse: () => SearchFilesCrossSiteResponse,
|
|
63
65
|
SearchFilesRequest: () => SearchFilesRequest,
|
|
64
66
|
SearchFilesResponse: () => SearchFilesResponse,
|
|
65
67
|
UpdateFileDescriptorRequest: () => UpdateFileDescriptorRequest,
|
|
@@ -955,8 +957,8 @@ var GenerateFileUploadUrlRequest = z.object({
|
|
|
955
957
|
mimeType: z.string().describe("File mime type.").max(100),
|
|
956
958
|
options: z.object({
|
|
957
959
|
fileName: z.string().describe(
|
|
958
|
-
'Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.\n<br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul
|
|
959
|
-
).max(
|
|
960
|
+
'Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.\n<br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\nThe file name is truncated to 255 characters if longer.'
|
|
961
|
+
).max(1e3).optional().nullable(),
|
|
960
962
|
sizeInBytes: z.string().describe("File size in bytes.").optional().nullable(),
|
|
961
963
|
parentFolderId: z.string().describe(
|
|
962
964
|
"ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`.<br />\nDefault: `media-root`."
|
|
@@ -985,8 +987,8 @@ var GenerateFileResumableUploadUrlRequest = z.object({
|
|
|
985
987
|
mimeType: z.string().describe("File mime type.").max(100),
|
|
986
988
|
options: z.object({
|
|
987
989
|
fileName: z.string().describe(
|
|
988
|
-
'Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.\n<br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul
|
|
989
|
-
).max(
|
|
990
|
+
'Temporary file name used to identify the file type. For example, a file named "myFile.jpeg" identifies as an "image/jpeg" file type.\n<br /> **Notes:** <ul> <li>The name that appears in the Media Manager is taken from the `fileName` parameter in the Generate File Upload Url call.</li> <li>If you specify a `fileName`, the `filename` query parameter in the upload request itself is not required. </li> </ul>\nThe file name is truncated to 255 characters if longer.'
|
|
991
|
+
).max(1e3).optional().nullable(),
|
|
990
992
|
sizeInBytes: z.string().describe("File size in bytes.").optional().nullable(),
|
|
991
993
|
parentFolderId: z.string().describe(
|
|
992
994
|
"ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`.<br />\nDefault: `media-root`."
|
|
@@ -1022,7 +1024,9 @@ var ImportFileRequest = z.object({
|
|
|
1022
1024
|
"MODEL3D",
|
|
1023
1025
|
"OTHER"
|
|
1024
1026
|
]).optional(),
|
|
1025
|
-
displayName: z.string().describe(
|
|
1027
|
+
displayName: z.string().describe(
|
|
1028
|
+
"File name that appears in the Media Manager.\nThe file name is truncated to 255 characters if longer."
|
|
1029
|
+
).max(1e3).optional().nullable(),
|
|
1026
1030
|
parentFolderId: z.string().describe(
|
|
1027
1031
|
"ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
|
|
1028
1032
|
).max(100).optional().nullable(),
|
|
@@ -1273,7 +1277,9 @@ var BulkImportFilesRequest = z.object({
|
|
|
1273
1277
|
"MODEL3D",
|
|
1274
1278
|
"OTHER"
|
|
1275
1279
|
]).optional(),
|
|
1276
|
-
displayName: z.string().describe(
|
|
1280
|
+
displayName: z.string().describe(
|
|
1281
|
+
"File name that appears in the Media Manager.\nThe file name is truncated to 255 characters if longer."
|
|
1282
|
+
).max(1e3).optional().nullable(),
|
|
1277
1283
|
parentFolderId: z.string().describe(
|
|
1278
1284
|
"ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
|
|
1279
1285
|
).max(100).optional().nullable(),
|
|
@@ -1537,7 +1543,9 @@ var BulkImportFileRequest = z.object({
|
|
|
1537
1543
|
"MODEL3D",
|
|
1538
1544
|
"OTHER"
|
|
1539
1545
|
]).optional(),
|
|
1540
|
-
displayName: z.string().describe(
|
|
1546
|
+
displayName: z.string().describe(
|
|
1547
|
+
"File name that appears in the Media Manager.\nThe file name is truncated to 255 characters if longer."
|
|
1548
|
+
).max(1e3).optional().nullable(),
|
|
1541
1549
|
parentFolderId: z.string().describe(
|
|
1542
1550
|
"ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
|
|
1543
1551
|
).max(100).optional().nullable(),
|
|
@@ -2363,6 +2371,241 @@ var SearchFilesResponse = z.object({
|
|
|
2363
2371
|
).optional()
|
|
2364
2372
|
}).describe("The next cursor if it exists.").optional()
|
|
2365
2373
|
});
|
|
2374
|
+
var SearchFilesCrossSiteRequest = z.object({
|
|
2375
|
+
options: z.object({
|
|
2376
|
+
mediaType: z.enum([
|
|
2377
|
+
"UNKNOWN",
|
|
2378
|
+
"IMAGE",
|
|
2379
|
+
"VIDEO",
|
|
2380
|
+
"AUDIO",
|
|
2381
|
+
"DOCUMENT",
|
|
2382
|
+
"VECTOR",
|
|
2383
|
+
"ARCHIVE",
|
|
2384
|
+
"MODEL3D",
|
|
2385
|
+
"OTHER"
|
|
2386
|
+
]).optional()
|
|
2387
|
+
}).optional()
|
|
2388
|
+
});
|
|
2389
|
+
var SearchFilesCrossSiteResponse = z.object({
|
|
2390
|
+
files: z.array(
|
|
2391
|
+
z.object({
|
|
2392
|
+
_id: z.string().describe(
|
|
2393
|
+
"File ID. Generated when a file is uploaded to the Media Manager."
|
|
2394
|
+
).max(1e3).optional(),
|
|
2395
|
+
displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
|
|
2396
|
+
url: z.string().describe("Static URL of the file.").url().optional(),
|
|
2397
|
+
parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
|
|
2398
|
+
hash: z.string().describe("File hash.").max(100).optional(),
|
|
2399
|
+
sizeInBytes: z.string().describe("Size of the uploaded file in bytes.").optional().nullable(),
|
|
2400
|
+
private: z.boolean().describe(
|
|
2401
|
+
"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)."
|
|
2402
|
+
).optional(),
|
|
2403
|
+
mediaType: z.enum([
|
|
2404
|
+
"UNKNOWN",
|
|
2405
|
+
"IMAGE",
|
|
2406
|
+
"VIDEO",
|
|
2407
|
+
"AUDIO",
|
|
2408
|
+
"DOCUMENT",
|
|
2409
|
+
"VECTOR",
|
|
2410
|
+
"ARCHIVE",
|
|
2411
|
+
"MODEL3D",
|
|
2412
|
+
"OTHER"
|
|
2413
|
+
]).describe("Media file type.").optional(),
|
|
2414
|
+
media: z.intersection(
|
|
2415
|
+
z.object({}),
|
|
2416
|
+
z.xor([
|
|
2417
|
+
z.object({
|
|
2418
|
+
image: z.never().optional(),
|
|
2419
|
+
video: z.never().optional(),
|
|
2420
|
+
audio: z.never().optional(),
|
|
2421
|
+
document: z.never().optional(),
|
|
2422
|
+
vector: z.never().optional(),
|
|
2423
|
+
archive: z.never().optional(),
|
|
2424
|
+
model3d: z.never().optional()
|
|
2425
|
+
}),
|
|
2426
|
+
z.object({
|
|
2427
|
+
video: z.never().optional(),
|
|
2428
|
+
audio: z.never().optional(),
|
|
2429
|
+
document: z.never().optional(),
|
|
2430
|
+
vector: z.never().optional(),
|
|
2431
|
+
archive: z.never().optional(),
|
|
2432
|
+
model3d: z.never().optional(),
|
|
2433
|
+
image: z.object({
|
|
2434
|
+
image: z.string().describe("Image data.").optional(),
|
|
2435
|
+
colors: z.object({
|
|
2436
|
+
prominent: z.object({
|
|
2437
|
+
hex: z.string().describe("HEX color.").optional().nullable(),
|
|
2438
|
+
rgb: z.object({
|
|
2439
|
+
r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
|
|
2440
|
+
g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
|
|
2441
|
+
b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
|
|
2442
|
+
}).describe("RGB color.").optional()
|
|
2443
|
+
}).describe("Main color of the image.").optional(),
|
|
2444
|
+
palette: z.array(
|
|
2445
|
+
z.object({
|
|
2446
|
+
hex: z.string().describe("HEX color.").optional().nullable(),
|
|
2447
|
+
rgb: z.object({
|
|
2448
|
+
r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
|
|
2449
|
+
g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
|
|
2450
|
+
b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
|
|
2451
|
+
}).describe("RGB color.").optional()
|
|
2452
|
+
})
|
|
2453
|
+
).max(100).optional()
|
|
2454
|
+
}).describe("Image colors.").optional(),
|
|
2455
|
+
faces: z.array(
|
|
2456
|
+
z.object({
|
|
2457
|
+
confidence: z.number().describe(
|
|
2458
|
+
"The accuracy percentage of the face recognition. The likelihood that a face is detected."
|
|
2459
|
+
).optional(),
|
|
2460
|
+
x: z.number().int().describe(
|
|
2461
|
+
"Top left x pixel coordinate of the face."
|
|
2462
|
+
).optional(),
|
|
2463
|
+
y: z.number().int().describe(
|
|
2464
|
+
"Top left y pixel coordinate of the face."
|
|
2465
|
+
).optional(),
|
|
2466
|
+
height: z.number().int().describe("Face pixel height.").optional(),
|
|
2467
|
+
width: z.number().int().describe("Face pixel width.").optional()
|
|
2468
|
+
})
|
|
2469
|
+
).max(100).optional(),
|
|
2470
|
+
previewImage: z.string().describe(
|
|
2471
|
+
"Information about the image preview.\nYou can use this to display a preview for private images."
|
|
2472
|
+
).optional(),
|
|
2473
|
+
caption: z.string().describe(
|
|
2474
|
+
"Optional, An AI generated description of the image"
|
|
2475
|
+
).max(300).optional().nullable()
|
|
2476
|
+
}).describe("Information about the image.")
|
|
2477
|
+
}),
|
|
2478
|
+
z.object({
|
|
2479
|
+
image: z.never().optional(),
|
|
2480
|
+
audio: z.never().optional(),
|
|
2481
|
+
document: z.never().optional(),
|
|
2482
|
+
vector: z.never().optional(),
|
|
2483
|
+
archive: z.never().optional(),
|
|
2484
|
+
model3d: z.never().optional(),
|
|
2485
|
+
video: z.string().describe("Information about the video.")
|
|
2486
|
+
}),
|
|
2487
|
+
z.object({
|
|
2488
|
+
image: z.never().optional(),
|
|
2489
|
+
video: z.never().optional(),
|
|
2490
|
+
document: z.never().optional(),
|
|
2491
|
+
vector: z.never().optional(),
|
|
2492
|
+
archive: z.never().optional(),
|
|
2493
|
+
model3d: z.never().optional(),
|
|
2494
|
+
audio: z.object({
|
|
2495
|
+
_id: z.string().describe("WixMedia ID.").max(200).optional(),
|
|
2496
|
+
assets: z.array(z.string()).max(100).optional(),
|
|
2497
|
+
bitrate: z.number().int().describe("Audio bitrate.").min(0).optional().nullable(),
|
|
2498
|
+
format: z.string().describe("Audio format.").max(100).optional().nullable(),
|
|
2499
|
+
duration: z.number().int().describe("Audio duration in seconds.").min(0).optional().nullable(),
|
|
2500
|
+
sizeInBytes: z.string().describe("Audio size in bytes.").optional().nullable()
|
|
2501
|
+
}).describe("Information about the audio.")
|
|
2502
|
+
}),
|
|
2503
|
+
z.object({
|
|
2504
|
+
image: z.never().optional(),
|
|
2505
|
+
video: z.never().optional(),
|
|
2506
|
+
audio: z.never().optional(),
|
|
2507
|
+
vector: z.never().optional(),
|
|
2508
|
+
archive: z.never().optional(),
|
|
2509
|
+
model3d: z.never().optional(),
|
|
2510
|
+
document: z.string().describe("Information about the document.")
|
|
2511
|
+
}),
|
|
2512
|
+
z.object({
|
|
2513
|
+
image: z.never().optional(),
|
|
2514
|
+
video: z.never().optional(),
|
|
2515
|
+
audio: z.never().optional(),
|
|
2516
|
+
document: z.never().optional(),
|
|
2517
|
+
archive: z.never().optional(),
|
|
2518
|
+
model3d: z.never().optional(),
|
|
2519
|
+
vector: z.object({
|
|
2520
|
+
image: z.string().describe("Image data.").optional(),
|
|
2521
|
+
colors: z.object({
|
|
2522
|
+
prominent: z.object({
|
|
2523
|
+
hex: z.string().describe("HEX color.").optional().nullable(),
|
|
2524
|
+
rgb: z.object({
|
|
2525
|
+
r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
|
|
2526
|
+
g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
|
|
2527
|
+
b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
|
|
2528
|
+
}).describe("RGB color.").optional()
|
|
2529
|
+
}).describe("Main color of the image.").optional(),
|
|
2530
|
+
palette: z.array(
|
|
2531
|
+
z.object({
|
|
2532
|
+
hex: z.string().describe("HEX color.").optional().nullable(),
|
|
2533
|
+
rgb: z.object({
|
|
2534
|
+
r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
|
|
2535
|
+
g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
|
|
2536
|
+
b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
|
|
2537
|
+
}).describe("RGB color.").optional()
|
|
2538
|
+
})
|
|
2539
|
+
).max(100).optional()
|
|
2540
|
+
}).describe("Image colors.").optional(),
|
|
2541
|
+
faces: z.array(
|
|
2542
|
+
z.object({
|
|
2543
|
+
confidence: z.number().describe(
|
|
2544
|
+
"The accuracy percentage of the face recognition. The likelihood that a face is detected."
|
|
2545
|
+
).optional(),
|
|
2546
|
+
x: z.number().int().describe(
|
|
2547
|
+
"Top left x pixel coordinate of the face."
|
|
2548
|
+
).optional(),
|
|
2549
|
+
y: z.number().int().describe(
|
|
2550
|
+
"Top left y pixel coordinate of the face."
|
|
2551
|
+
).optional(),
|
|
2552
|
+
height: z.number().int().describe("Face pixel height.").optional(),
|
|
2553
|
+
width: z.number().int().describe("Face pixel width.").optional()
|
|
2554
|
+
})
|
|
2555
|
+
).max(100).optional(),
|
|
2556
|
+
previewImage: z.string().describe(
|
|
2557
|
+
"Information about the image preview.\nYou can use this to display a preview for private images."
|
|
2558
|
+
).optional(),
|
|
2559
|
+
caption: z.string().describe(
|
|
2560
|
+
"Optional, An AI generated description of the image"
|
|
2561
|
+
).max(300).optional().nullable()
|
|
2562
|
+
}).describe("Information about the vector.")
|
|
2563
|
+
}),
|
|
2564
|
+
z.object({
|
|
2565
|
+
image: z.never().optional(),
|
|
2566
|
+
video: z.never().optional(),
|
|
2567
|
+
audio: z.never().optional(),
|
|
2568
|
+
document: z.never().optional(),
|
|
2569
|
+
vector: z.never().optional(),
|
|
2570
|
+
model3d: z.never().optional(),
|
|
2571
|
+
archive: z.object({
|
|
2572
|
+
_id: z.string().describe("WixMedia ID.").optional(),
|
|
2573
|
+
url: z.string().describe("Archive URL.").optional(),
|
|
2574
|
+
urlExpirationDate: z.date().describe("Archive URL expiration date (when relevant).").optional().nullable(),
|
|
2575
|
+
sizeInBytes: z.string().describe("Archive size in bytes.").optional().nullable(),
|
|
2576
|
+
filename: z.string().describe("Archive filename.").optional().nullable()
|
|
2577
|
+
}).describe("Information about the archive.")
|
|
2578
|
+
}),
|
|
2579
|
+
z.object({
|
|
2580
|
+
image: z.never().optional(),
|
|
2581
|
+
video: z.never().optional(),
|
|
2582
|
+
audio: z.never().optional(),
|
|
2583
|
+
document: z.never().optional(),
|
|
2584
|
+
vector: z.never().optional(),
|
|
2585
|
+
archive: z.never().optional(),
|
|
2586
|
+
model3d: z.object({
|
|
2587
|
+
_id: z.string().describe("WixMedia 3D ID.").optional(),
|
|
2588
|
+
url: z.string().describe("3D URL.").optional(),
|
|
2589
|
+
thumbnail: z.string().describe("3D thumbnail Image").optional(),
|
|
2590
|
+
altText: z.string().describe("3D alt text.").optional().nullable(),
|
|
2591
|
+
urlExpirationDate: z.date().describe("3D URL expiration date (when relevant).").optional().nullable(),
|
|
2592
|
+
filename: z.string().describe("3D filename.").optional().nullable(),
|
|
2593
|
+
sizeInBytes: z.string().describe("3D size in bytes.").optional().nullable()
|
|
2594
|
+
}).describe("Information about the 3D Model.")
|
|
2595
|
+
})
|
|
2596
|
+
])
|
|
2597
|
+
).describe("Media file content.").optional(),
|
|
2598
|
+
operationStatus: z.enum(["FAILED", "READY", "PENDING"]).describe("Status of the file that was uploaded.").optional(),
|
|
2599
|
+
sourceUrl: z.string().describe("URL where the file was uploaded from.").url().optional().nullable(),
|
|
2600
|
+
thumbnailUrl: z.string().describe("URL of the file's thumbnail.").url().optional().nullable(),
|
|
2601
|
+
labels: z.array(z.string()).max(100).optional(),
|
|
2602
|
+
_createdDate: z.date().describe("Date and time the file was created.").optional().nullable(),
|
|
2603
|
+
_updatedDate: z.date().describe("Date and time the file was updated.").optional().nullable(),
|
|
2604
|
+
siteId: z.string().describe("The Wix site ID where the media file is stored.").max(100).optional(),
|
|
2605
|
+
state: z.enum(["OK", "DELETED"]).describe("State of the file.").optional()
|
|
2606
|
+
})
|
|
2607
|
+
).max(200).optional()
|
|
2608
|
+
});
|
|
2366
2609
|
var GenerateVideoStreamingUrlRequest = z.object({
|
|
2367
2610
|
fileId: z.string().describe(
|
|
2368
2611
|
'File ID.\n\nYou can also pass the files\' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`.\nLearn more in the File and Folder IDs article. '
|
|
@@ -2964,6 +3207,8 @@ var QueryFileDescriptorsResponse = z.object({
|
|
|
2964
3207
|
ListFilesResponse,
|
|
2965
3208
|
QueryFileDescriptorsRequest,
|
|
2966
3209
|
QueryFileDescriptorsResponse,
|
|
3210
|
+
SearchFilesCrossSiteRequest,
|
|
3211
|
+
SearchFilesCrossSiteResponse,
|
|
2967
3212
|
SearchFilesRequest,
|
|
2968
3213
|
SearchFilesResponse,
|
|
2969
3214
|
UpdateFileDescriptorRequest,
|