@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>>;
@@ -45,7 +45,7 @@ var GetFileDescriptorResponse = z.object({
45
45
  _id: z.string().describe(
46
46
  "File ID. Generated when a file is uploaded to the Media Manager."
47
47
  ).max(1e3).optional(),
48
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
48
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
49
49
  url: z.string().describe("Static URL of the file.").url().optional(),
50
50
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
51
51
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -254,7 +254,7 @@ var GetFileDescriptorsResponse = z.object({
254
254
  _id: z.string().describe(
255
255
  "File ID. Generated when a file is uploaded to the Media Manager."
256
256
  ).max(1e3).optional(),
257
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
257
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
258
258
  url: z.string().describe("Static URL of the file.").url().optional(),
259
259
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
260
260
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -473,7 +473,7 @@ var UpdateFileDescriptorRequest = z.object({
473
473
  _id: z.string().describe(
474
474
  "File ID. Generated when a file is uploaded to the Media Manager."
475
475
  ).max(1e3),
476
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
476
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
477
477
  url: z.string().describe("Static URL of the file.").url().optional(),
478
478
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
479
479
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -682,7 +682,7 @@ var UpdateFileDescriptorResponse = z.object({
682
682
  _id: z.string().describe(
683
683
  "File ID. Generated when a file is uploaded to the Media Manager."
684
684
  ).max(1e3).optional(),
685
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
685
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
686
686
  url: z.string().describe("Static URL of the file.").url().optional(),
687
687
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
688
688
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -953,7 +953,7 @@ 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(200).optional().nullable(),
956
+ displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
957
957
  parentFolderId: z.string().describe(
958
958
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
959
959
  ).max(100).optional().nullable(),
@@ -984,7 +984,7 @@ var ImportFileResponse = z.object({
984
984
  _id: z.string().describe(
985
985
  "File ID. Generated when a file is uploaded to the Media Manager."
986
986
  ).max(1e3).optional(),
987
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
987
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
988
988
  url: z.string().describe("Static URL of the file.").url().optional(),
989
989
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
990
990
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1204,7 +1204,7 @@ var BulkImportFilesRequest = z.object({
1204
1204
  "MODEL3D",
1205
1205
  "OTHER"
1206
1206
  ]).optional(),
1207
- displayName: z.string().describe("File name that appears in the Media Manager.").max(200).optional().nullable(),
1207
+ displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1208
1208
  parentFolderId: z.string().describe(
1209
1209
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1210
1210
  ).max(100).optional().nullable(),
@@ -1239,7 +1239,7 @@ var BulkImportFilesResponse = z.object({
1239
1239
  _id: z.string().describe(
1240
1240
  "File ID. Generated when a file is uploaded to the Media Manager."
1241
1241
  ).max(1e3).optional(),
1242
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1242
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1243
1243
  url: z.string().describe("Static URL of the file.").url().optional(),
1244
1244
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1245
1245
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1468,7 +1468,7 @@ var BulkImportFileRequest = z.object({
1468
1468
  "MODEL3D",
1469
1469
  "OTHER"
1470
1470
  ]).optional(),
1471
- displayName: z.string().describe("File name that appears in the Media Manager.").max(200).optional().nullable(),
1471
+ displayName: z.string().describe("File name that appears in the Media Manager.").max(255).optional().nullable(),
1472
1472
  parentFolderId: z.string().describe(
1473
1473
  "ID of the file's parent folder. <br />\nThis folder is the path root for the `filePath`. <br />\nDefault: `media-root`."
1474
1474
  ).max(100).optional().nullable(),
@@ -1523,7 +1523,7 @@ var BulkImportFileResponse = z.object({
1523
1523
  _id: z.string().describe(
1524
1524
  "File ID. Generated when a file is uploaded to the Media Manager."
1525
1525
  ).max(1e3).optional(),
1526
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1526
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1527
1527
  url: z.string().describe("Static URL of the file.").url().optional(),
1528
1528
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1529
1529
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -1770,7 +1770,13 @@ var ListFilesRequest = z.object({
1770
1770
  ).optional().nullable(),
1771
1771
  sort: z.object({
1772
1772
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
1773
- order: z.enum(["ASC", "DESC"]).optional()
1773
+ order: z.enum(["ASC", "DESC"]).optional(),
1774
+ origin: z.object({
1775
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
1776
+ longitude: z.number().describe("Address longitude.").optional().nullable()
1777
+ }).describe(
1778
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
1779
+ ).optional()
1774
1780
  }).describe(
1775
1781
  "Field name and order to sort by. One of:\n\n`displayName`\n`updatedDate`\n`sizeInBytes`\n\nDefault: `updatedDate` in `desc` order."
1776
1782
  ).optional(),
@@ -1788,7 +1794,7 @@ var ListFilesResponse = z.object({
1788
1794
  _id: z.string().describe(
1789
1795
  "File ID. Generated when a file is uploaded to the Media Manager."
1790
1796
  ).max(1e3).optional(),
1791
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
1797
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
1792
1798
  url: z.string().describe("Static URL of the file.").url().optional(),
1793
1799
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
1794
1800
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -2038,7 +2044,13 @@ var SearchFilesRequest = z.object({
2038
2044
  ).optional().nullable(),
2039
2045
  sort: z.object({
2040
2046
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
2041
- order: z.enum(["ASC", "DESC"]).optional()
2047
+ order: z.enum(["ASC", "DESC"]).optional(),
2048
+ origin: z.object({
2049
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
2050
+ longitude: z.number().describe("Address longitude.").optional().nullable()
2051
+ }).describe(
2052
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
2053
+ ).optional()
2042
2054
  }).describe(
2043
2055
  "Field name and order to sort by.\n\nOne of:\n`displayName`\n`updatedDate`\n`sizeInBytes`\n\nDefault: `updatedDate` in `desc` order."
2044
2056
  ).optional(),
@@ -2056,7 +2068,7 @@ var SearchFilesResponse = z.object({
2056
2068
  _id: z.string().describe(
2057
2069
  "File ID. Generated when a file is uploaded to the Media Manager."
2058
2070
  ).max(1e3).optional(),
2059
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
2071
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2060
2072
  url: z.string().describe("Static URL of the file.").url().optional(),
2061
2073
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2062
2074
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -2332,7 +2344,13 @@ var ListDeletedFilesRequest = z.object({
2332
2344
  ).optional().nullable(),
2333
2345
  sort: z.object({
2334
2346
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
2335
- order: z.enum(["ASC", "DESC"]).optional()
2347
+ order: z.enum(["ASC", "DESC"]).optional(),
2348
+ origin: z.object({
2349
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
2350
+ longitude: z.number().describe("Address longitude.").optional().nullable()
2351
+ }).describe(
2352
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
2353
+ ).optional()
2336
2354
  }).describe(
2337
2355
  "Field name and order to sort by. One of: <br />\n* `displayName`\n* `updatedDate`\n* `sizeInBytes`\nDefault: `updatedDate` in `desc` order."
2338
2356
  ).optional(),
@@ -2350,7 +2368,7 @@ var ListDeletedFilesResponse = z.object({
2350
2368
  _id: z.string().describe(
2351
2369
  "File ID. Generated when a file is uploaded to the Media Manager."
2352
2370
  ).max(1e3).optional(),
2353
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
2371
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2354
2372
  url: z.string().describe("Static URL of the file.").url().optional(),
2355
2373
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2356
2374
  hash: z.string().describe("File hash.").max(100).optional(),
@@ -2612,7 +2630,7 @@ var QueryFileDescriptorsResponse = z.object({
2612
2630
  _id: z.string().describe(
2613
2631
  "File ID. Generated when a file is uploaded to the Media Manager."
2614
2632
  ).max(1e3).optional(),
2615
- displayName: z.string().describe("File name as it appears in the Media Manager.").max(200).optional(),
2633
+ displayName: z.string().describe("File name as it appears in the Media Manager.").max(255).optional(),
2616
2634
  url: z.string().describe("Static URL of the file.").url().optional(),
2617
2635
  parentFolderId: z.string().describe("ID of the file's parent folder.").max(100).optional().nullable(),
2618
2636
  hash: z.string().describe("File hash.").max(100).optional(),