@wix/bex-utils 2.108.0 → 2.110.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 (125) hide show
  1. package/@wix/ambassador-authorization-server/builders.d.ts +2542 -0
  2. package/@wix/ambassador-authorization-server/builders.js +10330 -0
  3. package/@wix/ambassador-authorization-server/builders.js.map +1 -0
  4. package/@wix/ambassador-authorization-server/export-erb.js +101 -0
  5. package/@wix/ambassador-authorization-server/http.d.ts +109 -0
  6. package/@wix/ambassador-authorization-server/http.js +394 -0
  7. package/@wix/ambassador-authorization-server/http.js.map +1 -0
  8. package/@wix/ambassador-authorization-server/index.js +1 -0
  9. package/@wix/ambassador-authorization-server/package.json +30 -0
  10. package/@wix/ambassador-authorization-server/rpc.d.ts +252 -0
  11. package/@wix/ambassador-authorization-server/rpc.js +820 -0
  12. package/@wix/ambassador-authorization-server/rpc.js.map +1 -0
  13. package/@wix/ambassador-authorization-server/src/builders.ts +10663 -0
  14. package/@wix/ambassador-authorization-server/src/http.ts +666 -0
  15. package/@wix/ambassador-authorization-server/src/rpc.ts +1111 -0
  16. package/@wix/ambassador-authorization-server/src/types.ts +1616 -0
  17. package/@wix/ambassador-authorization-server/types.d.ts +1294 -0
  18. package/@wix/ambassador-authorization-server/types.js +62 -0
  19. package/@wix/ambassador-authorization-server/types.js.map +1 -0
  20. package/@wix/ambassador-data-v1-external-database-connection/README.md +34 -0
  21. package/@wix/ambassador-data-v1-external-database-connection/builders/package.json +7 -0
  22. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.d.ts +32 -0
  23. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.js +363 -0
  24. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/builders.impl.js.map +1 -0
  25. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.d.ts +1 -0
  26. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.js +5 -0
  27. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/http.impl.js.map +1 -0
  28. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.d.ts +11 -0
  29. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.js +41 -0
  30. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/crud/rpc.impl.js.map +1 -0
  31. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.d.ts +24 -0
  32. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.js +530 -0
  33. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/http.impl.js.map +1 -0
  34. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.d.ts +22 -0
  35. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.js +136 -0
  36. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/meta.impl.js.map +1 -0
  37. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/client/proto-generated.d.ts +7218 -0
  38. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/client/proto-generated.js +2 -0
  39. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/proto-generated.d.ts +3606 -0
  40. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/proto-generated.js +1 -0
  41. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/server/proto-generated.d.ts +7207 -0
  42. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/proto/server/proto-generated.js +2 -0
  43. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.d.ts +33 -0
  44. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.js +121 -0
  45. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/rpc.impl.js.map +1 -0
  46. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.d.ts +424 -0
  47. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.js +97 -0
  48. package/@wix/ambassador-data-v1-external-database-connection/cjs/build/types.impl.js.map +1 -0
  49. package/@wix/ambassador-data-v1-external-database-connection/cjs/package.json +3 -0
  50. package/@wix/ambassador-data-v1-external-database-connection/crud/http/package.json +7 -0
  51. package/@wix/ambassador-data-v1-external-database-connection/crud/rpc/package.json +6 -0
  52. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.d.ts +32 -0
  53. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.js +314 -0
  54. package/@wix/ambassador-data-v1-external-database-connection/es/build/builders.impl.js.map +1 -0
  55. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.d.ts +1 -0
  56. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.js +2 -0
  57. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/http.impl.js.map +1 -0
  58. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.d.ts +11 -0
  59. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.js +34 -0
  60. package/@wix/ambassador-data-v1-external-database-connection/es/build/crud/rpc.impl.js.map +1 -0
  61. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.d.ts +24 -0
  62. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.js +523 -0
  63. package/@wix/ambassador-data-v1-external-database-connection/es/build/http.impl.js.map +1 -0
  64. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.d.ts +22 -0
  65. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.js +96 -0
  66. package/@wix/ambassador-data-v1-external-database-connection/es/build/meta.impl.js.map +1 -0
  67. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/client/proto-generated.d.ts +7218 -0
  68. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/client/proto-generated.js +5 -0
  69. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/proto-generated.d.ts +3606 -0
  70. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/proto-generated.js +1 -0
  71. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/server/proto-generated.d.ts +7207 -0
  72. package/@wix/ambassador-data-v1-external-database-connection/es/build/proto/server/proto-generated.js +5 -0
  73. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.d.ts +33 -0
  74. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.js +81 -0
  75. package/@wix/ambassador-data-v1-external-database-connection/es/build/rpc.impl.js.map +1 -0
  76. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.d.ts +424 -0
  77. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.js +94 -0
  78. package/@wix/ambassador-data-v1-external-database-connection/es/build/types.impl.js.map +1 -0
  79. package/@wix/ambassador-data-v1-external-database-connection/http/package.json +7 -0
  80. package/@wix/ambassador-data-v1-external-database-connection/meta/package.json +7 -0
  81. package/@wix/ambassador-data-v1-external-database-connection/package.json +108 -0
  82. package/@wix/ambassador-data-v1-external-database-connection/rpc/package.json +6 -0
  83. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/common.proto +63 -0
  84. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/externaldatabase/external-database-connection-service.proto +305 -0
  85. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/cloud/data/api/externaldatabase/upstream/externaldatabase/wix/common/paging.proto +112 -0
  86. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/debug.proto +34 -0
  87. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/kv.proto +42 -0
  88. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/com/wixpress/iptf/webhooks/message_envelope.proto +54 -0
  89. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/webhooks_debug_service.proto +32 -0
  90. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/webhooks_sync_service.proto +33 -0
  91. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/action_payload.proto +33 -0
  92. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/annotations.proto +559 -0
  93. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/api_errors.proto +142 -0
  94. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/callback.proto +173 -0
  95. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/context.proto +19 -0
  96. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/entity.proto +133 -0
  97. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/errors.proto +127 -0
  98. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/idempotency.proto +25 -0
  99. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/permissions.proto +46 -0
  100. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/sla.proto +24 -0
  101. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/subscription.proto +32 -0
  102. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/api/validations.proto +147 -0
  103. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/address.proto +148 -0
  104. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/bulk.proto +53 -0
  105. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/domainevents/attributeupdated.proto +20 -0
  106. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/domainevents/domainevents.proto +112 -0
  107. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/identification.proto +40 -0
  108. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/image.proto +8 -0
  109. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/media.proto +280 -0
  110. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/money.proto +32 -0
  111. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/pageurl.proto +32 -0
  112. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/paging.proto +121 -0
  113. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/sorting.proto +36 -0
  114. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/spi.proto +85 -0
  115. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/tags.proto +55 -0
  116. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/common/wixlink.proto +203 -0
  117. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/graphql/definitions.proto +13 -0
  118. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/http/field_mask.proto +46 -0
  119. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/sdk/definitions.proto +191 -0
  120. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/spi/definitions.proto +188 -0
  121. package/@wix/ambassador-data-v1-external-database-connection/src/main/proto/wix/spi/http_error_status.proto +24 -0
  122. package/@wix/ambassador-data-v1-external-database-connection/types/package.json +7 -0
  123. package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +8 -0
  124. package/@wix/bex-bundled-mini-essentials/package.json +1 -1
  125. package/package.json +8 -5
@@ -0,0 +1,559 @@
1
+ syntax = "proto2";
2
+
3
+ package wix.api;
4
+
5
+ import "google/protobuf/descriptor.proto";
6
+
7
+ option java_multiple_files = true;
8
+ option java_outer_classname = "AnnotationsProto";
9
+ option java_package = "com.wix.api";
10
+
11
+ extend google.protobuf.ServiceOptions {
12
+ optional Maturity service_maturity = 50104;
13
+ optional Exposure service_exposure = 50105;
14
+ // Overrides entity-level tenancy for all methods in this service, unless method overrides it.
15
+ optional TenancyOptions service_tenancy = 50157;
16
+ optional Deprecated service_deprecated = 50140; // mark a service as deprecated, optionally place replacing asset
17
+ repeated ServiceAppendix appendix_files = 50150; // declare external configuration info
18
+ }
19
+
20
+ extend google.protobuf.MethodOptions {
21
+ optional Exposure exposure = 50101;
22
+ optional Maturity maturity = 50102;
23
+ optional CacheSettings cacheable = 50103; // mark a method as cacheable, optionally pass max cache age
24
+ optional Deprecated deprecated = 50141; // mark a method as deprecated, optionally place replacing asset
25
+ optional Crud crud = 50146; // mark crud method type and describe related information about this method
26
+ optional bool accepts_linguist = 50148; // marks that this method accepts `x-wix-linguist` header, MAY return translated/localized responses. without this option, requests that assign this header will get an error. CRUD annotated methods assumed to have this enabled for read ops and disabled for write ops.
27
+ optional Audience audience = 50155; // marks which identities are allowed to call this method
28
+ // Overrides service/entity tenancy for this method.
29
+ optional TenancyOptions tenancy = 50156; // indicates the tenancy context of this method
30
+ }
31
+
32
+ extend google.protobuf.MessageOptions {
33
+ optional string decomposite_of = 50120; // mark it a shard of a message to remove fields
34
+ repeated FieldSet decomposition_minimum_fields = 50121; // constrain that sharding at the definition
35
+ optional bool unwrap_array_value = 50122; // mark message as wrapper for arrays
36
+ optional Deprecated message_deprecated = 50142; // mark a message as deprecated, optionally place replacing asset
37
+ repeated Unique unique = 50145; // mark unique identifiers for this message
38
+ }
39
+
40
+ extend google.protobuf.FieldOptions {
41
+ optional Exposure field_exposure = 50106;
42
+ optional Maturity field_maturity = 50107;
43
+ optional bool pii = 50110; // Mark specific field as PII so clients that store the data know it should be encrypted
44
+ optional string referenced_entity = 50111; // FQDN of foreign keys. For example, an Order message that points to Product message can use it like this: `string product_id = 10 [(wix.api.referenced_entity) = "wix.stores.catalog.v1.product"];`
45
+ optional ReferenceEntityField referenced_entity_field = 50112; // FQDN and path of a field that is referenced by `referenced_entity`. Should be located at same level or in a nested message with relation to `wix.api.referenced_entity`.
46
+ optional Deprecated field_deprecated = 50143; // Mark a field as deprecated, optionally place replacing asset
47
+ optional Translatable translatable = 50144; // Mark this field as translatable using MultiLingual services
48
+ optional string sample_data = 50149; // Example of data that may be assigned as a value of this field
49
+ optional Conditional conditional = 50151; // Configure the conditions required for this field to be returned
50
+ optional bool nullable = 50152; // Mark specific field as nullable
51
+ }
52
+
53
+ extend google.protobuf.EnumValueOptions {
54
+ optional Maturity enum_maturity = 50130;
55
+ optional Exposure enum_exposure = 50131;
56
+ }
57
+
58
+ message ReferenceEntityField {
59
+ required string path = 1; // field path from root of a message annotated with `wix.api.entity` annotation. For example 'item.name'.
60
+ }
61
+
62
+ message CacheSettings {
63
+ optional int32 max_age_seconds = 1; // default is 604800 seconds = 1 week
64
+ optional bool manual = 2; // default is false
65
+ }
66
+
67
+ message FieldSet {
68
+ repeated string field = 1;
69
+ }
70
+
71
+ message Deprecated {
72
+ optional string replaced_by = 1; // use relative proto FQN as absolute identifier. e.g. "wix.common.Query"
73
+ optional string target_removal_date = 2; // a human readable sunset date of the deprecated resource YYYY-MM-DD
74
+ }
75
+
76
+ message Unique {
77
+ repeated string field = 1;
78
+ }
79
+
80
+ message Crud {
81
+ enum Method {
82
+ UNKNOWN_METHOD = 0;
83
+ CREATE = 1;
84
+ GET_ITEM = 2;
85
+ UPDATE = 3;
86
+ DELETE = 4;
87
+ UPSERT = 12;
88
+ LIST = 5;
89
+ QUERY = 6;
90
+ SEARCH = 18;
91
+ BULK_CREATE = 7;
92
+ BULK_UPDATE = 8;
93
+ BULK_UPDATE_BY_FILTER = 9;
94
+ BULK_DELETE = 10;
95
+ BULK_DELETE_BY_FILTER = 11;
96
+ BULK_UPSERT = 13;
97
+ LIST_DELETED = 14;
98
+ GET_DELETED = 15;
99
+ RESTORE_FROM_TRASHBIN = 16;
100
+ REMOVE_FROM_TRASHBIN = 17;
101
+ COUNT = 19;
102
+ SEARCH_RELATED = 20;
103
+ UPDATE_EXTENDED_FIELDS = 21;
104
+ BULK_UPDATE_TAGS = 22;
105
+ BULK_UPDATE_TAGS_BY_FILTER = 23;
106
+ CUSTOM_ACTION = 24;
107
+ }
108
+ required Method method = 1; // method type
109
+ oneof method_options {
110
+ CreateMethodOptions create_options = 3;
111
+ GetItemMethodOptions get_options = 4;
112
+ UpdateMethodOptions update_options = 5;
113
+ DeleteMethodOptions delete_options = 6;
114
+ ListMethodOptions list_options = 7;
115
+ QueryMethodOptions query_options = 8;
116
+ SearchMethodOptions search_options = 20;
117
+ BulkCreateMethodOptions bulk_create_options = 9;
118
+ BulkUpdateMethodOptions bulk_update_options = 10;
119
+ BulkUpdateByFilterMethodOptions bulk_update_by_filter_options = 11;
120
+ BulkDeleteMethodOptions bulk_delete_options = 12;
121
+ BulkDeleteByFilterMethodOptions bulk_delete_by_filter_options = 13;
122
+ UpsertMethodOptions upsert_options = 14;
123
+ BulkUpsertMethodOptions bulk_upsert_options = 15;
124
+ ListDeletedMethodOptions list_deleted_options = 16;
125
+ GetDeletedMethodOptions get_deleted_options = 17;
126
+ RestoreFromTrashbinMethodOptions restore_from_trashbin_options = 18;
127
+ RemoveFromTrashbinMethodOptions remove_from_trashbin_options = 19;
128
+ CountOptions count_options = 21;
129
+ SearchRelatedOptions search_related_options = 22;
130
+ UpdateExtendedFieldsOptions update_extended_fields_options = 23;
131
+ CustomActionOptions custom_action_options = 24; // marks that this method is a custom-action, that unfolds a read/write operation
132
+ BulkUpdateTagsMethodOptions bulk_update_tags_options = 25;
133
+ BulkUpdateTagsByFilterMethodOptions bulk_update_tags_by_filter_options = 26;
134
+ }
135
+ }
136
+
137
+ message Paging {
138
+ enum Type {
139
+ UNKNOWN_TYPE = 0;
140
+ OFFSET = 1;
141
+ CURSOR = 2;
142
+ BOTH = 3;
143
+ }
144
+ optional Type type = 1; // paging type
145
+ optional string paging_metadata_field = 2 [deprecated=true]; // paging field name in response object. default is `metadata`, DEPRECATED in commons V2
146
+ optional string cursor_paging_metadata_field = 3; // cursor paging field name in response object. default is `cursor_paging_metadata`
147
+ optional string offset_paging_metadata_field = 4; // offset paging field name in response object. default is `offset_paging_metadata`
148
+ }
149
+
150
+ message CustomActionOptions {
151
+ optional bool read_operation = 1; // the custom-action's operation will do nothing but read data.
152
+ optional WqlOptions wql = 2; // if WQL validation is needed in this method, provide the data needed for the validator
153
+ }
154
+
155
+ message WqlOptions {
156
+ optional string query_options_name = 1; // Name of WQL variant to use
157
+ // The action may use either filter (struct), query (QueryV2) or search (Search) field. Point to the right one
158
+ oneof field {
159
+ string filter_field = 2; // provide path to filter field (struct) in your request message
160
+ string query_field = 3; // provide path to query field (wix.common.QueryV2) in your request message
161
+ string search_field = 4; // provide path to search field (wix.common.Search) in your request message
162
+ }
163
+ }
164
+
165
+ message CreateMethodOptions {
166
+ optional string item_field = 1; // item field name in request and response objects. default is `<entity-name>`
167
+ }
168
+
169
+ message GetItemMethodOptions {
170
+ optional string item_field = 2; // item field name in response object only. default is `<entity-name>`
171
+ optional string id_field = 1; // id field name in request object. default is `<entity-name>_id`
172
+ }
173
+
174
+ message UpdateMethodOptions {
175
+ optional string item_field = 1; // item field name in request and response objects. default is `<entity-name>`
176
+ optional string fieldmask_field = 2; // fieldmask field name in request object. default is `fieldmask`, only if it really exists in model
177
+ }
178
+
179
+ message UpsertMethodOptions {
180
+ optional string item_field = 1; // item field name in request and response objects. default is `<entity-name>`
181
+ optional string fieldmask_field = 2; // fieldmask field name in request object. default is `fieldmask`, only if it really exists in model
182
+ }
183
+
184
+ message DeleteMethodOptions {
185
+ optional string id_field = 1; // id field name in request object. default is `<entity-name>_id`
186
+ }
187
+
188
+ message ListMethodOptions {
189
+ optional string ids_field = 1; // ids field name in request object if such exists. recommended field-name: `<entity-name>_ids`
190
+ required string items_field = 3; // items field name in response object.
191
+ optional Paging paging = 2; // present paging mechanism info, default will be of type=`CURSOR`
192
+ repeated string me_aliasable_field = 4; // collection of FQNs of fields that MAY be aliased with the const `"me"`
193
+ }
194
+
195
+ message QueryMethodOptions {
196
+ optional string query_field = 1 [deprecated=true]; // query field name in request object. default is `query`, DEPRECATED in commons V2
197
+ optional string cursor_query_field = 7; // cursor query field name in request object. default is `cursor_query`
198
+ optional string offset_query_field = 8; // offset query field name in request object. default is `offset_query`
199
+ required string items_field = 3; // items field name in response object.
200
+ optional Paging paging = 2; // present paging mechanism info, default will be of type=`CURSOR`
201
+ oneof wql_options {
202
+ // mark fields that are available for filtering and sorting via WixQueryLanguage
203
+ // Deprecated - use wql annotation on the entity level
204
+ Wql wql = 4 [deprecated = true];
205
+ string query_options_name = 6; // Name of WQL variant to use
206
+ }
207
+ repeated string me_aliasable_field = 5; // collection of FQNs of fields that MAY be aliased with the const `"me"`
208
+ }
209
+
210
+ message SearchMethodOptions {
211
+ optional string search_field = 1 [deprecated=true]; // search field name in request object. default is `search`, DEPRECATED in commons V2
212
+ optional string cursor_search_field = 8; // cursor search field name in request object. default is `cursor_search`
213
+ optional string offset_search_field = 9; // offset search field name in request object. default is `offset_search`
214
+ required string items_field = 3; // items field name in response object.
215
+ optional Paging paging = 2; // present paging mechanism info, default will be of type=`CURSOR`
216
+ oneof wql_options {
217
+ Wql wql = 4; // mark fields that are available for filtering and sorting via WixQueryLanguage
218
+ string query_options_name = 7; // Name of WQL variant to use
219
+ }
220
+ repeated string me_aliasable_field = 5; // collection of FQNs of fields that MAY be aliased with the const `"me"`
221
+ repeated Search search = 6; // mark fields that are available for search
222
+ }
223
+
224
+ message BulkCreateMethodOptions {
225
+ optional string item_field = 1; // item field name in request and response objects. default is `<entity-name>`
226
+ }
227
+
228
+ message BulkUpdateMethodOptions {
229
+ optional string items_field = 1; // items field name in request and response objects. default is `<entity-name>` in plural. For the request, the field is expected to be a repeated message that includes entity and fieldmask.
230
+ optional string item_field = 2; // item field name under the message used for the repeated field pointed by items_field. default is `<entity-name>`
231
+ optional string fieldmask_field = 3; // fieldmask field name under the message used for the repeated field pointed by items_field. default is `fieldmask`, only if it really exists in model
232
+ }
233
+
234
+ message BulkUpdateByFilterMethodOptions {
235
+ optional string item_field = 1; // item field name in request and response objects. default is `<entity-name>`
236
+ optional string fieldmask_field = 2; // fieldmask field name in request object. default is `fieldmask`, only if it really exists in model
237
+ optional string filter_field = 3; // filter field name in request object. default is `filter`
238
+ optional string query_options_name = 4; // Name of WQL variant to use
239
+ }
240
+
241
+ message BulkUpdateTagsMethodOptions {
242
+ optional string ids_field = 1; // ids field name in request object. default is `<entity-name>_ids`
243
+ }
244
+
245
+ message BulkUpdateTagsByFilterMethodOptions {
246
+ optional string filter_field = 1; // filter field name in request object. default is `filter`
247
+ optional string query_options_name = 2; // Name of WQL variant to use
248
+ }
249
+
250
+ message BulkUpsertMethodOptions {
251
+ optional string item_field = 1; // item field name in request and response objects. default is `<entity-name>`
252
+ optional string fieldmask_field = 2; // fieldmask field name in request object. default is `fieldmask`, only if it really exists in model
253
+ }
254
+
255
+ message BulkDeleteMethodOptions {
256
+ optional string ids_field = 1; // ids field name in request object. default is `<entity-name>_ids`
257
+ }
258
+
259
+ message BulkDeleteByFilterMethodOptions {
260
+ optional string filter_field = 1; // filter field name in request object. default is `filter`
261
+ optional string query_options_name = 2; // Name of WQL variant to use
262
+ }
263
+
264
+ message ListDeletedMethodOptions {
265
+ optional string ids_field = 1; // ids field name in request object if such exists. recommended field-name: `<entity-name>_ids`
266
+ required string items_field = 3; // items field name in response object.
267
+ optional Paging paging = 2; // present paging mechanism info, default will be of type=`CURSOR`
268
+ repeated string me_aliasable_field = 4; // collection of FQNs of fields that MAY be aliased with the const `"me"`
269
+ }
270
+
271
+ message GetDeletedMethodOptions {
272
+ optional string item_field = 2; // item field name in response object only. default is `<entity-name>`
273
+ optional string id_field = 1; // id field name in request object. default is `<entity-name>_id`
274
+ }
275
+
276
+ message RestoreFromTrashbinMethodOptions {
277
+ optional string item_field = 2; // item field name in response object only. default is `<entity-name>`
278
+ optional string id_field = 1; // id field name in request object. default is `<entity-name>_id`
279
+ }
280
+
281
+ message RemoveFromTrashbinMethodOptions {
282
+ optional string id_field = 1; // id field name in request object. default is `<entity-name>_id`
283
+ }
284
+
285
+ message CountOptions {
286
+ oneof wql_options {
287
+ // The name of the endpoint that the count "copy" the WQL settings from - e.g inherit_wql_from: 'QueryProducts'
288
+ // Usually, that will be the query endpoint since you want the same filter capabilities for query and count
289
+ string inherit_wql_from = 1 [deprecated = true];
290
+
291
+ string query_options_name = 2; // Name of WQL variant to use
292
+ }
293
+ optional string filter_field = 3; // query field name in request object. default is `filter`
294
+ optional string count_field = 4; // count field name in response object. default is `count`
295
+ }
296
+
297
+ message SearchRelatedOptions {
298
+ oneof wql_options {
299
+ // The name of the endpoint that the related-search "copy" the WQL settings from - e.g inherit_wql_from: 'SearchProducts'
300
+ // Usually, that will be the search endpoint since you want the same filter capabilities for search and related search
301
+ string inherit_wql_from = 1 [deprecated = true];
302
+
303
+ string query_options_name = 2; // Name of WQL variant to use
304
+ }
305
+ }
306
+
307
+ message UpdateExtendedFieldsOptions {
308
+ optional string item_field = 2; // item field name in response object only. default is `<entity-name>`
309
+ }
310
+
311
+ message Wql {
312
+ reserved 7;
313
+ enum Operator {
314
+ option allow_alias = true;
315
+ ALL_APPLICABLE_OPERATORS = 0; // Applicable by type. i.e. if we allow LT/GT for **, it means for numeric fields only.
316
+ EQ = 1; // [Comparison] Matches values that are equal to a specified value.
317
+ GT = 2; // [Comparison] Matches values that are greater than a specified value.
318
+ GTE = 3; // [Comparison] Matches values that are greater than or equal to a specified value.
319
+ IN = 4; // [Comparison] Matches any of the values specified in an array.
320
+ LT = 5; // [Comparison] Matches values that are less than a specified value.
321
+ LTE = 6; // [Comparison] Matches values that are less than or equal to a specified value.
322
+ NE = 7; // [Comparison] Matches all values that are not equal to a specified value.
323
+ NIN = 8; // [Comparison] Matches none of the values specified in an array.
324
+ BEGINS = 9; // [Comparison] Matches strings that begin with a specified value (NOT case sensitive).
325
+ EXISTS = 10; // [Element] Matches documents that have the specified field.
326
+ HAS_ALL = 11; // [Array] Matches arrays that contain all elements specified in the query.
327
+ ALL = 11 [deprecated = true]; // [Array] Matches arrays that contain all elements specified in the query.
328
+ HAS_SOME = 12; // [Array] Matches arrays that contain at least one element specified in the query.
329
+ ANY = 12 [deprecated = true]; // [Array] Matches arrays that contain at least one element specified in the query.
330
+ EMPTY = 13; // [Array] Matches arrays that contain no elements.
331
+ MATCH_ALL = 14; // Matches all items. Intended for expressing intent in selecting everything for ex. destructive operations - bulk deletes, updates, etc.
332
+ MATCH_ITEMS = 16; // [Array] match multiple fields within array with AND operator semantics.
333
+ /* Enhances field, marked as LOCAL_DATE format, with additional subFields to sort and filter on.
334
+ For local date, formatted as yyyy-mm-dd, available subfields are:
335
+ '.dayOfMonth' - sorts/filters on the day of the month (dd), integer
336
+ '.month' - sorts/filters on the month (mm), integer
337
+ '.year' - sorts/filters on the year (yyyy), integer
338
+ Example, there is a local date field named 'clientBirthday', you may use 'clientBirthday.dayOfMonth',
339
+ 'clientBirthday.month', 'clientBirthday.year' for filtering and sorting.
340
+ You may also use the field without the enhanced subfields ('clientBirthday'). Then the usual date sorting/filtering is applied */
341
+ ENHANCED_DATE = 17 [deprecated = true];
342
+ }
343
+ enum Sort {
344
+ NONE = 0; // no sorting enabled
345
+ ASC = 1; // ascending sort is supported
346
+ DESC = 2; // descending sort is supported
347
+ BOTH = 3; // sort is supported in both directions
348
+ }
349
+ message RequiredFields {
350
+ // this field is deprecated because we need sort direction alongside to field path
351
+ repeated string field = 1[(.wix.api.field_deprecated) = {
352
+ replaced_by: "required_field"
353
+ target_removal_date: "2023-03-31"
354
+ }];
355
+ message RequiredField {
356
+ required string path = 1; // a field path that accepts this operator
357
+ optional Sort sort = 2; // sort type enabled for this glob
358
+ }
359
+ repeated RequiredField required_field = 2; // all required field configurations to satisfy composite index
360
+ }
361
+
362
+ enum VirtualSubfields {
363
+ NO_VIRTUAL_SUBFIELDS = 0;
364
+ /* Can be set for a field, marked as LOCAL_DATE format, allows filtering by following subfields:
365
+ - '.dayOfMonth' - sorts/filters on the day of the month (DD), integer
366
+ - '.month' - sorts/filters on the month (MM), integer
367
+ - '.year' - sorts/filters on the year (YYYY), integer
368
+ For example, for a local date field named 'clientBirthday', you may use 'clientBirthday.dayOfMonth',
369
+ 'clientBirthday.month', 'clientBirthday.year' for filtering and sorting. */
370
+ DATE = 1;
371
+ /* Can be set for a field, marked as EMAIL format, allows filtering by following subfields:
372
+ - '.domain' - sorts/filters on the domain of an email (example email: hello@wix.com --> domain: wix.com), string */
373
+ EMAIL = 2;
374
+ /* Can be set for a field, marked as LOCAL_DATE_TIME format, allows filtering by following subfields:
375
+ - '.dayOfMonth' - sorts/filters on the day of the month (DD), integer
376
+ - '.month' - sorts/filters on the month (MM), integer
377
+ - '.year' - sorts/filters on the year (YYYY), integer
378
+ - '.time' - sorts/filters on the time (hh:mm) (ex. "08:26"), string
379
+ - '.hour' - sorts/filters on the hour of the time (hh), integer
380
+ - '.minute' - sorts/filters on the minute of the time (mm), integer
381
+ For example, for a local datetime field named 'bookingTime', you may use 'bookingTime.time' for filtering and sorting. */
382
+ DATE_TIME = 3;
383
+ }
384
+
385
+ message OperatorFieldSupport {
386
+ repeated Operator operator = 1; // Operators supported for fields that match the glob
387
+ // this field is deprecated because glob is hard to read. moved to a direct field config approach
388
+ optional string glob = 2 [(.wix.api.field_deprecated) = {
389
+ replaced_by: "field"
390
+ target_removal_date: "2023-03-31"
391
+ }, deprecated = true];
392
+ repeated string field = 5; // a collection of field paths that accepts this operator
393
+ optional Sort sort = 3; // sort type enabled for this glob
394
+ repeated RequiredFields required_fields = 4; // fields that match this glob, can be used only if the query is also filtered by required_fields
395
+ optional Maturity maturity = 6;
396
+ optional VirtualSubfields virtual_subfields = 7; // kind of virtual subfields are supported for this field
397
+ }
398
+ // this field is deprecated due to a better and shorter naming
399
+ repeated OperatorFieldSupport operator_field_support = 3 [(.wix.api.field_deprecated) = {
400
+ replaced_by: "pattern"
401
+ target_removal_date: "2023-03-31"
402
+ }, deprecated = true];
403
+ repeated OperatorFieldSupport pattern = 4; // supported operators for subject query method
404
+ optional bool validate_query = 6; // false by default. all new services will have it set to true
405
+ }
406
+
407
+ message Search {
408
+ repeated string field = 1; // a collection of field paths that supports Free Text Search
409
+ optional Maturity maturity = 2;
410
+ }
411
+
412
+ message Translatable {
413
+ enum Type {
414
+ UNDEFINED_TYPE = 0 [(.wix.api.enum_maturity) = NOT_IMPLEMENTED];
415
+ SHORT_TEXT = 1;
416
+ LONG_TEXT = 2;
417
+ RICH_TEXT = 3;
418
+ RICH_CONTENT_EDITOR = 4;
419
+ SELECTION = 5;
420
+ MULTI_SELECTION = 6;
421
+ DOCUMENT = 7;
422
+ IMAGE = 8;
423
+ VIDEO = 9;
424
+ IMAGE_LINK = 10; // Image URI without metadata
425
+ }
426
+ optional string name = 1; // a human friendly field name
427
+ optional bool hidden = 2; // is this translatable field hidden in Multilingual
428
+ optional string grouping = 3; // fields in schema may be grouped under meaningful topic or category of the source entity
429
+ required Type type = 4; // translation input component type e.g. "freetext", "dropdown", etc..
430
+ optional bool display_only = 5; // is this field for preview and not translatable
431
+ }
432
+
433
+ message Conditional {
434
+ optional string permission = 1; // field will not be returned by the server, unless the client has this permission. If `requested_field` is also set, and a client explicitly requests this field but does not have permission, server will return 403-Forbidden error
435
+ optional string requested_field = 2; // field will not be returned by the server, unless the client explicitly requested it using `fields` parameter in the request, with the enum value specified by this annotation
436
+ }
437
+
438
+ message ServiceAppendix {
439
+ enum Type {
440
+ UNKNOWN_APPENDIX_TYPE = 0;
441
+ NILE = 1; // Nile(tm) FW configuration
442
+ MESSAGE_BUS = 2; // wix message bus / pub-sub configuration
443
+ }
444
+ required Type type = 1; // appendix type
445
+ required string path = 2; // absolute from module root
446
+ }
447
+
448
+ // Defines the target audience of your API
449
+ // @see https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/api-lifecycle/2005-exposure
450
+ enum Exposure {
451
+ // Exposed to the owning team only. No other devs inside or outside Wix can use these APIs.
452
+ PRIVATE = 0;
453
+ // Exposed to internal Wix devs only. APIs that can only accept gRPC traffic and/or HTTP traffic over VPN
454
+ INTERNAL = 1;
455
+ // Exposed (or intended to be) to external devs. APIs that are accessible from the Internet, for example to the dashboard or live-site.
456
+ PUBLIC = 2;
457
+ }
458
+
459
+ enum Maturity {
460
+ ALPHA = 0;
461
+ BETA = 1;
462
+ IA = 2 [deprecated=true];
463
+ GA = 3;
464
+ NOT_IMPLEMENTED = 4;
465
+ }
466
+
467
+ // Defines which identity audiences are allowed to call this method.
468
+ //
469
+ // Example usage:
470
+ // rpc UpdateSomething(UpdateSomethingRequest) returns (UpdateSomethingResponse) {
471
+ // option (wix.api.audience) = {
472
+ // uou: { access: MEMBERS_AND_VISITORS }
473
+ // apps: { access: WIX_AND_PUBLIC_APPS }
474
+ // users: { access: ALLOWED }
475
+ // bo_users: { access: NOT_ALLOWED }
476
+ // anonymous: { access: NOT_ALLOWED }
477
+ // };
478
+ // }
479
+ message Audience {
480
+ message Uou {
481
+ enum Access {
482
+ NOT_ALLOWED = 0;
483
+ MEMBER_ONLY = 1;
484
+ MEMBERS_AND_VISITORS = 2;
485
+ }
486
+ // Level of access for UoU identities.
487
+ optional Access access = 1 [default = NOT_ALLOWED];
488
+ }
489
+
490
+ message Apps {
491
+ enum Access {
492
+ NOT_ALLOWED = 0;
493
+ WIX_APPS_ONLY = 1;
494
+ WIX_AND_PUBLIC_APPS = 2;
495
+ }
496
+ // Level of access for app identities (TPAs / Wix-apps).
497
+ optional Access access = 1 [default = NOT_ALLOWED];
498
+ }
499
+
500
+ message Users {
501
+ enum Access {
502
+ NOT_ALLOWED = 0;
503
+ reserved 1; // If you need an API for employees only, use BoUsers.
504
+ ALLOWED = 2;
505
+ }
506
+ // Level of access for Wix users/employees.
507
+ optional Access access = 1 [default = NOT_ALLOWED];
508
+ }
509
+
510
+ message BoUsers {
511
+ enum Access {
512
+ NOT_ALLOWED = 0;
513
+ ALLOWED = 1;
514
+ }
515
+ // Level of access for Wix users/employees.
516
+ optional Access access = 1 [default = NOT_ALLOWED];
517
+ }
518
+
519
+ message Anonymous {
520
+ enum Access {
521
+ NOT_ALLOWED = 0;
522
+ ALLOWED = 1;
523
+ }
524
+ // Level of access for anonymous clients (with no identity).
525
+ // Requires opt-out from a Flynt rule.
526
+ optional Access access = 1 [default = NOT_ALLOWED];
527
+ }
528
+
529
+ optional Uou uou = 1;
530
+ optional Apps apps = 2;
531
+ optional Users users = 3;
532
+ optional BoUsers bo_users = 4;
533
+ optional Anonymous anonymous = 5;
534
+ }
535
+
536
+ // Indicates the tenancy context of this method.
537
+ //
538
+ // Note: this is named TenancyOptions (not Tenancy) because `wix.api` already contains
539
+ // an `enum Tenancy` used by callbacks/events.
540
+ //
541
+ // Override order:
542
+ // - `(wix.api.entity).tenancy` on the main entity (default, see `wix/api/entity.proto`)
543
+ // - `(wix.api.service_tenancy)` on the service (overrides entity)
544
+ // - `(wix.api.tenancy)` on the method (overrides service/entity)
545
+ //
546
+ // Example usage:
547
+ // rpc UpdateSomething(UpdateSomethingRequest) returns (UpdateSomethingResponse) {
548
+ // option (wix.api.tenancy).type = SITE;
549
+ // }
550
+ message TenancyOptions {
551
+ enum Type {
552
+ SITE = 0;
553
+ ACCOUNT = 1;
554
+ ORGANIZATION = 2;
555
+ CUSTOM = 3;
556
+ INSTANCE = 4;
557
+ }
558
+ optional Type type = 1 [default = SITE];
559
+ }