@wix/auto_sdk_media_files 1.0.17 → 1.0.19

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