@wix/auto_sdk_media_files 1.0.18 → 1.0.20

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 (121) hide show
  1. package/build/cjs/index.d.ts +315 -1
  2. package/build/cjs/index.js +2264 -15
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2266 -1
  5. package/build/cjs/index.typings.js +1935 -15
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1053 -1
  8. package/build/cjs/meta.js +1326 -15
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/{internal/cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts → es/index.d.mts} +93 -36
  11. package/build/es/index.mjs +2212 -0
  12. package/build/es/index.mjs.map +1 -0
  13. package/build/{internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts → es/index.typings.d.mts} +227 -487
  14. package/build/es/index.typings.mjs +1887 -0
  15. package/build/es/index.typings.mjs.map +1 -0
  16. package/build/{internal/es/src/media-site-media-v1-file-descriptor-files.types.d.ts → es/meta.d.mts} +106 -585
  17. package/build/es/meta.mjs +1287 -0
  18. package/build/es/meta.mjs.map +1 -0
  19. package/build/internal/cjs/index.d.ts +315 -1
  20. package/build/internal/cjs/index.js +2264 -15
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +2266 -1
  23. package/build/internal/cjs/index.typings.js +1935 -15
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +1053 -1
  26. package/build/internal/cjs/meta.js +1326 -15
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/{cjs/src/media-site-media-v1-file-descriptor-files.public.d.ts → internal/es/index.d.mts} +93 -36
  29. package/build/internal/es/index.mjs +2212 -0
  30. package/build/internal/es/index.mjs.map +1 -0
  31. package/build/internal/es/{src/media-site-media-v1-file-descriptor-files.universal.d.ts → index.typings.d.mts} +227 -487
  32. package/build/internal/es/index.typings.mjs +1887 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -0
  34. package/build/{es/src/media-site-media-v1-file-descriptor-files.types.d.ts → internal/es/meta.d.mts} +106 -585
  35. package/build/internal/es/meta.mjs +1287 -0
  36. package/build/internal/es/meta.mjs.map +1 -0
  37. package/package.json +10 -9
  38. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  39. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js +0 -60
  40. package/build/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  41. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  42. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -1118
  43. package/build/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  44. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  45. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.js +0 -332
  46. package/build/cjs/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  47. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js +0 -265
  48. package/build/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  49. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +0 -1532
  50. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js +0 -119
  51. package/build/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  52. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.d.ts +0 -2526
  53. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1483
  54. package/build/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  65. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js +0 -45
  66. package/build/es/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  67. package/build/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  68. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -1099
  69. package/build/es/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  70. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  71. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.js +0 -290
  72. package/build/es/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  73. package/build/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +0 -258
  74. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js +0 -234
  75. package/build/es/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  76. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js +0 -116
  77. package/build/es/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  78. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.d.ts +0 -2526
  79. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1441
  80. package/build/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  81. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  82. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js +0 -60
  83. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  84. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  85. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js +0 -1118
  86. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  87. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  88. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.js +0 -332
  89. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  90. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js +0 -265
  91. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  92. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.d.ts +0 -1532
  93. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js +0 -119
  94. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  95. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1483
  96. package/build/internal/cjs/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
  97. package/build/internal/es/index.d.ts +0 -1
  98. package/build/internal/es/index.js +0 -2
  99. package/build/internal/es/index.js.map +0 -1
  100. package/build/internal/es/index.typings.d.ts +0 -1
  101. package/build/internal/es/index.typings.js +0 -2
  102. package/build/internal/es/index.typings.js.map +0 -1
  103. package/build/internal/es/meta.d.ts +0 -1
  104. package/build/internal/es/meta.js +0 -2
  105. package/build/internal/es/meta.js.map +0 -1
  106. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.d.ts +0 -45
  107. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js +0 -45
  108. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.context.js.map +0 -1
  109. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.d.ts +0 -148
  110. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js +0 -1099
  111. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.http.js.map +0 -1
  112. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.d.ts +0 -28
  113. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.js +0 -290
  114. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.meta.js.map +0 -1
  115. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.d.ts +0 -258
  116. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js +0 -234
  117. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.public.js.map +0 -1
  118. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js +0 -116
  119. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.types.js.map +0 -1
  120. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js +0 -1441
  121. package/build/internal/es/src/media-site-media-v1-file-descriptor-files.universal.js.map +0 -1
@@ -1,18 +1,1329 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
15
9
  };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/media-site-media-v1-file-descriptor-files.meta.js"), exports);
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // meta.ts
21
+ var meta_exports = {};
22
+ __export(meta_exports, {
23
+ bulkDeleteFiles: () => bulkDeleteFiles2,
24
+ bulkImportFile: () => bulkImportFile2,
25
+ bulkImportFiles: () => bulkImportFiles2,
26
+ bulkRestoreFilesFromTrashBin: () => bulkRestoreFilesFromTrashBin2,
27
+ generateFileDownloadUrl: () => generateFileDownloadUrl2,
28
+ generateFileResumableUploadUrl: () => generateFileResumableUploadUrl2,
29
+ generateFileUploadUrl: () => generateFileUploadUrl2,
30
+ generateFilesDownloadUrl: () => generateFilesDownloadUrl2,
31
+ generateVideoStreamingUrl: () => generateVideoStreamingUrl2,
32
+ getFileDescriptor: () => getFileDescriptor2,
33
+ getFileDescriptors: () => getFileDescriptors2,
34
+ importFile: () => importFile2,
35
+ listDeletedFiles: () => listDeletedFiles2,
36
+ listFiles: () => listFiles2,
37
+ searchFiles: () => searchFiles2,
38
+ updateFileDescriptor: () => updateFileDescriptor2
39
+ });
40
+ module.exports = __toCommonJS(meta_exports);
41
+
42
+ // src/media-site-media-v1-file-descriptor-files.http.ts
43
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
44
+ var import_float = require("@wix/sdk-runtime/transformations/float");
45
+ var import_float2 = require("@wix/sdk-runtime/transformations/float");
46
+ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
47
+ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
48
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
49
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
50
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
51
+ function resolveComWixMediaSiteMediaV1FilesServiceUrl(opts) {
52
+ const domainToMappings = {
53
+ "apps._base_domain_": [
54
+ {
55
+ srcPath: "/_api/wix-privatemedia-proxy-server",
56
+ destPath: "/api"
57
+ },
58
+ {
59
+ srcPath: "/_api/wix-privatemedia-proxy-server/v1",
60
+ destPath: "/v1"
61
+ }
62
+ ],
63
+ "manage._base_domain_": [
64
+ {
65
+ srcPath: "/_api/wix-privatemedia-proxy-server",
66
+ destPath: ""
67
+ }
68
+ ],
69
+ "www.wixapis.com": [
70
+ {
71
+ srcPath: "/site-media/v1",
72
+ destPath: "/v1"
73
+ }
74
+ ],
75
+ "*.dev.wix-code.com": [
76
+ {
77
+ srcPath: "/_api/wix-privatemedia-proxy-server",
78
+ destPath: ""
79
+ }
80
+ ],
81
+ "api._api_base_domain_": [
82
+ {
83
+ srcPath: "/wix-privatemedia-proxy-server",
84
+ destPath: ""
85
+ }
86
+ ],
87
+ "bo._base_domain_": [
88
+ {
89
+ srcPath: "/wix-privatemedia-proxy-server",
90
+ destPath: ""
91
+ }
92
+ ],
93
+ "wixbo.ai": [
94
+ {
95
+ srcPath: "/wix-privatemedia-proxy-server",
96
+ destPath: ""
97
+ }
98
+ ],
99
+ "wix-bo.com": [
100
+ {
101
+ srcPath: "/wix-privatemedia-proxy-server",
102
+ destPath: ""
103
+ }
104
+ ],
105
+ _: [
106
+ {
107
+ srcPath: "/wix-privatemedia-proxy-server",
108
+ destPath: ""
109
+ }
110
+ ],
111
+ "editor._base_domain_": [
112
+ {
113
+ srcPath: "/_api/wix-privatemedia-proxy-server",
114
+ destPath: ""
115
+ }
116
+ ],
117
+ "blocks._base_domain_": [
118
+ {
119
+ srcPath: "/_api/wix-privatemedia-proxy-server",
120
+ destPath: ""
121
+ }
122
+ ],
123
+ "create.editorx": [
124
+ {
125
+ srcPath: "/_api/wix-privatemedia-proxy-server",
126
+ destPath: ""
127
+ }
128
+ ],
129
+ "platform.rise.ai": [
130
+ {
131
+ srcPath: "/_api/wix-privatemedia-proxy-server",
132
+ destPath: ""
133
+ }
134
+ ]
135
+ };
136
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
137
+ }
138
+ var PACKAGE_NAME = "@wix/auto_sdk_media_files";
139
+ function generateFilesDownloadUrl(payload) {
140
+ function __generateFilesDownloadUrl({ host }) {
141
+ const metadata = {
142
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
143
+ method: "POST",
144
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl",
145
+ packageName: PACKAGE_NAME,
146
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
147
+ protoPath: "/v1/files/generate-download-url",
148
+ data: payload,
149
+ host
150
+ }),
151
+ data: payload
152
+ };
153
+ return metadata;
154
+ }
155
+ return __generateFilesDownloadUrl;
156
+ }
157
+ function generateFileDownloadUrl(payload) {
158
+ function __generateFileDownloadUrl({ host }) {
159
+ const metadata = {
160
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
161
+ method: "POST",
162
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl",
163
+ packageName: PACKAGE_NAME,
164
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
165
+ protoPath: "/v1/files/generate-file-download-url",
166
+ data: payload,
167
+ host
168
+ }),
169
+ data: payload
170
+ };
171
+ return metadata;
172
+ }
173
+ return __generateFileDownloadUrl;
174
+ }
175
+ function getFileDescriptor(payload) {
176
+ function __getFileDescriptor({ host }) {
177
+ const metadata = {
178
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
179
+ method: "GET",
180
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GetFileDescriptor",
181
+ packageName: PACKAGE_NAME,
182
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
183
+ protoPath: "/v1/files/get-file-by-id",
184
+ data: payload,
185
+ host
186
+ }),
187
+ params: (0, import_rest_modules.toURLSearchParams)(payload),
188
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
189
+ {
190
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
191
+ paths: [
192
+ { path: "file.createdDate" },
193
+ { path: "file.updatedDate" },
194
+ { path: "file.lastUsedDate" },
195
+ { path: "file.media.image.image.urlExpirationDate" },
196
+ { path: "file.media.image.previewImage.urlExpirationDate" },
197
+ { path: "file.media.video.urlExpirationDate" },
198
+ { path: "file.media.video.resolutions.urlExpirationDate" },
199
+ { path: "file.media.video.resolutions.poster.urlExpirationDate" },
200
+ { path: "file.media.video.posters.urlExpirationDate" },
201
+ { path: "file.media.audio.assets.urlExpirationDate" },
202
+ { path: "file.media.document.urlExpirationDate" },
203
+ { path: "file.media.document.thumbnail.urlExpirationDate" },
204
+ { path: "file.media.vector.image.urlExpirationDate" },
205
+ { path: "file.media.vector.previewImage.urlExpirationDate" },
206
+ { path: "file.media.archive.urlExpirationDate" },
207
+ { path: "file.media.model3d.urlExpirationDate" },
208
+ { path: "file.media.model3d.thumbnail.urlExpirationDate" },
209
+ { path: "file.media.icon.image.urlExpirationDate" },
210
+ { path: "file.media.icon.previewImage.urlExpirationDate" }
211
+ ]
212
+ },
213
+ {
214
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
215
+ paths: [
216
+ { path: "file.media.image.image.focalPoint.x" },
217
+ { path: "file.media.image.image.focalPoint.y" },
218
+ { path: "file.media.image.faces.confidence" },
219
+ { path: "file.media.image.previewImage.focalPoint.x" },
220
+ { path: "file.media.image.previewImage.focalPoint.y" },
221
+ { path: "file.media.video.resolutions.poster.focalPoint.x" },
222
+ { path: "file.media.video.resolutions.poster.focalPoint.y" },
223
+ { path: "file.media.video.posters.focalPoint.x" },
224
+ { path: "file.media.video.posters.focalPoint.y" },
225
+ { path: "file.media.document.thumbnail.focalPoint.x" },
226
+ { path: "file.media.document.thumbnail.focalPoint.y" },
227
+ { path: "file.media.vector.image.focalPoint.x" },
228
+ { path: "file.media.vector.image.focalPoint.y" },
229
+ { path: "file.media.vector.faces.confidence" },
230
+ { path: "file.media.vector.previewImage.focalPoint.x" },
231
+ { path: "file.media.vector.previewImage.focalPoint.y" },
232
+ { path: "file.media.model3d.thumbnail.focalPoint.x" },
233
+ { path: "file.media.model3d.thumbnail.focalPoint.y" },
234
+ { path: "file.media.icon.image.focalPoint.x" },
235
+ { path: "file.media.icon.image.focalPoint.y" },
236
+ { path: "file.media.icon.faces.confidence" },
237
+ { path: "file.media.icon.previewImage.focalPoint.x" },
238
+ { path: "file.media.icon.previewImage.focalPoint.y" }
239
+ ]
240
+ }
241
+ ]),
242
+ fallback: [
243
+ {
244
+ method: "GET",
245
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
246
+ protoPath: "/v1/files/get-file-by-id",
247
+ data: payload,
248
+ host
249
+ }),
250
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
251
+ }
252
+ ]
253
+ };
254
+ return metadata;
255
+ }
256
+ return __getFileDescriptor;
257
+ }
258
+ function getFileDescriptors(payload) {
259
+ function __getFileDescriptors({ host }) {
260
+ const metadata = {
261
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
262
+ method: "POST",
263
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GetFileDescriptors",
264
+ packageName: PACKAGE_NAME,
265
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
266
+ protoPath: "/v1/files/get-files",
267
+ data: payload,
268
+ host
269
+ }),
270
+ data: payload,
271
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
272
+ {
273
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
274
+ paths: [
275
+ { path: "files.createdDate" },
276
+ { path: "files.updatedDate" },
277
+ { path: "files.lastUsedDate" },
278
+ { path: "files.media.image.image.urlExpirationDate" },
279
+ { path: "files.media.image.previewImage.urlExpirationDate" },
280
+ { path: "files.media.video.urlExpirationDate" },
281
+ { path: "files.media.video.resolutions.urlExpirationDate" },
282
+ {
283
+ path: "files.media.video.resolutions.poster.urlExpirationDate"
284
+ },
285
+ { path: "files.media.video.posters.urlExpirationDate" },
286
+ { path: "files.media.audio.assets.urlExpirationDate" },
287
+ { path: "files.media.document.urlExpirationDate" },
288
+ { path: "files.media.document.thumbnail.urlExpirationDate" },
289
+ { path: "files.media.vector.image.urlExpirationDate" },
290
+ { path: "files.media.vector.previewImage.urlExpirationDate" },
291
+ { path: "files.media.archive.urlExpirationDate" },
292
+ { path: "files.media.model3d.urlExpirationDate" },
293
+ { path: "files.media.model3d.thumbnail.urlExpirationDate" },
294
+ { path: "files.media.icon.image.urlExpirationDate" },
295
+ { path: "files.media.icon.previewImage.urlExpirationDate" }
296
+ ]
297
+ },
298
+ {
299
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
300
+ paths: [
301
+ { path: "files.media.image.image.focalPoint.x" },
302
+ { path: "files.media.image.image.focalPoint.y" },
303
+ { path: "files.media.image.faces.confidence" },
304
+ { path: "files.media.image.previewImage.focalPoint.x" },
305
+ { path: "files.media.image.previewImage.focalPoint.y" },
306
+ { path: "files.media.video.resolutions.poster.focalPoint.x" },
307
+ { path: "files.media.video.resolutions.poster.focalPoint.y" },
308
+ { path: "files.media.video.posters.focalPoint.x" },
309
+ { path: "files.media.video.posters.focalPoint.y" },
310
+ { path: "files.media.document.thumbnail.focalPoint.x" },
311
+ { path: "files.media.document.thumbnail.focalPoint.y" },
312
+ { path: "files.media.vector.image.focalPoint.x" },
313
+ { path: "files.media.vector.image.focalPoint.y" },
314
+ { path: "files.media.vector.faces.confidence" },
315
+ { path: "files.media.vector.previewImage.focalPoint.x" },
316
+ { path: "files.media.vector.previewImage.focalPoint.y" },
317
+ { path: "files.media.model3d.thumbnail.focalPoint.x" },
318
+ { path: "files.media.model3d.thumbnail.focalPoint.y" },
319
+ { path: "files.media.icon.image.focalPoint.x" },
320
+ { path: "files.media.icon.image.focalPoint.y" },
321
+ { path: "files.media.icon.faces.confidence" },
322
+ { path: "files.media.icon.previewImage.focalPoint.x" },
323
+ { path: "files.media.icon.previewImage.focalPoint.y" }
324
+ ]
325
+ }
326
+ ])
327
+ };
328
+ return metadata;
329
+ }
330
+ return __getFileDescriptors;
331
+ }
332
+ function updateFileDescriptor(payload) {
333
+ function __updateFileDescriptor({ host }) {
334
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
335
+ {
336
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
337
+ paths: [{ path: "fieldMask" }]
338
+ },
339
+ {
340
+ transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
341
+ paths: [
342
+ { path: "file.createdDate" },
343
+ { path: "file.updatedDate" },
344
+ { path: "file.lastUsedDate" },
345
+ { path: "file.media.image.image.urlExpirationDate" },
346
+ { path: "file.media.image.previewImage.urlExpirationDate" },
347
+ { path: "file.media.video.urlExpirationDate" },
348
+ { path: "file.media.video.resolutions.urlExpirationDate" },
349
+ { path: "file.media.video.resolutions.poster.urlExpirationDate" },
350
+ { path: "file.media.video.posters.urlExpirationDate" },
351
+ { path: "file.media.audio.assets.urlExpirationDate" },
352
+ { path: "file.media.document.urlExpirationDate" },
353
+ { path: "file.media.document.thumbnail.urlExpirationDate" },
354
+ { path: "file.media.vector.image.urlExpirationDate" },
355
+ { path: "file.media.vector.previewImage.urlExpirationDate" },
356
+ { path: "file.media.archive.urlExpirationDate" },
357
+ { path: "file.media.model3d.urlExpirationDate" },
358
+ { path: "file.media.model3d.thumbnail.urlExpirationDate" },
359
+ { path: "file.media.icon.image.urlExpirationDate" },
360
+ { path: "file.media.icon.previewImage.urlExpirationDate" }
361
+ ]
362
+ },
363
+ {
364
+ transformFn: import_float.transformSDKFloatToRESTFloat,
365
+ paths: [
366
+ { path: "file.media.image.image.focalPoint.x" },
367
+ { path: "file.media.image.image.focalPoint.y" },
368
+ { path: "file.media.image.faces.confidence" },
369
+ { path: "file.media.image.previewImage.focalPoint.x" },
370
+ { path: "file.media.image.previewImage.focalPoint.y" },
371
+ { path: "file.media.video.resolutions.poster.focalPoint.x" },
372
+ { path: "file.media.video.resolutions.poster.focalPoint.y" },
373
+ { path: "file.media.video.posters.focalPoint.x" },
374
+ { path: "file.media.video.posters.focalPoint.y" },
375
+ { path: "file.media.document.thumbnail.focalPoint.x" },
376
+ { path: "file.media.document.thumbnail.focalPoint.y" },
377
+ { path: "file.media.vector.image.focalPoint.x" },
378
+ { path: "file.media.vector.image.focalPoint.y" },
379
+ { path: "file.media.vector.faces.confidence" },
380
+ { path: "file.media.vector.previewImage.focalPoint.x" },
381
+ { path: "file.media.vector.previewImage.focalPoint.y" },
382
+ { path: "file.media.model3d.thumbnail.focalPoint.x" },
383
+ { path: "file.media.model3d.thumbnail.focalPoint.y" },
384
+ { path: "file.media.icon.image.focalPoint.x" },
385
+ { path: "file.media.icon.image.focalPoint.y" },
386
+ { path: "file.media.icon.faces.confidence" },
387
+ { path: "file.media.icon.previewImage.focalPoint.x" },
388
+ { path: "file.media.icon.previewImage.focalPoint.y" }
389
+ ]
390
+ }
391
+ ]);
392
+ const metadata = {
393
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
394
+ method: "PATCH",
395
+ methodFqn: "com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor",
396
+ packageName: PACKAGE_NAME,
397
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
398
+ protoPath: "/v1/files/update-file-descriptor",
399
+ data: serializedData,
400
+ host
401
+ }),
402
+ data: serializedData,
403
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
404
+ {
405
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
406
+ paths: [
407
+ { path: "file.createdDate" },
408
+ { path: "file.updatedDate" },
409
+ { path: "file.lastUsedDate" },
410
+ { path: "file.media.image.image.urlExpirationDate" },
411
+ { path: "file.media.image.previewImage.urlExpirationDate" },
412
+ { path: "file.media.video.urlExpirationDate" },
413
+ { path: "file.media.video.resolutions.urlExpirationDate" },
414
+ { path: "file.media.video.resolutions.poster.urlExpirationDate" },
415
+ { path: "file.media.video.posters.urlExpirationDate" },
416
+ { path: "file.media.audio.assets.urlExpirationDate" },
417
+ { path: "file.media.document.urlExpirationDate" },
418
+ { path: "file.media.document.thumbnail.urlExpirationDate" },
419
+ { path: "file.media.vector.image.urlExpirationDate" },
420
+ { path: "file.media.vector.previewImage.urlExpirationDate" },
421
+ { path: "file.media.archive.urlExpirationDate" },
422
+ { path: "file.media.model3d.urlExpirationDate" },
423
+ { path: "file.media.model3d.thumbnail.urlExpirationDate" },
424
+ { path: "file.media.icon.image.urlExpirationDate" },
425
+ { path: "file.media.icon.previewImage.urlExpirationDate" }
426
+ ]
427
+ },
428
+ {
429
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
430
+ paths: [
431
+ { path: "file.media.image.image.focalPoint.x" },
432
+ { path: "file.media.image.image.focalPoint.y" },
433
+ { path: "file.media.image.faces.confidence" },
434
+ { path: "file.media.image.previewImage.focalPoint.x" },
435
+ { path: "file.media.image.previewImage.focalPoint.y" },
436
+ { path: "file.media.video.resolutions.poster.focalPoint.x" },
437
+ { path: "file.media.video.resolutions.poster.focalPoint.y" },
438
+ { path: "file.media.video.posters.focalPoint.x" },
439
+ { path: "file.media.video.posters.focalPoint.y" },
440
+ { path: "file.media.document.thumbnail.focalPoint.x" },
441
+ { path: "file.media.document.thumbnail.focalPoint.y" },
442
+ { path: "file.media.vector.image.focalPoint.x" },
443
+ { path: "file.media.vector.image.focalPoint.y" },
444
+ { path: "file.media.vector.faces.confidence" },
445
+ { path: "file.media.vector.previewImage.focalPoint.x" },
446
+ { path: "file.media.vector.previewImage.focalPoint.y" },
447
+ { path: "file.media.model3d.thumbnail.focalPoint.x" },
448
+ { path: "file.media.model3d.thumbnail.focalPoint.y" },
449
+ { path: "file.media.icon.image.focalPoint.x" },
450
+ { path: "file.media.icon.image.focalPoint.y" },
451
+ { path: "file.media.icon.faces.confidence" },
452
+ { path: "file.media.icon.previewImage.focalPoint.x" },
453
+ { path: "file.media.icon.previewImage.focalPoint.y" }
454
+ ]
455
+ }
456
+ ])
457
+ };
458
+ return metadata;
459
+ }
460
+ return __updateFileDescriptor;
461
+ }
462
+ function generateFileUploadUrl(payload) {
463
+ function __generateFileUploadUrl({ host }) {
464
+ const metadata = {
465
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
466
+ method: "POST",
467
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl",
468
+ packageName: PACKAGE_NAME,
469
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
470
+ protoPath: "/v1/files/generate-upload-url",
471
+ data: payload,
472
+ host
473
+ }),
474
+ data: payload
475
+ };
476
+ return metadata;
477
+ }
478
+ return __generateFileUploadUrl;
479
+ }
480
+ function generateFileResumableUploadUrl(payload) {
481
+ function __generateFileResumableUploadUrl({ host }) {
482
+ const metadata = {
483
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
484
+ method: "POST",
485
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl",
486
+ packageName: PACKAGE_NAME,
487
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
488
+ protoPath: "/v1/files/generate-resumable-upload-url",
489
+ data: payload,
490
+ host
491
+ }),
492
+ data: payload
493
+ };
494
+ return metadata;
495
+ }
496
+ return __generateFileResumableUploadUrl;
497
+ }
498
+ function importFile(payload) {
499
+ function __importFile({ host }) {
500
+ const metadata = {
501
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
502
+ method: "POST",
503
+ methodFqn: "com.wix.media.site_media.v1.FilesService.ImportFile",
504
+ packageName: PACKAGE_NAME,
505
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
506
+ protoPath: "/v1/files/import",
507
+ data: payload,
508
+ host
509
+ }),
510
+ data: payload,
511
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
512
+ {
513
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
514
+ paths: [
515
+ { path: "file.createdDate" },
516
+ { path: "file.updatedDate" },
517
+ { path: "file.lastUsedDate" },
518
+ { path: "file.media.image.image.urlExpirationDate" },
519
+ { path: "file.media.image.previewImage.urlExpirationDate" },
520
+ { path: "file.media.video.urlExpirationDate" },
521
+ { path: "file.media.video.resolutions.urlExpirationDate" },
522
+ { path: "file.media.video.resolutions.poster.urlExpirationDate" },
523
+ { path: "file.media.video.posters.urlExpirationDate" },
524
+ { path: "file.media.audio.assets.urlExpirationDate" },
525
+ { path: "file.media.document.urlExpirationDate" },
526
+ { path: "file.media.document.thumbnail.urlExpirationDate" },
527
+ { path: "file.media.vector.image.urlExpirationDate" },
528
+ { path: "file.media.vector.previewImage.urlExpirationDate" },
529
+ { path: "file.media.archive.urlExpirationDate" },
530
+ { path: "file.media.model3d.urlExpirationDate" },
531
+ { path: "file.media.model3d.thumbnail.urlExpirationDate" },
532
+ { path: "file.media.icon.image.urlExpirationDate" },
533
+ { path: "file.media.icon.previewImage.urlExpirationDate" }
534
+ ]
535
+ },
536
+ {
537
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
538
+ paths: [
539
+ { path: "file.media.image.image.focalPoint.x" },
540
+ { path: "file.media.image.image.focalPoint.y" },
541
+ { path: "file.media.image.faces.confidence" },
542
+ { path: "file.media.image.previewImage.focalPoint.x" },
543
+ { path: "file.media.image.previewImage.focalPoint.y" },
544
+ { path: "file.media.video.resolutions.poster.focalPoint.x" },
545
+ { path: "file.media.video.resolutions.poster.focalPoint.y" },
546
+ { path: "file.media.video.posters.focalPoint.x" },
547
+ { path: "file.media.video.posters.focalPoint.y" },
548
+ { path: "file.media.document.thumbnail.focalPoint.x" },
549
+ { path: "file.media.document.thumbnail.focalPoint.y" },
550
+ { path: "file.media.vector.image.focalPoint.x" },
551
+ { path: "file.media.vector.image.focalPoint.y" },
552
+ { path: "file.media.vector.faces.confidence" },
553
+ { path: "file.media.vector.previewImage.focalPoint.x" },
554
+ { path: "file.media.vector.previewImage.focalPoint.y" },
555
+ { path: "file.media.model3d.thumbnail.focalPoint.x" },
556
+ { path: "file.media.model3d.thumbnail.focalPoint.y" },
557
+ { path: "file.media.icon.image.focalPoint.x" },
558
+ { path: "file.media.icon.image.focalPoint.y" },
559
+ { path: "file.media.icon.faces.confidence" },
560
+ { path: "file.media.icon.previewImage.focalPoint.x" },
561
+ { path: "file.media.icon.previewImage.focalPoint.y" }
562
+ ]
563
+ }
564
+ ])
565
+ };
566
+ return metadata;
567
+ }
568
+ return __importFile;
569
+ }
570
+ function bulkImportFiles(payload) {
571
+ function __bulkImportFiles({ host }) {
572
+ const metadata = {
573
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
574
+ method: "POST",
575
+ methodFqn: "com.wix.media.site_media.v1.FilesService.BulkImportFiles",
576
+ packageName: PACKAGE_NAME,
577
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
578
+ protoPath: "/v1/bulk/files/import",
579
+ data: payload,
580
+ host
581
+ }),
582
+ data: payload,
583
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
584
+ {
585
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
586
+ paths: [
587
+ { path: "files.createdDate" },
588
+ { path: "files.updatedDate" },
589
+ { path: "files.lastUsedDate" },
590
+ { path: "files.media.image.image.urlExpirationDate" },
591
+ { path: "files.media.image.previewImage.urlExpirationDate" },
592
+ { path: "files.media.video.urlExpirationDate" },
593
+ { path: "files.media.video.resolutions.urlExpirationDate" },
594
+ {
595
+ path: "files.media.video.resolutions.poster.urlExpirationDate"
596
+ },
597
+ { path: "files.media.video.posters.urlExpirationDate" },
598
+ { path: "files.media.audio.assets.urlExpirationDate" },
599
+ { path: "files.media.document.urlExpirationDate" },
600
+ { path: "files.media.document.thumbnail.urlExpirationDate" },
601
+ { path: "files.media.vector.image.urlExpirationDate" },
602
+ { path: "files.media.vector.previewImage.urlExpirationDate" },
603
+ { path: "files.media.archive.urlExpirationDate" },
604
+ { path: "files.media.model3d.urlExpirationDate" },
605
+ { path: "files.media.model3d.thumbnail.urlExpirationDate" },
606
+ { path: "files.media.icon.image.urlExpirationDate" },
607
+ { path: "files.media.icon.previewImage.urlExpirationDate" }
608
+ ]
609
+ },
610
+ {
611
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
612
+ paths: [
613
+ { path: "files.media.image.image.focalPoint.x" },
614
+ { path: "files.media.image.image.focalPoint.y" },
615
+ { path: "files.media.image.faces.confidence" },
616
+ { path: "files.media.image.previewImage.focalPoint.x" },
617
+ { path: "files.media.image.previewImage.focalPoint.y" },
618
+ { path: "files.media.video.resolutions.poster.focalPoint.x" },
619
+ { path: "files.media.video.resolutions.poster.focalPoint.y" },
620
+ { path: "files.media.video.posters.focalPoint.x" },
621
+ { path: "files.media.video.posters.focalPoint.y" },
622
+ { path: "files.media.document.thumbnail.focalPoint.x" },
623
+ { path: "files.media.document.thumbnail.focalPoint.y" },
624
+ { path: "files.media.vector.image.focalPoint.x" },
625
+ { path: "files.media.vector.image.focalPoint.y" },
626
+ { path: "files.media.vector.faces.confidence" },
627
+ { path: "files.media.vector.previewImage.focalPoint.x" },
628
+ { path: "files.media.vector.previewImage.focalPoint.y" },
629
+ { path: "files.media.model3d.thumbnail.focalPoint.x" },
630
+ { path: "files.media.model3d.thumbnail.focalPoint.y" },
631
+ { path: "files.media.icon.image.focalPoint.x" },
632
+ { path: "files.media.icon.image.focalPoint.y" },
633
+ { path: "files.media.icon.faces.confidence" },
634
+ { path: "files.media.icon.previewImage.focalPoint.x" },
635
+ { path: "files.media.icon.previewImage.focalPoint.y" }
636
+ ]
637
+ }
638
+ ])
639
+ };
640
+ return metadata;
641
+ }
642
+ return __bulkImportFiles;
643
+ }
644
+ function bulkImportFile(payload) {
645
+ function __bulkImportFile({ host }) {
646
+ const metadata = {
647
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
648
+ method: "POST",
649
+ methodFqn: "com.wix.media.site_media.v1.FilesService.BulkImportFile",
650
+ packageName: PACKAGE_NAME,
651
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
652
+ protoPath: "/v1/bulk/files/import-v2",
653
+ data: payload,
654
+ host
655
+ }),
656
+ data: payload,
657
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
658
+ {
659
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
660
+ paths: [
661
+ { path: "results.item.createdDate" },
662
+ { path: "results.item.updatedDate" },
663
+ { path: "results.item.lastUsedDate" },
664
+ { path: "results.item.media.image.image.urlExpirationDate" },
665
+ {
666
+ path: "results.item.media.image.previewImage.urlExpirationDate"
667
+ },
668
+ { path: "results.item.media.video.urlExpirationDate" },
669
+ {
670
+ path: "results.item.media.video.resolutions.urlExpirationDate"
671
+ },
672
+ {
673
+ path: "results.item.media.video.resolutions.poster.urlExpirationDate"
674
+ },
675
+ { path: "results.item.media.video.posters.urlExpirationDate" },
676
+ { path: "results.item.media.audio.assets.urlExpirationDate" },
677
+ { path: "results.item.media.document.urlExpirationDate" },
678
+ {
679
+ path: "results.item.media.document.thumbnail.urlExpirationDate"
680
+ },
681
+ { path: "results.item.media.vector.image.urlExpirationDate" },
682
+ {
683
+ path: "results.item.media.vector.previewImage.urlExpirationDate"
684
+ },
685
+ { path: "results.item.media.archive.urlExpirationDate" },
686
+ { path: "results.item.media.model3d.urlExpirationDate" },
687
+ {
688
+ path: "results.item.media.model3d.thumbnail.urlExpirationDate"
689
+ },
690
+ { path: "results.item.media.icon.image.urlExpirationDate" },
691
+ {
692
+ path: "results.item.media.icon.previewImage.urlExpirationDate"
693
+ }
694
+ ]
695
+ },
696
+ {
697
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
698
+ paths: [
699
+ { path: "results.item.media.image.image.focalPoint.x" },
700
+ { path: "results.item.media.image.image.focalPoint.y" },
701
+ { path: "results.item.media.image.faces.confidence" },
702
+ { path: "results.item.media.image.previewImage.focalPoint.x" },
703
+ { path: "results.item.media.image.previewImage.focalPoint.y" },
704
+ {
705
+ path: "results.item.media.video.resolutions.poster.focalPoint.x"
706
+ },
707
+ {
708
+ path: "results.item.media.video.resolutions.poster.focalPoint.y"
709
+ },
710
+ { path: "results.item.media.video.posters.focalPoint.x" },
711
+ { path: "results.item.media.video.posters.focalPoint.y" },
712
+ { path: "results.item.media.document.thumbnail.focalPoint.x" },
713
+ { path: "results.item.media.document.thumbnail.focalPoint.y" },
714
+ { path: "results.item.media.vector.image.focalPoint.x" },
715
+ { path: "results.item.media.vector.image.focalPoint.y" },
716
+ { path: "results.item.media.vector.faces.confidence" },
717
+ { path: "results.item.media.vector.previewImage.focalPoint.x" },
718
+ { path: "results.item.media.vector.previewImage.focalPoint.y" },
719
+ { path: "results.item.media.model3d.thumbnail.focalPoint.x" },
720
+ { path: "results.item.media.model3d.thumbnail.focalPoint.y" },
721
+ { path: "results.item.media.icon.image.focalPoint.x" },
722
+ { path: "results.item.media.icon.image.focalPoint.y" },
723
+ { path: "results.item.media.icon.faces.confidence" },
724
+ { path: "results.item.media.icon.previewImage.focalPoint.x" },
725
+ { path: "results.item.media.icon.previewImage.focalPoint.y" }
726
+ ]
727
+ }
728
+ ])
729
+ };
730
+ return metadata;
731
+ }
732
+ return __bulkImportFile;
733
+ }
734
+ function listFiles(payload) {
735
+ function __listFiles({ host }) {
736
+ const metadata = {
737
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
738
+ method: "GET",
739
+ methodFqn: "com.wix.media.site_media.v1.FilesService.ListFiles",
740
+ packageName: PACKAGE_NAME,
741
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
742
+ protoPath: "/v1/files",
743
+ data: payload,
744
+ host
745
+ }),
746
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
747
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
748
+ {
749
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
750
+ paths: [
751
+ { path: "files.createdDate" },
752
+ { path: "files.updatedDate" },
753
+ { path: "files.lastUsedDate" },
754
+ { path: "files.media.image.image.urlExpirationDate" },
755
+ { path: "files.media.image.previewImage.urlExpirationDate" },
756
+ { path: "files.media.video.urlExpirationDate" },
757
+ { path: "files.media.video.resolutions.urlExpirationDate" },
758
+ {
759
+ path: "files.media.video.resolutions.poster.urlExpirationDate"
760
+ },
761
+ { path: "files.media.video.posters.urlExpirationDate" },
762
+ { path: "files.media.audio.assets.urlExpirationDate" },
763
+ { path: "files.media.document.urlExpirationDate" },
764
+ { path: "files.media.document.thumbnail.urlExpirationDate" },
765
+ { path: "files.media.vector.image.urlExpirationDate" },
766
+ { path: "files.media.vector.previewImage.urlExpirationDate" },
767
+ { path: "files.media.archive.urlExpirationDate" },
768
+ { path: "files.media.model3d.urlExpirationDate" },
769
+ { path: "files.media.model3d.thumbnail.urlExpirationDate" },
770
+ { path: "files.media.icon.image.urlExpirationDate" },
771
+ { path: "files.media.icon.previewImage.urlExpirationDate" }
772
+ ]
773
+ },
774
+ {
775
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
776
+ paths: [
777
+ { path: "files.media.image.image.focalPoint.x" },
778
+ { path: "files.media.image.image.focalPoint.y" },
779
+ { path: "files.media.image.faces.confidence" },
780
+ { path: "files.media.image.previewImage.focalPoint.x" },
781
+ { path: "files.media.image.previewImage.focalPoint.y" },
782
+ { path: "files.media.video.resolutions.poster.focalPoint.x" },
783
+ { path: "files.media.video.resolutions.poster.focalPoint.y" },
784
+ { path: "files.media.video.posters.focalPoint.x" },
785
+ { path: "files.media.video.posters.focalPoint.y" },
786
+ { path: "files.media.document.thumbnail.focalPoint.x" },
787
+ { path: "files.media.document.thumbnail.focalPoint.y" },
788
+ { path: "files.media.vector.image.focalPoint.x" },
789
+ { path: "files.media.vector.image.focalPoint.y" },
790
+ { path: "files.media.vector.faces.confidence" },
791
+ { path: "files.media.vector.previewImage.focalPoint.x" },
792
+ { path: "files.media.vector.previewImage.focalPoint.y" },
793
+ { path: "files.media.model3d.thumbnail.focalPoint.x" },
794
+ { path: "files.media.model3d.thumbnail.focalPoint.y" },
795
+ { path: "files.media.icon.image.focalPoint.x" },
796
+ { path: "files.media.icon.image.focalPoint.y" },
797
+ { path: "files.media.icon.faces.confidence" },
798
+ { path: "files.media.icon.previewImage.focalPoint.x" },
799
+ { path: "files.media.icon.previewImage.focalPoint.y" }
800
+ ]
801
+ }
802
+ ])
803
+ };
804
+ return metadata;
805
+ }
806
+ return __listFiles;
807
+ }
808
+ function searchFiles(payload) {
809
+ function __searchFiles({ host }) {
810
+ const metadata = {
811
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
812
+ method: "POST",
813
+ methodFqn: "com.wix.media.site_media.v1.FilesService.SearchFiles",
814
+ packageName: PACKAGE_NAME,
815
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
816
+ protoPath: "/v1/files/search",
817
+ data: payload,
818
+ host
819
+ }),
820
+ data: payload,
821
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
822
+ {
823
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
824
+ paths: [
825
+ { path: "files.createdDate" },
826
+ { path: "files.updatedDate" },
827
+ { path: "files.lastUsedDate" },
828
+ { path: "files.media.image.image.urlExpirationDate" },
829
+ { path: "files.media.image.previewImage.urlExpirationDate" },
830
+ { path: "files.media.video.urlExpirationDate" },
831
+ { path: "files.media.video.resolutions.urlExpirationDate" },
832
+ {
833
+ path: "files.media.video.resolutions.poster.urlExpirationDate"
834
+ },
835
+ { path: "files.media.video.posters.urlExpirationDate" },
836
+ { path: "files.media.audio.assets.urlExpirationDate" },
837
+ { path: "files.media.document.urlExpirationDate" },
838
+ { path: "files.media.document.thumbnail.urlExpirationDate" },
839
+ { path: "files.media.vector.image.urlExpirationDate" },
840
+ { path: "files.media.vector.previewImage.urlExpirationDate" },
841
+ { path: "files.media.archive.urlExpirationDate" },
842
+ { path: "files.media.model3d.urlExpirationDate" },
843
+ { path: "files.media.model3d.thumbnail.urlExpirationDate" },
844
+ { path: "files.media.icon.image.urlExpirationDate" },
845
+ { path: "files.media.icon.previewImage.urlExpirationDate" }
846
+ ]
847
+ },
848
+ {
849
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
850
+ paths: [
851
+ { path: "files.media.image.image.focalPoint.x" },
852
+ { path: "files.media.image.image.focalPoint.y" },
853
+ { path: "files.media.image.faces.confidence" },
854
+ { path: "files.media.image.previewImage.focalPoint.x" },
855
+ { path: "files.media.image.previewImage.focalPoint.y" },
856
+ { path: "files.media.video.resolutions.poster.focalPoint.x" },
857
+ { path: "files.media.video.resolutions.poster.focalPoint.y" },
858
+ { path: "files.media.video.posters.focalPoint.x" },
859
+ { path: "files.media.video.posters.focalPoint.y" },
860
+ { path: "files.media.document.thumbnail.focalPoint.x" },
861
+ { path: "files.media.document.thumbnail.focalPoint.y" },
862
+ { path: "files.media.vector.image.focalPoint.x" },
863
+ { path: "files.media.vector.image.focalPoint.y" },
864
+ { path: "files.media.vector.faces.confidence" },
865
+ { path: "files.media.vector.previewImage.focalPoint.x" },
866
+ { path: "files.media.vector.previewImage.focalPoint.y" },
867
+ { path: "files.media.model3d.thumbnail.focalPoint.x" },
868
+ { path: "files.media.model3d.thumbnail.focalPoint.y" },
869
+ { path: "files.media.icon.image.focalPoint.x" },
870
+ { path: "files.media.icon.image.focalPoint.y" },
871
+ { path: "files.media.icon.faces.confidence" },
872
+ { path: "files.media.icon.previewImage.focalPoint.x" },
873
+ { path: "files.media.icon.previewImage.focalPoint.y" }
874
+ ]
875
+ }
876
+ ])
877
+ };
878
+ return metadata;
879
+ }
880
+ return __searchFiles;
881
+ }
882
+ function generateVideoStreamingUrl(payload) {
883
+ function __generateVideoStreamingUrl({ host }) {
884
+ const metadata = {
885
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
886
+ method: "POST",
887
+ methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl",
888
+ packageName: PACKAGE_NAME,
889
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
890
+ protoPath: "/v1/files/generate-video-stream-url",
891
+ data: payload,
892
+ host
893
+ }),
894
+ data: payload
895
+ };
896
+ return metadata;
897
+ }
898
+ return __generateVideoStreamingUrl;
899
+ }
900
+ function bulkDeleteFiles(payload) {
901
+ function __bulkDeleteFiles({ host }) {
902
+ const metadata = {
903
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
904
+ method: "POST",
905
+ methodFqn: "com.wix.media.site_media.v1.FilesService.BulkDeleteFiles",
906
+ packageName: PACKAGE_NAME,
907
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
908
+ protoPath: "/v1/bulk/files/delete",
909
+ data: payload,
910
+ host
911
+ }),
912
+ data: payload
913
+ };
914
+ return metadata;
915
+ }
916
+ return __bulkDeleteFiles;
917
+ }
918
+ function bulkRestoreFilesFromTrashBin(payload) {
919
+ function __bulkRestoreFilesFromTrashBin({ host }) {
920
+ const metadata = {
921
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
922
+ method: "POST",
923
+ methodFqn: "com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin",
924
+ packageName: PACKAGE_NAME,
925
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
926
+ protoPath: "/v1/bulk/trash-bin/files/restore",
927
+ data: payload,
928
+ host
929
+ }),
930
+ data: payload
931
+ };
932
+ return metadata;
933
+ }
934
+ return __bulkRestoreFilesFromTrashBin;
935
+ }
936
+ function listDeletedFiles(payload) {
937
+ function __listDeletedFiles({ host }) {
938
+ const metadata = {
939
+ entityFqdn: "wix.media.site_media.v1.file_descriptor",
940
+ method: "GET",
941
+ methodFqn: "com.wix.media.site_media.v1.FilesService.ListDeletedFiles",
942
+ packageName: PACKAGE_NAME,
943
+ url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
944
+ protoPath: "/v1/trash-bin/files",
945
+ data: payload,
946
+ host
947
+ }),
948
+ params: (0, import_rest_modules.toURLSearchParams)(payload, true),
949
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
950
+ {
951
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
952
+ paths: [
953
+ { path: "files.createdDate" },
954
+ { path: "files.updatedDate" },
955
+ { path: "files.lastUsedDate" },
956
+ { path: "files.media.image.image.urlExpirationDate" },
957
+ { path: "files.media.image.previewImage.urlExpirationDate" },
958
+ { path: "files.media.video.urlExpirationDate" },
959
+ { path: "files.media.video.resolutions.urlExpirationDate" },
960
+ {
961
+ path: "files.media.video.resolutions.poster.urlExpirationDate"
962
+ },
963
+ { path: "files.media.video.posters.urlExpirationDate" },
964
+ { path: "files.media.audio.assets.urlExpirationDate" },
965
+ { path: "files.media.document.urlExpirationDate" },
966
+ { path: "files.media.document.thumbnail.urlExpirationDate" },
967
+ { path: "files.media.vector.image.urlExpirationDate" },
968
+ { path: "files.media.vector.previewImage.urlExpirationDate" },
969
+ { path: "files.media.archive.urlExpirationDate" },
970
+ { path: "files.media.model3d.urlExpirationDate" },
971
+ { path: "files.media.model3d.thumbnail.urlExpirationDate" },
972
+ { path: "files.media.icon.image.urlExpirationDate" },
973
+ { path: "files.media.icon.previewImage.urlExpirationDate" }
974
+ ]
975
+ },
976
+ {
977
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
978
+ paths: [
979
+ { path: "files.media.image.image.focalPoint.x" },
980
+ { path: "files.media.image.image.focalPoint.y" },
981
+ { path: "files.media.image.faces.confidence" },
982
+ { path: "files.media.image.previewImage.focalPoint.x" },
983
+ { path: "files.media.image.previewImage.focalPoint.y" },
984
+ { path: "files.media.video.resolutions.poster.focalPoint.x" },
985
+ { path: "files.media.video.resolutions.poster.focalPoint.y" },
986
+ { path: "files.media.video.posters.focalPoint.x" },
987
+ { path: "files.media.video.posters.focalPoint.y" },
988
+ { path: "files.media.document.thumbnail.focalPoint.x" },
989
+ { path: "files.media.document.thumbnail.focalPoint.y" },
990
+ { path: "files.media.vector.image.focalPoint.x" },
991
+ { path: "files.media.vector.image.focalPoint.y" },
992
+ { path: "files.media.vector.faces.confidence" },
993
+ { path: "files.media.vector.previewImage.focalPoint.x" },
994
+ { path: "files.media.vector.previewImage.focalPoint.y" },
995
+ { path: "files.media.model3d.thumbnail.focalPoint.x" },
996
+ { path: "files.media.model3d.thumbnail.focalPoint.y" },
997
+ { path: "files.media.icon.image.focalPoint.x" },
998
+ { path: "files.media.icon.image.focalPoint.y" },
999
+ { path: "files.media.icon.faces.confidence" },
1000
+ { path: "files.media.icon.previewImage.focalPoint.x" },
1001
+ { path: "files.media.icon.previewImage.focalPoint.y" }
1002
+ ]
1003
+ }
1004
+ ])
1005
+ };
1006
+ return metadata;
1007
+ }
1008
+ return __listDeletedFiles;
1009
+ }
1010
+
1011
+ // src/media-site-media-v1-file-descriptor-files.meta.ts
1012
+ function generateFilesDownloadUrl2() {
1013
+ const payload = {};
1014
+ const getRequestOptions = generateFilesDownloadUrl(
1015
+ payload
1016
+ );
1017
+ const getUrl = (context) => {
1018
+ const { url } = getRequestOptions(context);
1019
+ return url;
1020
+ };
1021
+ return {
1022
+ getUrl,
1023
+ httpMethod: "POST",
1024
+ path: "/v1/files/generate-download-url",
1025
+ pathParams: {},
1026
+ __requestType: null,
1027
+ __originalRequestType: null,
1028
+ __responseType: null,
1029
+ __originalResponseType: null
1030
+ };
1031
+ }
1032
+ function generateFileDownloadUrl2() {
1033
+ const payload = {};
1034
+ const getRequestOptions = generateFileDownloadUrl(
1035
+ payload
1036
+ );
1037
+ const getUrl = (context) => {
1038
+ const { url } = getRequestOptions(context);
1039
+ return url;
1040
+ };
1041
+ return {
1042
+ getUrl,
1043
+ httpMethod: "POST",
1044
+ path: "/v1/files/generate-file-download-url",
1045
+ pathParams: {},
1046
+ __requestType: null,
1047
+ __originalRequestType: null,
1048
+ __responseType: null,
1049
+ __originalResponseType: null
1050
+ };
1051
+ }
1052
+ function getFileDescriptor2() {
1053
+ const payload = {};
1054
+ const getRequestOptions = getFileDescriptor(payload);
1055
+ const getUrl = (context) => {
1056
+ const { url } = getRequestOptions(context);
1057
+ return url;
1058
+ };
1059
+ return {
1060
+ getUrl,
1061
+ httpMethod: "GET",
1062
+ path: "/v1/files/get-file-by-id",
1063
+ pathParams: {},
1064
+ __requestType: null,
1065
+ __originalRequestType: null,
1066
+ __responseType: null,
1067
+ __originalResponseType: null
1068
+ };
1069
+ }
1070
+ function getFileDescriptors2() {
1071
+ const payload = {};
1072
+ const getRequestOptions = getFileDescriptors(payload);
1073
+ const getUrl = (context) => {
1074
+ const { url } = getRequestOptions(context);
1075
+ return url;
1076
+ };
1077
+ return {
1078
+ getUrl,
1079
+ httpMethod: "POST",
1080
+ path: "/v1/files/get-files",
1081
+ pathParams: {},
1082
+ __requestType: null,
1083
+ __originalRequestType: null,
1084
+ __responseType: null,
1085
+ __originalResponseType: null
1086
+ };
1087
+ }
1088
+ function updateFileDescriptor2() {
1089
+ const payload = {};
1090
+ const getRequestOptions = updateFileDescriptor(payload);
1091
+ const getUrl = (context) => {
1092
+ const { url } = getRequestOptions(context);
1093
+ return url;
1094
+ };
1095
+ return {
1096
+ getUrl,
1097
+ httpMethod: "PATCH",
1098
+ path: "/v1/files/update-file-descriptor",
1099
+ pathParams: {},
1100
+ __requestType: null,
1101
+ __originalRequestType: null,
1102
+ __responseType: null,
1103
+ __originalResponseType: null
1104
+ };
1105
+ }
1106
+ function generateFileUploadUrl2() {
1107
+ const payload = {};
1108
+ const getRequestOptions = generateFileUploadUrl(payload);
1109
+ const getUrl = (context) => {
1110
+ const { url } = getRequestOptions(context);
1111
+ return url;
1112
+ };
1113
+ return {
1114
+ getUrl,
1115
+ httpMethod: "POST",
1116
+ path: "/v1/files/generate-upload-url",
1117
+ pathParams: {},
1118
+ __requestType: null,
1119
+ __originalRequestType: null,
1120
+ __responseType: null,
1121
+ __originalResponseType: null
1122
+ };
1123
+ }
1124
+ function generateFileResumableUploadUrl2() {
1125
+ const payload = {};
1126
+ const getRequestOptions = generateFileResumableUploadUrl(
1127
+ payload
1128
+ );
1129
+ const getUrl = (context) => {
1130
+ const { url } = getRequestOptions(context);
1131
+ return url;
1132
+ };
1133
+ return {
1134
+ getUrl,
1135
+ httpMethod: "POST",
1136
+ path: "/v1/files/generate-resumable-upload-url",
1137
+ pathParams: {},
1138
+ __requestType: null,
1139
+ __originalRequestType: null,
1140
+ __responseType: null,
1141
+ __originalResponseType: null
1142
+ };
1143
+ }
1144
+ function importFile2() {
1145
+ const payload = {};
1146
+ const getRequestOptions = importFile(payload);
1147
+ const getUrl = (context) => {
1148
+ const { url } = getRequestOptions(context);
1149
+ return url;
1150
+ };
1151
+ return {
1152
+ getUrl,
1153
+ httpMethod: "POST",
1154
+ path: "/v1/files/import",
1155
+ pathParams: {},
1156
+ __requestType: null,
1157
+ __originalRequestType: null,
1158
+ __responseType: null,
1159
+ __originalResponseType: null
1160
+ };
1161
+ }
1162
+ function bulkImportFiles2() {
1163
+ const payload = {};
1164
+ const getRequestOptions = bulkImportFiles(payload);
1165
+ const getUrl = (context) => {
1166
+ const { url } = getRequestOptions(context);
1167
+ return url;
1168
+ };
1169
+ return {
1170
+ getUrl,
1171
+ httpMethod: "POST",
1172
+ path: "/v1/bulk/files/import",
1173
+ pathParams: {},
1174
+ __requestType: null,
1175
+ __originalRequestType: null,
1176
+ __responseType: null,
1177
+ __originalResponseType: null
1178
+ };
1179
+ }
1180
+ function bulkImportFile2() {
1181
+ const payload = {};
1182
+ const getRequestOptions = bulkImportFile(payload);
1183
+ const getUrl = (context) => {
1184
+ const { url } = getRequestOptions(context);
1185
+ return url;
1186
+ };
1187
+ return {
1188
+ getUrl,
1189
+ httpMethod: "POST",
1190
+ path: "/v1/bulk/files/import-v2",
1191
+ pathParams: {},
1192
+ __requestType: null,
1193
+ __originalRequestType: null,
1194
+ __responseType: null,
1195
+ __originalResponseType: null
1196
+ };
1197
+ }
1198
+ function listFiles2() {
1199
+ const payload = {};
1200
+ const getRequestOptions = listFiles(payload);
1201
+ const getUrl = (context) => {
1202
+ const { url } = getRequestOptions(context);
1203
+ return url;
1204
+ };
1205
+ return {
1206
+ getUrl,
1207
+ httpMethod: "GET",
1208
+ path: "/v1/files",
1209
+ pathParams: {},
1210
+ __requestType: null,
1211
+ __originalRequestType: null,
1212
+ __responseType: null,
1213
+ __originalResponseType: null
1214
+ };
1215
+ }
1216
+ function searchFiles2() {
1217
+ const payload = {};
1218
+ const getRequestOptions = searchFiles(payload);
1219
+ const getUrl = (context) => {
1220
+ const { url } = getRequestOptions(context);
1221
+ return url;
1222
+ };
1223
+ return {
1224
+ getUrl,
1225
+ httpMethod: "POST",
1226
+ path: "/v1/files/search",
1227
+ pathParams: {},
1228
+ __requestType: null,
1229
+ __originalRequestType: null,
1230
+ __responseType: null,
1231
+ __originalResponseType: null
1232
+ };
1233
+ }
1234
+ function generateVideoStreamingUrl2() {
1235
+ const payload = {};
1236
+ const getRequestOptions = generateVideoStreamingUrl(
1237
+ payload
1238
+ );
1239
+ const getUrl = (context) => {
1240
+ const { url } = getRequestOptions(context);
1241
+ return url;
1242
+ };
1243
+ return {
1244
+ getUrl,
1245
+ httpMethod: "POST",
1246
+ path: "/v1/files/generate-video-stream-url",
1247
+ pathParams: {},
1248
+ __requestType: null,
1249
+ __originalRequestType: null,
1250
+ __responseType: null,
1251
+ __originalResponseType: null
1252
+ };
1253
+ }
1254
+ function bulkDeleteFiles2() {
1255
+ const payload = {};
1256
+ const getRequestOptions = bulkDeleteFiles(payload);
1257
+ const getUrl = (context) => {
1258
+ const { url } = getRequestOptions(context);
1259
+ return url;
1260
+ };
1261
+ return {
1262
+ getUrl,
1263
+ httpMethod: "POST",
1264
+ path: "/v1/bulk/files/delete",
1265
+ pathParams: {},
1266
+ __requestType: null,
1267
+ __originalRequestType: null,
1268
+ __responseType: null,
1269
+ __originalResponseType: null
1270
+ };
1271
+ }
1272
+ function bulkRestoreFilesFromTrashBin2() {
1273
+ const payload = {};
1274
+ const getRequestOptions = bulkRestoreFilesFromTrashBin(
1275
+ payload
1276
+ );
1277
+ const getUrl = (context) => {
1278
+ const { url } = getRequestOptions(context);
1279
+ return url;
1280
+ };
1281
+ return {
1282
+ getUrl,
1283
+ httpMethod: "POST",
1284
+ path: "/v1/bulk/trash-bin/files/restore",
1285
+ pathParams: {},
1286
+ __requestType: null,
1287
+ __originalRequestType: null,
1288
+ __responseType: null,
1289
+ __originalResponseType: null
1290
+ };
1291
+ }
1292
+ function listDeletedFiles2() {
1293
+ const payload = {};
1294
+ const getRequestOptions = listDeletedFiles(payload);
1295
+ const getUrl = (context) => {
1296
+ const { url } = getRequestOptions(context);
1297
+ return url;
1298
+ };
1299
+ return {
1300
+ getUrl,
1301
+ httpMethod: "GET",
1302
+ path: "/v1/trash-bin/files",
1303
+ pathParams: {},
1304
+ __requestType: null,
1305
+ __originalRequestType: null,
1306
+ __responseType: null,
1307
+ __originalResponseType: null
1308
+ };
1309
+ }
1310
+ // Annotate the CommonJS export names for ESM import in node:
1311
+ 0 && (module.exports = {
1312
+ bulkDeleteFiles,
1313
+ bulkImportFile,
1314
+ bulkImportFiles,
1315
+ bulkRestoreFilesFromTrashBin,
1316
+ generateFileDownloadUrl,
1317
+ generateFileResumableUploadUrl,
1318
+ generateFileUploadUrl,
1319
+ generateFilesDownloadUrl,
1320
+ generateVideoStreamingUrl,
1321
+ getFileDescriptor,
1322
+ getFileDescriptors,
1323
+ importFile,
1324
+ listDeletedFiles,
1325
+ listFiles,
1326
+ searchFiles,
1327
+ updateFileDescriptor
1328
+ });
18
1329
  //# sourceMappingURL=meta.js.map