@wix/auto_sdk_media_files 1.0.87 → 1.0.89

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 +1 -1
  2. package/build/cjs/index.js +33 -6
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +17 -6
  5. package/build/cjs/index.typings.js +33 -6
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +16 -5
  8. package/build/cjs/meta.js +33 -6
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +12 -0
  11. package/build/cjs/schemas.js +35 -17
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +1 -1
  14. package/build/es/index.mjs +33 -6
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +17 -6
  17. package/build/es/index.typings.mjs +33 -6
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +16 -5
  20. package/build/es/meta.mjs +33 -6
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +12 -0
  23. package/build/es/schemas.mjs +35 -17
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +1 -1
  26. package/build/internal/cjs/index.js +33 -6
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +17 -6
  29. package/build/internal/cjs/index.typings.js +33 -6
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +16 -5
  32. package/build/internal/cjs/meta.js +33 -6
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +12 -0
  35. package/build/internal/cjs/schemas.js +35 -17
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +1 -1
  38. package/build/internal/es/index.mjs +33 -6
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +17 -6
  41. package/build/internal/es/index.typings.mjs +33 -6
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +16 -5
  44. package/build/internal/es/meta.mjs +33 -6
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +12 -0
  47. package/build/internal/es/schemas.mjs +35 -17
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1458,6 +1458,10 @@ declare const ListFilesRequest: z.ZodObject<{
1458
1458
  ASC: "ASC";
1459
1459
  DESC: "DESC";
1460
1460
  }>>;
1461
+ origin: z.ZodOptional<z.ZodObject<{
1462
+ latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1463
+ longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1464
+ }, z.core.$strip>>;
1461
1465
  }, z.core.$strip>>;
1462
1466
  paging: z.ZodOptional<z.ZodObject<{
1463
1467
  limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1678,6 +1682,10 @@ declare const SearchFilesRequest: z.ZodObject<{
1678
1682
  ASC: "ASC";
1679
1683
  DESC: "DESC";
1680
1684
  }>>;
1685
+ origin: z.ZodOptional<z.ZodObject<{
1686
+ latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1687
+ longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1688
+ }, z.core.$strip>>;
1681
1689
  }, z.core.$strip>>;
1682
1690
  paging: z.ZodOptional<z.ZodObject<{
1683
1691
  limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -1920,6 +1928,10 @@ declare const ListDeletedFilesRequest: z.ZodObject<{
1920
1928
  ASC: "ASC";
1921
1929
  DESC: "DESC";
1922
1930
  }>>;
1931
+ origin: z.ZodOptional<z.ZodObject<{
1932
+ latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1933
+ longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1934
+ }, z.core.$strip>>;
1923
1935
  }, z.core.$strip>>;
1924
1936
  paging: z.ZodOptional<z.ZodObject<{
1925
1937
  limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -114,7 +114,7 @@ var GetFileDescriptorResponse = z.object({
114
114
  _id: z.string().describe(
115
115
  "File ID. Generated when a file is uploaded to the Media Manager."
116
116
  ).max(1e3).optional(),
117
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
117
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
118
118
  url: z.string().describe("Static URL of the file.").url().optional(),
119
119
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
120
120
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -323,7 +323,7 @@ var GetFileDescriptorsResponse = z.object({
323
323
  _id: z.string().describe(
324
324
  "File ID. Generated when a file is uploaded to the Media Manager."
325
325
  ).max(1e3).optional(),
326
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
326
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
327
327
  url: z.string().describe("Static URL of the file.").url().optional(),
328
328
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
329
329
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -542,7 +542,7 @@ var UpdateFileDescriptorRequest = z.object({
542
542
  _id: z.string().describe(
543
543
  "File ID. Generated when a file is uploaded to the Media Manager."
544
544
  ).max(1e3),
545
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
545
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
546
546
  url: z.string().describe("Static URL of the file.").url().optional(),
547
547
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
548
548
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -751,7 +751,7 @@ var UpdateFileDescriptorResponse = z.object({
751
751
  _id: z.string().describe(
752
752
  "File ID. Generated when a file is uploaded to the Media Manager."
753
753
  ).max(1e3).optional(),
754
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
754
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
755
755
  url: z.string().describe("Static URL of the file.").url().optional(),
756
756
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
757
757
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1022,7 +1022,7 @@ var ImportFileRequest = z.object({
1022
1022
  "MODEL3D",
1023
1023
  "OTHER"
1024
1024
  ]).optional(),
1025
- displayName: z.string().describe("File name that appears in the Media Manager.").max(200).optional().nullable(),
1025
+ displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1026
1026
  parentFolderId: z.string().describe(
1027
1027
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1028
1028
  ).max(100).optional().nullable(),
@@ -1053,7 +1053,7 @@ var ImportFileResponse = z.object({
1053
1053
  _id: z.string().describe(
1054
1054
  "File ID. Generated when a file is uploaded to the Media Manager."
1055
1055
  ).max(1e3).optional(),
1056
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1056
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1057
1057
  url: z.string().describe("Static URL of the file.").url().optional(),
1058
1058
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1059
1059
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1273,7 +1273,7 @@ var BulkImportFilesRequest = z.object({
1273
1273
  "MODEL3D",
1274
1274
  "OTHER"
1275
1275
  ]).optional(),
1276
- displayName: z.string().describe("File name that appears in the Media Manager.").max(200).optional().nullable(),
1276
+ displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1277
1277
  parentFolderId: z.string().describe(
1278
1278
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1279
1279
  ).max(100).optional().nullable(),
@@ -1308,7 +1308,7 @@ var BulkImportFilesResponse = z.object({
1308
1308
  _id: z.string().describe(
1309
1309
  "File ID. Generated when a file is uploaded to the Media Manager."
1310
1310
  ).max(1e3).optional(),
1311
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1311
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1312
1312
  url: z.string().describe("Static URL of the file.").url().optional(),
1313
1313
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1314
1314
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1537,7 +1537,7 @@ var BulkImportFileRequest = z.object({
1537
1537
  "MODEL3D",
1538
1538
  "OTHER"
1539
1539
  ]).optional(),
1540
- displayName: z.string().describe("File name that appears in the Media Manager.").max(200).optional().nullable(),
1540
+ displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1541
1541
  parentFolderId: z.string().describe(
1542
1542
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1543
1543
  ).max(100).optional().nullable(),
@@ -1592,7 +1592,7 @@ var BulkImportFileResponse = z.object({
1592
1592
  _id: z.string().describe(
1593
1593
  "File ID. Generated when a file is uploaded to the Media Manager."
1594
1594
  ).max(1e3).optional(),
1595
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1595
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1596
1596
  url: z.string().describe("Static URL of the file.").url().optional(),
1597
1597
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1598
1598
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1839,7 +1839,13 @@ var ListFilesRequest = z.object({
1839
1839
  ).optional().nullable(),
1840
1840
  sort: z.object({
1841
1841
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
1842
- order: z.enum(["ASC", "DESC"]).optional()
1842
+ order: z.enum(["ASC", "DESC"]).optional(),
1843
+ origin: z.object({
1844
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
1845
+ longitude: z.number().describe("Address longitude.").optional().nullable()
1846
+ }).describe(
1847
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
1848
+ ).optional()
1843
1849
  }).describe(
1844
1850
  "Field name and order to sort by. One of:\n\n`displayName`\n`updatedDate`\n`sizeInBytes`\n\nDefault: `updatedDate` in `desc` order."
1845
1851
  ).optional(),
@@ -1857,7 +1863,7 @@ var ListFilesResponse = z.object({
1857
1863
  _id: z.string().describe(
1858
1864
  "File ID. Generated when a file is uploaded to the Media Manager."
1859
1865
  ).max(1e3).optional(),
1860
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1866
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1861
1867
  url: z.string().describe("Static URL of the file.").url().optional(),
1862
1868
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1863
1869
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -2107,7 +2113,13 @@ var SearchFilesRequest = z.object({
2107
2113
  ).optional().nullable(),
2108
2114
  sort: z.object({
2109
2115
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
2110
- order: z.enum(["ASC", "DESC"]).optional()
2116
+ order: z.enum(["ASC", "DESC"]).optional(),
2117
+ origin: z.object({
2118
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
2119
+ longitude: z.number().describe("Address longitude.").optional().nullable()
2120
+ }).describe(
2121
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
2122
+ ).optional()
2111
2123
  }).describe(
2112
2124
  "Field name and order to sort by.\n\nOne of:\n`displayName`\n`updatedDate`\n`sizeInBytes`\n\nDefault: `updatedDate` in `desc` order."
2113
2125
  ).optional(),
@@ -2125,7 +2137,7 @@ var SearchFilesResponse = z.object({
2125
2137
  _id: z.string().describe(
2126
2138
  "File ID. Generated when a file is uploaded to the Media Manager."
2127
2139
  ).max(1e3).optional(),
2128
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
2140
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2129
2141
  url: z.string().describe("Static URL of the file.").url().optional(),
2130
2142
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2131
2143
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -2401,7 +2413,13 @@ var ListDeletedFilesRequest = z.object({
2401
2413
  ).optional().nullable(),
2402
2414
  sort: z.object({
2403
2415
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
2404
- order: z.enum(["ASC", "DESC"]).optional()
2416
+ order: z.enum(["ASC", "DESC"]).optional(),
2417
+ origin: z.object({
2418
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
2419
+ longitude: z.number().describe("Address longitude.").optional().nullable()
2420
+ }).describe(
2421
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
2422
+ ).optional()
2405
2423
  }).describe(
2406
2424
  "Field name and order to sort by. One of: <br />\n* `displayName`\n* `updatedDate`\n* `sizeInBytes`\nDefault: `updatedDate` in `desc` order."
2407
2425
  ).optional(),
@@ -2419,7 +2437,7 @@ var ListDeletedFilesResponse = z.object({
2419
2437
  _id: z.string().describe(
2420
2438
  "File ID. Generated when a file is uploaded to the Media Manager."
2421
2439
  ).max(1e3).optional(),
2422
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
2440
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2423
2441
  url: z.string().describe("Static URL of the file.").url().optional(),
2424
2442
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2425
2443
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -2681,7 +2699,7 @@ var QueryFileDescriptorsResponse = z.object({
2681
2699
  _id: z.string().describe(
2682
2700
  "File ID. Generated when a file is uploaded to the Media Manager."
2683
2701
  ).max(1e3).optional(),
2684
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
2702
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2685
2703
  url: z.string().describe("Static URL of the file.").url().optional(),
2686
2704
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2687
2705
  hash: z.string().describe("File hash.").max(100).optional(),