@aceplus/smartace-api 2.5.0 → 2.5.1

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 (213) hide show
  1. package/auth.account_pb.d.ts +537 -0
  2. package/auth.account_pb.js +3997 -0
  3. package/auth.account_pb_service.d.ts +454 -0
  4. package/auth.account_pb_service.js +877 -0
  5. package/auth.account_two_factor_pb.d.ts +159 -0
  6. package/auth.account_two_factor_pb.js +1184 -0
  7. package/auth.account_two_factor_pb_service.d.ts +121 -0
  8. package/auth.account_two_factor_pb_service.js +182 -0
  9. package/auth.app_account_pb.d.ts +156 -0
  10. package/auth.app_account_pb.js +1153 -0
  11. package/auth.app_account_pb_service.d.ts +160 -0
  12. package/auth.app_account_pb_service.js +263 -0
  13. package/auth.app_authn_pb.d.ts +172 -0
  14. package/auth.app_authn_pb.js +1233 -0
  15. package/auth.app_authn_pb_service.d.ts +140 -0
  16. package/auth.app_authn_pb_service.js +222 -0
  17. package/auth.app_distribution_pb.d.ts +174 -0
  18. package/auth.app_distribution_pb.js +1338 -0
  19. package/auth.app_distribution_pb_service.d.ts +120 -0
  20. package/auth.app_distribution_pb_service.js +181 -0
  21. package/auth.authn_pb.d.ts +94 -0
  22. package/auth.authn_pb.js +636 -0
  23. package/auth.authn_pb_service.d.ts +82 -0
  24. package/auth.authn_pb_service.js +101 -0
  25. package/auth.cluster_pb.d.ts +258 -0
  26. package/auth.cluster_pb.js +1929 -0
  27. package/auth.cluster_pb_service.d.ts +139 -0
  28. package/auth.cluster_pb_service.js +221 -0
  29. package/auth.distribution_pb.d.ts +233 -0
  30. package/auth.distribution_pb.js +1785 -0
  31. package/auth.distribution_pb_service.d.ts +82 -0
  32. package/auth.distribution_pb_service.js +101 -0
  33. package/auth.email_pb.d.ts +277 -0
  34. package/auth.email_pb.js +1960 -0
  35. package/auth.email_pb_service.d.ts +121 -0
  36. package/auth.email_pb_service.js +182 -0
  37. package/auth.firmware_pb.d.ts +238 -0
  38. package/auth.firmware_pb.js +1850 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.push_notification_pb.d.ts +187 -0
  42. package/auth.push_notification_pb.js +1289 -0
  43. package/auth.push_notification_pb_service.d.ts +121 -0
  44. package/auth.push_notification_pb_service.js +182 -0
  45. package/auth.sms_pb.d.ts +79 -0
  46. package/auth.sms_pb.js +575 -0
  47. package/auth.sms_pb_service.d.ts +83 -0
  48. package/auth.sms_pb_service.js +102 -0
  49. package/google/api/annotations_pb.d.ts +9 -0
  50. package/google/api/annotations_pb.js +54 -0
  51. package/google/api/annotations_pb_service.d.ts +3 -0
  52. package/google/api/annotations_pb_service.js +3 -0
  53. package/google/api/auth_pb.d.ts +150 -0
  54. package/google/api/auth_pb.js +1160 -0
  55. package/google/api/auth_pb_service.d.ts +3 -0
  56. package/google/api/auth_pb_service.js +3 -0
  57. package/google/api/backend_pb.d.ts +59 -0
  58. package/google/api/backend_pb.js +448 -0
  59. package/google/api/backend_pb_service.d.ts +3 -0
  60. package/google/api/backend_pb_service.js +3 -0
  61. package/google/api/billing_pb.d.ts +54 -0
  62. package/google/api/billing_pb.js +416 -0
  63. package/google/api/billing_pb_service.d.ts +3 -0
  64. package/google/api/billing_pb_service.js +3 -0
  65. package/google/api/client_pb.d.ts +12 -0
  66. package/google/api/client_pb.js +104 -0
  67. package/google/api/client_pb_service.d.ts +3 -0
  68. package/google/api/client_pb_service.js +3 -0
  69. package/google/api/config_change_pb.d.ts +72 -0
  70. package/google/api/config_change_pb.js +489 -0
  71. package/google/api/config_change_pb_service.d.ts +3 -0
  72. package/google/api/config_change_pb_service.js +3 -0
  73. package/google/api/consumer_pb.d.ts +65 -0
  74. package/google/api/consumer_pb.js +430 -0
  75. package/google/api/consumer_pb_service.d.ts +3 -0
  76. package/google/api/consumer_pb_service.js +3 -0
  77. package/google/api/context_pb.d.ts +59 -0
  78. package/google/api/context_pb.js +463 -0
  79. package/google/api/context_pb_service.d.ts +3 -0
  80. package/google/api/context_pb_service.js +3 -0
  81. package/google/api/control_pb.d.ts +25 -0
  82. package/google/api/control_pb.js +176 -0
  83. package/google/api/control_pb_service.d.ts +3 -0
  84. package/google/api/control_pb_service.js +3 -0
  85. package/google/api/distribution_pb.d.ts +235 -0
  86. package/google/api/distribution_pb.js +1805 -0
  87. package/google/api/distribution_pb_service.d.ts +3 -0
  88. package/google/api/distribution_pb_service.js +3 -0
  89. package/google/api/documentation_pb.d.ts +103 -0
  90. package/google/api/documentation_pb.js +803 -0
  91. package/google/api/documentation_pb_service.d.ts +3 -0
  92. package/google/api/documentation_pb_service.js +3 -0
  93. package/google/api/endpoint_pb.d.ts +46 -0
  94. package/google/api/endpoint_pb.js +343 -0
  95. package/google/api/endpoint_pb_service.d.ts +3 -0
  96. package/google/api/endpoint_pb_service.js +3 -0
  97. package/google/api/error_reason_pb.d.ts +40 -0
  98. package/google/api/error_reason_pb.js +61 -0
  99. package/google/api/error_reason_pb_service.d.ts +3 -0
  100. package/google/api/error_reason_pb_service.js +3 -0
  101. package/google/api/field_behavior_pb.d.ts +20 -0
  102. package/google/api/field_behavior_pb.js +66 -0
  103. package/google/api/field_behavior_pb_service.d.ts +3 -0
  104. package/google/api/field_behavior_pb_service.js +3 -0
  105. package/google/api/http_pb.d.ts +136 -0
  106. package/google/api/http_pb.js +1012 -0
  107. package/google/api/http_pb_service.d.ts +3 -0
  108. package/google/api/http_pb_service.js +3 -0
  109. package/google/api/httpbody_pb.d.ts +38 -0
  110. package/google/api/httpbody_pb.js +292 -0
  111. package/google/api/httpbody_pb_service.d.ts +3 -0
  112. package/google/api/httpbody_pb_service.js +3 -0
  113. package/google/api/label_pb.d.ts +41 -0
  114. package/google/api/label_pb.js +246 -0
  115. package/google/api/label_pb_service.d.ts +3 -0
  116. package/google/api/label_pb_service.js +3 -0
  117. package/google/api/launch_stage_pb.d.ts +16 -0
  118. package/google/api/launch_stage_pb.js +37 -0
  119. package/google/api/launch_stage_pb_service.d.ts +3 -0
  120. package/google/api/launch_stage_pb_service.js +3 -0
  121. package/google/api/log_pb.d.ts +40 -0
  122. package/google/api/log_pb.js +298 -0
  123. package/google/api/log_pb_service.d.ts +3 -0
  124. package/google/api/log_pb_service.js +3 -0
  125. package/google/api/logging_pb.d.ts +60 -0
  126. package/google/api/logging_pb.js +469 -0
  127. package/google/api/logging_pb_service.d.ts +3 -0
  128. package/google/api/logging_pb_service.js +3 -0
  129. package/google/api/metric_pb.d.ts +100 -0
  130. package/google/api/metric_pb.js +629 -0
  131. package/google/api/metric_pb_service.d.ts +3 -0
  132. package/google/api/metric_pb_service.js +3 -0
  133. package/google/api/monitored_resource_pb.d.ts +93 -0
  134. package/google/api/monitored_resource_pb.js +723 -0
  135. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  136. package/google/api/monitored_resource_pb_service.js +3 -0
  137. package/google/api/monitoring_pb.d.ts +60 -0
  138. package/google/api/monitoring_pb.js +469 -0
  139. package/google/api/monitoring_pb_service.d.ts +3 -0
  140. package/google/api/monitoring_pb_service.js +3 -0
  141. package/google/api/policy_pb.d.ts +64 -0
  142. package/google/api/policy_pb.js +502 -0
  143. package/google/api/policy_pb_service.d.ts +3 -0
  144. package/google/api/policy_pb_service.js +3 -0
  145. package/google/api/quota_pb.d.ts +112 -0
  146. package/google/api/quota_pb.js +873 -0
  147. package/google/api/quota_pb_service.d.ts +3 -0
  148. package/google/api/quota_pb_service.js +3 -0
  149. package/google/api/resource_pb.d.ts +99 -0
  150. package/google/api/resource_pb.js +684 -0
  151. package/google/api/resource_pb_service.d.ts +3 -0
  152. package/google/api/resource_pb_service.js +3 -0
  153. package/google/api/routing_pb.d.ts +54 -0
  154. package/google/api/routing_pb.js +416 -0
  155. package/google/api/routing_pb_service.d.ts +3 -0
  156. package/google/api/routing_pb_service.js +3 -0
  157. package/google/api/service_pb.d.ts +184 -0
  158. package/google/api/service_pb.js +1400 -0
  159. package/google/api/service_pb_service.d.ts +3 -0
  160. package/google/api/service_pb_service.js +3 -0
  161. package/google/api/source_info_pb.d.ts +28 -0
  162. package/google/api/source_info_pb.js +208 -0
  163. package/google/api/source_info_pb_service.d.ts +3 -0
  164. package/google/api/source_info_pb_service.js +3 -0
  165. package/google/api/system_parameter_pb.d.ts +81 -0
  166. package/google/api/system_parameter_pb.js +630 -0
  167. package/google/api/system_parameter_pb_service.d.ts +3 -0
  168. package/google/api/system_parameter_pb_service.js +3 -0
  169. package/google/api/usage_pb.d.ts +66 -0
  170. package/google/api/usage_pb.js +499 -0
  171. package/google/api/usage_pb_service.d.ts +3 -0
  172. package/google/api/usage_pb_service.js +3 -0
  173. package/google/api/visibility_pb.d.ts +64 -0
  174. package/google/api/visibility_pb.js +546 -0
  175. package/google/api/visibility_pb_service.d.ts +3 -0
  176. package/google/api/visibility_pb_service.js +3 -0
  177. package/package.json +1 -1
  178. package/platform.activity_log_pb.d.ts +177 -0
  179. package/platform.activity_log_pb.js +1294 -0
  180. package/platform.activity_log_pb_service.d.ts +82 -0
  181. package/platform.activity_log_pb_service.js +101 -0
  182. package/platform.client_pb.d.ts +345 -0
  183. package/platform.client_pb.js +2637 -0
  184. package/platform.client_pb_service.d.ts +158 -0
  185. package/platform.client_pb_service.js +261 -0
  186. package/platform.group_pb.d.ts +195 -0
  187. package/platform.group_pb.js +1476 -0
  188. package/platform.group_pb_service.d.ts +139 -0
  189. package/platform.group_pb_service.js +221 -0
  190. package/platform.local_account_pb.d.ts +410 -0
  191. package/platform.local_account_pb.js +3136 -0
  192. package/platform.local_account_pb_service.d.ts +350 -0
  193. package/platform.local_account_pb_service.js +663 -0
  194. package/platform.local_distribution_pb.d.ts +69 -0
  195. package/platform.local_distribution_pb.js +506 -0
  196. package/platform.local_distribution_pb_service.d.ts +63 -0
  197. package/platform.local_distribution_pb_service.js +61 -0
  198. package/platform.location_pb.d.ts +271 -0
  199. package/platform.location_pb.js +2046 -0
  200. package/platform.location_pb_service.d.ts +139 -0
  201. package/platform.location_pb_service.js +221 -0
  202. package/platform.pagination_pb.d.ts +37 -0
  203. package/platform.pagination_pb.js +266 -0
  204. package/platform.pagination_pb_service.d.ts +3 -0
  205. package/platform.pagination_pb_service.js +3 -0
  206. package/spic.cabinet_pb.d.ts +1304 -0
  207. package/spic.cabinet_pb.js +9727 -0
  208. package/spic.cabinet_pb_service.d.ts +359 -0
  209. package/spic.cabinet_pb_service.js +677 -0
  210. package/spic.contractor_pb.d.ts +195 -0
  211. package/spic.contractor_pb.js +1476 -0
  212. package/spic.contractor_pb_service.d.ts +139 -0
  213. package/spic.contractor_pb_service.js +221 -0
@@ -0,0 +1,877 @@
1
+ // package: Auth
2
+ // file: auth.account.proto
3
+
4
+ var auth_account_pb = require("./auth.account_pb");
5
+ var google_protobuf_empty_pb = require("google-protobuf/google/protobuf/empty_pb");
6
+ var grpc = require("@improbable-eng/grpc-web").grpc;
7
+
8
+ var SuperAdminAccountGRPC = (function () {
9
+ function SuperAdminAccountGRPC() {}
10
+ SuperAdminAccountGRPC.serviceName = "Auth.SuperAdminAccountGRPC";
11
+ return SuperAdminAccountGRPC;
12
+ }());
13
+
14
+ SuperAdminAccountGRPC.CreateUser = {
15
+ methodName: "CreateUser",
16
+ service: SuperAdminAccountGRPC,
17
+ requestStream: false,
18
+ responseStream: false,
19
+ requestType: auth_account_pb.AccountProto.CreateAdminRequest,
20
+ responseType: auth_account_pb.AccountProto
21
+ };
22
+
23
+ SuperAdminAccountGRPC.Retrieve = {
24
+ methodName: "Retrieve",
25
+ service: SuperAdminAccountGRPC,
26
+ requestStream: false,
27
+ responseStream: false,
28
+ requestType: auth_account_pb.AccountProto.RetrieveRequest,
29
+ responseType: auth_account_pb.AccountProto
30
+ };
31
+
32
+ SuperAdminAccountGRPC.Update = {
33
+ methodName: "Update",
34
+ service: SuperAdminAccountGRPC,
35
+ requestStream: false,
36
+ responseStream: false,
37
+ requestType: auth_account_pb.AccountProto.UpdateRequest,
38
+ responseType: auth_account_pb.AccountProto
39
+ };
40
+
41
+ SuperAdminAccountGRPC.Delete = {
42
+ methodName: "Delete",
43
+ service: SuperAdminAccountGRPC,
44
+ requestStream: false,
45
+ responseStream: false,
46
+ requestType: auth_account_pb.AccountProto.DeleteRequest,
47
+ responseType: auth_account_pb.AccountProto.DeleteReply
48
+ };
49
+
50
+ SuperAdminAccountGRPC.Search = {
51
+ methodName: "Search",
52
+ service: SuperAdminAccountGRPC,
53
+ requestStream: false,
54
+ responseStream: false,
55
+ requestType: auth_account_pb.AccountProto.SearchRequest,
56
+ responseType: auth_account_pb.AccountProto.SearchReply
57
+ };
58
+
59
+ SuperAdminAccountGRPC.SetPassword = {
60
+ methodName: "SetPassword",
61
+ service: SuperAdminAccountGRPC,
62
+ requestStream: false,
63
+ responseStream: false,
64
+ requestType: auth_account_pb.AccountProto.ChangePasswordRequest,
65
+ responseType: auth_account_pb.AccountProto.ChangePasswordReply
66
+ };
67
+
68
+ SuperAdminAccountGRPC.SetAccountScope = {
69
+ methodName: "SetAccountScope",
70
+ service: SuperAdminAccountGRPC,
71
+ requestStream: false,
72
+ responseStream: false,
73
+ requestType: auth_account_pb.AccountProto.SetAccountScopeRequest,
74
+ responseType: auth_account_pb.AccountProto.SetAccountScopeReply
75
+ };
76
+
77
+ exports.SuperAdminAccountGRPC = SuperAdminAccountGRPC;
78
+
79
+ function SuperAdminAccountGRPCClient(serviceHost, options) {
80
+ this.serviceHost = serviceHost;
81
+ this.options = options || {};
82
+ }
83
+
84
+ SuperAdminAccountGRPCClient.prototype.createUser = function createUser(requestMessage, metadata, callback) {
85
+ if (arguments.length === 2) {
86
+ callback = arguments[1];
87
+ }
88
+ var client = grpc.unary(SuperAdminAccountGRPC.CreateUser, {
89
+ request: requestMessage,
90
+ host: this.serviceHost,
91
+ metadata: metadata,
92
+ transport: this.options.transport,
93
+ debug: this.options.debug,
94
+ onEnd: function (response) {
95
+ if (callback) {
96
+ if (response.status !== grpc.Code.OK) {
97
+ var err = new Error(response.statusMessage);
98
+ err.code = response.status;
99
+ err.metadata = response.trailers;
100
+ callback(err, null);
101
+ } else {
102
+ callback(null, response.message);
103
+ }
104
+ }
105
+ }
106
+ });
107
+ return {
108
+ cancel: function () {
109
+ callback = null;
110
+ client.close();
111
+ }
112
+ };
113
+ };
114
+
115
+ SuperAdminAccountGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
116
+ if (arguments.length === 2) {
117
+ callback = arguments[1];
118
+ }
119
+ var client = grpc.unary(SuperAdminAccountGRPC.Retrieve, {
120
+ request: requestMessage,
121
+ host: this.serviceHost,
122
+ metadata: metadata,
123
+ transport: this.options.transport,
124
+ debug: this.options.debug,
125
+ onEnd: function (response) {
126
+ if (callback) {
127
+ if (response.status !== grpc.Code.OK) {
128
+ var err = new Error(response.statusMessage);
129
+ err.code = response.status;
130
+ err.metadata = response.trailers;
131
+ callback(err, null);
132
+ } else {
133
+ callback(null, response.message);
134
+ }
135
+ }
136
+ }
137
+ });
138
+ return {
139
+ cancel: function () {
140
+ callback = null;
141
+ client.close();
142
+ }
143
+ };
144
+ };
145
+
146
+ SuperAdminAccountGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
147
+ if (arguments.length === 2) {
148
+ callback = arguments[1];
149
+ }
150
+ var client = grpc.unary(SuperAdminAccountGRPC.Update, {
151
+ request: requestMessage,
152
+ host: this.serviceHost,
153
+ metadata: metadata,
154
+ transport: this.options.transport,
155
+ debug: this.options.debug,
156
+ onEnd: function (response) {
157
+ if (callback) {
158
+ if (response.status !== grpc.Code.OK) {
159
+ var err = new Error(response.statusMessage);
160
+ err.code = response.status;
161
+ err.metadata = response.trailers;
162
+ callback(err, null);
163
+ } else {
164
+ callback(null, response.message);
165
+ }
166
+ }
167
+ }
168
+ });
169
+ return {
170
+ cancel: function () {
171
+ callback = null;
172
+ client.close();
173
+ }
174
+ };
175
+ };
176
+
177
+ SuperAdminAccountGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
178
+ if (arguments.length === 2) {
179
+ callback = arguments[1];
180
+ }
181
+ var client = grpc.unary(SuperAdminAccountGRPC.Delete, {
182
+ request: requestMessage,
183
+ host: this.serviceHost,
184
+ metadata: metadata,
185
+ transport: this.options.transport,
186
+ debug: this.options.debug,
187
+ onEnd: function (response) {
188
+ if (callback) {
189
+ if (response.status !== grpc.Code.OK) {
190
+ var err = new Error(response.statusMessage);
191
+ err.code = response.status;
192
+ err.metadata = response.trailers;
193
+ callback(err, null);
194
+ } else {
195
+ callback(null, response.message);
196
+ }
197
+ }
198
+ }
199
+ });
200
+ return {
201
+ cancel: function () {
202
+ callback = null;
203
+ client.close();
204
+ }
205
+ };
206
+ };
207
+
208
+ SuperAdminAccountGRPCClient.prototype.search = function search(requestMessage, metadata, callback) {
209
+ if (arguments.length === 2) {
210
+ callback = arguments[1];
211
+ }
212
+ var client = grpc.unary(SuperAdminAccountGRPC.Search, {
213
+ request: requestMessage,
214
+ host: this.serviceHost,
215
+ metadata: metadata,
216
+ transport: this.options.transport,
217
+ debug: this.options.debug,
218
+ onEnd: function (response) {
219
+ if (callback) {
220
+ if (response.status !== grpc.Code.OK) {
221
+ var err = new Error(response.statusMessage);
222
+ err.code = response.status;
223
+ err.metadata = response.trailers;
224
+ callback(err, null);
225
+ } else {
226
+ callback(null, response.message);
227
+ }
228
+ }
229
+ }
230
+ });
231
+ return {
232
+ cancel: function () {
233
+ callback = null;
234
+ client.close();
235
+ }
236
+ };
237
+ };
238
+
239
+ SuperAdminAccountGRPCClient.prototype.setPassword = function setPassword(requestMessage, metadata, callback) {
240
+ if (arguments.length === 2) {
241
+ callback = arguments[1];
242
+ }
243
+ var client = grpc.unary(SuperAdminAccountGRPC.SetPassword, {
244
+ request: requestMessage,
245
+ host: this.serviceHost,
246
+ metadata: metadata,
247
+ transport: this.options.transport,
248
+ debug: this.options.debug,
249
+ onEnd: function (response) {
250
+ if (callback) {
251
+ if (response.status !== grpc.Code.OK) {
252
+ var err = new Error(response.statusMessage);
253
+ err.code = response.status;
254
+ err.metadata = response.trailers;
255
+ callback(err, null);
256
+ } else {
257
+ callback(null, response.message);
258
+ }
259
+ }
260
+ }
261
+ });
262
+ return {
263
+ cancel: function () {
264
+ callback = null;
265
+ client.close();
266
+ }
267
+ };
268
+ };
269
+
270
+ SuperAdminAccountGRPCClient.prototype.setAccountScope = function setAccountScope(requestMessage, metadata, callback) {
271
+ if (arguments.length === 2) {
272
+ callback = arguments[1];
273
+ }
274
+ var client = grpc.unary(SuperAdminAccountGRPC.SetAccountScope, {
275
+ request: requestMessage,
276
+ host: this.serviceHost,
277
+ metadata: metadata,
278
+ transport: this.options.transport,
279
+ debug: this.options.debug,
280
+ onEnd: function (response) {
281
+ if (callback) {
282
+ if (response.status !== grpc.Code.OK) {
283
+ var err = new Error(response.statusMessage);
284
+ err.code = response.status;
285
+ err.metadata = response.trailers;
286
+ callback(err, null);
287
+ } else {
288
+ callback(null, response.message);
289
+ }
290
+ }
291
+ }
292
+ });
293
+ return {
294
+ cancel: function () {
295
+ callback = null;
296
+ client.close();
297
+ }
298
+ };
299
+ };
300
+
301
+ exports.SuperAdminAccountGRPCClient = SuperAdminAccountGRPCClient;
302
+
303
+ var ClusterAccountGRPC = (function () {
304
+ function ClusterAccountGRPC() {}
305
+ ClusterAccountGRPC.serviceName = "Auth.ClusterAccountGRPC";
306
+ return ClusterAccountGRPC;
307
+ }());
308
+
309
+ ClusterAccountGRPC.InviteAdminUser = {
310
+ methodName: "InviteAdminUser",
311
+ service: ClusterAccountGRPC,
312
+ requestStream: false,
313
+ responseStream: false,
314
+ requestType: auth_account_pb.AccountProto.CreateAdminRequest,
315
+ responseType: auth_account_pb.AccountProto
316
+ };
317
+
318
+ ClusterAccountGRPC.InviteAppUser = {
319
+ methodName: "InviteAppUser",
320
+ service: ClusterAccountGRPC,
321
+ requestStream: false,
322
+ responseStream: false,
323
+ requestType: auth_account_pb.AccountProto.CreateAppRequest,
324
+ responseType: auth_account_pb.AccountProto
325
+ };
326
+
327
+ ClusterAccountGRPC.Retrieve = {
328
+ methodName: "Retrieve",
329
+ service: ClusterAccountGRPC,
330
+ requestStream: false,
331
+ responseStream: false,
332
+ requestType: auth_account_pb.AccountProto.RetrieveRequest,
333
+ responseType: auth_account_pb.AccountProto
334
+ };
335
+
336
+ ClusterAccountGRPC.Update = {
337
+ methodName: "Update",
338
+ service: ClusterAccountGRPC,
339
+ requestStream: false,
340
+ responseStream: false,
341
+ requestType: auth_account_pb.AccountProto.UpdateRequest,
342
+ responseType: auth_account_pb.AccountProto
343
+ };
344
+
345
+ ClusterAccountGRPC.Delete = {
346
+ methodName: "Delete",
347
+ service: ClusterAccountGRPC,
348
+ requestStream: false,
349
+ responseStream: false,
350
+ requestType: auth_account_pb.AccountProto.DeleteRequest,
351
+ responseType: auth_account_pb.AccountProto.DeleteReply
352
+ };
353
+
354
+ ClusterAccountGRPC.SearchAdmin = {
355
+ methodName: "SearchAdmin",
356
+ service: ClusterAccountGRPC,
357
+ requestStream: false,
358
+ responseStream: false,
359
+ requestType: auth_account_pb.AccountProto.SearchRequest,
360
+ responseType: auth_account_pb.AccountProto.SearchReply
361
+ };
362
+
363
+ ClusterAccountGRPC.SearchApp = {
364
+ methodName: "SearchApp",
365
+ service: ClusterAccountGRPC,
366
+ requestStream: false,
367
+ responseStream: false,
368
+ requestType: auth_account_pb.AccountProto.SearchRequest,
369
+ responseType: auth_account_pb.AccountProto.SearchReply
370
+ };
371
+
372
+ ClusterAccountGRPC.ActivateAccount = {
373
+ methodName: "ActivateAccount",
374
+ service: ClusterAccountGRPC,
375
+ requestStream: false,
376
+ responseStream: false,
377
+ requestType: auth_account_pb.AccountProto.ActivateAccountRequest,
378
+ responseType: auth_account_pb.AccountProto
379
+ };
380
+
381
+ ClusterAccountGRPC.ForgotPassword = {
382
+ methodName: "ForgotPassword",
383
+ service: ClusterAccountGRPC,
384
+ requestStream: false,
385
+ responseStream: false,
386
+ requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
387
+ responseType: auth_account_pb.AccountProto.ChangePasswordReply
388
+ };
389
+
390
+ ClusterAccountGRPC.ChangePassword = {
391
+ methodName: "ChangePassword",
392
+ service: ClusterAccountGRPC,
393
+ requestStream: false,
394
+ responseStream: false,
395
+ requestType: auth_account_pb.AccountProto.ChangePasswordRequest,
396
+ responseType: auth_account_pb.AccountProto.ChangePasswordReply
397
+ };
398
+
399
+ ClusterAccountGRPC.SetAccountScope = {
400
+ methodName: "SetAccountScope",
401
+ service: ClusterAccountGRPC,
402
+ requestStream: false,
403
+ responseStream: false,
404
+ requestType: auth_account_pb.AccountProto.SetAccountScopeRequest,
405
+ responseType: auth_account_pb.AccountProto.SetAccountScopeReply
406
+ };
407
+
408
+ ClusterAccountGRPC.RetrievePushInfo = {
409
+ methodName: "RetrievePushInfo",
410
+ service: ClusterAccountGRPC,
411
+ requestStream: false,
412
+ responseStream: false,
413
+ requestType: auth_account_pb.AccountProto.RetrievePushInfoRequest,
414
+ responseType: auth_account_pb.AccountProto.RetrievePushInfoReply
415
+ };
416
+
417
+ ClusterAccountGRPC.SetAccountClusterRole = {
418
+ methodName: "SetAccountClusterRole",
419
+ service: ClusterAccountGRPC,
420
+ requestStream: false,
421
+ responseStream: false,
422
+ requestType: auth_account_pb.AccountProto.AccountClusterRoleRequest,
423
+ responseType: google_protobuf_empty_pb.Empty
424
+ };
425
+
426
+ ClusterAccountGRPC.DeleteAccountClusterRole = {
427
+ methodName: "DeleteAccountClusterRole",
428
+ service: ClusterAccountGRPC,
429
+ requestStream: false,
430
+ responseStream: false,
431
+ requestType: auth_account_pb.AccountProto.AccountClusterRoleRequest,
432
+ responseType: google_protobuf_empty_pb.Empty
433
+ };
434
+
435
+ exports.ClusterAccountGRPC = ClusterAccountGRPC;
436
+
437
+ function ClusterAccountGRPCClient(serviceHost, options) {
438
+ this.serviceHost = serviceHost;
439
+ this.options = options || {};
440
+ }
441
+
442
+ ClusterAccountGRPCClient.prototype.inviteAdminUser = function inviteAdminUser(requestMessage, metadata, callback) {
443
+ if (arguments.length === 2) {
444
+ callback = arguments[1];
445
+ }
446
+ var client = grpc.unary(ClusterAccountGRPC.InviteAdminUser, {
447
+ request: requestMessage,
448
+ host: this.serviceHost,
449
+ metadata: metadata,
450
+ transport: this.options.transport,
451
+ debug: this.options.debug,
452
+ onEnd: function (response) {
453
+ if (callback) {
454
+ if (response.status !== grpc.Code.OK) {
455
+ var err = new Error(response.statusMessage);
456
+ err.code = response.status;
457
+ err.metadata = response.trailers;
458
+ callback(err, null);
459
+ } else {
460
+ callback(null, response.message);
461
+ }
462
+ }
463
+ }
464
+ });
465
+ return {
466
+ cancel: function () {
467
+ callback = null;
468
+ client.close();
469
+ }
470
+ };
471
+ };
472
+
473
+ ClusterAccountGRPCClient.prototype.inviteAppUser = function inviteAppUser(requestMessage, metadata, callback) {
474
+ if (arguments.length === 2) {
475
+ callback = arguments[1];
476
+ }
477
+ var client = grpc.unary(ClusterAccountGRPC.InviteAppUser, {
478
+ request: requestMessage,
479
+ host: this.serviceHost,
480
+ metadata: metadata,
481
+ transport: this.options.transport,
482
+ debug: this.options.debug,
483
+ onEnd: function (response) {
484
+ if (callback) {
485
+ if (response.status !== grpc.Code.OK) {
486
+ var err = new Error(response.statusMessage);
487
+ err.code = response.status;
488
+ err.metadata = response.trailers;
489
+ callback(err, null);
490
+ } else {
491
+ callback(null, response.message);
492
+ }
493
+ }
494
+ }
495
+ });
496
+ return {
497
+ cancel: function () {
498
+ callback = null;
499
+ client.close();
500
+ }
501
+ };
502
+ };
503
+
504
+ ClusterAccountGRPCClient.prototype.retrieve = function retrieve(requestMessage, metadata, callback) {
505
+ if (arguments.length === 2) {
506
+ callback = arguments[1];
507
+ }
508
+ var client = grpc.unary(ClusterAccountGRPC.Retrieve, {
509
+ request: requestMessage,
510
+ host: this.serviceHost,
511
+ metadata: metadata,
512
+ transport: this.options.transport,
513
+ debug: this.options.debug,
514
+ onEnd: function (response) {
515
+ if (callback) {
516
+ if (response.status !== grpc.Code.OK) {
517
+ var err = new Error(response.statusMessage);
518
+ err.code = response.status;
519
+ err.metadata = response.trailers;
520
+ callback(err, null);
521
+ } else {
522
+ callback(null, response.message);
523
+ }
524
+ }
525
+ }
526
+ });
527
+ return {
528
+ cancel: function () {
529
+ callback = null;
530
+ client.close();
531
+ }
532
+ };
533
+ };
534
+
535
+ ClusterAccountGRPCClient.prototype.update = function update(requestMessage, metadata, callback) {
536
+ if (arguments.length === 2) {
537
+ callback = arguments[1];
538
+ }
539
+ var client = grpc.unary(ClusterAccountGRPC.Update, {
540
+ request: requestMessage,
541
+ host: this.serviceHost,
542
+ metadata: metadata,
543
+ transport: this.options.transport,
544
+ debug: this.options.debug,
545
+ onEnd: function (response) {
546
+ if (callback) {
547
+ if (response.status !== grpc.Code.OK) {
548
+ var err = new Error(response.statusMessage);
549
+ err.code = response.status;
550
+ err.metadata = response.trailers;
551
+ callback(err, null);
552
+ } else {
553
+ callback(null, response.message);
554
+ }
555
+ }
556
+ }
557
+ });
558
+ return {
559
+ cancel: function () {
560
+ callback = null;
561
+ client.close();
562
+ }
563
+ };
564
+ };
565
+
566
+ ClusterAccountGRPCClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) {
567
+ if (arguments.length === 2) {
568
+ callback = arguments[1];
569
+ }
570
+ var client = grpc.unary(ClusterAccountGRPC.Delete, {
571
+ request: requestMessage,
572
+ host: this.serviceHost,
573
+ metadata: metadata,
574
+ transport: this.options.transport,
575
+ debug: this.options.debug,
576
+ onEnd: function (response) {
577
+ if (callback) {
578
+ if (response.status !== grpc.Code.OK) {
579
+ var err = new Error(response.statusMessage);
580
+ err.code = response.status;
581
+ err.metadata = response.trailers;
582
+ callback(err, null);
583
+ } else {
584
+ callback(null, response.message);
585
+ }
586
+ }
587
+ }
588
+ });
589
+ return {
590
+ cancel: function () {
591
+ callback = null;
592
+ client.close();
593
+ }
594
+ };
595
+ };
596
+
597
+ ClusterAccountGRPCClient.prototype.searchAdmin = function searchAdmin(requestMessage, metadata, callback) {
598
+ if (arguments.length === 2) {
599
+ callback = arguments[1];
600
+ }
601
+ var client = grpc.unary(ClusterAccountGRPC.SearchAdmin, {
602
+ request: requestMessage,
603
+ host: this.serviceHost,
604
+ metadata: metadata,
605
+ transport: this.options.transport,
606
+ debug: this.options.debug,
607
+ onEnd: function (response) {
608
+ if (callback) {
609
+ if (response.status !== grpc.Code.OK) {
610
+ var err = new Error(response.statusMessage);
611
+ err.code = response.status;
612
+ err.metadata = response.trailers;
613
+ callback(err, null);
614
+ } else {
615
+ callback(null, response.message);
616
+ }
617
+ }
618
+ }
619
+ });
620
+ return {
621
+ cancel: function () {
622
+ callback = null;
623
+ client.close();
624
+ }
625
+ };
626
+ };
627
+
628
+ ClusterAccountGRPCClient.prototype.searchApp = function searchApp(requestMessage, metadata, callback) {
629
+ if (arguments.length === 2) {
630
+ callback = arguments[1];
631
+ }
632
+ var client = grpc.unary(ClusterAccountGRPC.SearchApp, {
633
+ request: requestMessage,
634
+ host: this.serviceHost,
635
+ metadata: metadata,
636
+ transport: this.options.transport,
637
+ debug: this.options.debug,
638
+ onEnd: function (response) {
639
+ if (callback) {
640
+ if (response.status !== grpc.Code.OK) {
641
+ var err = new Error(response.statusMessage);
642
+ err.code = response.status;
643
+ err.metadata = response.trailers;
644
+ callback(err, null);
645
+ } else {
646
+ callback(null, response.message);
647
+ }
648
+ }
649
+ }
650
+ });
651
+ return {
652
+ cancel: function () {
653
+ callback = null;
654
+ client.close();
655
+ }
656
+ };
657
+ };
658
+
659
+ ClusterAccountGRPCClient.prototype.activateAccount = function activateAccount(requestMessage, metadata, callback) {
660
+ if (arguments.length === 2) {
661
+ callback = arguments[1];
662
+ }
663
+ var client = grpc.unary(ClusterAccountGRPC.ActivateAccount, {
664
+ request: requestMessage,
665
+ host: this.serviceHost,
666
+ metadata: metadata,
667
+ transport: this.options.transport,
668
+ debug: this.options.debug,
669
+ onEnd: function (response) {
670
+ if (callback) {
671
+ if (response.status !== grpc.Code.OK) {
672
+ var err = new Error(response.statusMessage);
673
+ err.code = response.status;
674
+ err.metadata = response.trailers;
675
+ callback(err, null);
676
+ } else {
677
+ callback(null, response.message);
678
+ }
679
+ }
680
+ }
681
+ });
682
+ return {
683
+ cancel: function () {
684
+ callback = null;
685
+ client.close();
686
+ }
687
+ };
688
+ };
689
+
690
+ ClusterAccountGRPCClient.prototype.forgotPassword = function forgotPassword(requestMessage, metadata, callback) {
691
+ if (arguments.length === 2) {
692
+ callback = arguments[1];
693
+ }
694
+ var client = grpc.unary(ClusterAccountGRPC.ForgotPassword, {
695
+ request: requestMessage,
696
+ host: this.serviceHost,
697
+ metadata: metadata,
698
+ transport: this.options.transport,
699
+ debug: this.options.debug,
700
+ onEnd: function (response) {
701
+ if (callback) {
702
+ if (response.status !== grpc.Code.OK) {
703
+ var err = new Error(response.statusMessage);
704
+ err.code = response.status;
705
+ err.metadata = response.trailers;
706
+ callback(err, null);
707
+ } else {
708
+ callback(null, response.message);
709
+ }
710
+ }
711
+ }
712
+ });
713
+ return {
714
+ cancel: function () {
715
+ callback = null;
716
+ client.close();
717
+ }
718
+ };
719
+ };
720
+
721
+ ClusterAccountGRPCClient.prototype.changePassword = function changePassword(requestMessage, metadata, callback) {
722
+ if (arguments.length === 2) {
723
+ callback = arguments[1];
724
+ }
725
+ var client = grpc.unary(ClusterAccountGRPC.ChangePassword, {
726
+ request: requestMessage,
727
+ host: this.serviceHost,
728
+ metadata: metadata,
729
+ transport: this.options.transport,
730
+ debug: this.options.debug,
731
+ onEnd: function (response) {
732
+ if (callback) {
733
+ if (response.status !== grpc.Code.OK) {
734
+ var err = new Error(response.statusMessage);
735
+ err.code = response.status;
736
+ err.metadata = response.trailers;
737
+ callback(err, null);
738
+ } else {
739
+ callback(null, response.message);
740
+ }
741
+ }
742
+ }
743
+ });
744
+ return {
745
+ cancel: function () {
746
+ callback = null;
747
+ client.close();
748
+ }
749
+ };
750
+ };
751
+
752
+ ClusterAccountGRPCClient.prototype.setAccountScope = function setAccountScope(requestMessage, metadata, callback) {
753
+ if (arguments.length === 2) {
754
+ callback = arguments[1];
755
+ }
756
+ var client = grpc.unary(ClusterAccountGRPC.SetAccountScope, {
757
+ request: requestMessage,
758
+ host: this.serviceHost,
759
+ metadata: metadata,
760
+ transport: this.options.transport,
761
+ debug: this.options.debug,
762
+ onEnd: function (response) {
763
+ if (callback) {
764
+ if (response.status !== grpc.Code.OK) {
765
+ var err = new Error(response.statusMessage);
766
+ err.code = response.status;
767
+ err.metadata = response.trailers;
768
+ callback(err, null);
769
+ } else {
770
+ callback(null, response.message);
771
+ }
772
+ }
773
+ }
774
+ });
775
+ return {
776
+ cancel: function () {
777
+ callback = null;
778
+ client.close();
779
+ }
780
+ };
781
+ };
782
+
783
+ ClusterAccountGRPCClient.prototype.retrievePushInfo = function retrievePushInfo(requestMessage, metadata, callback) {
784
+ if (arguments.length === 2) {
785
+ callback = arguments[1];
786
+ }
787
+ var client = grpc.unary(ClusterAccountGRPC.RetrievePushInfo, {
788
+ request: requestMessage,
789
+ host: this.serviceHost,
790
+ metadata: metadata,
791
+ transport: this.options.transport,
792
+ debug: this.options.debug,
793
+ onEnd: function (response) {
794
+ if (callback) {
795
+ if (response.status !== grpc.Code.OK) {
796
+ var err = new Error(response.statusMessage);
797
+ err.code = response.status;
798
+ err.metadata = response.trailers;
799
+ callback(err, null);
800
+ } else {
801
+ callback(null, response.message);
802
+ }
803
+ }
804
+ }
805
+ });
806
+ return {
807
+ cancel: function () {
808
+ callback = null;
809
+ client.close();
810
+ }
811
+ };
812
+ };
813
+
814
+ ClusterAccountGRPCClient.prototype.setAccountClusterRole = function setAccountClusterRole(requestMessage, metadata, callback) {
815
+ if (arguments.length === 2) {
816
+ callback = arguments[1];
817
+ }
818
+ var client = grpc.unary(ClusterAccountGRPC.SetAccountClusterRole, {
819
+ request: requestMessage,
820
+ host: this.serviceHost,
821
+ metadata: metadata,
822
+ transport: this.options.transport,
823
+ debug: this.options.debug,
824
+ onEnd: function (response) {
825
+ if (callback) {
826
+ if (response.status !== grpc.Code.OK) {
827
+ var err = new Error(response.statusMessage);
828
+ err.code = response.status;
829
+ err.metadata = response.trailers;
830
+ callback(err, null);
831
+ } else {
832
+ callback(null, response.message);
833
+ }
834
+ }
835
+ }
836
+ });
837
+ return {
838
+ cancel: function () {
839
+ callback = null;
840
+ client.close();
841
+ }
842
+ };
843
+ };
844
+
845
+ ClusterAccountGRPCClient.prototype.deleteAccountClusterRole = function deleteAccountClusterRole(requestMessage, metadata, callback) {
846
+ if (arguments.length === 2) {
847
+ callback = arguments[1];
848
+ }
849
+ var client = grpc.unary(ClusterAccountGRPC.DeleteAccountClusterRole, {
850
+ request: requestMessage,
851
+ host: this.serviceHost,
852
+ metadata: metadata,
853
+ transport: this.options.transport,
854
+ debug: this.options.debug,
855
+ onEnd: function (response) {
856
+ if (callback) {
857
+ if (response.status !== grpc.Code.OK) {
858
+ var err = new Error(response.statusMessage);
859
+ err.code = response.status;
860
+ err.metadata = response.trailers;
861
+ callback(err, null);
862
+ } else {
863
+ callback(null, response.message);
864
+ }
865
+ }
866
+ }
867
+ });
868
+ return {
869
+ cancel: function () {
870
+ callback = null;
871
+ client.close();
872
+ }
873
+ };
874
+ };
875
+
876
+ exports.ClusterAccountGRPCClient = ClusterAccountGRPCClient;
877
+