@wix/bex-utils 2.31.0 → 2.32.0

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 (114) hide show
  1. package/package.json +2 -3
  2. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.d.ts +0 -89
  3. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js +0 -2249
  4. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js.map +0 -1
  5. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.d.ts +0 -1
  6. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js +0 -5
  7. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js.map +0 -1
  8. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.d.ts +0 -6
  9. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js +0 -24
  10. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js.map +0 -1
  11. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.d.ts +0 -180
  12. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js +0 -971
  13. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js.map +0 -1
  14. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.d.ts +0 -30
  15. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js +0 -385
  16. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js.map +0 -1
  17. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.d.ts +0 -10010
  18. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.js +0 -2
  19. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.d.ts +0 -5002
  20. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.js +0 -78224
  21. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.d.ts +0 -9973
  22. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.js +0 -2
  23. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.d.ts +0 -189
  24. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js +0 -431
  25. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js.map +0 -1
  26. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.d.ts +0 -1387
  27. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js +0 -117
  28. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js.map +0 -1
  29. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.d.ts +0 -89
  30. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js +0 -2145
  31. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js.map +0 -1
  32. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.d.ts +0 -1
  33. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js +0 -2
  34. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js.map +0 -1
  35. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.d.ts +0 -6
  36. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js +0 -19
  37. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js.map +0 -1
  38. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.d.ts +0 -180
  39. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js +0 -949
  40. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js.map +0 -1
  41. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.d.ts +0 -30
  42. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js +0 -344
  43. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js.map +0 -1
  44. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.d.ts +0 -189
  45. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js +0 -390
  46. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js.map +0 -1
  47. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.d.ts +0 -1387
  48. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js +0 -114
  49. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js.map +0 -1
  50. package/@wix/ambassador-media-site-media-v1-file-descriptor/builders/package.json +0 -7
  51. package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/http/package.json +0 -7
  52. package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/rpc/package.json +0 -6
  53. package/@wix/ambassador-media-site-media-v1-file-descriptor/http/package.json +0 -7
  54. package/@wix/ambassador-media-site-media-v1-file-descriptor/meta/package.json +0 -7
  55. package/@wix/ambassador-media-site-media-v1-file-descriptor/package.json +0 -53
  56. package/@wix/ambassador-media-site-media-v1-file-descriptor/rpc/package.json +0 -6
  57. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_entity.proto +0 -17
  58. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_service.proto +0 -121
  59. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_result.proto +0 -17
  60. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_service.proto +0 -76
  61. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_quota_api.proto +0 -159
  62. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/identification.proto +0 -41
  63. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/media.proto +0 -242
  64. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/paging.proto +0 -121
  65. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/audio_v2.proto +0 -31
  66. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/content_disposition.proto +0 -11
  67. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/download_url.proto +0 -12
  68. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/error_code.proto +0 -49
  69. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/errors.proto +0 -41
  70. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/file_descriptor.proto +0 -140
  71. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/files_service.proto +0 -1030
  72. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folder.proto +0 -48
  73. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folders_service.proto +0 -367
  74. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/identity_info.proto +0 -13
  75. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/image_media.proto +0 -84
  76. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/media_type.proto +0 -15
  77. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/namespace.proto +0 -21
  78. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/operation_status.proto +0 -27
  79. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/other_media.proto +0 -22
  80. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/root_folders.proto +0 -12
  81. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_info.proto +0 -24
  82. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_service.proto +0 -179
  83. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/upload_protocol.proto +0 -9
  84. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/action_payload.proto +0 -33
  85. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/annotations.proto +0 -393
  86. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/api_errors.proto +0 -117
  87. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/callback.proto +0 -156
  88. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/context.proto +0 -19
  89. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/entity.proto +0 -122
  90. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/errors.proto +0 -119
  91. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/idempotency.proto +0 -25
  92. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/permissions.proto +0 -40
  93. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/sla.proto +0 -24
  94. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/subscription.proto +0 -32
  95. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/validations.proto +0 -137
  96. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/address.proto +0 -148
  97. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/bulk.proto +0 -53
  98. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/identification.proto +0 -40
  99. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/image.proto +0 -8
  100. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/media.proto +0 -236
  101. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/money.proto +0 -32
  102. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/pageurl.proto +0 -32
  103. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/paging.proto +0 -121
  104. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/query.proto +0 -795
  105. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/sorting.proto +0 -36
  106. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/spi.proto +0 -85
  107. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/tags.proto +0 -55
  108. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/wixlink.proto +0 -201
  109. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/graphql/definitions.proto +0 -13
  110. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/http/field_mask.proto +0 -46
  111. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/sdk/definitions.proto +0 -191
  112. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/definitions.proto +0 -186
  113. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/http_error_status.proto +0 -24
  114. package/@wix/ambassador-media-site-media-v1-file-descriptor/types/package.json +0 -7
@@ -1,242 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.upstream.wix.common;
4
-
5
- option java_multiple_files = true;
6
- option java_package = "com.wix.media.site_media.upstream.wix.common";
7
-
8
- import "wix/api/annotations.proto";
9
- import "google/protobuf/wrappers.proto";
10
- import "google/protobuf/timestamp.proto";
11
- import "wix/api/validations.proto";
12
-
13
- message Image {
14
- option (.wix.api.decomposite_of) = "wix.common.Image";
15
- option (.wix.api.decomposition_minimum_fields) = {
16
- field: "id"
17
- field: "height"
18
- field: "width"
19
- };
20
- // WixMedia image ID.
21
- string id = 1;
22
- // Image URL.
23
- string url = 2;
24
- // Original image height.
25
- int32 height = 3 [(.wix.api.readOnly) = true];
26
- // Original image width.
27
- int32 width = 4 [(.wix.api.readOnly) = true];
28
- // Image alt text.
29
- google.protobuf.StringValue alt_text = 5;
30
- // Image URL expiration date (when relevant).
31
- google.protobuf.Timestamp url_expiration_date = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
32
- // Image filename.
33
- google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
34
- // Image size in bytes.
35
- google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
36
- }
37
-
38
- // Deprecated - use VideoV2
39
- message Video {
40
- option (.wix.api.decomposite_of) = "wix.common.Video";
41
- option deprecated = true;
42
- option (.wix.api.decomposition_minimum_fields) = {
43
- field: "id"
44
- field: "url"
45
- field: "height"
46
- field: "width"
47
- };
48
- // WixMedia ID
49
- string id = 1;
50
- // URL of video
51
- string url = 2;
52
- // Original image height
53
- int32 height = 3 [(.wix.api.readOnly) = true];
54
- // Original image width
55
- int32 width = 4 [(.wix.api.readOnly) = true];
56
- // Video poster
57
- Image thumbnail = 5;
58
- }
59
-
60
- message VideoV2 {
61
- option (.wix.api.decomposite_of) = "wix.common.VideoV2";
62
- option (.wix.api.decomposition_minimum_fields) = {
63
- field: "id"
64
- field: "resolutions"
65
- };
66
- // WixMedia ID.
67
- string id = 1;
68
- // Original video URL.
69
- string url = 4 [(.wix.api.field_exposure) = PRIVATE];
70
- // Available resolutions for the video, starting with the optimal resolution.
71
- repeated VideoResolution resolutions = 2 [(.wix.api.readOnly) = true, (.wix.api.maxSize) = 100];
72
- // Video filename.
73
- google.protobuf.StringValue filename = 3 [(.wix.api.readOnly) = true];
74
- // Video posters.
75
- repeated Image posters = 5 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
76
- // Original video size in bytes.
77
- google.protobuf.StringValue size_in_bytes = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
78
- // Video URL expiration date (when relevant).
79
- google.protobuf.Timestamp url_expiration_date = 7 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
80
- // Original video duration in milliseconds.
81
- google.protobuf.Int32Value duration_in_milliseconds = 8 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0];
82
- }
83
-
84
- message VideoResolution {
85
- option (.wix.api.decomposite_of) = "wix.common.VideoResolution";
86
- option (.wix.api.decomposition_minimum_fields) = {
87
- field: "url"
88
- field: "height"
89
- field: "width"
90
- field: "poster"
91
- field: "format"
92
- };
93
- // Video URL.
94
- string url = 2;
95
- // Video height.
96
- int32 height = 3;
97
- // Video width.
98
- int32 width = 4;
99
- // Deprecated. Use the `posters` property in the parent entity instead.
100
- Image poster = 5 [(.wix.api.field_exposure) = PRIVATE, deprecated = true];
101
- // Video format
102
- // Possible values: ['144p.mp4' '144p.webm' '240p.mp4' '240p.webm' '360p.mp4' '360p.webm' '480p.mp4' '480p.webm'
103
- // '720p.mp4' '720p.webm' '1080p.mp4' '1080p.webm', 'hls' ]
104
- string format = 6;
105
- // Deprecated. Use the `urlExpirationDate` property in the parent entity instead.
106
- google.protobuf.Timestamp url_expiration_date = 7 [(.wix.api.field_exposure) = PRIVATE, deprecated = true];
107
- // Deprecated. Use the `sizeInBytes` property in the parent entity instead. Size cannot be provided per resolution.
108
- google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE, deprecated = true];
109
- // Video quality. For example: 480p, 720p.
110
- google.protobuf.StringValue quality = 9 [(.wix.api.field_exposure) = PRIVATE];
111
- // Video filename.
112
- google.protobuf.StringValue filename = 10 [(.wix.api.field_exposure) = PRIVATE];
113
- // Video duration in seconds.
114
- google.protobuf.Int32Value duration_in_seconds = 11 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0, (.wix.api.field_deprecated) = {
115
- replaced_by: "duration_in_milliseconds"
116
- target_removal_date: "2024-08-01"
117
- }];
118
- // Video duration in milliseconds.
119
- google.protobuf.Int32Value duration_in_milliseconds = 12 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.readOnly) = true, (.wix.api.min) = 0];
120
-
121
- // When true, this is a protected asset, and calling the URL will return a 403 error.
122
- // In order to access private assets, make a request to:
123
- // `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
124
- google.protobuf.BoolValue private = 30 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
125
- // Key to identify the video resolution's relationship to the original media in WixMedia.
126
- // Can be used to request a download for the specific video resolution.
127
- // For example: 480p.mp4, 720p.mp4, 1080p.mp4, trailer-720p.mp4, clip-720p.mp4
128
- google.protobuf.StringValue asset_key = 31 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
129
- }
130
-
131
- message Audio {
132
- option (.wix.api.decomposite_of) = "wix.common.Audio";
133
- option (.wix.api.decomposition_minimum_fields) = {
134
- field: "id"
135
- field: "url"
136
- };
137
- // WixMedia ID.
138
- string id = 1;
139
- // Audio URL.
140
- string url = 2;
141
- // Audio URL expiration date (when relevant).
142
- google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
143
- // Audio size in bytes.
144
- google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
145
- // Audio filename.
146
- google.protobuf.StringValue filename = 5 [(.wix.api.readOnly) = true];
147
- // Audio duration in milliseconds.
148
- google.protobuf.Int32Value duration = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE, (.wix.api.min) = 0];
149
-
150
- // When true, this is a protected asset, and calling the URL will return a 403 error.
151
- // In order to access private assets, make a request to:
152
- // `GenerateFileDownloadUrl` with the WixMedia id and specify the asset_key in the request
153
- google.protobuf.BoolValue private = 30 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
154
- // Key to identify the object relationship to the original media in WixMedia.
155
- // Can be used to request a download for the specific asset.
156
- // For example: 128-30kbs.mp3, 320kbs.mp3, 128kbs.mp3
157
- google.protobuf.StringValue asset_key = 31 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
158
- // Audio format.
159
- google.protobuf.StringValue format = 32 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
160
- // Audio quality.
161
- google.protobuf.StringValue quality = 33 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PRIVATE];
162
- }
163
-
164
- message Document {
165
- option (.wix.api.decomposite_of) = "wix.common.Document";
166
- option (.wix.api.decomposition_minimum_fields) = {
167
- field: "id"
168
- field: "url"
169
- };
170
- // WixMedia ID.
171
- string id = 1;
172
- // Document URL.
173
- string url = 2;
174
- // Document URL expiration date (when relevant).
175
- google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.field_exposure) = PRIVATE];
176
- // Document size in bytes.
177
- google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.field_exposure) = PRIVATE, (.wix.api.format) = DECIMAL_VALUE];
178
- // Document filename.
179
- google.protobuf.StringValue filename = 5;
180
- }
181
-
182
- message Model3D {
183
- option (.wix.api.decomposite_of) = "wix.common.Model3D";
184
- option (.wix.api.decomposition_minimum_fields) = {
185
- field: "id"
186
- };
187
- // WixMedia 3D ID.
188
- string id = 1;
189
- // 3D URL.
190
- string url = 2;
191
- // 3D thumbnail Image
192
- Image thumbnail = 3;
193
- // 3D alt text.
194
- google.protobuf.StringValue alt_text = 5;
195
- // 3D URL expiration date (when relevant).
196
- google.protobuf.Timestamp url_expiration_date = 6 [(.wix.api.readOnly) = true];
197
- // 3D filename.
198
- google.protobuf.StringValue filename = 7 [(.wix.api.readOnly) = true];
199
- // 3D size in bytes.
200
- google.protobuf.StringValue size_in_bytes = 8 [(.wix.api.readOnly) = true, (.wix.api.format) = DECIMAL_VALUE];
201
- }
202
-
203
-
204
- message Archive {
205
- option (.wix.api.decomposite_of) = "wix.common.Archive";
206
- option (.wix.api.decomposition_minimum_fields) = {
207
- field: "id"
208
- };
209
- // WixMedia ID.
210
- string id = 1;
211
- // Archive URL.
212
- string url = 2;
213
- // Archive URL expiration date (when relevant).
214
- google.protobuf.Timestamp url_expiration_date = 3 [(.wix.api.readOnly) = true];
215
- // Archive size in bytes.
216
- google.protobuf.StringValue size_in_bytes = 4 [(.wix.api.format) = DECIMAL_VALUE];
217
- // Archive filename.
218
- google.protobuf.StringValue filename = 5;
219
- }
220
-
221
-
222
-
223
-
224
- // Deprecated - Copy this message into your service, do not reference it
225
- message MediaItem {
226
- option (.wix.api.decomposite_of) = "wix.common.MediaItem";
227
- option deprecated = true;
228
- option (.wix.api.decomposition_minimum_fields) = {
229
- field: "image"
230
- };
231
- option (.wix.api.decomposition_minimum_fields) = {
232
- field: "video"
233
- };
234
- option (.wix.api.decomposition_minimum_fields) = {
235
- field: "document"
236
- };
237
- oneof media {
238
- Image image = 1; // WixMedia image
239
- Video video = 2; // WixMedia video
240
- Document document = 3; // WixMedia document
241
- }
242
- }
@@ -1,121 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.upstream.wix.common;
4
-
5
- import "google/protobuf/wrappers.proto";
6
- import "wix/api/annotations.proto";
7
- import "wix/api/validations.proto";
8
-
9
- option java_multiple_files = true;
10
- option java_package = "com.wix.media.site_media.upstream.wix.common";
11
-
12
- message Paging {
13
- option (.wix.api.decomposite_of) = "wix.common.Paging";
14
- option (.wix.api.decomposition_minimum_fields) = {
15
- field: "limit"
16
- field: "offset"
17
- };
18
- // Number of items to load.
19
- google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 100];
20
- // Number of items to skip in the current sort order.
21
- google.protobuf.Int32Value offset = 2 [(.wix.api.min) = 0];
22
- }
23
-
24
- message CursorPaging {
25
- option (.wix.api.decomposite_of) = "wix.common.CursorPaging";
26
- option (.wix.api.decomposition_minimum_fields) = {
27
- field: "limit"
28
- field: "cursor"
29
- };
30
-
31
- // Maximum number of items to return in the results.
32
- google.protobuf.Int32Value limit = 1 [(.wix.api.min) = 0, (.wix.api.max) = 100];
33
-
34
- /*
35
- Pointer to the next or previous page in the list of results.
36
-
37
- Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
38
- Not relevant for the first request.
39
- */
40
- google.protobuf.StringValue cursor = 2;
41
- }
42
-
43
- message PagingMetadata {
44
- option (.wix.api.decomposite_of) = "wix.common.PagingMetadata";
45
- option (.wix.api.decomposition_minimum_fields) = {
46
- field: "count"
47
- field: "offset"
48
- };
49
- // Number of items returned in the response.
50
- google.protobuf.Int32Value count = 1;
51
- // Offset that was requested.
52
- google.protobuf.Int32Value offset = 2;
53
- // Total number of items that match the query.
54
- google.protobuf.Int32Value total = 3;
55
- // Flag that indicates the server failed to calculate the `total` field.
56
- google.protobuf.BoolValue too_many_to_count = 4;
57
- // Indicates if there are more results after the current page.
58
- // If `true`, another page of results can be retrieved.
59
- // If `false`, this is the last page.
60
- google.protobuf.BoolValue has_next = 5 [(.wix.api.field_exposure) = PRIVATE];
61
- }
62
-
63
- message PagingMetadataV2 {
64
- option (.wix.api.decomposite_of) = "wix.common.PagingMetadataV2";
65
- option (.wix.api.decomposition_minimum_fields) = {
66
- field: "count"
67
- field: "offset"
68
- };
69
- option (.wix.api.decomposition_minimum_fields) = {
70
- field: "count"
71
- field: "cursors"
72
- };
73
- // Number of items returned in the response.
74
- reserved 1;
75
- // Offset that was requested.
76
- reserved 2;
77
- // Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.
78
- google.protobuf.Int32Value total = 3;
79
- // Flag that indicates the server failed to calculate the `total` field.
80
- reserved 4;
81
- // Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.
82
- Cursors cursors = 5;
83
- // Indicates if there are more results after the current page.
84
- // If `true`, another page of results can be retrieved.
85
- // If `false`, this is the last page.
86
- google.protobuf.BoolValue has_next = 6 [(.wix.api.field_exposure) = PRIVATE];
87
- }
88
-
89
-
90
- // This is the preferred message for cursor-paging enabled services
91
-
92
- message CursorPagingMetadata {
93
- option (.wix.api.decomposite_of) = "wix.common.CursorPagingMetadata";
94
-
95
- // Number of items returned in the response.
96
- google.protobuf.Int32Value count = 1;
97
-
98
- // Cursor strings that point to the next page, previous page, or both.
99
- Cursors cursors = 2;
100
-
101
- /*
102
- Whether there are more pages to retrieve following the current page.
103
-
104
- + `true`: Another page of results can be retrieved.
105
- + `false`: This is the last page.
106
- */
107
- google.protobuf.BoolValue has_next = 3;
108
- }
109
-
110
- message Cursors {
111
- option (.wix.api.decomposite_of) = "wix.common.Cursors";
112
- option (.wix.api.decomposition_minimum_fields) = {
113
- field: "next"
114
- };
115
-
116
- // Cursor string pointing to the next page in the list of results.
117
- google.protobuf.StringValue next = 1;
118
-
119
- // Cursor pointing to the previous page in the list of results.
120
- reserved 2;
121
- }
@@ -1,31 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.v1;
4
-
5
- import "google/protobuf/wrappers.proto";
6
- import "wix/api/validations.proto";
7
- import "wix/api/annotations.proto";
8
- import "com/wix/media/site_media/upstream/wix/common/media.proto";
9
-
10
- message AudioV2 {
11
- option (.wix.api.decomposition_minimum_fields) = {
12
- field: "id"
13
- };
14
- // WixMedia ID.
15
- string id = 1 [(.wix.api.maxLength) = 200];
16
- // Audio formats available for this file.
17
- repeated com.wix.media.site_media.upstream.wix.common.Audio assets = 2 [(.wix.api.maxSize) = 100];
18
-
19
- // Audio bitrate.
20
- google.protobuf.Int32Value bitrate = 3 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.min) = 0];
21
-
22
- // Audio format.
23
- google.protobuf.StringValue format = 4 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.maxLength) = 100];
24
-
25
- // Audio duration in seconds.
26
- google.protobuf.Int32Value duration = 5 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.min) = 0];
27
-
28
- // Audio size in bytes.
29
- google.protobuf.StringValue size_in_bytes = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.format) = DECIMAL_VALUE, (.wix.api.decimalValue) = { maxScale: 0 }];
30
-
31
- }
@@ -1,11 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.v1;
4
-
5
-
6
- enum ContentDisposition {
7
- // Using the link in the browser will download the file
8
- ATTACHMENT = 0;
9
- // Using the link in the browser will open the file in the browser
10
- INLINE = 1;
11
- }
@@ -1,12 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.v1;
4
- import "wix/api/validations.proto";
5
-
6
- message DownloadUrl {
7
- // The file download URL.
8
- string url = 1 [(.wix.api.format) = WEB_URL];
9
- // Key for downloading a different asset (format and quality) of a file.
10
- // Default: `src`, key representing the original file's format and quality.
11
- string asset_key = 2 [(.wix.api.maxLength) = 100];
12
- }
@@ -1,49 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.v1;
4
-
5
- enum ErrorCode {
6
- // The error was not recognized but information can be driven from the error details
7
- GENERAL_ERROR = 0;
8
- // The asset key provided is not valid for the current media file
9
- INVALID_ASSET_KEY = 1;
10
- // Media type is not recognized or is not supported
11
- UNSUPPORTED_MEDIA_TYPE = 2;
12
- // MimeType is not matching the file extension
13
- MISMATCH_MIME_TYPE = 4;
14
- // File size is zero
15
- ZERO_FILE_SIZE = 5;
16
- // File format is recognized but unsupported
17
- UNSUPPORTED_FILE_FORMAT = 6;
18
- // File size is over allowed size for the media type
19
- FILE_SIZE_OVER_LIMIT = 7;
20
- // The requested resource could not be found
21
- RESOURCE_NOT_FOUND = 8;
22
- // General error from the internal media API
23
- GENERAL_API_ERROR = 9;
24
- // Sort value provided is not supported
25
- UNSUPPORTED_SORT_VALUE = 10;
26
- // An http error during the request to internal media API
27
- GENERAL_HTTP_ERROR = 11;
28
- // Field mask field is empty or missing from the request
29
- FIELD_MASK_IS_EMPTY_OR_MISSING = 12;
30
- // The namespace provided is not supported
31
- UNSUPPORTED_NAMESPACE = 13;
32
- // The request is not valid
33
- REQUEST_VALIDATION_ERROR = 14;
34
- // A mandatory parameter is missing from the request
35
- MISSING_MANDATORY_PARAM = 15;
36
- // Import failed due to an error when getting the file from the url
37
- URL_IMPORT_ERROR = 16;
38
- // The file already exists in the site
39
- FILE_ALREADY_EXIST = 17;
40
- // The file probe failed
41
- FILE_PROBE_FAILED = 18;
42
- // The file transcoding failed
43
- TRANSCODING_FAILED = 19;
44
- // The quota for the site has been exceeded
45
- SITE_QUOTA_EXCEEDED = 20;
46
- // The request or the operation is not not implemented
47
- NOT_IMPLEMENTED = 21;
48
-
49
- }
@@ -1,41 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.v1;
4
-
5
- import "google/protobuf/wrappers.proto";
6
- import "wix/api/validations.proto";
7
- import "com/wix/media/media_quota_api.proto";
8
-
9
-
10
- message ServiceError {
11
- // Error codes are groups of related errors
12
- // The error code can be used to provide additional details to wix support while debugging service errors
13
- google.protobuf.StringValue internal_code = 1 [(.wix.api.maxLength) = 200];
14
- // Debugging information, http status code returned from wix media internal API
15
- google.protobuf.Int32Value internal_http_status_code = 2;
16
-
17
- // Optional Debugging information, error key will represent the error "family" returned from wix media internal API
18
- google.protobuf.StringValue internal_key = 3 [(.wix.api.maxLength) = 200];
19
-
20
- }
21
-
22
- message UnsupportedRequestValueError {
23
- // Optional A list of allowed values
24
- repeated string allowed_values = 1 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 200];
25
- // The unsupported value send in the request
26
- string request_value = 2 [ (.wix.api.maxLength) = 200];
27
- }
28
-
29
- message SiteQuotaExceededError {
30
- // Error codes are groups of related errors
31
- // The error code can be used to provide additional details to wix support while debugging service errors
32
- google.protobuf.StringValue internal_code = 1 [(.wix.api.maxLength) = 200];
33
- // Debugging information, http status code returned from wix media internal API
34
- google.protobuf.Int32Value internal_http_status_code = 2;
35
-
36
- // Optional Debugging information, error key will represent the error "family" returned from wix media internal API
37
- google.protobuf.StringValue internal_key = 3 [(.wix.api.maxLength) = 200];
38
-
39
- // The quota details
40
- .wix.media.quota.v1.TotalQuota quota = 4 ;
41
- }
@@ -1,140 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package com.wix.media.site_media.v1;
4
-
5
- import "wix/api/annotations.proto";
6
- import "google/protobuf/timestamp.proto";
7
- import "google/protobuf/wrappers.proto";
8
- import "com/wix/media/site_media/v1/operation_status.proto";
9
- import "com/wix/media/site_media/v1/media_type.proto";
10
- import "com/wix/media/site_media/v1/audio_v2.proto";
11
- import "com/wix/media/site_media/v1/identity_info.proto";
12
- import "com/wix/media/site_media/v1/image_media.proto";
13
- import "com/wix/media/site_media/v1/other_media.proto";
14
- import "com/wix/media/site_media/v1/namespace.proto";
15
- import "wix/api/validations.proto";
16
-
17
- import "wix/api/entity.proto";
18
-
19
- import "com/wix/media/site_media/upstream/wix/common/media.proto";
20
-
21
-
22
- message FileMedia {
23
- option (.wix.api.decomposition_minimum_fields) = {
24
- field: "image"
25
- };
26
- option (.wix.api.decomposition_minimum_fields) = {
27
- field: "video"
28
- };
29
- option (.wix.api.decomposition_minimum_fields) = {
30
- field: "document"
31
- };
32
- option (.wix.api.decomposition_minimum_fields) = {
33
- field: "audio"
34
- };
35
-
36
- option (.wix.api.decomposition_minimum_fields) = {
37
- field: "vector"
38
- };
39
- option (.wix.api.decomposition_minimum_fields) = {
40
- field: "archive"
41
- };
42
- option (.wix.api.decomposition_minimum_fields) = {
43
- field: "model3d"
44
- };
45
- oneof media {
46
- // Information about the image.
47
- ImageMedia image = 1;
48
- // Information about the video.
49
- com.wix.media.site_media.upstream.wix.common.VideoV2 video = 2;
50
- // Information about the audio.
51
- AudioV2 audio = 3;
52
- // Information about the document.
53
- com.wix.media.site_media.upstream.wix.common.Document document = 4;
54
- // Information about the vector.
55
- ImageMedia vector = 5;
56
- // Information about the archive.
57
- com.wix.media.site_media.upstream.wix.common.Archive archive = 6;
58
- // Information about the 3D Model.
59
- com.wix.media.site_media.upstream.wix.common.Model3D model3d = 7;
60
- // Information about other file types
61
- OtherMedia other = 8 [(.wix.api.field_exposure) = INTERNAL];
62
- }
63
- }
64
-
65
-
66
- message FileDescriptor {
67
-
68
- enum State {
69
- // File is ready for consumption
70
- OK = 0;
71
- // Deleted file
72
- DELETED = 1;
73
- };
74
-
75
- //flynt-disable missing-extensible
76
- option (.wix.api.entity) = {
77
- fqdn: "wix.media.site_media.v1.file_descriptor"
78
- segment: USERS
79
- trashbin: false
80
- app_def_id: "ad919edb-8ae2-403c-bef4-d5083b76d9e9"
81
- domain_events_read_permission: "MEDIA.SITE_MEDIA_FILES_READ"
82
- appendix_files: {
83
- type: DOCS_CONF,
84
- path: "appendices/docs/file"
85
- }
86
- appendix_files: {
87
- type: AUTO_VELO
88
- path: "appendices/velo/file"
89
- }
90
- };
91
- // File ID. Generated when a file is uploaded to the Media Manager.
92
- string id = 1 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 1000];
93
- // File name as it appears in the Media Manager.
94
- string display_name = 2 [(.wix.api.readOnly) = false, (.wix.api.maxLength) = 200];
95
- // Static URL of the file.
96
- string url = 3 [(.wix.api.readOnly) = true, (.wix.api.format) = WEB_URL];
97
- // ID of the file's parent folder.
98
- google.protobuf.StringValue parent_folder_id = 4 [(.wix.api.readOnly) = false, (.wix.api.maxLength) = 100];
99
- // File hash.
100
- string hash = 5 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 100];
101
- // Size of the uploaded file in bytes.
102
- google.protobuf.StringValue size_in_bytes = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = PUBLIC, (.wix.api.format) = DECIMAL_VALUE, (.wix.api.decimalValue) = { maxScale: 0 }];
103
- // Whether the file is public or private. Learn more about [private files](https://dev.wix.com/docs/rest/assets/media/media-manager/files/private-files).
104
- bool private = 7 [(.wix.api.readOnly) = true];
105
- // Media file type.
106
- MediaType media_type = 8 [(.wix.api.readOnly) = true];
107
- // Media file content.
108
- FileMedia media = 9 [(.wix.api.readOnly) = true];
109
- // Status of the file that was uploaded.
110
- // * `FAILED`: The file failed to upload, for example, during media post processing.
111
- // * `READY`: The file uploaded, finished all processing, and is ready for use.
112
- // * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
113
- OperationStatus operation_status = 10 [(.wix.api.readOnly) = true];
114
- // URL where the file was uploaded from.
115
- google.protobuf.StringValue source_url = 11 [(.wix.api.readOnly) = true, (.wix.api.format) = WEB_URL];
116
- // URL of the file's thumbnail.
117
- google.protobuf.StringValue thumbnail_url = 12 [(.wix.api.readOnly) = true, (.wix.api.format) = WEB_URL];
118
- // Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images.
119
- repeated string labels = 13 [(.wix.api.maxSize) = 100, (.wix.api.readOnly) = false, (.wix.api.maxLength) = 200];
120
- // Date and time the file was created.
121
- google.protobuf.Timestamp created_date = 16 [(.wix.api.readOnly) = true];
122
- // Date and time the file was updated.
123
- google.protobuf.Timestamp updated_date = 17 [(.wix.api.readOnly) = true];
124
- // The Wix site ID where the media file is stored.
125
- string site_id = 18 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 100];
126
- // State of the file.
127
- State state = 19 [(.wix.api.readOnly) = true];
128
- // Internal tags describing the item, can be used in specific clients use cases
129
- repeated string internal_tags = 20 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.maxSize) = 100, (.wix.api.maxLength) = 200];
130
- // The namespace containing the file
131
- Namespace namespace = 21 [(.wix.api.field_exposure) = INTERNAL];
132
- // Information about the identity that added this file
133
- IdentityInfo added_by = 22 [(.wix.api.field_exposure) = INTERNAL];
134
- // The raw namespace containing the file
135
- google.protobuf.StringValue raw_namespace = 23 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.readOnly) = true, (.wix.api.maxLength) = 200];
136
- // The date this file was last viewed from the last day, can be used to know if this file is still in use
137
- google.protobuf.Timestamp last_used_date = 24 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = INTERNAL];
138
- }
139
-
140
-