@wix/duplexer-js 2.0.5

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 (280) hide show
  1. package/README.md +239 -0
  2. package/dist/src/_external-types.d.ts +1 -0
  3. package/dist/src/authenticator.d.ts +22 -0
  4. package/dist/src/authenticator.js +42 -0
  5. package/dist/src/authenticator.js.map +1 -0
  6. package/dist/src/channels/channel.d.ts +29 -0
  7. package/dist/src/channels/channel.js +159 -0
  8. package/dist/src/channels/channel.js.map +1 -0
  9. package/dist/src/channels/channels.d.ts +13 -0
  10. package/dist/src/channels/channels.js +41 -0
  11. package/dist/src/channels/channels.js.map +1 -0
  12. package/dist/src/channels/subscription-error.d.ts +6 -0
  13. package/dist/src/channels/subscription-error.js +3 -0
  14. package/dist/src/channels/subscription-error.js.map +1 -0
  15. package/dist/src/connection-manager.d.ts +62 -0
  16. package/dist/src/connection-manager.js +228 -0
  17. package/dist/src/connection-manager.js.map +1 -0
  18. package/dist/src/constants.d.ts +5 -0
  19. package/dist/src/constants.js +9 -0
  20. package/dist/src/constants.js.map +1 -0
  21. package/dist/src/domain.d.ts +3 -0
  22. package/dist/src/domain.js +3 -0
  23. package/dist/src/domain.js.map +1 -0
  24. package/dist/src/duplexer.d.ts +41 -0
  25. package/dist/src/duplexer.js +125 -0
  26. package/dist/src/duplexer.js.map +1 -0
  27. package/dist/src/environments/core/environment.d.ts +13 -0
  28. package/dist/src/environments/core/environment.js +25 -0
  29. package/dist/src/environments/core/environment.js.map +1 -0
  30. package/dist/src/environments/core/network.d.ts +6 -0
  31. package/dist/src/environments/core/network.js +32 -0
  32. package/dist/src/environments/core/network.js.map +1 -0
  33. package/dist/src/environments/react-native/environment.d.ts +7 -0
  34. package/dist/src/environments/react-native/environment.js +27 -0
  35. package/dist/src/environments/react-native/environment.js.map +1 -0
  36. package/dist/src/environments/react-native/network.d.ts +6 -0
  37. package/dist/src/environments/react-native/network.js +54 -0
  38. package/dist/src/environments/react-native/network.js.map +1 -0
  39. package/dist/src/environments/react-native/transports.d.ts +8 -0
  40. package/dist/src/environments/react-native/transports.js +31 -0
  41. package/dist/src/environments/react-native/transports.js.map +1 -0
  42. package/dist/src/environments/web/environment.d.ts +8 -0
  43. package/dist/src/environments/web/environment.js +19 -0
  44. package/dist/src/environments/web/environment.js.map +1 -0
  45. package/dist/src/environments/web/network.d.ts +4 -0
  46. package/dist/src/environments/web/network.js +38 -0
  47. package/dist/src/environments/web/network.js.map +1 -0
  48. package/dist/src/environments/web/transports.d.ts +8 -0
  49. package/dist/src/environments/web/transports.js +51 -0
  50. package/dist/src/environments/web/transports.js.map +1 -0
  51. package/dist/src/errors/is-transport-error.d.ts +1 -0
  52. package/dist/src/errors/is-transport-error.js +7 -0
  53. package/dist/src/errors/is-transport-error.js.map +1 -0
  54. package/dist/src/index.d.ts +11 -0
  55. package/dist/src/index.js +25 -0
  56. package/dist/src/index.js.map +1 -0
  57. package/dist/src/instance-updater.d.ts +5 -0
  58. package/dist/src/instance-updater.js +3 -0
  59. package/dist/src/instance-updater.js.map +1 -0
  60. package/dist/src/keep-alive.d.ts +18 -0
  61. package/dist/src/keep-alive.js +66 -0
  62. package/dist/src/keep-alive.js.map +1 -0
  63. package/dist/src/ready-state.d.ts +6 -0
  64. package/dist/src/ready-state.js +10 -0
  65. package/dist/src/ready-state.js.map +1 -0
  66. package/dist/src/strategies/strategy-builder.d.ts +11 -0
  67. package/dist/src/strategies/strategy-builder.js +34 -0
  68. package/dist/src/strategies/strategy-builder.js.map +1 -0
  69. package/dist/src/strategies/strategy-presets.d.ts +4 -0
  70. package/dist/src/strategies/strategy-presets.js +20 -0
  71. package/dist/src/strategies/strategy-presets.js.map +1 -0
  72. package/dist/src/strategies/strategy.d.ts +25 -0
  73. package/dist/src/strategies/strategy.js +153 -0
  74. package/dist/src/strategies/strategy.js.map +1 -0
  75. package/dist/src/timeline/noop-timeline.d.ts +5 -0
  76. package/dist/src/timeline/noop-timeline.js +15 -0
  77. package/dist/src/timeline/noop-timeline.js.map +1 -0
  78. package/dist/src/timeline/timeline.d.ts +7 -0
  79. package/dist/src/timeline/timeline.js +3 -0
  80. package/dist/src/timeline/timeline.js.map +1 -0
  81. package/dist/src/transport/http-polling.d.ts +27 -0
  82. package/dist/src/transport/http-polling.js +245 -0
  83. package/dist/src/transport/http-polling.js.map +1 -0
  84. package/dist/src/transport/http.d.ts +14 -0
  85. package/dist/src/transport/http.js +106 -0
  86. package/dist/src/transport/http.js.map +1 -0
  87. package/dist/src/transport/params.d.ts +3 -0
  88. package/dist/src/transport/params.js +70 -0
  89. package/dist/src/transport/params.js.map +1 -0
  90. package/dist/src/transport/transport-error.d.ts +8 -0
  91. package/dist/src/transport/transport-error.js +3 -0
  92. package/dist/src/transport/transport-error.js.map +1 -0
  93. package/dist/src/transport/transport-params.d.ts +3 -0
  94. package/dist/src/transport/transport-params.js +3 -0
  95. package/dist/src/transport/transport-params.js.map +1 -0
  96. package/dist/src/transport/transport.d.ts +50 -0
  97. package/dist/src/transport/transport.js +120 -0
  98. package/dist/src/transport/transport.js.map +1 -0
  99. package/dist/src/transport/transports-manager.d.ts +42 -0
  100. package/dist/src/transport/transports-manager.js +248 -0
  101. package/dist/src/transport/transports-manager.js.map +1 -0
  102. package/dist/src/transport/unrecoverable.d.ts +1 -0
  103. package/dist/src/transport/unrecoverable.js +8 -0
  104. package/dist/src/transport/unrecoverable.js.map +1 -0
  105. package/dist/src/transport/websocket.d.ts +18 -0
  106. package/dist/src/transport/websocket.js +155 -0
  107. package/dist/src/transport/websocket.js.map +1 -0
  108. package/dist/src/utils/assert.d.ts +1 -0
  109. package/dist/src/utils/assert.js +34 -0
  110. package/dist/src/utils/assert.js.map +1 -0
  111. package/dist/src/utils/cancel-token.d.ts +10 -0
  112. package/dist/src/utils/cancel-token.js +28 -0
  113. package/dist/src/utils/cancel-token.js.map +1 -0
  114. package/dist/src/utils/deferred.d.ts +9 -0
  115. package/dist/src/utils/deferred.js +27 -0
  116. package/dist/src/utils/deferred.js.map +1 -0
  117. package/dist/src/utils/event-emitter.d.ts +15 -0
  118. package/dist/src/utils/event-emitter.js +106 -0
  119. package/dist/src/utils/event-emitter.js.map +1 -0
  120. package/dist/src/utils/on.d.ts +4 -0
  121. package/dist/src/utils/on.js +10 -0
  122. package/dist/src/utils/on.js.map +1 -0
  123. package/dist/src/utils/request.d.ts +20 -0
  124. package/dist/src/utils/request.js +164 -0
  125. package/dist/src/utils/request.js.map +1 -0
  126. package/dist/src/utils/timer.d.ts +8 -0
  127. package/dist/src/utils/timer.js +17 -0
  128. package/dist/src/utils/timer.js.map +1 -0
  129. package/dist/src/utils/utils.d.ts +1 -0
  130. package/dist/src/utils/utils.js +8 -0
  131. package/dist/src/utils/utils.js.map +1 -0
  132. package/dist/src/virtual-socket.d.ts +42 -0
  133. package/dist/src/virtual-socket.js +199 -0
  134. package/dist/src/virtual-socket.js.map +1 -0
  135. package/dist/statics/duplexer.bundle.js +982 -0
  136. package/dist/statics/duplexer.bundle.js.map +1 -0
  137. package/dist/statics/duplexer.bundle.min.js +2 -0
  138. package/dist/statics/duplexer.bundle.min.js.map +1 -0
  139. package/dist/statics/manifest.json +3 -0
  140. package/dist/statics/manifest.min.json +3 -0
  141. package/dist/test/_external-types.d.ts +2 -0
  142. package/dist/test/_global-types.d.ts +10 -0
  143. package/dist/test/_setup-global-hooks.spec.d.ts +1 -0
  144. package/dist/test/_setup-global-hooks.spec.js +13 -0
  145. package/dist/test/_setup-global-hooks.spec.js.map +1 -0
  146. package/dist/test/client-events.it.d.ts +1 -0
  147. package/dist/test/client-events.it.js +33 -0
  148. package/dist/test/client-events.it.js.map +1 -0
  149. package/dist/test/connect.spec.d.ts +1 -0
  150. package/dist/test/connect.spec.js +71 -0
  151. package/dist/test/connect.spec.js.map +1 -0
  152. package/dist/test/connection-manager.spec.d.ts +1 -0
  153. package/dist/test/connection-manager.spec.js +523 -0
  154. package/dist/test/connection-manager.spec.js.map +1 -0
  155. package/dist/test/duplexer.it.d.ts +1 -0
  156. package/dist/test/duplexer.it.js +243 -0
  157. package/dist/test/duplexer.it.js.map +1 -0
  158. package/dist/test/duplexer.spec.d.ts +1 -0
  159. package/dist/test/duplexer.spec.js +337 -0
  160. package/dist/test/duplexer.spec.js.map +1 -0
  161. package/dist/test/environments/web.it.d.ts +1 -0
  162. package/dist/test/environments/web.it.js +30 -0
  163. package/dist/test/environments/web.it.js.map +1 -0
  164. package/dist/test/environments/web.spec.d.ts +1 -0
  165. package/dist/test/environments/web.spec.js +92 -0
  166. package/dist/test/environments/web.spec.js.map +1 -0
  167. package/dist/test/event-emitter.spec.d.ts +1 -0
  168. package/dist/test/event-emitter.spec.js +182 -0
  169. package/dist/test/event-emitter.spec.js.map +1 -0
  170. package/dist/test/helpers/as-promised.d.ts +7 -0
  171. package/dist/test/helpers/as-promised.js +38 -0
  172. package/dist/test/helpers/as-promised.js.map +1 -0
  173. package/dist/test/helpers/assertions.d.ts +8 -0
  174. package/dist/test/helpers/assertions.js +43 -0
  175. package/dist/test/helpers/assertions.js.map +1 -0
  176. package/dist/test/helpers/auth-server.d.ts +10 -0
  177. package/dist/test/helpers/auth-server.js +61 -0
  178. package/dist/test/helpers/auth-server.js.map +1 -0
  179. package/dist/test/helpers/http-polling-environment.d.ts +2 -0
  180. package/dist/test/helpers/http-polling-environment.js +20 -0
  181. package/dist/test/helpers/http-polling-environment.js.map +1 -0
  182. package/dist/test/helpers/in-memory-environemnt.d.ts +15 -0
  183. package/dist/test/helpers/in-memory-environemnt.js +39 -0
  184. package/dist/test/helpers/in-memory-environemnt.js.map +1 -0
  185. package/dist/test/helpers/in-memory-network.d.ts +5 -0
  186. package/dist/test/helpers/in-memory-network.js +37 -0
  187. package/dist/test/helpers/in-memory-network.js.map +1 -0
  188. package/dist/test/helpers/in-memory-timeline.d.ts +8 -0
  189. package/dist/test/helpers/in-memory-timeline.js +24 -0
  190. package/dist/test/helpers/in-memory-timeline.js.map +1 -0
  191. package/dist/test/helpers/in-memory-transport.d.ts +68 -0
  192. package/dist/test/helpers/in-memory-transport.js +271 -0
  193. package/dist/test/helpers/in-memory-transport.js.map +1 -0
  194. package/dist/test/helpers/server-interceptor.d.ts +10 -0
  195. package/dist/test/helpers/server-interceptor.js +138 -0
  196. package/dist/test/helpers/server-interceptor.js.map +1 -0
  197. package/dist/test/helpers/setup-global-mock-navigator.d.ts +4 -0
  198. package/dist/test/helpers/setup-global-mock-navigator.js +22 -0
  199. package/dist/test/helpers/setup-global-mock-navigator.js.map +1 -0
  200. package/dist/test/helpers/window.d.ts +1 -0
  201. package/dist/test/helpers/window.js +17 -0
  202. package/dist/test/helpers/window.js.map +1 -0
  203. package/dist/test/keep-alive.it.spec.d.ts +1 -0
  204. package/dist/test/keep-alive.it.spec.js +42 -0
  205. package/dist/test/keep-alive.it.spec.js.map +1 -0
  206. package/dist/test/keep-alive.spec.d.ts +1 -0
  207. package/dist/test/keep-alive.spec.js +140 -0
  208. package/dist/test/keep-alive.spec.js.map +1 -0
  209. package/dist/test/ng/channel-support.d.ts +39 -0
  210. package/dist/test/ng/channel-support.js +178 -0
  211. package/dist/test/ng/channel-support.js.map +1 -0
  212. package/dist/test/ng/channels.spec.d.ts +1 -0
  213. package/dist/test/ng/channels.spec.js +79 -0
  214. package/dist/test/ng/channels.spec.js.map +1 -0
  215. package/dist/test/ng/client-events.it.d.ts +1 -0
  216. package/dist/test/ng/client-events.it.js +75 -0
  217. package/dist/test/ng/client-events.it.js.map +1 -0
  218. package/dist/test/ng/connect.it.d.ts +1 -0
  219. package/dist/test/ng/connect.it.js +128 -0
  220. package/dist/test/ng/connect.it.js.map +1 -0
  221. package/dist/test/ng/corvid-environment.d.ts +22 -0
  222. package/dist/test/ng/corvid-environment.js +44 -0
  223. package/dist/test/ng/corvid-environment.js.map +1 -0
  224. package/dist/test/ng/environment.d.ts +49 -0
  225. package/dist/test/ng/environment.js +250 -0
  226. package/dist/test/ng/environment.js.map +1 -0
  227. package/dist/test/ng/setup.d.ts +54 -0
  228. package/dist/test/ng/setup.js +256 -0
  229. package/dist/test/ng/setup.js.map +1 -0
  230. package/dist/test/ng/subscribe.it.d.ts +1 -0
  231. package/dist/test/ng/subscribe.it.js +354 -0
  232. package/dist/test/ng/subscribe.it.js.map +1 -0
  233. package/dist/test/ng/unsubscribe.it.d.ts +1 -0
  234. package/dist/test/ng/unsubscribe.it.js +73 -0
  235. package/dist/test/ng/unsubscribe.it.js.map +1 -0
  236. package/dist/test/ng/util-functions.d.ts +7 -0
  237. package/dist/test/ng/util-functions.js +73 -0
  238. package/dist/test/ng/util-functions.js.map +1 -0
  239. package/dist/test/proto/client/index.d.ts +2852 -0
  240. package/dist/test/proto/index.d.ts +1421 -0
  241. package/dist/test/proto/server/index.d.ts +2832 -0
  242. package/dist/test/restore-overrides.it.d.ts +1 -0
  243. package/dist/test/restore-overrides.it.js +38 -0
  244. package/dist/test/restore-overrides.it.js.map +1 -0
  245. package/dist/test/setup.d.ts +1 -0
  246. package/dist/test/setup.js +5 -0
  247. package/dist/test/setup.js.map +1 -0
  248. package/dist/test/strategy.spec.d.ts +1 -0
  249. package/dist/test/strategy.spec.js +209 -0
  250. package/dist/test/strategy.spec.js.map +1 -0
  251. package/dist/test/subscribe.it.d.ts +1 -0
  252. package/dist/test/subscribe.it.js +216 -0
  253. package/dist/test/subscribe.it.js.map +1 -0
  254. package/dist/test/subscribe.spec.d.ts +1 -0
  255. package/dist/test/subscribe.spec.js +86 -0
  256. package/dist/test/subscribe.spec.js.map +1 -0
  257. package/dist/test/transporters/http-polling.it.d.ts +1 -0
  258. package/dist/test/transporters/http-polling.it.js +118 -0
  259. package/dist/test/transporters/http-polling.it.js.map +1 -0
  260. package/dist/test/transporters/http-polling.spec.d.ts +1 -0
  261. package/dist/test/transporters/http-polling.spec.js +354 -0
  262. package/dist/test/transporters/http-polling.spec.js.map +1 -0
  263. package/dist/test/transporters/transporter.spec.d.ts +1 -0
  264. package/dist/test/transporters/transporter.spec.js +46 -0
  265. package/dist/test/transporters/transporter.spec.js.map +1 -0
  266. package/dist/test/transporters/websocket.spec.d.ts +1 -0
  267. package/dist/test/transporters/websocket.spec.js +26 -0
  268. package/dist/test/transporters/websocket.spec.js.map +1 -0
  269. package/dist/test/transports-manager.spec.d.ts +1 -0
  270. package/dist/test/transports-manager.spec.js +346 -0
  271. package/dist/test/transports-manager.spec.js.map +1 -0
  272. package/dist/test/utils/request.spec.d.ts +1 -0
  273. package/dist/test/utils/request.spec.js +274 -0
  274. package/dist/test/utils/request.spec.js.map +1 -0
  275. package/dist/test/virtual-socket.it.d.ts +1 -0
  276. package/dist/test/virtual-socket.it.js +153 -0
  277. package/dist/test/virtual-socket.it.js.map +1 -0
  278. package/package.json +131 -0
  279. package/react-native.d.ts +1 -0
  280. package/react-native.js +1 -0
@@ -0,0 +1,2832 @@
1
+ import Long from 'long';
2
+ import {AspectStore} from '@wix/wix-aspects';
3
+
4
+ declare namespace $requests {
5
+ export namespace com {
6
+ export namespace wixpress {
7
+ export namespace wixcode {
8
+ export namespace dispatcher {
9
+ export namespace api {
10
+ export namespace v1 {
11
+ export interface InvokeFunctionRequest {
12
+ modulePath: string;
13
+ functionName: string;
14
+ arguments: any[];
15
+ }
16
+ export interface InvokeFunctionResponse {
17
+ result?: any;
18
+ }
19
+ export interface InvokeFunctionBulkRequest {
20
+ invokeFunctionRequests: $requests.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionRequest[];
21
+ }
22
+ export interface InvokeFunctionBulkResponse {
23
+ bulkResult: $requests.com.wixpress.wixcode.dispatcher.api.v1.BulkResult[];
24
+ }
25
+ export interface BulkResult {
26
+ successValue?: any;
27
+ errorValue?: $requests.com.wixpress.wixcode.dispatcher.api.v1.ErrorValue;
28
+ }
29
+ export interface ErrorValue {
30
+ message: string;
31
+ name: string;
32
+ isUserError: boolean;
33
+ }
34
+ export interface InvokeDevFunctionRequest {
35
+ modulePath: string;
36
+ functionName: string;
37
+ gridAppId: string;
38
+ arguments: any[];
39
+ }
40
+ export interface InvokeDevFunctionBulkRequest {
41
+ gridAppId: string;
42
+ invokeFunctionRequests: $requests.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionRequest[];
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ export namespace structure {
49
+ export namespace dynamic {
50
+ export namespace api {
51
+ export interface DynamicSiteStructureRequest {
52
+ router?: $requests.com.wixpress.structure.dynamic.api.Router;
53
+ routersRevisionId: string;
54
+ segment: $requests.com.wixpress.structure.dynamic.api.Segment;
55
+ paging?: $requests.wix.common.CursorPaging;
56
+ languageMetadata?: $requests.com.wixpress.structure.common.LanguageMetadata;
57
+ siteUrl?: string;
58
+ }
59
+ export enum Segment {
60
+ PUBLIC = "PUBLIC",
61
+ EDITOR = "EDITOR",
62
+ }
63
+ export interface Router {
64
+ routerPrefix: string;
65
+ pageRoles?: { [k: string]: $requests.com.wixpress.structure.dynamic.api.PageRole };
66
+ config: string;
67
+ }
68
+ export interface PageRole {
69
+ id: string;
70
+ title: string;
71
+ }
72
+ export interface DynamicSiteStructureResponse {
73
+ routerPrefix?: string;
74
+ results: $requests.com.wixpress.structure.dynamic.api.DynamicItem[];
75
+ totalResults?: number;
76
+ pagingData?: $requests.com.wixpress.structure.dynamic.api.CursorPagingMetaData;
77
+ }
78
+ export interface DynamicItem {
79
+ id: string;
80
+ itemTypeIdentifier?: string;
81
+ routerPrefix?: string;
82
+ name?: string;
83
+ media: $requests.wix.common.MediaItem[];
84
+ path?: string;
85
+ updatedDate?: Date;
86
+ inactive?: boolean;
87
+ metadata?: { [key: string]: any };
88
+ image: $requests.wix.common.Image[];
89
+ video: $requests.wix.common.VideoV2[];
90
+ staticPageId?: string;
91
+ pageIdentifier?: string;
92
+ }
93
+ export interface CursorPagingMetaData {
94
+ count?: number;
95
+ cursor?: string;
96
+ }
97
+ }
98
+ }
99
+ export namespace common {
100
+ export interface LanguageMetadata {
101
+ code: string;
102
+ tag?: string;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ export namespace wix {
108
+ export namespace duplexer {
109
+ export namespace api {
110
+ export interface Publisher {
111
+ uid: string;
112
+ }
113
+ export interface App {
114
+ appDefId: string;
115
+ metaSiteId: string;
116
+ }
117
+ export enum PublishContext {
118
+ META_SITE = "META_SITE",
119
+ USER = "USER",
120
+ }
121
+ export interface PublishRequest {
122
+ channels: string[];
123
+ event: string;
124
+ payload?: { [key: string]: any };
125
+ publisher?: $requests.com.wix.duplexer.api.Publisher;
126
+ resourceId: string;
127
+ context: $requests.com.wix.duplexer.api.PublishContext;
128
+ recipients: string[];
129
+ excludedRecipients: string[];
130
+ }
131
+ export interface PublishResponse {
132
+ }
133
+ export interface PublishAsDuplexerRequest {
134
+ data?: $requests.com.wix.duplexer.api.PublishRequest;
135
+ onBehalfOf?: $requests.com.wix.duplexer.api.App;
136
+ }
137
+ export interface PublishAsDuplexerResponse {
138
+ }
139
+ export interface StatusNotification {
140
+ status: $requests.com.wix.duplexer.api.StatusNotification.Status;
141
+ channel: string;
142
+ userId: string;
143
+ sessionId: string;
144
+ metaSiteId: string;
145
+ }
146
+ export namespace StatusNotification {
147
+ export enum Status {
148
+ OFFLINE = "OFFLINE",
149
+ ONLINE = "ONLINE",
150
+ }
151
+ }
152
+ }
153
+ }
154
+ export namespace realtime {
155
+ export namespace v4 {
156
+ export interface Message {
157
+ id: string;
158
+ eventName: string;
159
+ payload?: { [key: string]: any };
160
+ publisherInfo?: $requests.com.wix.realtime.v4.PublisherInfo;
161
+ }
162
+ export interface PublisherInfo {
163
+ uid: string;
164
+ }
165
+ export interface PublishRequest {
166
+ message?: $requests.com.wix.realtime.v4.Message;
167
+ channels: string[];
168
+ resourceId?: string;
169
+ }
170
+ export interface PublishResponse {
171
+ }
172
+ export interface PublishToUserRequest {
173
+ message?: $requests.com.wix.realtime.v4.Message;
174
+ resourceId?: string;
175
+ includeRecipients?: $requests.com.wix.realtime.v4.UserIdList;
176
+ excludeRecipients?: $requests.com.wix.realtime.v4.UserIdList;
177
+ }
178
+ export interface PublishToUserResponse {
179
+ }
180
+ export interface UserIdList {
181
+ userId: string[];
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ export namespace wix {
188
+ export namespace api {
189
+ export interface ReferenceEntityField {
190
+ path: string;
191
+ }
192
+ export interface CacheSettings {
193
+ maxAgeSeconds: number;
194
+ manual: boolean;
195
+ }
196
+ export interface FieldSet {
197
+ field: string[];
198
+ }
199
+ export interface Deprecated {
200
+ replacedBy: string;
201
+ targetRemovalDate: string;
202
+ }
203
+ export interface Unique {
204
+ field: string[];
205
+ }
206
+ export interface Crud {
207
+ method: $requests.wix.api.Crud.Method;
208
+ createOptions?: $requests.wix.api.CreateMethodOptions;
209
+ getOptions?: $requests.wix.api.GetItemMethodOptions;
210
+ updateOptions?: $requests.wix.api.UpdateMethodOptions;
211
+ deleteOptions?: $requests.wix.api.DeleteMethodOptions;
212
+ listOptions?: $requests.wix.api.ListMethodOptions;
213
+ queryOptions?: $requests.wix.api.QueryMethodOptions;
214
+ searchOptions?: $requests.wix.api.SearchMethodOptions;
215
+ bulkCreateOptions?: $requests.wix.api.BulkCreateMethodOptions;
216
+ bulkUpdateOptions?: $requests.wix.api.BulkUpdateMethodOptions;
217
+ bulkUpdateByFilterOptions?: $requests.wix.api.BulkUpdateByFilterMethodOptions;
218
+ bulkDeleteOptions?: $requests.wix.api.BulkDeleteMethodOptions;
219
+ bulkDeleteByFilterOptions?: $requests.wix.api.BulkDeleteByFilterMethodOptions;
220
+ upsertOptions?: $requests.wix.api.UpsertMethodOptions;
221
+ bulkUpsertOptions?: $requests.wix.api.BulkUpsertMethodOptions;
222
+ listDeletedOptions?: $requests.wix.api.ListDeletedMethodOptions;
223
+ getDeletedOptions?: $requests.wix.api.GetDeletedMethodOptions;
224
+ restoreFromTrashbinOptions?: $requests.wix.api.RestoreFromTrashbinMethodOptions;
225
+ removeFromTrashbinOptions?: $requests.wix.api.RemoveFromTrashbinMethodOptions;
226
+ countOptions?: $requests.wix.api.CountOptions;
227
+ searchRelatedOptions?: $requests.wix.api.SearchRelatedOptions;
228
+ updateExtendedFieldsOptions?: $requests.wix.api.UpdateExtendedFieldsOptions;
229
+ customActionOptions?: $requests.wix.api.CustomActionOptions;
230
+ bulkUpdateTagsOptions?: $requests.wix.api.BulkUpdateTagsMethodOptions;
231
+ bulkUpdateTagsByFilterOptions?: $requests.wix.api.BulkUpdateTagsByFilterMethodOptions;
232
+ }
233
+ export namespace Crud {
234
+ export enum Method {
235
+ UNKNOWN_METHOD = "UNKNOWN_METHOD",
236
+ CREATE = "CREATE",
237
+ GET_ITEM = "GET_ITEM",
238
+ UPDATE = "UPDATE",
239
+ DELETE = "DELETE",
240
+ UPSERT = "UPSERT",
241
+ LIST = "LIST",
242
+ QUERY = "QUERY",
243
+ SEARCH = "SEARCH",
244
+ BULK_CREATE = "BULK_CREATE",
245
+ BULK_UPDATE = "BULK_UPDATE",
246
+ BULK_UPDATE_BY_FILTER = "BULK_UPDATE_BY_FILTER",
247
+ BULK_DELETE = "BULK_DELETE",
248
+ BULK_DELETE_BY_FILTER = "BULK_DELETE_BY_FILTER",
249
+ BULK_UPSERT = "BULK_UPSERT",
250
+ LIST_DELETED = "LIST_DELETED",
251
+ GET_DELETED = "GET_DELETED",
252
+ RESTORE_FROM_TRASHBIN = "RESTORE_FROM_TRASHBIN",
253
+ REMOVE_FROM_TRASHBIN = "REMOVE_FROM_TRASHBIN",
254
+ COUNT = "COUNT",
255
+ SEARCH_RELATED = "SEARCH_RELATED",
256
+ UPDATE_EXTENDED_FIELDS = "UPDATE_EXTENDED_FIELDS",
257
+ BULK_UPDATE_TAGS = "BULK_UPDATE_TAGS",
258
+ BULK_UPDATE_TAGS_BY_FILTER = "BULK_UPDATE_TAGS_BY_FILTER",
259
+ CUSTOM_ACTION = "CUSTOM_ACTION",
260
+ }
261
+ }
262
+ export interface Paging {
263
+ type: $requests.wix.api.Paging.Type;
264
+ pagingMetadataField: string;
265
+ cursorPagingMetadataField: string;
266
+ offsetPagingMetadataField: string;
267
+ }
268
+ export namespace Paging {
269
+ export enum Type {
270
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
271
+ OFFSET = "OFFSET",
272
+ CURSOR = "CURSOR",
273
+ BOTH = "BOTH",
274
+ }
275
+ }
276
+ export interface CustomActionOptions {
277
+ readOperation: boolean;
278
+ wql?: $requests.wix.api.WqlOptions;
279
+ }
280
+ export interface WqlOptions {
281
+ queryOptionsName: string;
282
+ filterField?: string;
283
+ queryField?: string;
284
+ searchField?: string;
285
+ }
286
+ export interface CreateMethodOptions {
287
+ itemField: string;
288
+ }
289
+ export interface GetItemMethodOptions {
290
+ itemField: string;
291
+ idField: string;
292
+ }
293
+ export interface UpdateMethodOptions {
294
+ itemField: string;
295
+ fieldmaskField: string;
296
+ }
297
+ export interface UpsertMethodOptions {
298
+ itemField: string;
299
+ fieldmaskField: string;
300
+ }
301
+ export interface DeleteMethodOptions {
302
+ idField: string;
303
+ }
304
+ export interface ListMethodOptions {
305
+ idsField: string;
306
+ itemsField: string;
307
+ paging?: $requests.wix.api.Paging;
308
+ meAliasableField: string[];
309
+ }
310
+ export interface QueryMethodOptions {
311
+ queryField: string;
312
+ cursorQueryField: string;
313
+ offsetQueryField: string;
314
+ itemsField: string;
315
+ paging?: $requests.wix.api.Paging;
316
+ wql?: $requests.wix.api.Wql;
317
+ queryOptionsName?: string;
318
+ meAliasableField: string[];
319
+ }
320
+ export interface SearchMethodOptions {
321
+ searchField: string;
322
+ cursorSearchField: string;
323
+ offsetSearchField: string;
324
+ itemsField: string;
325
+ paging?: $requests.wix.api.Paging;
326
+ wql?: $requests.wix.api.Wql;
327
+ queryOptionsName?: string;
328
+ meAliasableField: string[];
329
+ search: $requests.wix.api.Search[];
330
+ }
331
+ export interface BulkCreateMethodOptions {
332
+ itemField: string;
333
+ }
334
+ export interface BulkUpdateMethodOptions {
335
+ itemsField: string;
336
+ itemField: string;
337
+ fieldmaskField: string;
338
+ }
339
+ export interface BulkUpdateByFilterMethodOptions {
340
+ itemField: string;
341
+ fieldmaskField: string;
342
+ filterField: string;
343
+ queryOptionsName: string;
344
+ }
345
+ export interface BulkUpdateTagsMethodOptions {
346
+ idsField: string;
347
+ }
348
+ export interface BulkUpdateTagsByFilterMethodOptions {
349
+ filterField: string;
350
+ queryOptionsName: string;
351
+ }
352
+ export interface BulkUpsertMethodOptions {
353
+ itemField: string;
354
+ fieldmaskField: string;
355
+ }
356
+ export interface BulkDeleteMethodOptions {
357
+ idsField: string;
358
+ }
359
+ export interface BulkDeleteByFilterMethodOptions {
360
+ filterField: string;
361
+ queryOptionsName: string;
362
+ }
363
+ export interface ListDeletedMethodOptions {
364
+ idsField: string;
365
+ itemsField: string;
366
+ paging?: $requests.wix.api.Paging;
367
+ meAliasableField: string[];
368
+ }
369
+ export interface GetDeletedMethodOptions {
370
+ itemField: string;
371
+ idField: string;
372
+ }
373
+ export interface RestoreFromTrashbinMethodOptions {
374
+ itemField: string;
375
+ idField: string;
376
+ }
377
+ export interface RemoveFromTrashbinMethodOptions {
378
+ idField: string;
379
+ }
380
+ export interface CountOptions {
381
+ inheritWqlFrom?: string;
382
+ queryOptionsName?: string;
383
+ filterField: string;
384
+ countField: string;
385
+ }
386
+ export interface SearchRelatedOptions {
387
+ inheritWqlFrom?: string;
388
+ queryOptionsName?: string;
389
+ }
390
+ export interface UpdateExtendedFieldsOptions {
391
+ itemField: string;
392
+ }
393
+ export interface Wql {
394
+ operatorFieldSupport: $requests.wix.api.Wql.OperatorFieldSupport[];
395
+ pattern: $requests.wix.api.Wql.OperatorFieldSupport[];
396
+ validateQuery: boolean;
397
+ }
398
+ export namespace Wql {
399
+ export enum Operator {
400
+ ALL_APPLICABLE_OPERATORS = "ALL_APPLICABLE_OPERATORS",
401
+ EQ = "EQ",
402
+ GT = "GT",
403
+ GTE = "GTE",
404
+ IN = "IN",
405
+ LT = "LT",
406
+ LTE = "LTE",
407
+ NE = "NE",
408
+ NIN = "NIN",
409
+ BEGINS = "BEGINS",
410
+ EXISTS = "EXISTS",
411
+ HAS_ALL = "HAS_ALL",
412
+ ALL = "ALL",
413
+ HAS_SOME = "HAS_SOME",
414
+ ANY = "ANY",
415
+ EMPTY = "EMPTY",
416
+ MATCH_ALL = "MATCH_ALL",
417
+ MATCH_ITEMS = "MATCH_ITEMS",
418
+ ENHANCED_DATE = "ENHANCED_DATE",
419
+ }
420
+ export enum Sort {
421
+ NONE = "NONE",
422
+ ASC = "ASC",
423
+ DESC = "DESC",
424
+ BOTH = "BOTH",
425
+ }
426
+ export interface RequiredFields {
427
+ field: string[];
428
+ requiredField: $requests.wix.api.Wql.RequiredFields.RequiredField[];
429
+ }
430
+ export namespace RequiredFields {
431
+ export interface RequiredField {
432
+ path: string;
433
+ sort: $requests.wix.api.Wql.Sort;
434
+ }
435
+ }
436
+ export enum VirtualSubfields {
437
+ NO_VIRTUAL_SUBFIELDS = "NO_VIRTUAL_SUBFIELDS",
438
+ DATE = "DATE",
439
+ EMAIL = "EMAIL",
440
+ }
441
+ export interface OperatorFieldSupport {
442
+ operator: $requests.wix.api.Wql.Operator[];
443
+ glob: string;
444
+ field: string[];
445
+ sort: $requests.wix.api.Wql.Sort;
446
+ requiredFields: $requests.wix.api.Wql.RequiredFields[];
447
+ maturity: $requests.wix.api.Maturity;
448
+ virtualSubfields: $requests.wix.api.Wql.VirtualSubfields;
449
+ }
450
+ }
451
+ export interface Search {
452
+ field: string[];
453
+ maturity: $requests.wix.api.Maturity;
454
+ }
455
+ export interface Translatable {
456
+ name: string;
457
+ hidden: boolean;
458
+ grouping: string;
459
+ type: $requests.wix.api.Translatable.Type;
460
+ displayOnly: boolean;
461
+ }
462
+ export namespace Translatable {
463
+ export enum Type {
464
+ UNDEFINED_TYPE = "UNDEFINED_TYPE",
465
+ SHORT_TEXT = "SHORT_TEXT",
466
+ LONG_TEXT = "LONG_TEXT",
467
+ RICH_TEXT = "RICH_TEXT",
468
+ RICH_CONTENT_EDITOR = "RICH_CONTENT_EDITOR",
469
+ SELECTION = "SELECTION",
470
+ MULTI_SELECTION = "MULTI_SELECTION",
471
+ DOCUMENT = "DOCUMENT",
472
+ IMAGE = "IMAGE",
473
+ VIDEO = "VIDEO",
474
+ IMAGE_LINK = "IMAGE_LINK",
475
+ }
476
+ }
477
+ export interface Conditional {
478
+ permission: string;
479
+ requestedField: string;
480
+ }
481
+ export interface ServiceAppendix {
482
+ type: $requests.wix.api.ServiceAppendix.Type;
483
+ path: string;
484
+ }
485
+ export namespace ServiceAppendix {
486
+ export enum Type {
487
+ UNKNOWN_APPENDIX_TYPE = "UNKNOWN_APPENDIX_TYPE",
488
+ NILE = "NILE",
489
+ MESSAGE_BUS = "MESSAGE_BUS",
490
+ }
491
+ }
492
+ export enum Exposure {
493
+ PRIVATE = "PRIVATE",
494
+ INTERNAL = "INTERNAL",
495
+ PUBLIC = "PUBLIC",
496
+ }
497
+ export enum Maturity {
498
+ ALPHA = "ALPHA",
499
+ BETA = "BETA",
500
+ IA = "IA",
501
+ GA = "GA",
502
+ NOT_IMPLEMENTED = "NOT_IMPLEMENTED",
503
+ }
504
+ /**
505
+ * ApplicationError: named Error for backwards compatibility
506
+ */
507
+ export interface Error {
508
+ httpCode: $requests.wix.api.StatusCodes.HttpStatusCode;
509
+ applicationCode: string;
510
+ data: string;
511
+ }
512
+ /**
513
+ * Method-level reference to a service-level error.
514
+ */
515
+ export interface ErrorRef {
516
+ applicationCode: string;
517
+ }
518
+ /**
519
+ * CustomValidationError: field level validation, only declare when you have specific validation in your service that is not coming from infra
520
+ */
521
+ export interface CustomValidationError {
522
+ ruleName: string;
523
+ data: string;
524
+ }
525
+ /**
526
+ * InheritCrudErrors: does this method throw standard crud errors?
527
+ */
528
+ export interface InheritCrudErrors {
529
+ method: $requests.wix.api.Crud.Method;
530
+ }
531
+ export interface StatusCodes {
532
+ }
533
+ export namespace StatusCodes {
534
+ export enum HttpStatusCode {
535
+ OK = "OK",
536
+ UNAUTHENTICATED = "UNAUTHENTICATED",
537
+ PERMISSION_DENIED = "PERMISSION_DENIED",
538
+ INVALID_ARGUMENT = "INVALID_ARGUMENT",
539
+ NOT_FOUND = "NOT_FOUND",
540
+ INTERNAL = "INTERNAL",
541
+ UNAVAILABLE = "UNAVAILABLE",
542
+ RESOURCE_EXHAUSTED = "RESOURCE_EXHAUSTED",
543
+ CANCELED = "CANCELED",
544
+ ALREADY_EXISTS = "ALREADY_EXISTS",
545
+ FAILED_PRECONDITION = "FAILED_PRECONDITION",
546
+ }
547
+ }
548
+ export interface PermissionRule {
549
+ name: string;
550
+ type: $requests.wix.api.PermissionType;
551
+ abacRequestValidation: $requests.wix.api.AbacRequestValidationMode;
552
+ }
553
+ export enum PermissionType {
554
+ AUTO = "AUTO",
555
+ MANUAL = "MANUAL",
556
+ }
557
+ export enum AbacRequestValidationMode {
558
+ ON = "ON",
559
+ OFF = "OFF",
560
+ }
561
+ /**
562
+ * Decimal value validation rules.
563
+ * Based on java.math.BigDecimal, implies (wix.api.format) = DECIMAL_VALUE
564
+ */
565
+ export interface DecimalValueOptions {
566
+ lte: string;
567
+ gte: string;
568
+ lt: string;
569
+ gt: string;
570
+ maxScale: number;
571
+ }
572
+ export interface AlignedWithEnum {
573
+ field: string;
574
+ suffix: string;
575
+ }
576
+ export enum Format {
577
+ EMAIL = "EMAIL",
578
+ HOSTNAME = "HOSTNAME",
579
+ IPV4 = "IPV4",
580
+ IPV6 = "IPV6",
581
+ URI = "URI",
582
+ WEB_URL = "WEB_URL",
583
+ PHONE = "PHONE",
584
+ CREDIT_CARD = "CREDIT_CARD",
585
+ GUID = "GUID",
586
+ COUNTRY = "COUNTRY",
587
+ LANGUAGE = "LANGUAGE",
588
+ DECIMAL_VALUE = "DECIMAL_VALUE",
589
+ CURRENCY = "CURRENCY",
590
+ LANGUAGE_TAG = "LANGUAGE_TAG",
591
+ COLOR_HEX = "COLOR_HEX",
592
+ LOCAL_DATE = "LOCAL_DATE",
593
+ LOCAL_TIME = "LOCAL_TIME",
594
+ LOCAL_DATE_TIME = "LOCAL_DATE_TIME",
595
+ URL_SLUG = "URL_SLUG",
596
+ SYSTEM_SLUG = "SYSTEM_SLUG",
597
+ SECURE_WEB_URL = "SECURE_WEB_URL",
598
+ SUBDIVISION = "SUBDIVISION",
599
+ }
600
+ export interface ServiceEntity {
601
+ message: string;
602
+ namespace: string;
603
+ }
604
+ export interface Entity {
605
+ fqdn: string;
606
+ exposure: $requests.wix.api.Exposure;
607
+ appendixFiles: $requests.wix.api.MessageAppendix[];
608
+ oldFqdnForBackwardsCompatibility: string;
609
+ segment: $requests.wix.api.Segment.SegmentName;
610
+ implements: string[];
611
+ extensible?: $requests.wix.api.Extensible;
612
+ trashbin: boolean;
613
+ plural: string;
614
+ domainEventsReadPermission: string;
615
+ appDefId: string;
616
+ domainEvents?: $requests.wix.api.DomainEventOptions;
617
+ taggable?: $requests.wix.api.Taggable;
618
+ queryOptions?: $requests.wix.api.QueryOptions;
619
+ eventsExposure: $requests.wix.api.Exposure;
620
+ eventsMaturity: $requests.wix.api.Maturity;
621
+ persistence?: $requests.wix.api.Persistence;
622
+ permissionOptions?: $requests.wix.api.PermissionCatalogOptions;
623
+ }
624
+ export interface PermissionCatalogOptions {
625
+ autoGeneratePermissions: boolean;
626
+ autoGenerateScopes: boolean;
627
+ }
628
+ export interface Persistence {
629
+ type: $requests.wix.api.Persistence.Type;
630
+ }
631
+ export namespace Persistence {
632
+ export enum Type {
633
+ STANDARD = "STANDARD",
634
+ SINGLETON = "SINGLETON",
635
+ NONE = "NONE",
636
+ }
637
+ }
638
+ export interface Extensible {
639
+ nestedExtensionFieldPath: string;
640
+ filterable: boolean;
641
+ nestedExtensionPointMappings: $requests.wix.api.NestedExtensionPointMapping[];
642
+ }
643
+ export interface NestedExtensionPointMapping {
644
+ extensionPoint: string;
645
+ path: string;
646
+ }
647
+ export interface MessageAppendix {
648
+ type: $requests.wix.api.MessageAppendix.Type;
649
+ path: string;
650
+ }
651
+ export namespace MessageAppendix {
652
+ export enum Type {
653
+ UNKNOWN_APPENDIX_TYPE = "UNKNOWN_APPENDIX_TYPE",
654
+ AUTO_VELO = "AUTO_VELO",
655
+ DOCS_CONF = "DOCS_CONF",
656
+ MULTILINGUAL = "MULTILINGUAL",
657
+ SEARCH = "SEARCH",
658
+ AUTO_SDK = "AUTO_SDK",
659
+ }
660
+ }
661
+ export interface DomainEventOptions {
662
+ eventSequenceNumber: boolean;
663
+ deletedIncludeEntity: boolean;
664
+ updatedIncludeModifiedFields: boolean;
665
+ }
666
+ export interface Taggable {
667
+ }
668
+ export interface QueryOptions {
669
+ wql?: $requests.wix.api.Wql;
670
+ search: $requests.wix.api.Search[];
671
+ additionalQueryOptions: $requests.wix.api.NamedQueryOptions[];
672
+ }
673
+ export interface NamedQueryOptions {
674
+ name: string;
675
+ wql?: $requests.wix.api.Wql;
676
+ search: $requests.wix.api.Search[];
677
+ }
678
+ export interface Callback {
679
+ topic: string;
680
+ segment: $requests.wix.api.Segment.SegmentName;
681
+ payload: string;
682
+ permission: string;
683
+ eventType: $requests.wix.api.Callback.EventType;
684
+ exposure: $requests.wix.api.Exposure;
685
+ maturity: $requests.wix.api.Maturity;
686
+ }
687
+ export namespace Callback {
688
+ export enum EventType {
689
+ UNKNOWN = "UNKNOWN",
690
+ CREATED = "CREATED",
691
+ UPDATED = "UPDATED",
692
+ DELETED = "DELETED",
693
+ ACTION = "ACTION",
694
+ }
695
+ }
696
+ export interface DomainEvent {
697
+ actionMessageFqn: string;
698
+ webhookPermissionOverride: string;
699
+ eventType: $requests.wix.api.DomainEvent.EventType;
700
+ exposure: $requests.wix.api.Exposure;
701
+ maturity: $requests.wix.api.Maturity;
702
+ additionalMetadataFqn: string;
703
+ deprecated?: $requests.wix.api.DomainEventDeprecation;
704
+ }
705
+ export namespace DomainEvent {
706
+ export enum EventType {
707
+ UNKNOWN = "UNKNOWN",
708
+ CREATED = "CREATED",
709
+ UPDATED = "UPDATED",
710
+ DELETED = "DELETED",
711
+ ACTION = "ACTION",
712
+ }
713
+ }
714
+ export interface Emits {
715
+ eventType: $requests.wix.api.DomainEvent.EventType;
716
+ actionMessageFqn: string;
717
+ }
718
+ export interface DomainEventDeprecation {
719
+ replacedBy: string;
720
+ targetRemovalDate: string;
721
+ }
722
+ export interface CallbackDeprecation {
723
+ replacedBy: string;
724
+ targetRemovalDate: string;
725
+ eventType: $requests.wix.api.Callback.EventType;
726
+ customSlug: string;
727
+ payload: string;
728
+ }
729
+ export interface Segment {
730
+ }
731
+ export namespace Segment {
732
+ /**
733
+ * [Segment] annotation registers to Confluent clusters.
734
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
735
+ * However, new topics must provide a segment, or greyhound will throw an exception.
736
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
737
+ */
738
+ export enum SegmentName {
739
+ UNSPECIFIED = "UNSPECIFIED",
740
+ USERS = "USERS",
741
+ PUBLIC = "PUBLIC",
742
+ OTHERS = "OTHERS",
743
+ }
744
+ }
745
+ }
746
+ export namespace velo {
747
+ export namespace dispatcher {
748
+ export namespace v1 {
749
+ export interface InvokeFunctionRequest {
750
+ modulePath: string;
751
+ functionName: string;
752
+ arguments: $requests.wix.velo.dispatcher.v1.ElementoryValue[];
753
+ }
754
+ export interface InvokeFunctionResponse {
755
+ result?: $requests.wix.velo.dispatcher.v1.InvokeResult;
756
+ }
757
+ export interface InvokePubFunctionsBulkRequest {
758
+ invokeFunctionRequests: $requests.wix.velo.dispatcher.v1.InvokeFunctionRequest[];
759
+ }
760
+ export interface InvokeFunctionsBulkResponse {
761
+ results: $requests.wix.velo.dispatcher.v1.InvokeResult[];
762
+ }
763
+ export interface InvokeResult {
764
+ successValue?: $requests.wix.velo.dispatcher.v1.ElementorySuccessValue;
765
+ errorValue?: $requests.wix.velo.dispatcher.v1.ElementoryValue;
766
+ }
767
+ export interface InvokeDevFunctionRequest {
768
+ modulePath: string;
769
+ functionName: string;
770
+ gridAppId: string;
771
+ arguments: $requests.wix.velo.dispatcher.v1.ElementoryValue[];
772
+ }
773
+ export interface InvokeDevFunctionsBulkRequest {
774
+ gridAppId: string;
775
+ invokeFunctionRequests: $requests.wix.velo.dispatcher.v1.InvokeFunctionRequest[];
776
+ }
777
+ export interface ElementorySuccessValue {
778
+ value?: any;
779
+ }
780
+ export interface ElementoryValue {
781
+ value?: any;
782
+ error?: $requests.wix.velo.dispatcher.v1.ElementoryError;
783
+ }
784
+ export interface ElementoryError {
785
+ message: string;
786
+ name: string;
787
+ code?: string;
788
+ }
789
+ export interface InvokeSpiRequest {
790
+ modulePath: string;
791
+ functionName: string;
792
+ argument?: { [key: string]: any };
793
+ spiType: string;
794
+ spiIdentifier: string;
795
+ }
796
+ export interface InvokeSpiResponse {
797
+ successResult?: $requests.wix.velo.dispatcher.v1.SpiSuccess;
798
+ errorResult?: $requests.wix.velo.dispatcher.v1.SpiError;
799
+ }
800
+ export interface SpiSuccess {
801
+ result?: { [key: string]: any };
802
+ }
803
+ export interface SpiError {
804
+ httpCode: $requests.wix.spi.HttpStatusCode;
805
+ applicationError: string;
806
+ errorDescription: string;
807
+ data?: { [key: string]: any };
808
+ message: string;
809
+ applicationCode: string;
810
+ }
811
+ export interface GetModuleMetadataRequest {
812
+ modulePath: string;
813
+ gridAppId: string;
814
+ }
815
+ export interface GetModuleMetadataResponse {
816
+ functionDefinitions: $requests.wix.velo.apps.analysis.v1.FunctionDefinition[];
817
+ }
818
+ export interface FunctionNotFoundError {
819
+ modulePath: string;
820
+ functionName: string;
821
+ }
822
+ export interface PluginNotFoundErrorData {
823
+ pluginName: string;
824
+ }
825
+ export interface RunDevPluginRequest {
826
+ pluginName: string;
827
+ args?: { [key: string]: any };
828
+ gridAppId: string;
829
+ }
830
+ export interface RunPubPluginRequest {
831
+ pluginName: string;
832
+ args?: { [key: string]: any };
833
+ }
834
+ export interface RunPluginResponse {
835
+ successValue?: any;
836
+ errorValue?: $requests.wix.velo.dispatcher.v1.ElementoryValue;
837
+ }
838
+ export interface PageRole {
839
+ id: string;
840
+ title: string;
841
+ }
842
+ export interface RouterConfig {
843
+ routerFunctionName: string;
844
+ siteMapFunctionName: string;
845
+ }
846
+ export interface RouterSpec {
847
+ prefix: string;
848
+ config?: $requests.wix.velo.dispatcher.v1.RouterConfig;
849
+ pageRoles?: { [k: string]: $requests.wix.velo.dispatcher.v1.PageRole };
850
+ }
851
+ export interface ChangeFrequencyEnum {
852
+ }
853
+ export namespace ChangeFrequencyEnum {
854
+ export enum ChangeFrequency {
855
+ UNKNOWN = "UNKNOWN",
856
+ ALWAYS = "ALWAYS",
857
+ HOURLY = "HOURLY",
858
+ DAILY = "DAILY",
859
+ WEEKLY = "WEEKLY",
860
+ MONTHLY = "MONTHLY",
861
+ YEARLY = "YEARLY",
862
+ NEVER = "NEVER",
863
+ }
864
+ }
865
+ export interface InvokeVsCodeRequest {
866
+ invocationType: $requests.wix.velo.dispatcher.v1.InvocationType;
867
+ path: string;
868
+ gridAppId: string;
869
+ payload?: { [key: string]: any };
870
+ httpRequestMethod: $requests.wix.velo.dispatcher.v1.HttpRequestMethod;
871
+ }
872
+ export interface InvokeVsCodeResponse {
873
+ response?: { [key: string]: any };
874
+ httpResponseStatus: number;
875
+ }
876
+ export enum InvocationType {
877
+ EXECUTE = "EXECUTE",
878
+ NOTIFY = "NOTIFY",
879
+ }
880
+ export enum HttpRequestMethod {
881
+ GET = "GET",
882
+ POST = "POST",
883
+ }
884
+ export enum ElementoryErrorCode {
885
+ UNKNOWN = "UNKNOWN",
886
+ PERMISSION_DENIED = "PERMISSION_DENIED",
887
+ EXECUTION_TIMEOUT = "EXECUTION_TIMEOUT",
888
+ MODULE_LOAD_ERROR = "MODULE_LOAD_ERROR",
889
+ MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
890
+ FUNCTION_NOT_FOUND = "FUNCTION_NOT_FOUND",
891
+ }
892
+ }
893
+ }
894
+ export namespace apps {
895
+ export namespace analysis {
896
+ export namespace v1 {
897
+ export interface FunctionDefinition {
898
+ functionName: string;
899
+ numOfArguments: number;
900
+ }
901
+ }
902
+ }
903
+ }
904
+ }
905
+ export namespace spi {
906
+ export enum HttpStatusCode {
907
+ UNKNOWN_ERROR = "UNKNOWN_ERROR",
908
+ UNAUTHENTICATED = "UNAUTHENTICATED",
909
+ INVALID_ARGUMENT = "INVALID_ARGUMENT",
910
+ INTERNAL = "INTERNAL",
911
+ RESOURCE_EXHAUSTED = "RESOURCE_EXHAUSTED",
912
+ CANCELED = "CANCELED",
913
+ NOT_FOUND = "NOT_FOUND",
914
+ ALREADY_EXISTS = "ALREADY_EXISTS",
915
+ FAILED_PRECONDITION = "FAILED_PRECONDITION",
916
+ }
917
+ }
918
+ export namespace common {
919
+ export interface Image {
920
+ id: string;
921
+ url: string;
922
+ height: number;
923
+ width: number;
924
+ altText?: string;
925
+ urlExpirationDate?: Date;
926
+ filename?: string;
927
+ sizeInBytes?: string;
928
+ focalPoint?: $requests.wix.common.FocalPoint;
929
+ }
930
+ export interface Video {
931
+ id: string;
932
+ url: string;
933
+ height: number;
934
+ width: number;
935
+ thumbnail?: $requests.wix.common.Image;
936
+ }
937
+ export interface VideoV2 {
938
+ id: string;
939
+ url: string;
940
+ resolutions: $requests.wix.common.VideoResolution[];
941
+ filename?: string;
942
+ posters: $requests.wix.common.Image[];
943
+ sizeInBytes?: string;
944
+ urlExpirationDate?: Date;
945
+ durationInMilliseconds?: number;
946
+ title?: string;
947
+ description?: string;
948
+ height?: number;
949
+ width?: number;
950
+ }
951
+ export interface VideoResolution {
952
+ url: string;
953
+ height: number;
954
+ width: number;
955
+ poster?: $requests.wix.common.Image;
956
+ format: string;
957
+ urlExpirationDate?: Date;
958
+ sizeInBytes?: string;
959
+ quality?: string;
960
+ filename?: string;
961
+ durationInSeconds?: number;
962
+ durationInMilliseconds?: number;
963
+ private?: boolean;
964
+ assetKey?: string;
965
+ }
966
+ export interface Audio {
967
+ id: string;
968
+ url: string;
969
+ urlExpirationDate?: Date;
970
+ sizeInBytes?: string;
971
+ filename?: string;
972
+ duration?: number;
973
+ private?: boolean;
974
+ assetKey?: string;
975
+ format?: string;
976
+ quality?: string;
977
+ }
978
+ export interface Document {
979
+ id: string;
980
+ url: string;
981
+ urlExpirationDate?: Date;
982
+ sizeInBytes?: string;
983
+ filename?: string;
984
+ thumbnail?: $requests.wix.common.Image;
985
+ }
986
+ export interface Model3D {
987
+ id: string;
988
+ url: string;
989
+ thumbnail?: $requests.wix.common.Image;
990
+ altText?: string;
991
+ urlExpirationDate?: Date;
992
+ filename?: string;
993
+ sizeInBytes?: string;
994
+ }
995
+ export interface Archive {
996
+ id: string;
997
+ url: string;
998
+ urlExpirationDate?: Date;
999
+ sizeInBytes?: string;
1000
+ filename?: string;
1001
+ }
1002
+ export interface MediaItem {
1003
+ image?: $requests.wix.common.Image;
1004
+ video?: $requests.wix.common.Video;
1005
+ document?: $requests.wix.common.Document;
1006
+ }
1007
+ export interface FocalPoint {
1008
+ x: number;
1009
+ y: number;
1010
+ height?: number;
1011
+ width?: number;
1012
+ }
1013
+ export interface Paging {
1014
+ limit?: number;
1015
+ offset?: number;
1016
+ }
1017
+ export interface CursorPaging {
1018
+ limit?: number;
1019
+ cursor?: string;
1020
+ }
1021
+ export interface PagingMetadata {
1022
+ count?: number;
1023
+ offset?: number;
1024
+ total?: number;
1025
+ tooManyToCount?: boolean;
1026
+ hasNext?: boolean;
1027
+ }
1028
+ export interface PagingMetadataV2 {
1029
+ count?: number;
1030
+ offset?: number;
1031
+ total?: number;
1032
+ tooManyToCount?: boolean;
1033
+ cursors?: $requests.wix.common.Cursors;
1034
+ hasNext?: boolean;
1035
+ }
1036
+ export interface CursorPagingMetadata {
1037
+ count?: number;
1038
+ cursors?: $requests.wix.common.Cursors;
1039
+ hasNext?: boolean;
1040
+ total?: number;
1041
+ }
1042
+ export interface Cursors {
1043
+ next?: string;
1044
+ prev?: string;
1045
+ }
1046
+ }
1047
+ }
1048
+ export namespace google {
1049
+ export namespace api {
1050
+ export interface Http {
1051
+ rules: $requests.google.api.HttpRule[];
1052
+ }
1053
+ export interface HttpRule {
1054
+ selector: string;
1055
+ get?: string;
1056
+ put?: string;
1057
+ post?: string;
1058
+ delete?: string;
1059
+ patch?: string;
1060
+ custom?: $requests.google.api.CustomHttpPattern;
1061
+ body: string;
1062
+ additionalBindings: $requests.google.api.HttpRule[];
1063
+ }
1064
+ export interface CustomHttpPattern {
1065
+ kind: string;
1066
+ path: string;
1067
+ }
1068
+ }
1069
+ export namespace protobuf {
1070
+ export interface FileDescriptorSet {
1071
+ file: $requests.google.protobuf.FileDescriptorProto[];
1072
+ }
1073
+ export interface FileDescriptorProto {
1074
+ name: string;
1075
+ package: string;
1076
+ dependency: string[];
1077
+ publicDependency: number[];
1078
+ weakDependency: number[];
1079
+ messageType: $requests.google.protobuf.DescriptorProto[];
1080
+ enumType: $requests.google.protobuf.EnumDescriptorProto[];
1081
+ service: $requests.google.protobuf.ServiceDescriptorProto[];
1082
+ extension: $requests.google.protobuf.FieldDescriptorProto[];
1083
+ options?: $requests.google.protobuf.FileOptions;
1084
+ sourceCodeInfo?: $requests.google.protobuf.SourceCodeInfo;
1085
+ syntax: string;
1086
+ }
1087
+ export interface DescriptorProto {
1088
+ name: string;
1089
+ field: $requests.google.protobuf.FieldDescriptorProto[];
1090
+ extension: $requests.google.protobuf.FieldDescriptorProto[];
1091
+ nestedType: $requests.google.protobuf.DescriptorProto[];
1092
+ enumType: $requests.google.protobuf.EnumDescriptorProto[];
1093
+ extensionRange: $requests.google.protobuf.DescriptorProto.ExtensionRange[];
1094
+ oneofDecl: $requests.google.protobuf.OneofDescriptorProto[];
1095
+ options?: $requests.google.protobuf.MessageOptions;
1096
+ reservedRange: $requests.google.protobuf.DescriptorProto.ReservedRange[];
1097
+ reservedName: string[];
1098
+ }
1099
+ export namespace DescriptorProto {
1100
+ export interface ExtensionRange {
1101
+ start: number;
1102
+ end: number;
1103
+ options?: $requests.google.protobuf.ExtensionRangeOptions;
1104
+ }
1105
+ export interface ReservedRange {
1106
+ start: number;
1107
+ end: number;
1108
+ }
1109
+ }
1110
+ export interface ExtensionRangeOptions {
1111
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1112
+ }
1113
+ export interface FieldDescriptorProto {
1114
+ name: string;
1115
+ number: number;
1116
+ label: $requests.google.protobuf.FieldDescriptorProto.Label;
1117
+ type: $requests.google.protobuf.FieldDescriptorProto.Type;
1118
+ typeName: string;
1119
+ extendee: string;
1120
+ defaultValue: string;
1121
+ oneofIndex: number;
1122
+ jsonName: string;
1123
+ options?: $requests.google.protobuf.FieldOptions;
1124
+ proto3Optional: boolean;
1125
+ }
1126
+ export namespace FieldDescriptorProto {
1127
+ export enum Type {
1128
+ TYPE_DOUBLE = "TYPE_DOUBLE",
1129
+ TYPE_FLOAT = "TYPE_FLOAT",
1130
+ TYPE_INT64 = "TYPE_INT64",
1131
+ TYPE_UINT64 = "TYPE_UINT64",
1132
+ TYPE_INT32 = "TYPE_INT32",
1133
+ TYPE_FIXED64 = "TYPE_FIXED64",
1134
+ TYPE_FIXED32 = "TYPE_FIXED32",
1135
+ TYPE_BOOL = "TYPE_BOOL",
1136
+ TYPE_STRING = "TYPE_STRING",
1137
+ TYPE_GROUP = "TYPE_GROUP",
1138
+ TYPE_MESSAGE = "TYPE_MESSAGE",
1139
+ TYPE_BYTES = "TYPE_BYTES",
1140
+ TYPE_UINT32 = "TYPE_UINT32",
1141
+ TYPE_ENUM = "TYPE_ENUM",
1142
+ TYPE_SFIXED32 = "TYPE_SFIXED32",
1143
+ TYPE_SFIXED64 = "TYPE_SFIXED64",
1144
+ TYPE_SINT32 = "TYPE_SINT32",
1145
+ TYPE_SINT64 = "TYPE_SINT64",
1146
+ }
1147
+ export enum Label {
1148
+ LABEL_OPTIONAL = "LABEL_OPTIONAL",
1149
+ LABEL_REQUIRED = "LABEL_REQUIRED",
1150
+ LABEL_REPEATED = "LABEL_REPEATED",
1151
+ }
1152
+ }
1153
+ export interface OneofDescriptorProto {
1154
+ name: string;
1155
+ options?: $requests.google.protobuf.OneofOptions;
1156
+ }
1157
+ export interface EnumDescriptorProto {
1158
+ name: string;
1159
+ value: $requests.google.protobuf.EnumValueDescriptorProto[];
1160
+ options?: $requests.google.protobuf.EnumOptions;
1161
+ reservedRange: $requests.google.protobuf.EnumDescriptorProto.EnumReservedRange[];
1162
+ reservedName: string[];
1163
+ }
1164
+ export namespace EnumDescriptorProto {
1165
+ export interface EnumReservedRange {
1166
+ start: number;
1167
+ end: number;
1168
+ }
1169
+ }
1170
+ export interface EnumValueDescriptorProto {
1171
+ name: string;
1172
+ number: number;
1173
+ options?: $requests.google.protobuf.EnumValueOptions;
1174
+ }
1175
+ export interface ServiceDescriptorProto {
1176
+ name: string;
1177
+ method: $requests.google.protobuf.MethodDescriptorProto[];
1178
+ options?: $requests.google.protobuf.ServiceOptions;
1179
+ }
1180
+ export interface MethodDescriptorProto {
1181
+ name: string;
1182
+ inputType: string;
1183
+ outputType: string;
1184
+ options?: $requests.google.protobuf.MethodOptions;
1185
+ clientStreaming: boolean;
1186
+ serverStreaming: boolean;
1187
+ }
1188
+ export interface FileOptions {
1189
+ javaPackage: string;
1190
+ javaOuterClassname: string;
1191
+ javaMultipleFiles: boolean;
1192
+ javaGenerateEqualsAndHash: boolean;
1193
+ javaStringCheckUtf8: boolean;
1194
+ optimizeFor: $requests.google.protobuf.FileOptions.OptimizeMode;
1195
+ goPackage: string;
1196
+ ccGenericServices: boolean;
1197
+ javaGenericServices: boolean;
1198
+ pyGenericServices: boolean;
1199
+ phpGenericServices: boolean;
1200
+ deprecated: boolean;
1201
+ ccEnableArenas: boolean;
1202
+ objcClassPrefix: string;
1203
+ csharpNamespace: string;
1204
+ swiftPrefix: string;
1205
+ phpClassPrefix: string;
1206
+ phpNamespace: string;
1207
+ phpMetadataNamespace: string;
1208
+ rubyPackage: string;
1209
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1210
+ }
1211
+ export namespace FileOptions {
1212
+ export enum OptimizeMode {
1213
+ SPEED = "SPEED",
1214
+ CODE_SIZE = "CODE_SIZE",
1215
+ LITE_RUNTIME = "LITE_RUNTIME",
1216
+ }
1217
+ }
1218
+ export interface MessageOptions {
1219
+ messageSetWireFormat: boolean;
1220
+ noStandardDescriptorAccessor: boolean;
1221
+ deprecated: boolean;
1222
+ mapEntry: boolean;
1223
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1224
+ '.wix.api.decompositeOf': string;
1225
+ '.wix.api.decompositionMinimumFields': $requests.wix.api.FieldSet[];
1226
+ '.wix.api.unwrapArrayValue': boolean;
1227
+ '.wix.api.messageDeprecated'?: $requests.wix.api.Deprecated;
1228
+ '.wix.api.unique': $requests.wix.api.Unique[];
1229
+ '.wix.api.entity'?: $requests.wix.api.Entity;
1230
+ '.wix.api.domainEvent': $requests.wix.api.DomainEvent[];
1231
+ }
1232
+ export interface FieldOptions {
1233
+ ctype: $requests.google.protobuf.FieldOptions.CType;
1234
+ packed: boolean;
1235
+ jstype: $requests.google.protobuf.FieldOptions.JSType;
1236
+ lazy: boolean;
1237
+ deprecated: boolean;
1238
+ weak: boolean;
1239
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1240
+ '.wix.api.fieldExposure': $requests.wix.api.Exposure;
1241
+ '.wix.api.fieldMaturity': $requests.wix.api.Maturity;
1242
+ '.wix.api.pii': boolean;
1243
+ '.wix.api.referencedEntity': string;
1244
+ '.wix.api.referencedEntityField'?: $requests.wix.api.ReferenceEntityField;
1245
+ '.wix.api.fieldDeprecated'?: $requests.wix.api.Deprecated;
1246
+ '.wix.api.translatable'?: $requests.wix.api.Translatable;
1247
+ '.wix.api.sampleData': string;
1248
+ '.wix.api.conditional'?: $requests.wix.api.Conditional;
1249
+ '.wix.api.nullable': boolean;
1250
+ '.wix.api.max': number;
1251
+ '.wix.api.min': number;
1252
+ '.wix.api.maxLength': number;
1253
+ '.wix.api.minLength': number;
1254
+ '.wix.api.exactLength': number;
1255
+ '.wix.api.maxSize': number;
1256
+ '.wix.api.minSize': number;
1257
+ '.wix.api.exactSize': number;
1258
+ '.wix.api.format': $requests.wix.api.Format;
1259
+ '.wix.api.readOnly': boolean;
1260
+ '.wix.api.immutable': boolean;
1261
+ '.wix.api.writeOnly': boolean;
1262
+ '.wix.api.decimalValue'?: $requests.wix.api.DecimalValueOptions;
1263
+ '.wix.api.customValidation'?: $requests.wix.api.CustomValidationError;
1264
+ }
1265
+ export namespace FieldOptions {
1266
+ export enum CType {
1267
+ STRING = "STRING",
1268
+ CORD = "CORD",
1269
+ STRING_PIECE = "STRING_PIECE",
1270
+ }
1271
+ export enum JSType {
1272
+ JS_NORMAL = "JS_NORMAL",
1273
+ JS_STRING = "JS_STRING",
1274
+ JS_NUMBER = "JS_NUMBER",
1275
+ }
1276
+ }
1277
+ export interface OneofOptions {
1278
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1279
+ '.wix.api.alignedWithEnum'?: $requests.wix.api.AlignedWithEnum;
1280
+ }
1281
+ export interface EnumOptions {
1282
+ allowAlias: boolean;
1283
+ deprecated: boolean;
1284
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1285
+ }
1286
+ export interface EnumValueOptions {
1287
+ deprecated: boolean;
1288
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1289
+ '.wix.api.enumMaturity': $requests.wix.api.Maturity;
1290
+ '.wix.api.enumExposure': $requests.wix.api.Exposure;
1291
+ }
1292
+ export interface ServiceOptions {
1293
+ deprecated: boolean;
1294
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1295
+ '.wix.api.serviceMaturity': $requests.wix.api.Maturity;
1296
+ '.wix.api.serviceExposure': $requests.wix.api.Exposure;
1297
+ '.wix.api.serviceDeprecated'?: $requests.wix.api.Deprecated;
1298
+ '.wix.api.appendixFiles': $requests.wix.api.ServiceAppendix[];
1299
+ '.wix.api.errorDef': $requests.wix.api.Error[];
1300
+ '.wix.api.serviceEntity'?: $requests.wix.api.ServiceEntity;
1301
+ '.wix.api.event': $requests.wix.api.Callback[];
1302
+ '.wix.api.eventDeprecated': $requests.wix.api.CallbackDeprecation[];
1303
+ }
1304
+ export interface MethodOptions {
1305
+ deprecated: boolean;
1306
+ idempotencyLevel: $requests.google.protobuf.MethodOptions.IdempotencyLevel;
1307
+ uninterpretedOption: $requests.google.protobuf.UninterpretedOption[];
1308
+ '.wix.api.exposure': $requests.wix.api.Exposure;
1309
+ '.wix.api.maturity': $requests.wix.api.Maturity;
1310
+ '.wix.api.cacheable'?: $requests.wix.api.CacheSettings;
1311
+ '.wix.api.deprecated'?: $requests.wix.api.Deprecated;
1312
+ '.wix.api.crud'?: $requests.wix.api.Crud;
1313
+ '.wix.api.acceptsLinguist': boolean;
1314
+ '.wix.api.error': $requests.wix.api.Error[];
1315
+ '.wix.api.customValidationError': $requests.wix.api.CustomValidationError[];
1316
+ '.wix.api.inheritCrudErrors': $requests.wix.api.InheritCrudErrors[];
1317
+ '.wix.api.errorRef': $requests.wix.api.ErrorRef[];
1318
+ '.wix.api.permission'?: $requests.wix.api.PermissionRule;
1319
+ '.wix.api.additionalPermission': $requests.wix.api.PermissionRule[];
1320
+ '.wix.api.required': string[];
1321
+ '.wix.api.writable': string[];
1322
+ '.wix.api.callback': $requests.wix.api.Callback[];
1323
+ '.wix.api.emits': $requests.wix.api.Emits[];
1324
+ '.google.api.http'?: $requests.google.api.HttpRule;
1325
+ }
1326
+ export namespace MethodOptions {
1327
+ export enum IdempotencyLevel {
1328
+ IDEMPOTENCY_UNKNOWN = "IDEMPOTENCY_UNKNOWN",
1329
+ NO_SIDE_EFFECTS = "NO_SIDE_EFFECTS",
1330
+ IDEMPOTENT = "IDEMPOTENT",
1331
+ }
1332
+ }
1333
+ export interface UninterpretedOption {
1334
+ name: $requests.google.protobuf.UninterpretedOption.NamePart[];
1335
+ identifierValue: string;
1336
+ positiveIntValue: Long;
1337
+ negativeIntValue: Long;
1338
+ doubleValue: number;
1339
+ stringValue: Uint8Array;
1340
+ aggregateValue: string;
1341
+ }
1342
+ export namespace UninterpretedOption {
1343
+ export interface NamePart {
1344
+ namePart: string;
1345
+ isExtension: boolean;
1346
+ }
1347
+ }
1348
+ export interface SourceCodeInfo {
1349
+ location: $requests.google.protobuf.SourceCodeInfo.Location[];
1350
+ }
1351
+ export namespace SourceCodeInfo {
1352
+ export interface Location {
1353
+ path: number[];
1354
+ span: number[];
1355
+ leadingComments: string;
1356
+ trailingComments: string;
1357
+ leadingDetachedComments: string[];
1358
+ }
1359
+ }
1360
+ export interface GeneratedCodeInfo {
1361
+ annotation: $requests.google.protobuf.GeneratedCodeInfo.Annotation[];
1362
+ }
1363
+ export namespace GeneratedCodeInfo {
1364
+ export interface Annotation {
1365
+ path: number[];
1366
+ sourceFile: string;
1367
+ begin: number;
1368
+ end: number;
1369
+ }
1370
+ }
1371
+ }
1372
+ }
1373
+ }
1374
+ export {$requests as requests};
1375
+
1376
+ declare namespace $responses {
1377
+ export namespace com {
1378
+ export namespace wixpress {
1379
+ export namespace wixcode {
1380
+ export namespace dispatcher {
1381
+ export namespace api {
1382
+ export namespace v1 {
1383
+ export interface InvokeFunctionRequest {
1384
+ modulePath?: string;
1385
+ functionName?: string;
1386
+ arguments?: any[];
1387
+ }
1388
+ export interface InvokeFunctionResponse {
1389
+ result?: any;
1390
+ }
1391
+ export interface InvokeFunctionBulkRequest {
1392
+ invokeFunctionRequests?: $responses.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionRequest[];
1393
+ }
1394
+ export interface InvokeFunctionBulkResponse {
1395
+ bulkResult?: $responses.com.wixpress.wixcode.dispatcher.api.v1.BulkResult[];
1396
+ }
1397
+ export interface BulkResult {
1398
+ successValue?: any;
1399
+ errorValue?: $responses.com.wixpress.wixcode.dispatcher.api.v1.ErrorValue;
1400
+ }
1401
+ export interface ErrorValue {
1402
+ message?: string;
1403
+ name?: string;
1404
+ isUserError?: boolean;
1405
+ }
1406
+ export interface InvokeDevFunctionRequest {
1407
+ modulePath?: string;
1408
+ functionName?: string;
1409
+ gridAppId?: string;
1410
+ arguments?: any[];
1411
+ }
1412
+ export interface InvokeDevFunctionBulkRequest {
1413
+ gridAppId?: string;
1414
+ invokeFunctionRequests?: $responses.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionRequest[];
1415
+ }
1416
+ }
1417
+ }
1418
+ }
1419
+ }
1420
+ export namespace structure {
1421
+ export namespace dynamic {
1422
+ export namespace api {
1423
+ export interface DynamicSiteStructureRequest {
1424
+ router?: $responses.com.wixpress.structure.dynamic.api.Router;
1425
+ routersRevisionId?: string;
1426
+ segment?: $responses.com.wixpress.structure.dynamic.api.Segment;
1427
+ paging?: $responses.wix.common.CursorPaging;
1428
+ languageMetadata?: $responses.com.wixpress.structure.common.LanguageMetadata;
1429
+ siteUrl?: string;
1430
+ }
1431
+ export enum Segment {
1432
+ PUBLIC = "PUBLIC",
1433
+ EDITOR = "EDITOR",
1434
+ }
1435
+ export interface Router {
1436
+ routerPrefix?: string;
1437
+ pageRoles?: { [k: string]: $responses.com.wixpress.structure.dynamic.api.PageRole };
1438
+ config?: string;
1439
+ }
1440
+ export interface PageRole {
1441
+ id?: string;
1442
+ title?: string;
1443
+ }
1444
+ export interface DynamicSiteStructureResponse {
1445
+ routerPrefix?: string;
1446
+ results?: $responses.com.wixpress.structure.dynamic.api.DynamicItem[];
1447
+ totalResults?: number;
1448
+ pagingData?: $responses.com.wixpress.structure.dynamic.api.CursorPagingMetaData;
1449
+ }
1450
+ export interface DynamicItem {
1451
+ id?: string;
1452
+ itemTypeIdentifier?: string;
1453
+ routerPrefix?: string;
1454
+ name?: string;
1455
+ media?: $responses.wix.common.MediaItem[];
1456
+ path?: string;
1457
+ updatedDate?: Date;
1458
+ inactive?: boolean;
1459
+ metadata?: { [key: string]: any };
1460
+ image?: $responses.wix.common.Image[];
1461
+ video?: $responses.wix.common.VideoV2[];
1462
+ staticPageId?: string;
1463
+ pageIdentifier?: string;
1464
+ }
1465
+ export interface CursorPagingMetaData {
1466
+ count?: number;
1467
+ cursor?: string;
1468
+ }
1469
+ }
1470
+ }
1471
+ export namespace common {
1472
+ export interface LanguageMetadata {
1473
+ code?: string;
1474
+ tag?: string;
1475
+ }
1476
+ }
1477
+ }
1478
+ }
1479
+ export namespace wix {
1480
+ export namespace duplexer {
1481
+ export namespace api {
1482
+ export interface Publisher {
1483
+ uid?: string;
1484
+ }
1485
+ export interface App {
1486
+ appDefId?: string;
1487
+ metaSiteId?: string;
1488
+ }
1489
+ export enum PublishContext {
1490
+ META_SITE = "META_SITE",
1491
+ USER = "USER",
1492
+ }
1493
+ export interface PublishRequest {
1494
+ channels?: string[];
1495
+ event?: string;
1496
+ payload?: { [key: string]: any };
1497
+ publisher?: $responses.com.wix.duplexer.api.Publisher;
1498
+ resourceId?: string;
1499
+ context?: $responses.com.wix.duplexer.api.PublishContext;
1500
+ recipients?: string[];
1501
+ excludedRecipients?: string[];
1502
+ }
1503
+ export interface PublishResponse {
1504
+ }
1505
+ export interface PublishAsDuplexerRequest {
1506
+ data?: $responses.com.wix.duplexer.api.PublishRequest;
1507
+ onBehalfOf?: $responses.com.wix.duplexer.api.App;
1508
+ }
1509
+ export interface PublishAsDuplexerResponse {
1510
+ }
1511
+ export interface StatusNotification {
1512
+ status?: $responses.com.wix.duplexer.api.StatusNotification.Status;
1513
+ channel?: string;
1514
+ userId?: string;
1515
+ sessionId?: string;
1516
+ metaSiteId?: string;
1517
+ }
1518
+ export namespace StatusNotification {
1519
+ export enum Status {
1520
+ OFFLINE = "OFFLINE",
1521
+ ONLINE = "ONLINE",
1522
+ }
1523
+ }
1524
+ }
1525
+ }
1526
+ export namespace realtime {
1527
+ export namespace v4 {
1528
+ export interface Message {
1529
+ id?: string;
1530
+ eventName?: string;
1531
+ payload?: { [key: string]: any };
1532
+ publisherInfo?: $responses.com.wix.realtime.v4.PublisherInfo;
1533
+ }
1534
+ export interface PublisherInfo {
1535
+ uid?: string;
1536
+ }
1537
+ export interface PublishRequest {
1538
+ message?: $responses.com.wix.realtime.v4.Message;
1539
+ channels?: string[];
1540
+ resourceId?: string;
1541
+ }
1542
+ export interface PublishResponse {
1543
+ }
1544
+ export interface PublishToUserRequest {
1545
+ message?: $responses.com.wix.realtime.v4.Message;
1546
+ resourceId?: string;
1547
+ includeRecipients?: $responses.com.wix.realtime.v4.UserIdList;
1548
+ excludeRecipients?: $responses.com.wix.realtime.v4.UserIdList;
1549
+ }
1550
+ export interface PublishToUserResponse {
1551
+ }
1552
+ export interface UserIdList {
1553
+ userId?: string[];
1554
+ }
1555
+ }
1556
+ }
1557
+ }
1558
+ }
1559
+ export namespace wix {
1560
+ export namespace api {
1561
+ export interface ReferenceEntityField {
1562
+ path?: string;
1563
+ }
1564
+ export interface CacheSettings {
1565
+ maxAgeSeconds?: number;
1566
+ manual?: boolean;
1567
+ }
1568
+ export interface FieldSet {
1569
+ field?: string[];
1570
+ }
1571
+ export interface Deprecated {
1572
+ replacedBy?: string;
1573
+ targetRemovalDate?: string;
1574
+ }
1575
+ export interface Unique {
1576
+ field?: string[];
1577
+ }
1578
+ export interface Crud {
1579
+ method?: $responses.wix.api.Crud.Method;
1580
+ createOptions?: $responses.wix.api.CreateMethodOptions;
1581
+ getOptions?: $responses.wix.api.GetItemMethodOptions;
1582
+ updateOptions?: $responses.wix.api.UpdateMethodOptions;
1583
+ deleteOptions?: $responses.wix.api.DeleteMethodOptions;
1584
+ listOptions?: $responses.wix.api.ListMethodOptions;
1585
+ queryOptions?: $responses.wix.api.QueryMethodOptions;
1586
+ searchOptions?: $responses.wix.api.SearchMethodOptions;
1587
+ bulkCreateOptions?: $responses.wix.api.BulkCreateMethodOptions;
1588
+ bulkUpdateOptions?: $responses.wix.api.BulkUpdateMethodOptions;
1589
+ bulkUpdateByFilterOptions?: $responses.wix.api.BulkUpdateByFilterMethodOptions;
1590
+ bulkDeleteOptions?: $responses.wix.api.BulkDeleteMethodOptions;
1591
+ bulkDeleteByFilterOptions?: $responses.wix.api.BulkDeleteByFilterMethodOptions;
1592
+ upsertOptions?: $responses.wix.api.UpsertMethodOptions;
1593
+ bulkUpsertOptions?: $responses.wix.api.BulkUpsertMethodOptions;
1594
+ listDeletedOptions?: $responses.wix.api.ListDeletedMethodOptions;
1595
+ getDeletedOptions?: $responses.wix.api.GetDeletedMethodOptions;
1596
+ restoreFromTrashbinOptions?: $responses.wix.api.RestoreFromTrashbinMethodOptions;
1597
+ removeFromTrashbinOptions?: $responses.wix.api.RemoveFromTrashbinMethodOptions;
1598
+ countOptions?: $responses.wix.api.CountOptions;
1599
+ searchRelatedOptions?: $responses.wix.api.SearchRelatedOptions;
1600
+ updateExtendedFieldsOptions?: $responses.wix.api.UpdateExtendedFieldsOptions;
1601
+ customActionOptions?: $responses.wix.api.CustomActionOptions;
1602
+ bulkUpdateTagsOptions?: $responses.wix.api.BulkUpdateTagsMethodOptions;
1603
+ bulkUpdateTagsByFilterOptions?: $responses.wix.api.BulkUpdateTagsByFilterMethodOptions;
1604
+ }
1605
+ export namespace Crud {
1606
+ export enum Method {
1607
+ UNKNOWN_METHOD = "UNKNOWN_METHOD",
1608
+ CREATE = "CREATE",
1609
+ GET_ITEM = "GET_ITEM",
1610
+ UPDATE = "UPDATE",
1611
+ DELETE = "DELETE",
1612
+ UPSERT = "UPSERT",
1613
+ LIST = "LIST",
1614
+ QUERY = "QUERY",
1615
+ SEARCH = "SEARCH",
1616
+ BULK_CREATE = "BULK_CREATE",
1617
+ BULK_UPDATE = "BULK_UPDATE",
1618
+ BULK_UPDATE_BY_FILTER = "BULK_UPDATE_BY_FILTER",
1619
+ BULK_DELETE = "BULK_DELETE",
1620
+ BULK_DELETE_BY_FILTER = "BULK_DELETE_BY_FILTER",
1621
+ BULK_UPSERT = "BULK_UPSERT",
1622
+ LIST_DELETED = "LIST_DELETED",
1623
+ GET_DELETED = "GET_DELETED",
1624
+ RESTORE_FROM_TRASHBIN = "RESTORE_FROM_TRASHBIN",
1625
+ REMOVE_FROM_TRASHBIN = "REMOVE_FROM_TRASHBIN",
1626
+ COUNT = "COUNT",
1627
+ SEARCH_RELATED = "SEARCH_RELATED",
1628
+ UPDATE_EXTENDED_FIELDS = "UPDATE_EXTENDED_FIELDS",
1629
+ BULK_UPDATE_TAGS = "BULK_UPDATE_TAGS",
1630
+ BULK_UPDATE_TAGS_BY_FILTER = "BULK_UPDATE_TAGS_BY_FILTER",
1631
+ CUSTOM_ACTION = "CUSTOM_ACTION",
1632
+ }
1633
+ }
1634
+ export interface Paging {
1635
+ type?: $responses.wix.api.Paging.Type;
1636
+ pagingMetadataField?: string;
1637
+ cursorPagingMetadataField?: string;
1638
+ offsetPagingMetadataField?: string;
1639
+ }
1640
+ export namespace Paging {
1641
+ export enum Type {
1642
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
1643
+ OFFSET = "OFFSET",
1644
+ CURSOR = "CURSOR",
1645
+ BOTH = "BOTH",
1646
+ }
1647
+ }
1648
+ export interface CustomActionOptions {
1649
+ readOperation?: boolean;
1650
+ wql?: $responses.wix.api.WqlOptions;
1651
+ }
1652
+ export interface WqlOptions {
1653
+ queryOptionsName?: string;
1654
+ filterField?: string;
1655
+ queryField?: string;
1656
+ searchField?: string;
1657
+ }
1658
+ export interface CreateMethodOptions {
1659
+ itemField?: string;
1660
+ }
1661
+ export interface GetItemMethodOptions {
1662
+ itemField?: string;
1663
+ idField?: string;
1664
+ }
1665
+ export interface UpdateMethodOptions {
1666
+ itemField?: string;
1667
+ fieldmaskField?: string;
1668
+ }
1669
+ export interface UpsertMethodOptions {
1670
+ itemField?: string;
1671
+ fieldmaskField?: string;
1672
+ }
1673
+ export interface DeleteMethodOptions {
1674
+ idField?: string;
1675
+ }
1676
+ export interface ListMethodOptions {
1677
+ idsField?: string;
1678
+ itemsField?: string;
1679
+ paging?: $responses.wix.api.Paging;
1680
+ meAliasableField?: string[];
1681
+ }
1682
+ export interface QueryMethodOptions {
1683
+ queryField?: string;
1684
+ cursorQueryField?: string;
1685
+ offsetQueryField?: string;
1686
+ itemsField?: string;
1687
+ paging?: $responses.wix.api.Paging;
1688
+ wql?: $responses.wix.api.Wql;
1689
+ queryOptionsName?: string;
1690
+ meAliasableField?: string[];
1691
+ }
1692
+ export interface SearchMethodOptions {
1693
+ searchField?: string;
1694
+ cursorSearchField?: string;
1695
+ offsetSearchField?: string;
1696
+ itemsField?: string;
1697
+ paging?: $responses.wix.api.Paging;
1698
+ wql?: $responses.wix.api.Wql;
1699
+ queryOptionsName?: string;
1700
+ meAliasableField?: string[];
1701
+ search?: $responses.wix.api.Search[];
1702
+ }
1703
+ export interface BulkCreateMethodOptions {
1704
+ itemField?: string;
1705
+ }
1706
+ export interface BulkUpdateMethodOptions {
1707
+ itemsField?: string;
1708
+ itemField?: string;
1709
+ fieldmaskField?: string;
1710
+ }
1711
+ export interface BulkUpdateByFilterMethodOptions {
1712
+ itemField?: string;
1713
+ fieldmaskField?: string;
1714
+ filterField?: string;
1715
+ queryOptionsName?: string;
1716
+ }
1717
+ export interface BulkUpdateTagsMethodOptions {
1718
+ idsField?: string;
1719
+ }
1720
+ export interface BulkUpdateTagsByFilterMethodOptions {
1721
+ filterField?: string;
1722
+ queryOptionsName?: string;
1723
+ }
1724
+ export interface BulkUpsertMethodOptions {
1725
+ itemField?: string;
1726
+ fieldmaskField?: string;
1727
+ }
1728
+ export interface BulkDeleteMethodOptions {
1729
+ idsField?: string;
1730
+ }
1731
+ export interface BulkDeleteByFilterMethodOptions {
1732
+ filterField?: string;
1733
+ queryOptionsName?: string;
1734
+ }
1735
+ export interface ListDeletedMethodOptions {
1736
+ idsField?: string;
1737
+ itemsField?: string;
1738
+ paging?: $responses.wix.api.Paging;
1739
+ meAliasableField?: string[];
1740
+ }
1741
+ export interface GetDeletedMethodOptions {
1742
+ itemField?: string;
1743
+ idField?: string;
1744
+ }
1745
+ export interface RestoreFromTrashbinMethodOptions {
1746
+ itemField?: string;
1747
+ idField?: string;
1748
+ }
1749
+ export interface RemoveFromTrashbinMethodOptions {
1750
+ idField?: string;
1751
+ }
1752
+ export interface CountOptions {
1753
+ inheritWqlFrom?: string;
1754
+ queryOptionsName?: string;
1755
+ filterField?: string;
1756
+ countField?: string;
1757
+ }
1758
+ export interface SearchRelatedOptions {
1759
+ inheritWqlFrom?: string;
1760
+ queryOptionsName?: string;
1761
+ }
1762
+ export interface UpdateExtendedFieldsOptions {
1763
+ itemField?: string;
1764
+ }
1765
+ export interface Wql {
1766
+ operatorFieldSupport?: $responses.wix.api.Wql.OperatorFieldSupport[];
1767
+ pattern?: $responses.wix.api.Wql.OperatorFieldSupport[];
1768
+ validateQuery?: boolean;
1769
+ }
1770
+ export namespace Wql {
1771
+ export enum Operator {
1772
+ ALL_APPLICABLE_OPERATORS = "ALL_APPLICABLE_OPERATORS",
1773
+ EQ = "EQ",
1774
+ GT = "GT",
1775
+ GTE = "GTE",
1776
+ IN = "IN",
1777
+ LT = "LT",
1778
+ LTE = "LTE",
1779
+ NE = "NE",
1780
+ NIN = "NIN",
1781
+ BEGINS = "BEGINS",
1782
+ EXISTS = "EXISTS",
1783
+ HAS_ALL = "HAS_ALL",
1784
+ ALL = "ALL",
1785
+ HAS_SOME = "HAS_SOME",
1786
+ ANY = "ANY",
1787
+ EMPTY = "EMPTY",
1788
+ MATCH_ALL = "MATCH_ALL",
1789
+ MATCH_ITEMS = "MATCH_ITEMS",
1790
+ ENHANCED_DATE = "ENHANCED_DATE",
1791
+ }
1792
+ export enum Sort {
1793
+ NONE = "NONE",
1794
+ ASC = "ASC",
1795
+ DESC = "DESC",
1796
+ BOTH = "BOTH",
1797
+ }
1798
+ export interface RequiredFields {
1799
+ field?: string[];
1800
+ requiredField?: $responses.wix.api.Wql.RequiredFields.RequiredField[];
1801
+ }
1802
+ export namespace RequiredFields {
1803
+ export interface RequiredField {
1804
+ path?: string;
1805
+ sort?: $responses.wix.api.Wql.Sort;
1806
+ }
1807
+ }
1808
+ export enum VirtualSubfields {
1809
+ NO_VIRTUAL_SUBFIELDS = "NO_VIRTUAL_SUBFIELDS",
1810
+ DATE = "DATE",
1811
+ EMAIL = "EMAIL",
1812
+ }
1813
+ export interface OperatorFieldSupport {
1814
+ operator?: $responses.wix.api.Wql.Operator[];
1815
+ glob?: string;
1816
+ field?: string[];
1817
+ sort?: $responses.wix.api.Wql.Sort;
1818
+ requiredFields?: $responses.wix.api.Wql.RequiredFields[];
1819
+ maturity?: $responses.wix.api.Maturity;
1820
+ virtualSubfields?: $responses.wix.api.Wql.VirtualSubfields;
1821
+ }
1822
+ }
1823
+ export interface Search {
1824
+ field?: string[];
1825
+ maturity?: $responses.wix.api.Maturity;
1826
+ }
1827
+ export interface Translatable {
1828
+ name?: string;
1829
+ hidden?: boolean;
1830
+ grouping?: string;
1831
+ type?: $responses.wix.api.Translatable.Type;
1832
+ displayOnly?: boolean;
1833
+ }
1834
+ export namespace Translatable {
1835
+ export enum Type {
1836
+ UNDEFINED_TYPE = "UNDEFINED_TYPE",
1837
+ SHORT_TEXT = "SHORT_TEXT",
1838
+ LONG_TEXT = "LONG_TEXT",
1839
+ RICH_TEXT = "RICH_TEXT",
1840
+ RICH_CONTENT_EDITOR = "RICH_CONTENT_EDITOR",
1841
+ SELECTION = "SELECTION",
1842
+ MULTI_SELECTION = "MULTI_SELECTION",
1843
+ DOCUMENT = "DOCUMENT",
1844
+ IMAGE = "IMAGE",
1845
+ VIDEO = "VIDEO",
1846
+ IMAGE_LINK = "IMAGE_LINK",
1847
+ }
1848
+ }
1849
+ export interface Conditional {
1850
+ permission?: string;
1851
+ requestedField?: string;
1852
+ }
1853
+ export interface ServiceAppendix {
1854
+ type?: $responses.wix.api.ServiceAppendix.Type;
1855
+ path?: string;
1856
+ }
1857
+ export namespace ServiceAppendix {
1858
+ export enum Type {
1859
+ UNKNOWN_APPENDIX_TYPE = "UNKNOWN_APPENDIX_TYPE",
1860
+ NILE = "NILE",
1861
+ MESSAGE_BUS = "MESSAGE_BUS",
1862
+ }
1863
+ }
1864
+ export enum Exposure {
1865
+ PRIVATE = "PRIVATE",
1866
+ INTERNAL = "INTERNAL",
1867
+ PUBLIC = "PUBLIC",
1868
+ }
1869
+ export enum Maturity {
1870
+ ALPHA = "ALPHA",
1871
+ BETA = "BETA",
1872
+ IA = "IA",
1873
+ GA = "GA",
1874
+ NOT_IMPLEMENTED = "NOT_IMPLEMENTED",
1875
+ }
1876
+ /**
1877
+ * ApplicationError: named Error for backwards compatibility
1878
+ */
1879
+ export interface Error {
1880
+ httpCode?: $responses.wix.api.StatusCodes.HttpStatusCode;
1881
+ applicationCode?: string;
1882
+ data?: string;
1883
+ }
1884
+ /**
1885
+ * Method-level reference to a service-level error.
1886
+ */
1887
+ export interface ErrorRef {
1888
+ applicationCode?: string;
1889
+ }
1890
+ /**
1891
+ * CustomValidationError: field level validation, only declare when you have specific validation in your service that is not coming from infra
1892
+ */
1893
+ export interface CustomValidationError {
1894
+ ruleName?: string;
1895
+ data?: string;
1896
+ }
1897
+ /**
1898
+ * InheritCrudErrors: does this method throw standard crud errors?
1899
+ */
1900
+ export interface InheritCrudErrors {
1901
+ method?: $responses.wix.api.Crud.Method;
1902
+ }
1903
+ export interface StatusCodes {
1904
+ }
1905
+ export namespace StatusCodes {
1906
+ export enum HttpStatusCode {
1907
+ OK = "OK",
1908
+ UNAUTHENTICATED = "UNAUTHENTICATED",
1909
+ PERMISSION_DENIED = "PERMISSION_DENIED",
1910
+ INVALID_ARGUMENT = "INVALID_ARGUMENT",
1911
+ NOT_FOUND = "NOT_FOUND",
1912
+ INTERNAL = "INTERNAL",
1913
+ UNAVAILABLE = "UNAVAILABLE",
1914
+ RESOURCE_EXHAUSTED = "RESOURCE_EXHAUSTED",
1915
+ CANCELED = "CANCELED",
1916
+ ALREADY_EXISTS = "ALREADY_EXISTS",
1917
+ FAILED_PRECONDITION = "FAILED_PRECONDITION",
1918
+ }
1919
+ }
1920
+ export interface PermissionRule {
1921
+ name?: string;
1922
+ type?: $responses.wix.api.PermissionType;
1923
+ abacRequestValidation?: $responses.wix.api.AbacRequestValidationMode;
1924
+ }
1925
+ export enum PermissionType {
1926
+ AUTO = "AUTO",
1927
+ MANUAL = "MANUAL",
1928
+ }
1929
+ export enum AbacRequestValidationMode {
1930
+ ON = "ON",
1931
+ OFF = "OFF",
1932
+ }
1933
+ /**
1934
+ * Decimal value validation rules.
1935
+ * Based on java.math.BigDecimal, implies (wix.api.format) = DECIMAL_VALUE
1936
+ */
1937
+ export interface DecimalValueOptions {
1938
+ lte?: string;
1939
+ gte?: string;
1940
+ lt?: string;
1941
+ gt?: string;
1942
+ maxScale?: number;
1943
+ }
1944
+ export interface AlignedWithEnum {
1945
+ field?: string;
1946
+ suffix?: string;
1947
+ }
1948
+ export enum Format {
1949
+ EMAIL = "EMAIL",
1950
+ HOSTNAME = "HOSTNAME",
1951
+ IPV4 = "IPV4",
1952
+ IPV6 = "IPV6",
1953
+ URI = "URI",
1954
+ WEB_URL = "WEB_URL",
1955
+ PHONE = "PHONE",
1956
+ CREDIT_CARD = "CREDIT_CARD",
1957
+ GUID = "GUID",
1958
+ COUNTRY = "COUNTRY",
1959
+ LANGUAGE = "LANGUAGE",
1960
+ DECIMAL_VALUE = "DECIMAL_VALUE",
1961
+ CURRENCY = "CURRENCY",
1962
+ LANGUAGE_TAG = "LANGUAGE_TAG",
1963
+ COLOR_HEX = "COLOR_HEX",
1964
+ LOCAL_DATE = "LOCAL_DATE",
1965
+ LOCAL_TIME = "LOCAL_TIME",
1966
+ LOCAL_DATE_TIME = "LOCAL_DATE_TIME",
1967
+ URL_SLUG = "URL_SLUG",
1968
+ SYSTEM_SLUG = "SYSTEM_SLUG",
1969
+ SECURE_WEB_URL = "SECURE_WEB_URL",
1970
+ SUBDIVISION = "SUBDIVISION",
1971
+ }
1972
+ export interface ServiceEntity {
1973
+ message?: string;
1974
+ namespace?: string;
1975
+ }
1976
+ export interface Entity {
1977
+ fqdn?: string;
1978
+ exposure?: $responses.wix.api.Exposure;
1979
+ appendixFiles?: $responses.wix.api.MessageAppendix[];
1980
+ oldFqdnForBackwardsCompatibility?: string;
1981
+ segment?: $responses.wix.api.Segment.SegmentName;
1982
+ implements?: string[];
1983
+ extensible?: $responses.wix.api.Extensible;
1984
+ trashbin?: boolean;
1985
+ plural?: string;
1986
+ domainEventsReadPermission?: string;
1987
+ appDefId?: string;
1988
+ domainEvents?: $responses.wix.api.DomainEventOptions;
1989
+ taggable?: $responses.wix.api.Taggable;
1990
+ queryOptions?: $responses.wix.api.QueryOptions;
1991
+ eventsExposure?: $responses.wix.api.Exposure;
1992
+ eventsMaturity?: $responses.wix.api.Maturity;
1993
+ persistence?: $responses.wix.api.Persistence;
1994
+ permissionOptions?: $responses.wix.api.PermissionCatalogOptions;
1995
+ }
1996
+ export interface PermissionCatalogOptions {
1997
+ autoGeneratePermissions?: boolean;
1998
+ autoGenerateScopes?: boolean;
1999
+ }
2000
+ export interface Persistence {
2001
+ type?: $responses.wix.api.Persistence.Type;
2002
+ }
2003
+ export namespace Persistence {
2004
+ export enum Type {
2005
+ STANDARD = "STANDARD",
2006
+ SINGLETON = "SINGLETON",
2007
+ NONE = "NONE",
2008
+ }
2009
+ }
2010
+ export interface Extensible {
2011
+ nestedExtensionFieldPath?: string;
2012
+ filterable?: boolean;
2013
+ nestedExtensionPointMappings?: $responses.wix.api.NestedExtensionPointMapping[];
2014
+ }
2015
+ export interface NestedExtensionPointMapping {
2016
+ extensionPoint?: string;
2017
+ path?: string;
2018
+ }
2019
+ export interface MessageAppendix {
2020
+ type?: $responses.wix.api.MessageAppendix.Type;
2021
+ path?: string;
2022
+ }
2023
+ export namespace MessageAppendix {
2024
+ export enum Type {
2025
+ UNKNOWN_APPENDIX_TYPE = "UNKNOWN_APPENDIX_TYPE",
2026
+ AUTO_VELO = "AUTO_VELO",
2027
+ DOCS_CONF = "DOCS_CONF",
2028
+ MULTILINGUAL = "MULTILINGUAL",
2029
+ SEARCH = "SEARCH",
2030
+ AUTO_SDK = "AUTO_SDK",
2031
+ }
2032
+ }
2033
+ export interface DomainEventOptions {
2034
+ eventSequenceNumber?: boolean;
2035
+ deletedIncludeEntity?: boolean;
2036
+ updatedIncludeModifiedFields?: boolean;
2037
+ }
2038
+ export interface Taggable {
2039
+ }
2040
+ export interface QueryOptions {
2041
+ wql?: $responses.wix.api.Wql;
2042
+ search?: $responses.wix.api.Search[];
2043
+ additionalQueryOptions?: $responses.wix.api.NamedQueryOptions[];
2044
+ }
2045
+ export interface NamedQueryOptions {
2046
+ name?: string;
2047
+ wql?: $responses.wix.api.Wql;
2048
+ search?: $responses.wix.api.Search[];
2049
+ }
2050
+ export interface Callback {
2051
+ topic?: string;
2052
+ segment?: $responses.wix.api.Segment.SegmentName;
2053
+ payload?: string;
2054
+ permission?: string;
2055
+ eventType?: $responses.wix.api.Callback.EventType;
2056
+ exposure?: $responses.wix.api.Exposure;
2057
+ maturity?: $responses.wix.api.Maturity;
2058
+ }
2059
+ export namespace Callback {
2060
+ export enum EventType {
2061
+ UNKNOWN = "UNKNOWN",
2062
+ CREATED = "CREATED",
2063
+ UPDATED = "UPDATED",
2064
+ DELETED = "DELETED",
2065
+ ACTION = "ACTION",
2066
+ }
2067
+ }
2068
+ export interface DomainEvent {
2069
+ actionMessageFqn?: string;
2070
+ webhookPermissionOverride?: string;
2071
+ eventType?: $responses.wix.api.DomainEvent.EventType;
2072
+ exposure?: $responses.wix.api.Exposure;
2073
+ maturity?: $responses.wix.api.Maturity;
2074
+ additionalMetadataFqn?: string;
2075
+ deprecated?: $responses.wix.api.DomainEventDeprecation;
2076
+ }
2077
+ export namespace DomainEvent {
2078
+ export enum EventType {
2079
+ UNKNOWN = "UNKNOWN",
2080
+ CREATED = "CREATED",
2081
+ UPDATED = "UPDATED",
2082
+ DELETED = "DELETED",
2083
+ ACTION = "ACTION",
2084
+ }
2085
+ }
2086
+ export interface Emits {
2087
+ eventType?: $responses.wix.api.DomainEvent.EventType;
2088
+ actionMessageFqn?: string;
2089
+ }
2090
+ export interface DomainEventDeprecation {
2091
+ replacedBy?: string;
2092
+ targetRemovalDate?: string;
2093
+ }
2094
+ export interface CallbackDeprecation {
2095
+ replacedBy?: string;
2096
+ targetRemovalDate?: string;
2097
+ eventType?: $responses.wix.api.Callback.EventType;
2098
+ customSlug?: string;
2099
+ payload?: string;
2100
+ }
2101
+ export interface Segment {
2102
+ }
2103
+ export namespace Segment {
2104
+ /**
2105
+ * [Segment] annotation registers to Confluent clusters.
2106
+ * Existing topics might have a hard-coded segment in Greyhound, so this option is not required in proto.
2107
+ * However, new topics must provide a segment, or greyhound will throw an exception.
2108
+ * @see https://bo.wix.com/wix-docs/rnd/p13n-guidelines---aips/guidance-aips/design-patterns/[7016]-events#p13n-guidelines---aips_guidance-aips_design-patterns_[7016]-events_12-choose-the-right-segment
2109
+ */
2110
+ export enum SegmentName {
2111
+ UNSPECIFIED = "UNSPECIFIED",
2112
+ USERS = "USERS",
2113
+ PUBLIC = "PUBLIC",
2114
+ OTHERS = "OTHERS",
2115
+ }
2116
+ }
2117
+ }
2118
+ export namespace velo {
2119
+ export namespace dispatcher {
2120
+ export namespace v1 {
2121
+ export interface InvokeFunctionRequest {
2122
+ modulePath?: string;
2123
+ functionName?: string;
2124
+ arguments?: $responses.wix.velo.dispatcher.v1.ElementoryValue[];
2125
+ }
2126
+ export interface InvokeFunctionResponse {
2127
+ result?: $responses.wix.velo.dispatcher.v1.InvokeResult;
2128
+ }
2129
+ export interface InvokePubFunctionsBulkRequest {
2130
+ invokeFunctionRequests?: $responses.wix.velo.dispatcher.v1.InvokeFunctionRequest[];
2131
+ }
2132
+ export interface InvokeFunctionsBulkResponse {
2133
+ results?: $responses.wix.velo.dispatcher.v1.InvokeResult[];
2134
+ }
2135
+ export interface InvokeResult {
2136
+ successValue?: $responses.wix.velo.dispatcher.v1.ElementorySuccessValue;
2137
+ errorValue?: $responses.wix.velo.dispatcher.v1.ElementoryValue;
2138
+ }
2139
+ export interface InvokeDevFunctionRequest {
2140
+ modulePath?: string;
2141
+ functionName?: string;
2142
+ gridAppId?: string;
2143
+ arguments?: $responses.wix.velo.dispatcher.v1.ElementoryValue[];
2144
+ }
2145
+ export interface InvokeDevFunctionsBulkRequest {
2146
+ gridAppId?: string;
2147
+ invokeFunctionRequests?: $responses.wix.velo.dispatcher.v1.InvokeFunctionRequest[];
2148
+ }
2149
+ export interface ElementorySuccessValue {
2150
+ value?: any;
2151
+ }
2152
+ export interface ElementoryValue {
2153
+ value?: any;
2154
+ error?: $responses.wix.velo.dispatcher.v1.ElementoryError;
2155
+ }
2156
+ export interface ElementoryError {
2157
+ message?: string;
2158
+ name?: string;
2159
+ code?: string;
2160
+ }
2161
+ export interface InvokeSpiRequest {
2162
+ modulePath?: string;
2163
+ functionName?: string;
2164
+ argument?: { [key: string]: any };
2165
+ spiType?: string;
2166
+ spiIdentifier?: string;
2167
+ }
2168
+ export interface InvokeSpiResponse {
2169
+ successResult?: $responses.wix.velo.dispatcher.v1.SpiSuccess;
2170
+ errorResult?: $responses.wix.velo.dispatcher.v1.SpiError;
2171
+ }
2172
+ export interface SpiSuccess {
2173
+ result?: { [key: string]: any };
2174
+ }
2175
+ export interface SpiError {
2176
+ httpCode?: $responses.wix.spi.HttpStatusCode;
2177
+ applicationError?: string;
2178
+ errorDescription?: string;
2179
+ data?: { [key: string]: any };
2180
+ message?: string;
2181
+ applicationCode?: string;
2182
+ }
2183
+ export interface GetModuleMetadataRequest {
2184
+ modulePath?: string;
2185
+ gridAppId?: string;
2186
+ }
2187
+ export interface GetModuleMetadataResponse {
2188
+ functionDefinitions?: $responses.wix.velo.apps.analysis.v1.FunctionDefinition[];
2189
+ }
2190
+ export interface FunctionNotFoundError {
2191
+ modulePath?: string;
2192
+ functionName?: string;
2193
+ }
2194
+ export interface PluginNotFoundErrorData {
2195
+ pluginName?: string;
2196
+ }
2197
+ export interface RunDevPluginRequest {
2198
+ pluginName?: string;
2199
+ args?: { [key: string]: any };
2200
+ gridAppId?: string;
2201
+ }
2202
+ export interface RunPubPluginRequest {
2203
+ pluginName?: string;
2204
+ args?: { [key: string]: any };
2205
+ }
2206
+ export interface RunPluginResponse {
2207
+ successValue?: any;
2208
+ errorValue?: $responses.wix.velo.dispatcher.v1.ElementoryValue;
2209
+ }
2210
+ export interface PageRole {
2211
+ id?: string;
2212
+ title?: string;
2213
+ }
2214
+ export interface RouterConfig {
2215
+ routerFunctionName?: string;
2216
+ siteMapFunctionName?: string;
2217
+ }
2218
+ export interface RouterSpec {
2219
+ prefix?: string;
2220
+ config?: $responses.wix.velo.dispatcher.v1.RouterConfig;
2221
+ pageRoles?: { [k: string]: $responses.wix.velo.dispatcher.v1.PageRole };
2222
+ }
2223
+ export interface ChangeFrequencyEnum {
2224
+ }
2225
+ export namespace ChangeFrequencyEnum {
2226
+ export enum ChangeFrequency {
2227
+ UNKNOWN = "UNKNOWN",
2228
+ ALWAYS = "ALWAYS",
2229
+ HOURLY = "HOURLY",
2230
+ DAILY = "DAILY",
2231
+ WEEKLY = "WEEKLY",
2232
+ MONTHLY = "MONTHLY",
2233
+ YEARLY = "YEARLY",
2234
+ NEVER = "NEVER",
2235
+ }
2236
+ }
2237
+ export interface InvokeVsCodeRequest {
2238
+ invocationType?: $responses.wix.velo.dispatcher.v1.InvocationType;
2239
+ path?: string;
2240
+ gridAppId?: string;
2241
+ payload?: { [key: string]: any };
2242
+ httpRequestMethod?: $responses.wix.velo.dispatcher.v1.HttpRequestMethod;
2243
+ }
2244
+ export interface InvokeVsCodeResponse {
2245
+ response?: { [key: string]: any };
2246
+ httpResponseStatus?: number;
2247
+ }
2248
+ export enum InvocationType {
2249
+ EXECUTE = "EXECUTE",
2250
+ NOTIFY = "NOTIFY",
2251
+ }
2252
+ export enum HttpRequestMethod {
2253
+ GET = "GET",
2254
+ POST = "POST",
2255
+ }
2256
+ export enum ElementoryErrorCode {
2257
+ UNKNOWN = "UNKNOWN",
2258
+ PERMISSION_DENIED = "PERMISSION_DENIED",
2259
+ EXECUTION_TIMEOUT = "EXECUTION_TIMEOUT",
2260
+ MODULE_LOAD_ERROR = "MODULE_LOAD_ERROR",
2261
+ MODULE_NOT_FOUND = "MODULE_NOT_FOUND",
2262
+ FUNCTION_NOT_FOUND = "FUNCTION_NOT_FOUND",
2263
+ }
2264
+ }
2265
+ }
2266
+ export namespace apps {
2267
+ export namespace analysis {
2268
+ export namespace v1 {
2269
+ export interface FunctionDefinition {
2270
+ functionName?: string;
2271
+ numOfArguments?: number;
2272
+ }
2273
+ }
2274
+ }
2275
+ }
2276
+ }
2277
+ export namespace spi {
2278
+ export enum HttpStatusCode {
2279
+ UNKNOWN_ERROR = "UNKNOWN_ERROR",
2280
+ UNAUTHENTICATED = "UNAUTHENTICATED",
2281
+ INVALID_ARGUMENT = "INVALID_ARGUMENT",
2282
+ INTERNAL = "INTERNAL",
2283
+ RESOURCE_EXHAUSTED = "RESOURCE_EXHAUSTED",
2284
+ CANCELED = "CANCELED",
2285
+ NOT_FOUND = "NOT_FOUND",
2286
+ ALREADY_EXISTS = "ALREADY_EXISTS",
2287
+ FAILED_PRECONDITION = "FAILED_PRECONDITION",
2288
+ }
2289
+ }
2290
+ export namespace common {
2291
+ export interface Image {
2292
+ id?: string;
2293
+ url?: string;
2294
+ height?: number;
2295
+ width?: number;
2296
+ altText?: string;
2297
+ urlExpirationDate?: Date;
2298
+ filename?: string;
2299
+ sizeInBytes?: string;
2300
+ focalPoint?: $responses.wix.common.FocalPoint;
2301
+ }
2302
+ export interface Video {
2303
+ id?: string;
2304
+ url?: string;
2305
+ height?: number;
2306
+ width?: number;
2307
+ thumbnail?: $responses.wix.common.Image;
2308
+ }
2309
+ export interface VideoV2 {
2310
+ id?: string;
2311
+ url?: string;
2312
+ resolutions?: $responses.wix.common.VideoResolution[];
2313
+ filename?: string;
2314
+ posters?: $responses.wix.common.Image[];
2315
+ sizeInBytes?: string;
2316
+ urlExpirationDate?: Date;
2317
+ durationInMilliseconds?: number;
2318
+ title?: string;
2319
+ description?: string;
2320
+ height?: number;
2321
+ width?: number;
2322
+ }
2323
+ export interface VideoResolution {
2324
+ url?: string;
2325
+ height?: number;
2326
+ width?: number;
2327
+ poster?: $responses.wix.common.Image;
2328
+ format?: string;
2329
+ urlExpirationDate?: Date;
2330
+ sizeInBytes?: string;
2331
+ quality?: string;
2332
+ filename?: string;
2333
+ durationInSeconds?: number;
2334
+ durationInMilliseconds?: number;
2335
+ private?: boolean;
2336
+ assetKey?: string;
2337
+ }
2338
+ export interface Audio {
2339
+ id?: string;
2340
+ url?: string;
2341
+ urlExpirationDate?: Date;
2342
+ sizeInBytes?: string;
2343
+ filename?: string;
2344
+ duration?: number;
2345
+ private?: boolean;
2346
+ assetKey?: string;
2347
+ format?: string;
2348
+ quality?: string;
2349
+ }
2350
+ export interface Document {
2351
+ id?: string;
2352
+ url?: string;
2353
+ urlExpirationDate?: Date;
2354
+ sizeInBytes?: string;
2355
+ filename?: string;
2356
+ thumbnail?: $responses.wix.common.Image;
2357
+ }
2358
+ export interface Model3D {
2359
+ id?: string;
2360
+ url?: string;
2361
+ thumbnail?: $responses.wix.common.Image;
2362
+ altText?: string;
2363
+ urlExpirationDate?: Date;
2364
+ filename?: string;
2365
+ sizeInBytes?: string;
2366
+ }
2367
+ export interface Archive {
2368
+ id?: string;
2369
+ url?: string;
2370
+ urlExpirationDate?: Date;
2371
+ sizeInBytes?: string;
2372
+ filename?: string;
2373
+ }
2374
+ export interface MediaItem {
2375
+ image?: $responses.wix.common.Image;
2376
+ video?: $responses.wix.common.Video;
2377
+ document?: $responses.wix.common.Document;
2378
+ }
2379
+ export interface FocalPoint {
2380
+ x?: number;
2381
+ y?: number;
2382
+ height?: number;
2383
+ width?: number;
2384
+ }
2385
+ export interface Paging {
2386
+ limit?: number;
2387
+ offset?: number;
2388
+ }
2389
+ export interface CursorPaging {
2390
+ limit?: number;
2391
+ cursor?: string;
2392
+ }
2393
+ export interface PagingMetadata {
2394
+ count?: number;
2395
+ offset?: number;
2396
+ total?: number;
2397
+ tooManyToCount?: boolean;
2398
+ hasNext?: boolean;
2399
+ }
2400
+ export interface PagingMetadataV2 {
2401
+ count?: number;
2402
+ offset?: number;
2403
+ total?: number;
2404
+ tooManyToCount?: boolean;
2405
+ cursors?: $responses.wix.common.Cursors;
2406
+ hasNext?: boolean;
2407
+ }
2408
+ export interface CursorPagingMetadata {
2409
+ count?: number;
2410
+ cursors?: $responses.wix.common.Cursors;
2411
+ hasNext?: boolean;
2412
+ total?: number;
2413
+ }
2414
+ export interface Cursors {
2415
+ next?: string;
2416
+ prev?: string;
2417
+ }
2418
+ }
2419
+ }
2420
+ export namespace google {
2421
+ export namespace api {
2422
+ export interface Http {
2423
+ rules?: $responses.google.api.HttpRule[];
2424
+ }
2425
+ export interface HttpRule {
2426
+ selector?: string;
2427
+ get?: string;
2428
+ put?: string;
2429
+ post?: string;
2430
+ delete?: string;
2431
+ patch?: string;
2432
+ custom?: $responses.google.api.CustomHttpPattern;
2433
+ body?: string;
2434
+ additionalBindings?: $responses.google.api.HttpRule[];
2435
+ }
2436
+ export interface CustomHttpPattern {
2437
+ kind?: string;
2438
+ path?: string;
2439
+ }
2440
+ }
2441
+ export namespace protobuf {
2442
+ export interface FileDescriptorSet {
2443
+ file?: $responses.google.protobuf.FileDescriptorProto[];
2444
+ }
2445
+ export interface FileDescriptorProto {
2446
+ name?: string;
2447
+ package?: string;
2448
+ dependency?: string[];
2449
+ publicDependency?: number[];
2450
+ weakDependency?: number[];
2451
+ messageType?: $responses.google.protobuf.DescriptorProto[];
2452
+ enumType?: $responses.google.protobuf.EnumDescriptorProto[];
2453
+ service?: $responses.google.protobuf.ServiceDescriptorProto[];
2454
+ extension?: $responses.google.protobuf.FieldDescriptorProto[];
2455
+ options?: $responses.google.protobuf.FileOptions;
2456
+ sourceCodeInfo?: $responses.google.protobuf.SourceCodeInfo;
2457
+ syntax?: string;
2458
+ }
2459
+ export interface DescriptorProto {
2460
+ name?: string;
2461
+ field?: $responses.google.protobuf.FieldDescriptorProto[];
2462
+ extension?: $responses.google.protobuf.FieldDescriptorProto[];
2463
+ nestedType?: $responses.google.protobuf.DescriptorProto[];
2464
+ enumType?: $responses.google.protobuf.EnumDescriptorProto[];
2465
+ extensionRange?: $responses.google.protobuf.DescriptorProto.ExtensionRange[];
2466
+ oneofDecl?: $responses.google.protobuf.OneofDescriptorProto[];
2467
+ options?: $responses.google.protobuf.MessageOptions;
2468
+ reservedRange?: $responses.google.protobuf.DescriptorProto.ReservedRange[];
2469
+ reservedName?: string[];
2470
+ }
2471
+ export namespace DescriptorProto {
2472
+ export interface ExtensionRange {
2473
+ start?: number;
2474
+ end?: number;
2475
+ options?: $responses.google.protobuf.ExtensionRangeOptions;
2476
+ }
2477
+ export interface ReservedRange {
2478
+ start?: number;
2479
+ end?: number;
2480
+ }
2481
+ }
2482
+ export interface ExtensionRangeOptions {
2483
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2484
+ }
2485
+ export interface FieldDescriptorProto {
2486
+ name?: string;
2487
+ number?: number;
2488
+ label?: $responses.google.protobuf.FieldDescriptorProto.Label;
2489
+ type?: $responses.google.protobuf.FieldDescriptorProto.Type;
2490
+ typeName?: string;
2491
+ extendee?: string;
2492
+ defaultValue?: string;
2493
+ oneofIndex?: number;
2494
+ jsonName?: string;
2495
+ options?: $responses.google.protobuf.FieldOptions;
2496
+ proto3Optional?: boolean;
2497
+ }
2498
+ export namespace FieldDescriptorProto {
2499
+ export enum Type {
2500
+ TYPE_DOUBLE = "TYPE_DOUBLE",
2501
+ TYPE_FLOAT = "TYPE_FLOAT",
2502
+ TYPE_INT64 = "TYPE_INT64",
2503
+ TYPE_UINT64 = "TYPE_UINT64",
2504
+ TYPE_INT32 = "TYPE_INT32",
2505
+ TYPE_FIXED64 = "TYPE_FIXED64",
2506
+ TYPE_FIXED32 = "TYPE_FIXED32",
2507
+ TYPE_BOOL = "TYPE_BOOL",
2508
+ TYPE_STRING = "TYPE_STRING",
2509
+ TYPE_GROUP = "TYPE_GROUP",
2510
+ TYPE_MESSAGE = "TYPE_MESSAGE",
2511
+ TYPE_BYTES = "TYPE_BYTES",
2512
+ TYPE_UINT32 = "TYPE_UINT32",
2513
+ TYPE_ENUM = "TYPE_ENUM",
2514
+ TYPE_SFIXED32 = "TYPE_SFIXED32",
2515
+ TYPE_SFIXED64 = "TYPE_SFIXED64",
2516
+ TYPE_SINT32 = "TYPE_SINT32",
2517
+ TYPE_SINT64 = "TYPE_SINT64",
2518
+ }
2519
+ export enum Label {
2520
+ LABEL_OPTIONAL = "LABEL_OPTIONAL",
2521
+ LABEL_REQUIRED = "LABEL_REQUIRED",
2522
+ LABEL_REPEATED = "LABEL_REPEATED",
2523
+ }
2524
+ }
2525
+ export interface OneofDescriptorProto {
2526
+ name?: string;
2527
+ options?: $responses.google.protobuf.OneofOptions;
2528
+ }
2529
+ export interface EnumDescriptorProto {
2530
+ name?: string;
2531
+ value?: $responses.google.protobuf.EnumValueDescriptorProto[];
2532
+ options?: $responses.google.protobuf.EnumOptions;
2533
+ reservedRange?: $responses.google.protobuf.EnumDescriptorProto.EnumReservedRange[];
2534
+ reservedName?: string[];
2535
+ }
2536
+ export namespace EnumDescriptorProto {
2537
+ export interface EnumReservedRange {
2538
+ start?: number;
2539
+ end?: number;
2540
+ }
2541
+ }
2542
+ export interface EnumValueDescriptorProto {
2543
+ name?: string;
2544
+ number?: number;
2545
+ options?: $responses.google.protobuf.EnumValueOptions;
2546
+ }
2547
+ export interface ServiceDescriptorProto {
2548
+ name?: string;
2549
+ method?: $responses.google.protobuf.MethodDescriptorProto[];
2550
+ options?: $responses.google.protobuf.ServiceOptions;
2551
+ }
2552
+ export interface MethodDescriptorProto {
2553
+ name?: string;
2554
+ inputType?: string;
2555
+ outputType?: string;
2556
+ options?: $responses.google.protobuf.MethodOptions;
2557
+ clientStreaming?: boolean;
2558
+ serverStreaming?: boolean;
2559
+ }
2560
+ export interface FileOptions {
2561
+ javaPackage?: string;
2562
+ javaOuterClassname?: string;
2563
+ javaMultipleFiles?: boolean;
2564
+ javaGenerateEqualsAndHash?: boolean;
2565
+ javaStringCheckUtf8?: boolean;
2566
+ optimizeFor?: $responses.google.protobuf.FileOptions.OptimizeMode;
2567
+ goPackage?: string;
2568
+ ccGenericServices?: boolean;
2569
+ javaGenericServices?: boolean;
2570
+ pyGenericServices?: boolean;
2571
+ phpGenericServices?: boolean;
2572
+ deprecated?: boolean;
2573
+ ccEnableArenas?: boolean;
2574
+ objcClassPrefix?: string;
2575
+ csharpNamespace?: string;
2576
+ swiftPrefix?: string;
2577
+ phpClassPrefix?: string;
2578
+ phpNamespace?: string;
2579
+ phpMetadataNamespace?: string;
2580
+ rubyPackage?: string;
2581
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2582
+ }
2583
+ export namespace FileOptions {
2584
+ export enum OptimizeMode {
2585
+ SPEED = "SPEED",
2586
+ CODE_SIZE = "CODE_SIZE",
2587
+ LITE_RUNTIME = "LITE_RUNTIME",
2588
+ }
2589
+ }
2590
+ export interface MessageOptions {
2591
+ messageSetWireFormat?: boolean;
2592
+ noStandardDescriptorAccessor?: boolean;
2593
+ deprecated?: boolean;
2594
+ mapEntry?: boolean;
2595
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2596
+ '.wix.api.decompositeOf'?: string;
2597
+ '.wix.api.decompositionMinimumFields'?: $responses.wix.api.FieldSet[];
2598
+ '.wix.api.unwrapArrayValue'?: boolean;
2599
+ '.wix.api.messageDeprecated'?: $responses.wix.api.Deprecated;
2600
+ '.wix.api.unique'?: $responses.wix.api.Unique[];
2601
+ '.wix.api.entity'?: $responses.wix.api.Entity;
2602
+ '.wix.api.domainEvent'?: $responses.wix.api.DomainEvent[];
2603
+ }
2604
+ export interface FieldOptions {
2605
+ ctype?: $responses.google.protobuf.FieldOptions.CType;
2606
+ packed?: boolean;
2607
+ jstype?: $responses.google.protobuf.FieldOptions.JSType;
2608
+ lazy?: boolean;
2609
+ deprecated?: boolean;
2610
+ weak?: boolean;
2611
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2612
+ '.wix.api.fieldExposure'?: $responses.wix.api.Exposure;
2613
+ '.wix.api.fieldMaturity'?: $responses.wix.api.Maturity;
2614
+ '.wix.api.pii'?: boolean;
2615
+ '.wix.api.referencedEntity'?: string;
2616
+ '.wix.api.referencedEntityField'?: $responses.wix.api.ReferenceEntityField;
2617
+ '.wix.api.fieldDeprecated'?: $responses.wix.api.Deprecated;
2618
+ '.wix.api.translatable'?: $responses.wix.api.Translatable;
2619
+ '.wix.api.sampleData'?: string;
2620
+ '.wix.api.conditional'?: $responses.wix.api.Conditional;
2621
+ '.wix.api.nullable'?: boolean;
2622
+ '.wix.api.max'?: number;
2623
+ '.wix.api.min'?: number;
2624
+ '.wix.api.maxLength'?: number;
2625
+ '.wix.api.minLength'?: number;
2626
+ '.wix.api.exactLength'?: number;
2627
+ '.wix.api.maxSize'?: number;
2628
+ '.wix.api.minSize'?: number;
2629
+ '.wix.api.exactSize'?: number;
2630
+ '.wix.api.format'?: $responses.wix.api.Format;
2631
+ '.wix.api.readOnly'?: boolean;
2632
+ '.wix.api.immutable'?: boolean;
2633
+ '.wix.api.writeOnly'?: boolean;
2634
+ '.wix.api.decimalValue'?: $responses.wix.api.DecimalValueOptions;
2635
+ '.wix.api.customValidation'?: $responses.wix.api.CustomValidationError;
2636
+ }
2637
+ export namespace FieldOptions {
2638
+ export enum CType {
2639
+ STRING = "STRING",
2640
+ CORD = "CORD",
2641
+ STRING_PIECE = "STRING_PIECE",
2642
+ }
2643
+ export enum JSType {
2644
+ JS_NORMAL = "JS_NORMAL",
2645
+ JS_STRING = "JS_STRING",
2646
+ JS_NUMBER = "JS_NUMBER",
2647
+ }
2648
+ }
2649
+ export interface OneofOptions {
2650
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2651
+ '.wix.api.alignedWithEnum'?: $responses.wix.api.AlignedWithEnum;
2652
+ }
2653
+ export interface EnumOptions {
2654
+ allowAlias?: boolean;
2655
+ deprecated?: boolean;
2656
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2657
+ }
2658
+ export interface EnumValueOptions {
2659
+ deprecated?: boolean;
2660
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2661
+ '.wix.api.enumMaturity'?: $responses.wix.api.Maturity;
2662
+ '.wix.api.enumExposure'?: $responses.wix.api.Exposure;
2663
+ }
2664
+ export interface ServiceOptions {
2665
+ deprecated?: boolean;
2666
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2667
+ '.wix.api.serviceMaturity'?: $responses.wix.api.Maturity;
2668
+ '.wix.api.serviceExposure'?: $responses.wix.api.Exposure;
2669
+ '.wix.api.serviceDeprecated'?: $responses.wix.api.Deprecated;
2670
+ '.wix.api.appendixFiles'?: $responses.wix.api.ServiceAppendix[];
2671
+ '.wix.api.errorDef'?: $responses.wix.api.Error[];
2672
+ '.wix.api.serviceEntity'?: $responses.wix.api.ServiceEntity;
2673
+ '.wix.api.event'?: $responses.wix.api.Callback[];
2674
+ '.wix.api.eventDeprecated'?: $responses.wix.api.CallbackDeprecation[];
2675
+ }
2676
+ export interface MethodOptions {
2677
+ deprecated?: boolean;
2678
+ idempotencyLevel?: $responses.google.protobuf.MethodOptions.IdempotencyLevel;
2679
+ uninterpretedOption?: $responses.google.protobuf.UninterpretedOption[];
2680
+ '.wix.api.exposure'?: $responses.wix.api.Exposure;
2681
+ '.wix.api.maturity'?: $responses.wix.api.Maturity;
2682
+ '.wix.api.cacheable'?: $responses.wix.api.CacheSettings;
2683
+ '.wix.api.deprecated'?: $responses.wix.api.Deprecated;
2684
+ '.wix.api.crud'?: $responses.wix.api.Crud;
2685
+ '.wix.api.acceptsLinguist'?: boolean;
2686
+ '.wix.api.error'?: $responses.wix.api.Error[];
2687
+ '.wix.api.customValidationError'?: $responses.wix.api.CustomValidationError[];
2688
+ '.wix.api.inheritCrudErrors'?: $responses.wix.api.InheritCrudErrors[];
2689
+ '.wix.api.errorRef'?: $responses.wix.api.ErrorRef[];
2690
+ '.wix.api.permission'?: $responses.wix.api.PermissionRule;
2691
+ '.wix.api.additionalPermission'?: $responses.wix.api.PermissionRule[];
2692
+ '.wix.api.required'?: string[];
2693
+ '.wix.api.writable'?: string[];
2694
+ '.wix.api.callback'?: $responses.wix.api.Callback[];
2695
+ '.wix.api.emits'?: $responses.wix.api.Emits[];
2696
+ '.google.api.http'?: $responses.google.api.HttpRule;
2697
+ }
2698
+ export namespace MethodOptions {
2699
+ export enum IdempotencyLevel {
2700
+ IDEMPOTENCY_UNKNOWN = "IDEMPOTENCY_UNKNOWN",
2701
+ NO_SIDE_EFFECTS = "NO_SIDE_EFFECTS",
2702
+ IDEMPOTENT = "IDEMPOTENT",
2703
+ }
2704
+ }
2705
+ export interface UninterpretedOption {
2706
+ name?: $responses.google.protobuf.UninterpretedOption.NamePart[];
2707
+ identifierValue?: string;
2708
+ positiveIntValue?: (number | Long);
2709
+ negativeIntValue?: (number | Long);
2710
+ doubleValue?: number;
2711
+ stringValue?: Uint8Array;
2712
+ aggregateValue?: string;
2713
+ }
2714
+ export namespace UninterpretedOption {
2715
+ export interface NamePart {
2716
+ namePart?: string;
2717
+ isExtension?: boolean;
2718
+ }
2719
+ }
2720
+ export interface SourceCodeInfo {
2721
+ location?: $responses.google.protobuf.SourceCodeInfo.Location[];
2722
+ }
2723
+ export namespace SourceCodeInfo {
2724
+ export interface Location {
2725
+ path?: number[];
2726
+ span?: number[];
2727
+ leadingComments?: string;
2728
+ trailingComments?: string;
2729
+ leadingDetachedComments?: string[];
2730
+ }
2731
+ }
2732
+ export interface GeneratedCodeInfo {
2733
+ annotation?: $responses.google.protobuf.GeneratedCodeInfo.Annotation[];
2734
+ }
2735
+ export namespace GeneratedCodeInfo {
2736
+ export interface Annotation {
2737
+ path?: number[];
2738
+ sourceFile?: string;
2739
+ begin?: number;
2740
+ end?: number;
2741
+ }
2742
+ }
2743
+ }
2744
+ }
2745
+ }
2746
+ export {$responses as responses};
2747
+
2748
+ declare namespace $services {
2749
+ export namespace com {
2750
+ export namespace wixpress {
2751
+ export namespace wixcode {
2752
+ export namespace dispatcher {
2753
+ export namespace api {
2754
+ export namespace v1 {
2755
+ export abstract class ElementoryProxy {
2756
+ abstract invokeUserBackendFunction(aspects: AspectStore, req: $requests.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionRequest): Promise<$responses.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionResponse>
2757
+ abstract invokeBulkUserBackendFunctions(aspects: AspectStore, req: $requests.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionBulkRequest): Promise<$responses.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionBulkResponse>
2758
+ }
2759
+ export abstract class ElementoryDevProxy {
2760
+ abstract invokeUserBackendFunction(aspects: AspectStore, req: $requests.com.wixpress.wixcode.dispatcher.api.v1.InvokeDevFunctionRequest): Promise<$responses.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionResponse>
2761
+ abstract invokeBulkUserBackendFunctions(aspects: AspectStore, req: $requests.com.wixpress.wixcode.dispatcher.api.v1.InvokeDevFunctionBulkRequest): Promise<$responses.com.wixpress.wixcode.dispatcher.api.v1.InvokeFunctionBulkResponse>
2762
+ }
2763
+ }
2764
+ }
2765
+ }
2766
+ }
2767
+ export namespace structure {
2768
+ export namespace dynamic {
2769
+ export namespace api {
2770
+ export abstract class DynamicSiteStructureService {
2771
+ abstract getTpaSiteStructure(aspects: AspectStore, req: $requests.com.wixpress.structure.dynamic.api.DynamicSiteStructureRequest): Promise<$responses.com.wixpress.structure.dynamic.api.DynamicSiteStructureResponse>
2772
+ }
2773
+ }
2774
+ }
2775
+ }
2776
+ }
2777
+ export namespace wix {
2778
+ export namespace duplexer {
2779
+ export namespace api {
2780
+ export abstract class DuplexerApi {
2781
+ abstract publish(aspects: AspectStore, req: $requests.com.wix.duplexer.api.PublishRequest): Promise<$responses.com.wix.duplexer.api.PublishResponse>
2782
+ abstract publishAsDuplexer(aspects: AspectStore, req: $requests.com.wix.duplexer.api.PublishAsDuplexerRequest): Promise<$responses.com.wix.duplexer.api.PublishAsDuplexerResponse>
2783
+ }
2784
+ }
2785
+ }
2786
+ export namespace realtime {
2787
+ export namespace v4 {
2788
+ export abstract class DuplexerApiV4 {
2789
+ abstract publish(aspects: AspectStore, req: $requests.com.wix.realtime.v4.PublishRequest): Promise<$responses.com.wix.realtime.v4.PublishResponse>
2790
+ abstract publishToUser(aspects: AspectStore, req: $requests.com.wix.realtime.v4.PublishToUserRequest): Promise<$responses.com.wix.realtime.v4.PublishToUserResponse>
2791
+ }
2792
+ }
2793
+ }
2794
+ }
2795
+ }
2796
+ export namespace wix {
2797
+ export namespace velo {
2798
+ export namespace dispatcher {
2799
+ export namespace v1 {
2800
+ export abstract class ElementoryDevMetadata {
2801
+ abstract getModuleMetadata(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.GetModuleMetadataRequest): Promise<$responses.wix.velo.dispatcher.v1.GetModuleMetadataResponse>
2802
+ }
2803
+ export abstract class ElementoryDevProxy {
2804
+ abstract invokeUserBackendFunction(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.InvokeDevFunctionRequest): Promise<$responses.wix.velo.dispatcher.v1.InvokeFunctionResponse>
2805
+ abstract invokeBulkUserBackendFunctions(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.InvokeDevFunctionsBulkRequest): Promise<$responses.wix.velo.dispatcher.v1.InvokeFunctionsBulkResponse>
2806
+ /**
2807
+ * Invokes an Elementory plugin code of a specific app in preview mode.
2808
+ * More info: https://github.com/wix-private/cloud-runtime/wiki/Elementory-Plugins-Manual
2809
+ */
2810
+ abstract runPlugin(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.RunDevPluginRequest): Promise<$responses.wix.velo.dispatcher.v1.RunPluginResponse>
2811
+ abstract invokeVsCode(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.InvokeVsCodeRequest): Promise<$responses.wix.velo.dispatcher.v1.InvokeVsCodeResponse>
2812
+ }
2813
+ export abstract class ElementoryPubMetadata {
2814
+ abstract getModuleMetadata(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.GetModuleMetadataRequest): Promise<$responses.wix.velo.dispatcher.v1.GetModuleMetadataResponse>
2815
+ }
2816
+ export abstract class ElementoryPubProxy {
2817
+ abstract invokeUserBackendFunction(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.InvokeFunctionRequest): Promise<$responses.wix.velo.dispatcher.v1.InvokeFunctionResponse>
2818
+ abstract invokeBulkUserBackendFunctions(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.InvokePubFunctionsBulkRequest): Promise<$responses.wix.velo.dispatcher.v1.InvokeFunctionsBulkResponse>
2819
+ abstract invokeSpi(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.InvokeSpiRequest): Promise<$responses.wix.velo.dispatcher.v1.InvokeSpiResponse>
2820
+ /**
2821
+ * Invokes an Elementory plugin code of a published / test site.
2822
+ * More info: https://github.com/wix-private/cloud-runtime/wiki/Elementory-Plugins-Manual
2823
+ */
2824
+ abstract runPlugin(aspects: AspectStore, req: $requests.wix.velo.dispatcher.v1.RunPubPluginRequest): Promise<$responses.wix.velo.dispatcher.v1.RunPluginResponse>
2825
+ abstract getTpaSiteStructure(aspects: AspectStore, req: $requests.com.wixpress.structure.dynamic.api.DynamicSiteStructureRequest): Promise<$responses.com.wixpress.structure.dynamic.api.DynamicSiteStructureResponse>
2826
+ }
2827
+ }
2828
+ }
2829
+ }
2830
+ }
2831
+ }
2832
+ export {$services as services};