@wix/auto_sdk_media_files 1.0.93 → 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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +14 -3
  2. package/build/cjs/index.js +139 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +38 -7
  5. package/build/cjs/index.typings.js +131 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +20 -5
  8. package/build/cjs/meta.js +97 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +197 -1
  11. package/build/cjs/schemas.js +252 -7
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +14 -3
  14. package/build/es/index.mjs +138 -0
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +38 -7
  17. package/build/es/index.typings.mjs +130 -0
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +20 -5
  20. package/build/es/meta.mjs +96 -0
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +197 -1
  23. package/build/es/schemas.mjs +250 -7
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +14 -3
  26. package/build/internal/cjs/index.js +139 -0
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +38 -7
  29. package/build/internal/cjs/index.typings.js +131 -0
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +20 -5
  32. package/build/internal/cjs/meta.js +97 -0
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +197 -1
  35. package/build/internal/cjs/schemas.js +252 -7
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +14 -3
  38. package/build/internal/es/index.mjs +138 -0
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +38 -7
  41. package/build/internal/es/index.typings.mjs +130 -0
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +20 -5
  44. package/build/internal/es/meta.mjs +96 -0
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +197 -1
  47. package/build/internal/es/schemas.mjs +250 -7
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. 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 };
@@ -886,8 +886,8 @@ var GenerateFileUploadUrlRequest = z.object({
886
886
  mimeType: z.string().describe("File mime type.").max(100),
887
887
  options: z.object({
888
888
  fileName: z.string().describe(
889
- '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>'
890
- ).max(200).optional().nullable(),
889
+ '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.'
890
+ ).max(1e3).optional().nullable(),
891
891
  sizeInBytes: z.string().describe("File size in bytes.").optional().nullable(),
892
892
  parentFolderId: z.string().describe(
893
893
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`.<br />\nDefault: `media-root`."
@@ -916,8 +916,8 @@ var GenerateFileResumableUploadUrlRequest = z.object({
916
916
  mimeType: z.string().describe("File mime type.").max(100),
917
917
  options: z.object({
918
918
  fileName: z.string().describe(
919
- '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>'
920
- ).max(200).optional().nullable(),
919
+ '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.'
920
+ ).max(1e3).optional().nullable(),
921
921
  sizeInBytes: z.string().describe("File size in bytes.").optional().nullable(),
922
922
  parentFolderId: z.string().describe(
923
923
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`.<br />\nDefault: `media-root`."
@@ -953,7 +953,9 @@ var ImportFileRequest = z.object({
953
953
  "MODEL3D",
954
954
  "OTHER"
955
955
  ]).optional(),
956
- displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
956
+ displayName: z.string().describe(
957
+ "File name that appears in the Media Manager.\nThe file name is truncated to 255 characters if longer."
958
+ ).max(1e3).optional().nullable(),
957
959
  parentFolderId: z.string().describe(
958
960
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
959
961
  ).max(100).optional().nullable(),
@@ -1204,7 +1206,9 @@ var BulkImportFilesRequest = z.object({
1204
1206
  "MODEL3D",
1205
1207
  "OTHER"
1206
1208
  ]).optional(),
1207
- displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1209
+ displayName: z.string().describe(
1210
+ "File name that appears in the Media Manager.\nThe file name is truncated to 255 characters if longer."
1211
+ ).max(1e3).optional().nullable(),
1208
1212
  parentFolderId: z.string().describe(
1209
1213
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1210
1214
  ).max(100).optional().nullable(),
@@ -1468,7 +1472,9 @@ var BulkImportFileRequest = z.object({
1468
1472
  "MODEL3D",
1469
1473
  "OTHER"
1470
1474
  ]).optional(),
1471
- displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1475
+ displayName: z.string().describe(
1476
+ "File name that appears in the Media Manager.\nThe file name is truncated to 255 characters if longer."
1477
+ ).max(1e3).optional().nullable(),
1472
1478
  parentFolderId: z.string().describe(
1473
1479
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1474
1480
  ).max(100).optional().nullable(),
@@ -2294,6 +2300,241 @@ var SearchFilesResponse = z.object({
2294
2300
  ).optional()
2295
2301
  }).describe("The next cursor if it exists.").optional()
2296
2302
  });
2303
+ var SearchFilesCrossSiteRequest = z.object({
2304
+ options: z.object({
2305
+ mediaType: z.enum([
2306
+ "UNKNOWN",
2307
+ "IMAGE",
2308
+ "VIDEO",
2309
+ "AUDIO",
2310
+ "DOCUMENT",
2311
+ "VECTOR",
2312
+ "ARCHIVE",
2313
+ "MODEL3D",
2314
+ "OTHER"
2315
+ ]).optional()
2316
+ }).optional()
2317
+ });
2318
+ var SearchFilesCrossSiteResponse = z.object({
2319
+ files: z.array(
2320
+ z.object({
2321
+ _id: z.string().describe(
2322
+ "File ID. Generated when a file is uploaded to the Media Manager."
2323
+ ).max(1e3).optional(),
2324
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2325
+ url: z.string().describe("Static URL of the file.").url().optional(),
2326
+ parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2327
+ hash: z.string().describe("File hash.").max(100).optional(),
2328
+ sizeInBytes: z.string().describe("Size of the uploaded file in bytes.").optional().nullable(),
2329
+ private: z.boolean().describe(
2330
+ "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)."
2331
+ ).optional(),
2332
+ mediaType: z.enum([
2333
+ "UNKNOWN",
2334
+ "IMAGE",
2335
+ "VIDEO",
2336
+ "AUDIO",
2337
+ "DOCUMENT",
2338
+ "VECTOR",
2339
+ "ARCHIVE",
2340
+ "MODEL3D",
2341
+ "OTHER"
2342
+ ]).describe("Media file type.").optional(),
2343
+ media: z.intersection(
2344
+ z.object({}),
2345
+ z.xor([
2346
+ z.object({
2347
+ image: z.never().optional(),
2348
+ video: z.never().optional(),
2349
+ audio: z.never().optional(),
2350
+ document: z.never().optional(),
2351
+ vector: z.never().optional(),
2352
+ archive: z.never().optional(),
2353
+ model3d: z.never().optional()
2354
+ }),
2355
+ z.object({
2356
+ video: z.never().optional(),
2357
+ audio: z.never().optional(),
2358
+ document: z.never().optional(),
2359
+ vector: z.never().optional(),
2360
+ archive: z.never().optional(),
2361
+ model3d: z.never().optional(),
2362
+ image: z.object({
2363
+ image: z.string().describe("Image data.").optional(),
2364
+ colors: z.object({
2365
+ prominent: z.object({
2366
+ hex: z.string().describe("HEX color.").optional().nullable(),
2367
+ rgb: z.object({
2368
+ r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
2369
+ g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
2370
+ b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
2371
+ }).describe("RGB color.").optional()
2372
+ }).describe("Main color of the image.").optional(),
2373
+ palette: z.array(
2374
+ z.object({
2375
+ hex: z.string().describe("HEX color.").optional().nullable(),
2376
+ rgb: z.object({
2377
+ r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
2378
+ g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
2379
+ b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
2380
+ }).describe("RGB color.").optional()
2381
+ })
2382
+ ).max(100).optional()
2383
+ }).describe("Image colors.").optional(),
2384
+ faces: z.array(
2385
+ z.object({
2386
+ confidence: z.number().describe(
2387
+ "The accuracy percentage of the face recognition. The likelihood that a face is detected."
2388
+ ).optional(),
2389
+ x: z.number().int().describe(
2390
+ "Top left x pixel coordinate of the face."
2391
+ ).optional(),
2392
+ y: z.number().int().describe(
2393
+ "Top left y pixel coordinate of the face."
2394
+ ).optional(),
2395
+ height: z.number().int().describe("Face pixel height.").optional(),
2396
+ width: z.number().int().describe("Face pixel width.").optional()
2397
+ })
2398
+ ).max(100).optional(),
2399
+ previewImage: z.string().describe(
2400
+ "Information about the image preview.\nYou can use this to display a preview for private images."
2401
+ ).optional(),
2402
+ caption: z.string().describe(
2403
+ "Optional, An AI generated description of the image"
2404
+ ).max(300).optional().nullable()
2405
+ }).describe("Information about the image.")
2406
+ }),
2407
+ z.object({
2408
+ image: z.never().optional(),
2409
+ audio: z.never().optional(),
2410
+ document: z.never().optional(),
2411
+ vector: z.never().optional(),
2412
+ archive: z.never().optional(),
2413
+ model3d: z.never().optional(),
2414
+ video: z.string().describe("Information about the video.")
2415
+ }),
2416
+ z.object({
2417
+ image: z.never().optional(),
2418
+ video: z.never().optional(),
2419
+ document: z.never().optional(),
2420
+ vector: z.never().optional(),
2421
+ archive: z.never().optional(),
2422
+ model3d: z.never().optional(),
2423
+ audio: z.object({
2424
+ _id: z.string().describe("WixMedia ID.").max(200).optional(),
2425
+ assets: z.array(z.string()).max(100).optional(),
2426
+ bitrate: z.number().int().describe("Audio bitrate.").min(0).optional().nullable(),
2427
+ format: z.string().describe("Audio format.").max(100).optional().nullable(),
2428
+ duration: z.number().int().describe("Audio duration in seconds.").min(0).optional().nullable(),
2429
+ sizeInBytes: z.string().describe("Audio size in bytes.").optional().nullable()
2430
+ }).describe("Information about the audio.")
2431
+ }),
2432
+ z.object({
2433
+ image: z.never().optional(),
2434
+ video: z.never().optional(),
2435
+ audio: z.never().optional(),
2436
+ vector: z.never().optional(),
2437
+ archive: z.never().optional(),
2438
+ model3d: z.never().optional(),
2439
+ document: z.string().describe("Information about the document.")
2440
+ }),
2441
+ z.object({
2442
+ image: z.never().optional(),
2443
+ video: z.never().optional(),
2444
+ audio: z.never().optional(),
2445
+ document: z.never().optional(),
2446
+ archive: z.never().optional(),
2447
+ model3d: z.never().optional(),
2448
+ vector: z.object({
2449
+ image: z.string().describe("Image data.").optional(),
2450
+ colors: z.object({
2451
+ prominent: z.object({
2452
+ hex: z.string().describe("HEX color.").optional().nullable(),
2453
+ rgb: z.object({
2454
+ r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
2455
+ g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
2456
+ b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
2457
+ }).describe("RGB color.").optional()
2458
+ }).describe("Main color of the image.").optional(),
2459
+ palette: z.array(
2460
+ z.object({
2461
+ hex: z.string().describe("HEX color.").optional().nullable(),
2462
+ rgb: z.object({
2463
+ r: z.number().int().describe("Red channel.").min(0).max(255).optional().nullable(),
2464
+ g: z.number().int().describe("Green channel.").min(0).max(255).optional().nullable(),
2465
+ b: z.number().int().describe("Blue channel.").min(0).max(255).optional().nullable()
2466
+ }).describe("RGB color.").optional()
2467
+ })
2468
+ ).max(100).optional()
2469
+ }).describe("Image colors.").optional(),
2470
+ faces: z.array(
2471
+ z.object({
2472
+ confidence: z.number().describe(
2473
+ "The accuracy percentage of the face recognition. The likelihood that a face is detected."
2474
+ ).optional(),
2475
+ x: z.number().int().describe(
2476
+ "Top left x pixel coordinate of the face."
2477
+ ).optional(),
2478
+ y: z.number().int().describe(
2479
+ "Top left y pixel coordinate of the face."
2480
+ ).optional(),
2481
+ height: z.number().int().describe("Face pixel height.").optional(),
2482
+ width: z.number().int().describe("Face pixel width.").optional()
2483
+ })
2484
+ ).max(100).optional(),
2485
+ previewImage: z.string().describe(
2486
+ "Information about the image preview.\nYou can use this to display a preview for private images."
2487
+ ).optional(),
2488
+ caption: z.string().describe(
2489
+ "Optional, An AI generated description of the image"
2490
+ ).max(300).optional().nullable()
2491
+ }).describe("Information about the vector.")
2492
+ }),
2493
+ z.object({
2494
+ image: z.never().optional(),
2495
+ video: z.never().optional(),
2496
+ audio: z.never().optional(),
2497
+ document: z.never().optional(),
2498
+ vector: z.never().optional(),
2499
+ model3d: z.never().optional(),
2500
+ archive: z.object({
2501
+ _id: z.string().describe("WixMedia ID.").optional(),
2502
+ url: z.string().describe("Archive URL.").optional(),
2503
+ urlExpirationDate: z.date().describe("Archive URL expiration date (when relevant).").optional().nullable(),
2504
+ sizeInBytes: z.string().describe("Archive size in bytes.").optional().nullable(),
2505
+ filename: z.string().describe("Archive filename.").optional().nullable()
2506
+ }).describe("Information about the archive.")
2507
+ }),
2508
+ z.object({
2509
+ image: z.never().optional(),
2510
+ video: z.never().optional(),
2511
+ audio: z.never().optional(),
2512
+ document: z.never().optional(),
2513
+ vector: z.never().optional(),
2514
+ archive: z.never().optional(),
2515
+ model3d: z.object({
2516
+ _id: z.string().describe("WixMedia 3D ID.").optional(),
2517
+ url: z.string().describe("3D URL.").optional(),
2518
+ thumbnail: z.string().describe("3D thumbnail Image").optional(),
2519
+ altText: z.string().describe("3D alt text.").optional().nullable(),
2520
+ urlExpirationDate: z.date().describe("3D URL expiration date (when relevant).").optional().nullable(),
2521
+ filename: z.string().describe("3D filename.").optional().nullable(),
2522
+ sizeInBytes: z.string().describe("3D size in bytes.").optional().nullable()
2523
+ }).describe("Information about the 3D Model.")
2524
+ })
2525
+ ])
2526
+ ).describe("Media file content.").optional(),
2527
+ operationStatus: z.enum(["FAILED", "READY", "PENDING"]).describe("Status of the file that was uploaded.").optional(),
2528
+ sourceUrl: z.string().describe("URL where the file was uploaded from.").url().optional().nullable(),
2529
+ thumbnailUrl: z.string().describe("URL of the file's thumbnail.").url().optional().nullable(),
2530
+ labels: z.array(z.string()).max(100).optional(),
2531
+ _createdDate: z.date().describe("Date and time the file was created.").optional().nullable(),
2532
+ _updatedDate: z.date().describe("Date and time the file was updated.").optional().nullable(),
2533
+ siteId: z.string().describe("The Wix site ID where the media file is stored.").max(100).optional(),
2534
+ state: z.enum(["OK", "DELETED"]).describe("State of the file.").optional()
2535
+ })
2536
+ ).max(200).optional()
2537
+ });
2297
2538
  var GenerateVideoStreamingUrlRequest = z.object({
2298
2539
  fileId: z.string().describe(
2299
2540
  '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. '
@@ -2894,6 +3135,8 @@ export {
2894
3135
  ListFilesResponse,
2895
3136
  QueryFileDescriptorsRequest,
2896
3137
  QueryFileDescriptorsResponse,
3138
+ SearchFilesCrossSiteRequest,
3139
+ SearchFilesCrossSiteResponse,
2897
3140
  SearchFilesRequest,
2898
3141
  SearchFilesResponse,
2899
3142
  UpdateFileDescriptorRequest,