@wix/bex-utils 2.30.0 → 2.31.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/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.d.ts +89 -0
  2. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js +2249 -0
  3. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/builders.impl.js.map +1 -0
  4. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.d.ts +1 -0
  5. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js +5 -0
  6. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/http.impl.js.map +1 -0
  7. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.d.ts +6 -0
  8. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js +24 -0
  9. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/crud/rpc.impl.js.map +1 -0
  10. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.d.ts +180 -0
  11. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js +971 -0
  12. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/http.impl.js.map +1 -0
  13. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.d.ts +30 -0
  14. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js +385 -0
  15. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/meta.impl.js.map +1 -0
  16. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.d.ts +10010 -0
  17. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/client/proto-generated.js +2 -0
  18. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.d.ts +5002 -0
  19. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/proto-generated.js +78224 -0
  20. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.d.ts +9973 -0
  21. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/proto/server/proto-generated.js +2 -0
  22. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.d.ts +189 -0
  23. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js +431 -0
  24. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/rpc.impl.js.map +1 -0
  25. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.d.ts +1387 -0
  26. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js +117 -0
  27. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/cjs/types.impl.js.map +1 -0
  28. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.d.ts +89 -0
  29. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js +2145 -0
  30. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/builders.impl.js.map +1 -0
  31. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.d.ts +1 -0
  32. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js +2 -0
  33. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/http.impl.js.map +1 -0
  34. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.d.ts +6 -0
  35. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js +19 -0
  36. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/crud/rpc.impl.js.map +1 -0
  37. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.d.ts +180 -0
  38. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js +949 -0
  39. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/http.impl.js.map +1 -0
  40. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.d.ts +30 -0
  41. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js +344 -0
  42. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/meta.impl.js.map +1 -0
  43. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.d.ts +189 -0
  44. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js +390 -0
  45. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/rpc.impl.js.map +1 -0
  46. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.d.ts +1387 -0
  47. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js +114 -0
  48. package/@wix/ambassador-media-site-media-v1-file-descriptor/build/es/types.impl.js.map +1 -0
  49. package/@wix/ambassador-media-site-media-v1-file-descriptor/builders/package.json +7 -0
  50. package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/http/package.json +7 -0
  51. package/@wix/ambassador-media-site-media-v1-file-descriptor/crud/rpc/package.json +6 -0
  52. package/@wix/ambassador-media-site-media-v1-file-descriptor/http/package.json +7 -0
  53. package/@wix/ambassador-media-site-media-v1-file-descriptor/meta/package.json +7 -0
  54. package/@wix/ambassador-media-site-media-v1-file-descriptor/package.json +53 -0
  55. package/@wix/ambassador-media-site-media-v1-file-descriptor/rpc/package.json +6 -0
  56. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_entity.proto +17 -0
  57. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/media_manager_service.proto +121 -0
  58. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_result.proto +17 -0
  59. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_manager/v1/search_service.proto +76 -0
  60. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/media_quota_api.proto +159 -0
  61. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/identification.proto +41 -0
  62. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/media.proto +242 -0
  63. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/upstream/wix/common/paging.proto +121 -0
  64. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/audio_v2.proto +31 -0
  65. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/content_disposition.proto +11 -0
  66. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/download_url.proto +12 -0
  67. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/error_code.proto +49 -0
  68. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/errors.proto +41 -0
  69. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/file_descriptor.proto +140 -0
  70. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/files_service.proto +1030 -0
  71. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folder.proto +48 -0
  72. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/folders_service.proto +367 -0
  73. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/identity_info.proto +13 -0
  74. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/image_media.proto +84 -0
  75. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/media_type.proto +15 -0
  76. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/namespace.proto +21 -0
  77. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/operation_status.proto +27 -0
  78. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/other_media.proto +22 -0
  79. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/root_folders.proto +12 -0
  80. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_info.proto +24 -0
  81. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/storage_service.proto +179 -0
  82. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/com/wix/media/site_media/v1/upload_protocol.proto +9 -0
  83. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/action_payload.proto +33 -0
  84. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/annotations.proto +393 -0
  85. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/api_errors.proto +117 -0
  86. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/callback.proto +156 -0
  87. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/context.proto +19 -0
  88. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/entity.proto +122 -0
  89. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/errors.proto +119 -0
  90. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/idempotency.proto +25 -0
  91. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/permissions.proto +40 -0
  92. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/sla.proto +24 -0
  93. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/subscription.proto +32 -0
  94. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/api/validations.proto +137 -0
  95. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/address.proto +148 -0
  96. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/bulk.proto +53 -0
  97. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/identification.proto +40 -0
  98. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/image.proto +8 -0
  99. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/media.proto +236 -0
  100. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/money.proto +32 -0
  101. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/pageurl.proto +32 -0
  102. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/paging.proto +121 -0
  103. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/query.proto +795 -0
  104. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/sorting.proto +36 -0
  105. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/spi.proto +85 -0
  106. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/tags.proto +55 -0
  107. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/common/wixlink.proto +201 -0
  108. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/graphql/definitions.proto +13 -0
  109. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/http/field_mask.proto +46 -0
  110. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/sdk/definitions.proto +191 -0
  111. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/definitions.proto +186 -0
  112. package/@wix/ambassador-media-site-media-v1-file-descriptor/src/main/proto/wix/spi/http_error_status.proto +24 -0
  113. package/@wix/ambassador-media-site-media-v1-file-descriptor/types/package.json +7 -0
  114. package/package.json +3 -2
@@ -0,0 +1,48 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+
5
+ import "wix/api/validations.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+ import "wix/api/entity.proto";
8
+ import "wix/api/annotations.proto";
9
+ import "com/wix/media/site_media/v1/namespace.proto";
10
+
11
+
12
+ message Folder {
13
+ enum State {
14
+ OK = 0 ;
15
+ DELETED = 1;
16
+ }
17
+
18
+ //flynt-disable missing-extensible
19
+ option (.wix.api.entity) = {
20
+ fqdn: "wix.media.site_media.v1.folder"
21
+ segment: USERS
22
+ trashbin: false
23
+ app_def_id: "ad919edb-8ae2-403c-bef4-d5083b76d9e9"
24
+ domain_events_read_permission: "MEDIA.SITE_MEDIA_FOLDERS_READ"
25
+ appendix_files: {
26
+ type: DOCS_CONF,
27
+ path: "appendices/docs/folder"
28
+ }
29
+ appendix_files: {
30
+ type: AUTO_VELO
31
+ path: "appendices/velo/folder"
32
+ }
33
+ };
34
+ // Folder ID. Generated when a folder is created in the Media Manager.
35
+ string id = 1 [(.wix.api.readOnly) = false, (.wix.api.maxLength) = 100];
36
+ // Folder name as it appears in the Media Manager.
37
+ string display_name = 2 [(.wix.api.maxLength) = 256, (.wix.api.readOnly) = false];
38
+ // ID of the folder's parent folder. <br /> Default: `media-root` folder.
39
+ string parent_folder_id = 3 [(.wix.api.readOnly) = false, (.wix.api.maxLength) = 100];
40
+ // Date the folder was created.
41
+ google.protobuf.Timestamp created_date = 4 [(.wix.api.readOnly) = true];
42
+ // Date the folder was updated.
43
+ google.protobuf.Timestamp updated_date = 5 [(.wix.api.readOnly) = true];
44
+ // State of the folder.
45
+ State state = 6 [(.wix.api.readOnly) = true];
46
+ // The namespace of the folder
47
+ Namespace namespace = 7 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.readOnly) = false];
48
+ }
@@ -0,0 +1,367 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+
5
+ import "wix/api/validations.proto";
6
+ import "wix/api/permissions.proto";
7
+ import "wix/api/annotations.proto";
8
+ import "google/api/annotations.proto";
9
+ import "google/protobuf/field_mask.proto";
10
+ import "google/protobuf/wrappers.proto";
11
+ import "com/wix/media/site_media/v1/folder.proto";
12
+ import "com/wix/media/site_media/v1/root_folders.proto";
13
+ import "wix/api/entity.proto";
14
+ import "com/wix/media/site_media/upstream/wix/common/paging.proto";
15
+ import "wix/api/callback.proto";
16
+ import "wix/common/sorting.proto";
17
+ import "wix/http/field_mask.proto";
18
+ import "wix/api/api_errors.proto";
19
+ import "wix/sdk/definitions.proto";
20
+ import "com/wix/media/site_media/v1/namespace.proto";
21
+
22
+
23
+
24
+
25
+ message CreateFolderRequest {
26
+ // Folder name that appears in the Media Manager.
27
+ string display_name = 1 [(.wix.api.maxLength) = 200];
28
+ // ID of the folder's parent folder.
29
+ google.protobuf.StringValue parent_folder_id = 2 [(.wix.api.maxLength) = 100];
30
+
31
+ // The namespace this folder will be created under
32
+ google.protobuf.StringValue raw_namespace = 3 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.maxLength) = 100];
33
+
34
+ // The namespace this folder will be created under
35
+ // Note - Namespace value `Others` is not supported and will produce an error
36
+ Namespace namespace = 4 [(.wix.api.field_exposure) = INTERNAL];
37
+ }
38
+
39
+ message CreateFolderResponse {
40
+ // Information about the newly created folder.
41
+ Folder folder = 1;
42
+ }
43
+
44
+
45
+ message GetFolderRequest {
46
+ // Folder ID.
47
+ string folder_id = 1 [(.wix.api.maxLength) = 100];
48
+ }
49
+
50
+ message GetFolderResponse {
51
+ // Information about the folder.
52
+ Folder folder = 1;
53
+ }
54
+
55
+
56
+ message GetFoldersRequest {
57
+ // A list of folder ids
58
+ repeated string folder_ids = 1 [(.wix.api.maxSize) = 199, (.wix.api.maxLength) = 100];
59
+ }
60
+
61
+ message GetFoldersResponse {
62
+ // The information for the requested folders
63
+ repeated Folder folders = 1 [(.wix.api.maxSize) = 200];
64
+ }
65
+
66
+
67
+ message ListFoldersRequest {
68
+ // ID of the folder's parent folder.
69
+ // <br /> Default: `media-root` folder.
70
+ google.protobuf.StringValue parent_folder_id = 1 [(.wix.api.maxLength) = 100];
71
+ // Field name and order to sort by. One of: <br />
72
+ // * `displayName`
73
+ // * `updatedDate`
74
+ // Default: `updatedDate` in `desc` order.
75
+ .wix.common.Sorting sort = 2;
76
+ // Cursor and paging information.
77
+ com.wix.media.site_media.upstream.wix.common.CursorPaging paging = 3;
78
+ // List folders of the specified namespace
79
+ google.protobuf.StringValue raw_namespace = 4 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.maxLength) = 100];
80
+
81
+ // List folders of the specified namespace
82
+ // Note - Namespace value `Others` is not supported and will produce an error
83
+ Namespace namespace = 5 [(.wix.api.field_exposure) = INTERNAL];
84
+ }
85
+
86
+ message ListFoldersResponse {
87
+ // Information about the folders in the requested folder.
88
+ repeated Folder folders = 1 [(.wix.api.maxSize) = 200];
89
+ // The next cursor if it exists.
90
+ com.wix.media.site_media.upstream.wix.common.PagingMetadataV2 next_cursor = 2;
91
+ }
92
+
93
+
94
+ message SearchFoldersRequest {
95
+ // A root folder in the media manager to search in. <br />
96
+ // Default: `MEDIA_ROOT`.
97
+ RootFolder root_folder = 1;
98
+ // Field name and order to sort by. One of: <br />
99
+ // * `displayName`
100
+ // * `updatedDate`
101
+ // Default: `updatedDate` in `desc` order.
102
+ .wix.common.Sorting sort = 2;
103
+ // Cursor and paging information.
104
+ com.wix.media.site_media.upstream.wix.common.CursorPaging paging = 3;
105
+
106
+ // Term to search for, such as the value of a folder's `displayName`. <br />
107
+ // For example, if a folder's `displayName` is 'my-videos-folder', the search term is 'my-videos-folder'.
108
+ google.protobuf.StringValue search = 4 [(.wix.api.maxLength) = 200];
109
+
110
+ // Search folders of the specified namespace
111
+ google.protobuf.StringValue raw_namespace = 5 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.maxLength) = 100];
112
+
113
+ // Search folders of the specified namespace
114
+ // Note - Namespace value `Others` is not supported and will produce an error
115
+ Namespace namespace = 6 [(.wix.api.field_exposure) = INTERNAL];
116
+ }
117
+
118
+ message SearchFoldersResponse {
119
+ // Information about the folders in the requested folder.
120
+ repeated Folder folders = 1 [(.wix.api.maxSize) = 200];
121
+ // The next cursor if it exists.
122
+ com.wix.media.site_media.upstream.wix.common.PagingMetadataV2 next_cursor = 2;
123
+ }
124
+
125
+
126
+
127
+ message UpdateFolderRequest {
128
+ // ID of the folder to update.
129
+ // string folder_id = 1 [(.wix.api.field_deprecated) = {
130
+ // replaced_by: "folder"
131
+ // target_removal_date: "2023-02-25"
132
+ // }];
133
+ reserved 1;
134
+
135
+ // Folder name that appears in the Media Manager.
136
+ // google.protobuf.StringValue display_name = 2 [(.wix.api.field_deprecated) = {
137
+ // replaced_by: "folder"
138
+ // target_removal_date: "2023-02-25"
139
+ // }];
140
+ reserved 2;
141
+ // ID of the folder's parent folder.
142
+ // google.protobuf.StringValue parent_folder_id = 3 [(.wix.api.field_deprecated) = {
143
+ // replaced_by: "folder"
144
+ // target_removal_date: "2023-02-25"
145
+ // }];
146
+ reserved 3;
147
+ // The folder to update.
148
+ Folder folder = 4;
149
+ // Set of fields to update. Fields that aren't included in `fieldMask.paths` are ignored.
150
+ google.protobuf.FieldMask field_mask = 5 [(.wix.api.field_exposure) = INTERNAL];
151
+ }
152
+
153
+ message UpdateFolderResponse {
154
+ // Information about the updated folder.
155
+ Folder folder = 1;
156
+ }
157
+
158
+
159
+ message GenerateFolderDownloadUrlRequest {
160
+ // Folder ID.
161
+ string folder_id = 1 [(.wix.api.maxLength) = 100];
162
+ }
163
+
164
+ message GenerateFolderDownloadUrlResponse {
165
+ // URL for downloading a specific folder in the Media Manager.
166
+ string download_url = 1 [(.wix.api.format) = WEB_URL];
167
+ }
168
+
169
+
170
+ message BulkDeleteFoldersRequest {
171
+ // IDs of the folders to move to the Media Manager's trash bin.
172
+ repeated string folder_ids = 1 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 100];
173
+
174
+ // Whether the specified folders are permanently deleted. <br />
175
+ // Default: `false`
176
+ bool permanent = 2;
177
+ }
178
+
179
+ message BulkDeleteFoldersResponse {
180
+ }
181
+
182
+ message BulkRestoreFoldersFromTrashBinRequest {
183
+ // IDs of the folders to restore from the Media Manager's trash bin.
184
+ repeated string folder_ids = 1 [(.wix.api.maxSize) = 100, (.wix.api.maxLength) = 100];
185
+ }
186
+
187
+ message BulkRestoreFoldersFromTrashBinResponse {
188
+ }
189
+
190
+ message ListDeletedFoldersRequest {
191
+ // ID of the folder's parent folder.
192
+ google.protobuf.StringValue parent_folder_id = 1 [(.wix.api.maxLength) = 100];
193
+ // Field name and order to sort by. One of: <br />
194
+ // * `displayName`
195
+ // * `updatedDate`
196
+ // Default: `updatedDate` in `desc` order.
197
+ .wix.common.Sorting sort = 2;
198
+ // Cursor and paging information.
199
+ com.wix.media.site_media.upstream.wix.common.CursorPaging paging = 3;
200
+ // List folders of the specified namespace
201
+ google.protobuf.StringValue raw_namespace = 4 [(.wix.api.field_exposure) = INTERNAL, (.wix.api.maxLength) = 100];
202
+
203
+ // List folders of the specified namespace
204
+ // Note - Namespace value `Others` is not supported and will produce an error
205
+ Namespace namespace = 5 [(.wix.api.field_exposure) = INTERNAL];
206
+ }
207
+
208
+ message ListDeletedFoldersResponse {
209
+ // List of folders in the Media Manager's trash bin.
210
+ repeated Folder folders = 1 [(.wix.api.maxSize) = 200];
211
+ // The next cursor if it exists.
212
+ .com.wix.media.site_media.upstream.wix.common.PagingMetadataV2 next_cursor = 2;
213
+ }
214
+
215
+ service FoldersService {
216
+ option (.wix.api.service_maturity) = GA;
217
+ option (.wix.api.service_exposure) = PUBLIC;
218
+ option (.wix.api.service_entity).message = "com.wix.media.site_media.v1.Folder";
219
+
220
+
221
+ // Creates a new folder in the Media Manager. <br/>
222
+ //
223
+ // Use the `parentFolderId` parameter to specify in which existing folder you want the new folder to be created.
224
+ // If no folder is specified, the new folder is created in the `media-root` folder.
225
+ rpc CreateFolder (CreateFolderRequest) returns (CreateFolderResponse) {
226
+ option (.wix.api.callback) = {
227
+ event_type: CREATED
228
+ };
229
+ option (google.api.http) = {post: "/v1/folders"};
230
+ option (.wix.api.required) = "CreateFolderRequest.display_name";
231
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_CREATE";
232
+ // cannot add CRUD annotations because we don't comply with the standard of the folder object+fieldMask
233
+
234
+ }
235
+
236
+ // Gets information from a specific folder in the Media Manager.
237
+ rpc GetFolder (GetFolderRequest) returns (GetFolderResponse) {
238
+ option (.wix.api.required) = "GetFolderRequest.folder_id";
239
+ option (google.api.http) = {get: "/v1/folders/{folder_id}"};
240
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_READ";
241
+ option (.wix.api.crud) = {
242
+ method: GET_ITEM
243
+ get_options: {
244
+ id_field: "folder_id"
245
+ item_field: "folder"
246
+ }
247
+ };
248
+ }
249
+
250
+ // Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, pass the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the endpoint retrieves a list of folders within the root folder of the Media Manager.
251
+ rpc ListFolders (ListFoldersRequest) returns (ListFoldersResponse){
252
+ option (google.api.http) = {get: "/v1/folders"};
253
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_LIST";
254
+ // cannot add CRUD annotations because we don't use a query object
255
+ }
256
+
257
+ // Searches the Media Manager and returns a list of folders that match the terms specified in the parameters. <br/>
258
+ //
259
+ // If no parameters are specified, the endpoint returns all folders in the `MEDIA_ROOT` folder.
260
+ rpc SearchFolders (SearchFoldersRequest) returns (SearchFoldersResponse){
261
+ option (google.api.http) = {post: "/v1/folders/search"};
262
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_LIST";
263
+ }
264
+
265
+ // Updates a folder. <br />
266
+ //
267
+ // You can use the `parentFolderId` parameter to move a folder from its current parent folder to a different parent folder.
268
+ rpc UpdateFolder (UpdateFolderRequest) returns (UpdateFolderResponse) {
269
+ option (.wix.api.callback) = {
270
+ event_type: UPDATED
271
+ };
272
+ option (.wix.api.required) = "UpdateFolderRequest.folder.id";
273
+ option (.wix.api.required) = "UpdateFolderRequest.folder";
274
+ option (google.api.http) = {patch: "/v1/folders/{folder.id}"};
275
+ option (.wix.sdk.signature) = {params: "folder"};
276
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_UPDATE";
277
+ option (.wix.http.infer_fieldmask) = {
278
+ from: "folder"
279
+ fieldmask: "field_mask"
280
+ };
281
+
282
+ // Field mask field is empty or missing from the request
283
+ option (.wix.api.custom_validation_error) = {
284
+ rule_name: "FIELD_MASK_IS_EMPTY_OR_MISSING"
285
+ data: "com.wix.media.site_media.v1.UnsupportedRequestValueError"
286
+ };
287
+ option (.wix.api.crud) = {
288
+ method: UPDATE
289
+ update_options: {
290
+ item_field: "folder"
291
+ fieldmask_field: "field_mask"
292
+ }
293
+ };
294
+ }
295
+
296
+ // Generates a URL for downloading a compressed file containing a specific folder in the Media Manager. <br/>
297
+ //
298
+ // The compressed file can contain sub-folders, and up to 1000 files. <br/>
299
+ rpc GenerateFolderDownloadUrl (GenerateFolderDownloadUrlRequest) returns (GenerateFolderDownloadUrlResponse) {
300
+ option (.wix.api.required) = "GenerateFolderDownloadUrlRequest.folder_id";
301
+ option (google.api.http) = {post: "/v1/folders/{folder_id}/generate-download-url"};
302
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_DOWNLOAD";
303
+ }
304
+
305
+ // Temporarily deletes the specified folders from the Media Manager. <br/>
306
+ //
307
+ // The deleted folders are moved to the Media Manager's `trash-root` folder (trash bin) unless permanently deleted. To permanently delete folders, pass the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible.
308
+ //
309
+ // Note the following:
310
+ // * When a folder is deleted, the files in that folder are deleted.
311
+ // * The specified folders can be from different parent folders.
312
+ // * Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager.
313
+ // * Attempting to delete folders that are already in the trash bin doesn't result in an error.
314
+ // * If your site contains files from a deleted media folder, the files still appear on your site as the deleted folder is still in the Media Manager (in the trash bin).
315
+ // * You can use the [Bulk Restore Folders From Trash Bin](https://dev.wix.com/api/rest/media/media-manager/folders/bulk-restore-folders-from-trash-bin) endpoint to restore folders from the Media Manager's trash bin.
316
+ rpc BulkDeleteFolders (BulkDeleteFoldersRequest) returns (BulkDeleteFoldersResponse) {
317
+ option (.wix.api.required) = "BulkDeleteFoldersRequest.folder_ids";
318
+ option (.wix.api.callback) = {
319
+ event_type: DELETED
320
+ };
321
+ option (google.api.http) = {post: "/v1/bulk/folders/delete"};
322
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_MOVE_TO_TRASH";
323
+ option (.wix.api.crud) = {
324
+ method: BULK_DELETE
325
+ bulk_delete_options: {
326
+ ids_field: "folder_ids"
327
+ }
328
+ };
329
+ }
330
+
331
+ // Restores the specified folders from the Media Manager's trash bin, and moves them to their original locations in the Media Manager.
332
+ rpc BulkRestoreFoldersFromTrashBin(BulkRestoreFoldersFromTrashBinRequest) returns (BulkRestoreFoldersFromTrashBinResponse) {
333
+ option (.wix.api.required) = "BulkRestoreFoldersFromTrashBinRequest.folder_ids";
334
+ option (google.api.http) = {
335
+ post : "/v1/bulk/trash-bin/folders/restore"
336
+ };
337
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_RESTORE_FROM_TRASH";
338
+ }
339
+
340
+ // Retrieves a list of folders in the Media Manager's trash bin.
341
+ rpc ListDeletedFolders(ListDeletedFoldersRequest) returns (ListDeletedFoldersResponse) {
342
+ option (google.api.http) = {
343
+ get : "/v1/trash-bin/folders"
344
+ };
345
+ option (.wix.api.permission).name = "MEDIA.SITE_MEDIA_FOLDERS_LIST_DELETED";
346
+ // cannot add CRUD annotations because we don't use a query object
347
+ }
348
+
349
+ // Triggered when a folder is created.
350
+ //
351
+ // This event is also triggred when a folder is restored from the Media Manager's trash bin.
352
+ option (.wix.api.event) = {
353
+ event_type: CREATED
354
+ };
355
+
356
+ // Triggered when a folder is updated, including when a folder is moved to a different parent folder.
357
+ option (.wix.api.event) = {
358
+ event_type: UPDATED
359
+ };
360
+
361
+ // Triggered when a folder is deleted.
362
+ //
363
+ // If the `movedToTrash` property in the event object is `true`, the folder was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the folder was permanently deleted.
364
+ option (.wix.api.event) = {
365
+ event_type: DELETED
366
+ };
367
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+ import "google/protobuf/wrappers.proto";
5
+ import "wix/api/validations.proto";
6
+ import "com/wix/media/site_media/upstream/wix/common/identification.proto";
7
+
8
+ message IdentityInfo {
9
+ // The type of the user that uploaded the file
10
+ com.wix.media.site_media.upstream.wix.common.IdentificationData.IdentityType identity_type = 1;
11
+ // User Id. empty when UNKNOWN
12
+ google.protobuf.StringValue identity_id = 2 [(.wix.api.format) = GUID];
13
+ }
@@ -0,0 +1,84 @@
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/site_media/upstream/wix/common/media.proto";
8
+ import "wix/api/annotations.proto";
9
+
10
+ message ColorRGB {
11
+ // Red channel.
12
+ google.protobuf.Int32Value r = 1 [(.wix.api.min) = 0, (.wix.api.max) = 255];
13
+ // Green channel.
14
+ google.protobuf.Int32Value g = 2 [(.wix.api.min) = 0, (.wix.api.max) = 255];
15
+ // Blue channel.
16
+ google.protobuf.Int32Value b = 3 [(.wix.api.min) = 0, (.wix.api.max) = 255];
17
+ }
18
+
19
+ message Color {
20
+ // HEX color.
21
+ google.protobuf.StringValue hex = 1 [(.wix.api.format) = COLOR_HEX];
22
+ // RGB color.
23
+ ColorRGB rgb = 2;
24
+ }
25
+
26
+ message Colors {
27
+ // Main color of the image.
28
+ Color prominent = 1;
29
+ // Color palette of the image.
30
+ repeated Color palette = 2 [(.wix.api.maxSize) = 100];
31
+ }
32
+
33
+ // Using this object you can crop images while centering on faces
34
+ //------------------------
35
+ //| |
36
+ //| x,y |
37
+ //| *-------- |
38
+ //| | . . | |
39
+ //| | | | height |
40
+ //| | \ / | |
41
+ //| | | |
42
+ //| --------- |
43
+ //| width |
44
+ //| |
45
+ //|______________________|
46
+ message FaceRecognition {
47
+ // The accuracy percentage of the face recognition. The likelihood that a face is detected.
48
+ double confidence = 1;
49
+ // Top left x pixel coordinate of the face.
50
+ int32 x = 2;
51
+ // Top left y pixel coordinate of the face.
52
+ int32 y = 3;
53
+ // Face pixel height.
54
+ int32 height = 4;
55
+ // Face pixel width.
56
+ int32 width = 5;
57
+
58
+ }
59
+
60
+ message ImageMedia {
61
+ // Image data.
62
+ //flynt-disable field-type-breaking-change
63
+ com.wix.media.site_media.upstream.wix.common.Image image = 1;
64
+
65
+ // Image colors.
66
+ Colors colors = 2;
67
+
68
+ /* Information about faces in the image. Use to crop images without cutting out faces.
69
+ */
70
+ repeated FaceRecognition faces = 3 [(.wix.api.maxSize) = 100];
71
+
72
+ // Information about the image preview.
73
+ // You can use this to display a preview for private images.
74
+ //flynt-disable field-type-breaking-change
75
+ com.wix.media.site_media.upstream.wix.common.Image preview_image = 4;
76
+
77
+ // Optional, An AI generated description of the image
78
+ google.protobuf.StringValue caption = 5 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 300];
79
+
80
+ // Optional, return true or false if the image has text, or empty for unknown
81
+ google.protobuf.BoolValue contains_text = 6 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = INTERNAL];
82
+ // Optional, return true or false if the image has text, or empty for unknown
83
+ google.protobuf.BoolValue animated = 7 [(.wix.api.readOnly) = true, (.wix.api.field_exposure) = INTERNAL];
84
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+
5
+ enum MediaType {
6
+ UNKNOWN = 0;
7
+ IMAGE = 1;
8
+ VIDEO = 2;
9
+ AUDIO = 3;
10
+ DOCUMENT = 4;
11
+ VECTOR = 5;
12
+ ARCHIVE = 6;
13
+ MODEL3D = 7;
14
+ OTHER = 8;
15
+ }
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+
5
+
6
+ enum Namespace {
7
+ NO_NAMESPACE = 0;
8
+ OTHERS = 1;
9
+ //ANY = 2;
10
+ WIX_VIDEO = 3; //_nsWixVideo
11
+ WIX_MUSIC = 4; //_nsWixMusic
12
+ ALBUMS_AND_ART_STORE = 5; //_nsArtStore
13
+ WIX_ECOM = 6; //_nsDigitalProduct
14
+ PHOTO_SHARE_APP = 7; //_nsPhotoShareApp
15
+ SHARING_APP = 8; //_nsSharingApp,
16
+ CHAT = 9; //engage
17
+ LOGO_BUILDER = 10; //logobuilder
18
+ ALBUMS_OLD = 11; //WixExposure
19
+ CHAT_MOBILE = 12; //chat-mobile-uploads
20
+ WIX_FORMS = 13; //_nsWixForms
21
+ }
@@ -0,0 +1,27 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+
5
+ enum OperationStatus {
6
+
7
+ // File upload or processing failed
8
+ FAILED = 0;
9
+ // File is ready for consumption
10
+ READY = 1;
11
+ // File is waiting for processing or currently being processed
12
+ PENDING = 2;
13
+
14
+
15
+
16
+ // File is waiting for processing
17
+ // IN_QUEUE = 2;
18
+ // File is processing
19
+ // IN_PROGRESS = 3;
20
+ // File is uploading to media
21
+ // IN_DOWNLOAD_QUEUE = 4;
22
+ // Convert to failed
23
+ // DOWNLOADING = 4;
24
+ // IN_STORAGE = 5;
25
+ // PREVIEW_READY = 7;
26
+ // UPLOADING = 8;
27
+ }
@@ -0,0 +1,22 @@
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
+
9
+ message OtherMedia {
10
+ option (.wix.api.decomposition_minimum_fields) = {
11
+ field: "id"
12
+ };
13
+ // WixMedia ID. for use with Site Media APIs only
14
+ string id = 1 [(.wix.api.maxLength) = 200];
15
+ // The media type of the file: 'site_icon', 'swf', 'package', 'ufont'
16
+ google.protobuf.StringValue internal_media_type = 2 [(.wix.api.readOnly) = true, (.wix.api.maxLength) = 100];
17
+ // size in bytes. Optional.
18
+ google.protobuf.StringValue size_in_bytes = 3 [(.wix.api.readOnly) = true, (.wix.api.format) = DECIMAL_VALUE, (.wix.api.decimalValue) = { gte: "0", maxScale: 0 }];
19
+ // The file URL.
20
+ string url = 4 [(.wix.api.format) = WEB_URL];
21
+
22
+ }
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+
5
+ enum RootFolder {
6
+ // Root of all site media
7
+ MEDIA_ROOT = 0; // 'media-root'
8
+ // Root of the trash system folder
9
+ TRASH_ROOT = 1; // 'trash-root'
10
+ // Root of all visitor uploads
11
+ VISITOR_UPLOADS_ROOT = 2;// 'visitor-uploads'
12
+ }
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+
3
+ package com.wix.media.site_media.v1;
4
+ import "wix/api/entity.proto";
5
+ import "wix/api/annotations.proto";
6
+ import "wix/api/validations.proto";
7
+
8
+ //flynt-disable missing-entity-id-field
9
+ message StorageInfo {
10
+ //flynt-disable missing-extensible
11
+ option (.wix.api.entity) = {
12
+ fqdn: "wix.media.site_media.v1.storage_info"
13
+ segment: USERS
14
+ app_def_id: "ad919edb-8ae2-403c-bef4-d5083b76d9e9"
15
+ appendix_files: {
16
+ type: AUTO_VELO
17
+ path: "appendices/velo/storage"
18
+ }
19
+ };
20
+
21
+ reserved 1;
22
+ // a url pointing to the generated image
23
+ // string url = 2 [(.wix.api.maxLength) = 10000];
24
+ }