@aceplus/smartace-api 3.7.0-alpha.1 → 3.7.0-alpha.11

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 (249) hide show
  1. package/auth.account_pb.d.ts +433 -0
  2. package/auth.account_pb.js +3141 -0
  3. package/auth.account_pb_service.d.ts +216 -0
  4. package/auth.account_pb_service.js +382 -0
  5. package/auth.account_two_factor_pb.d.ts +135 -0
  6. package/auth.account_two_factor_pb.js +1002 -0
  7. package/auth.account_two_factor_pb_service.d.ts +102 -0
  8. package/auth.account_two_factor_pb_service.js +142 -0
  9. package/auth.app_account_pb.d.ts +186 -0
  10. package/auth.app_account_pb.js +1343 -0
  11. package/auth.app_account_pb_service.d.ts +179 -0
  12. package/auth.app_account_pb_service.js +303 -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 +416 -0
  18. package/auth.app_distribution_pb.js +3214 -0
  19. package/auth.app_distribution_pb_service.d.ts +196 -0
  20. package/auth.app_distribution_pb_service.js +341 -0
  21. package/auth.authn_pb.d.ts +95 -0
  22. package/auth.authn_pb.js +637 -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 +142 -0
  26. package/auth.cluster_pb.js +1050 -0
  27. package/auth.cluster_pb_service.d.ts +82 -0
  28. package/auth.cluster_pb_service.js +101 -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 +217 -0
  34. package/auth.email_pb.js +1508 -0
  35. package/auth.email_pb_service.d.ts +102 -0
  36. package/auth.email_pb_service.js +142 -0
  37. package/auth.firmware_pb.d.ts +256 -0
  38. package/auth.firmware_pb.js +1997 -0
  39. package/auth.firmware_pb_service.d.ts +120 -0
  40. package/auth.firmware_pb_service.js +181 -0
  41. package/auth.passkey_pb.d.ts +239 -0
  42. package/auth.passkey_pb.js +1842 -0
  43. package/auth.passkey_pb_service.d.ts +160 -0
  44. package/auth.passkey_pb_service.js +263 -0
  45. package/auth.push_notification_pb.d.ts +69 -0
  46. package/auth.push_notification_pb.js +411 -0
  47. package/auth.push_notification_pb_service.d.ts +64 -0
  48. package/auth.push_notification_pb_service.js +62 -0
  49. package/auth.sms_pb.d.ts +79 -0
  50. package/auth.sms_pb.js +575 -0
  51. package/auth.sms_pb_service.d.ts +83 -0
  52. package/auth.sms_pb_service.js +102 -0
  53. package/google/api/annotations_pb.d.ts +9 -0
  54. package/google/api/annotations_pb.js +54 -0
  55. package/google/api/annotations_pb_service.d.ts +3 -0
  56. package/google/api/annotations_pb_service.js +3 -0
  57. package/google/api/auth_pb.d.ts +150 -0
  58. package/google/api/auth_pb.js +1160 -0
  59. package/google/api/auth_pb_service.d.ts +3 -0
  60. package/google/api/auth_pb_service.js +3 -0
  61. package/google/api/backend_pb.d.ts +59 -0
  62. package/google/api/backend_pb.js +448 -0
  63. package/google/api/backend_pb_service.d.ts +3 -0
  64. package/google/api/backend_pb_service.js +3 -0
  65. package/google/api/billing_pb.d.ts +54 -0
  66. package/google/api/billing_pb.js +416 -0
  67. package/google/api/billing_pb_service.d.ts +3 -0
  68. package/google/api/billing_pb_service.js +3 -0
  69. package/google/api/client_pb.d.ts +12 -0
  70. package/google/api/client_pb.js +104 -0
  71. package/google/api/client_pb_service.d.ts +3 -0
  72. package/google/api/client_pb_service.js +3 -0
  73. package/google/api/config_change_pb.d.ts +72 -0
  74. package/google/api/config_change_pb.js +489 -0
  75. package/google/api/config_change_pb_service.d.ts +3 -0
  76. package/google/api/config_change_pb_service.js +3 -0
  77. package/google/api/consumer_pb.d.ts +65 -0
  78. package/google/api/consumer_pb.js +430 -0
  79. package/google/api/consumer_pb_service.d.ts +3 -0
  80. package/google/api/consumer_pb_service.js +3 -0
  81. package/google/api/context_pb.d.ts +59 -0
  82. package/google/api/context_pb.js +463 -0
  83. package/google/api/context_pb_service.d.ts +3 -0
  84. package/google/api/context_pb_service.js +3 -0
  85. package/google/api/control_pb.d.ts +25 -0
  86. package/google/api/control_pb.js +176 -0
  87. package/google/api/control_pb_service.d.ts +3 -0
  88. package/google/api/control_pb_service.js +3 -0
  89. package/google/api/distribution_pb.d.ts +235 -0
  90. package/google/api/distribution_pb.js +1805 -0
  91. package/google/api/distribution_pb_service.d.ts +3 -0
  92. package/google/api/distribution_pb_service.js +3 -0
  93. package/google/api/documentation_pb.d.ts +103 -0
  94. package/google/api/documentation_pb.js +803 -0
  95. package/google/api/documentation_pb_service.d.ts +3 -0
  96. package/google/api/documentation_pb_service.js +3 -0
  97. package/google/api/endpoint_pb.d.ts +46 -0
  98. package/google/api/endpoint_pb.js +343 -0
  99. package/google/api/endpoint_pb_service.d.ts +3 -0
  100. package/google/api/endpoint_pb_service.js +3 -0
  101. package/google/api/error_reason_pb.d.ts +40 -0
  102. package/google/api/error_reason_pb.js +61 -0
  103. package/google/api/error_reason_pb_service.d.ts +3 -0
  104. package/google/api/error_reason_pb_service.js +3 -0
  105. package/google/api/field_behavior_pb.d.ts +20 -0
  106. package/google/api/field_behavior_pb.js +66 -0
  107. package/google/api/field_behavior_pb_service.d.ts +3 -0
  108. package/google/api/field_behavior_pb_service.js +3 -0
  109. package/google/api/http_pb.d.ts +136 -0
  110. package/google/api/http_pb.js +1012 -0
  111. package/google/api/http_pb_service.d.ts +3 -0
  112. package/google/api/http_pb_service.js +3 -0
  113. package/google/api/httpbody_pb.d.ts +38 -0
  114. package/google/api/httpbody_pb.js +292 -0
  115. package/google/api/httpbody_pb_service.d.ts +3 -0
  116. package/google/api/httpbody_pb_service.js +3 -0
  117. package/google/api/label_pb.d.ts +41 -0
  118. package/google/api/label_pb.js +246 -0
  119. package/google/api/label_pb_service.d.ts +3 -0
  120. package/google/api/label_pb_service.js +3 -0
  121. package/google/api/launch_stage_pb.d.ts +16 -0
  122. package/google/api/launch_stage_pb.js +37 -0
  123. package/google/api/launch_stage_pb_service.d.ts +3 -0
  124. package/google/api/launch_stage_pb_service.js +3 -0
  125. package/google/api/log_pb.d.ts +40 -0
  126. package/google/api/log_pb.js +298 -0
  127. package/google/api/log_pb_service.d.ts +3 -0
  128. package/google/api/log_pb_service.js +3 -0
  129. package/google/api/logging_pb.d.ts +60 -0
  130. package/google/api/logging_pb.js +469 -0
  131. package/google/api/logging_pb_service.d.ts +3 -0
  132. package/google/api/logging_pb_service.js +3 -0
  133. package/google/api/metric_pb.d.ts +100 -0
  134. package/google/api/metric_pb.js +629 -0
  135. package/google/api/metric_pb_service.d.ts +3 -0
  136. package/google/api/metric_pb_service.js +3 -0
  137. package/google/api/monitored_resource_pb.d.ts +93 -0
  138. package/google/api/monitored_resource_pb.js +723 -0
  139. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  140. package/google/api/monitored_resource_pb_service.js +3 -0
  141. package/google/api/monitoring_pb.d.ts +60 -0
  142. package/google/api/monitoring_pb.js +469 -0
  143. package/google/api/monitoring_pb_service.d.ts +3 -0
  144. package/google/api/monitoring_pb_service.js +3 -0
  145. package/google/api/policy_pb.d.ts +64 -0
  146. package/google/api/policy_pb.js +502 -0
  147. package/google/api/policy_pb_service.d.ts +3 -0
  148. package/google/api/policy_pb_service.js +3 -0
  149. package/google/api/quota_pb.d.ts +112 -0
  150. package/google/api/quota_pb.js +873 -0
  151. package/google/api/quota_pb_service.d.ts +3 -0
  152. package/google/api/quota_pb_service.js +3 -0
  153. package/google/api/resource_pb.d.ts +99 -0
  154. package/google/api/resource_pb.js +684 -0
  155. package/google/api/resource_pb_service.d.ts +3 -0
  156. package/google/api/resource_pb_service.js +3 -0
  157. package/google/api/routing_pb.d.ts +54 -0
  158. package/google/api/routing_pb.js +416 -0
  159. package/google/api/routing_pb_service.d.ts +3 -0
  160. package/google/api/routing_pb_service.js +3 -0
  161. package/google/api/service_pb.d.ts +184 -0
  162. package/google/api/service_pb.js +1400 -0
  163. package/google/api/service_pb_service.d.ts +3 -0
  164. package/google/api/service_pb_service.js +3 -0
  165. package/google/api/source_info_pb.d.ts +28 -0
  166. package/google/api/source_info_pb.js +208 -0
  167. package/google/api/source_info_pb_service.d.ts +3 -0
  168. package/google/api/source_info_pb_service.js +3 -0
  169. package/google/api/system_parameter_pb.d.ts +81 -0
  170. package/google/api/system_parameter_pb.js +630 -0
  171. package/google/api/system_parameter_pb_service.d.ts +3 -0
  172. package/google/api/system_parameter_pb_service.js +3 -0
  173. package/google/api/usage_pb.d.ts +66 -0
  174. package/google/api/usage_pb.js +499 -0
  175. package/google/api/usage_pb_service.d.ts +3 -0
  176. package/google/api/usage_pb_service.js +3 -0
  177. package/google/api/visibility_pb.d.ts +64 -0
  178. package/google/api/visibility_pb.js +546 -0
  179. package/google/api/visibility_pb_service.d.ts +3 -0
  180. package/google/api/visibility_pb_service.js +3 -0
  181. package/meta.client_pb.d.ts +167 -0
  182. package/meta.client_pb.js +1266 -0
  183. package/meta.client_pb_service.d.ts +122 -0
  184. package/meta.client_pb_service.js +183 -0
  185. package/meta.spic_config_pb.d.ts +184 -0
  186. package/meta.spic_config_pb.js +1382 -0
  187. package/meta.spic_config_pb_service.d.ts +122 -0
  188. package/meta.spic_config_pb_service.js +183 -0
  189. package/package.json +1 -1
  190. package/platform.activity_log_pb.d.ts +177 -0
  191. package/platform.activity_log_pb.js +1294 -0
  192. package/platform.activity_log_pb_service.d.ts +82 -0
  193. package/platform.activity_log_pb_service.js +101 -0
  194. package/platform.client_pb.d.ts +350 -0
  195. package/platform.client_pb.js +2663 -0
  196. package/platform.client_pb_service.d.ts +158 -0
  197. package/platform.client_pb_service.js +261 -0
  198. package/platform.group_pb.d.ts +195 -0
  199. package/platform.group_pb.js +1476 -0
  200. package/platform.group_pb_service.d.ts +139 -0
  201. package/platform.group_pb_service.js +221 -0
  202. package/platform.local_account_internal_pb.d.ts +125 -0
  203. package/platform.local_account_internal_pb.js +933 -0
  204. package/platform.local_account_internal_pb_service.d.ts +121 -0
  205. package/platform.local_account_internal_pb_service.js +182 -0
  206. package/platform.local_account_pb.d.ts +466 -0
  207. package/platform.local_account_pb.js +3489 -0
  208. package/platform.local_account_pb_service.d.ts +331 -0
  209. package/platform.local_account_pb_service.js +623 -0
  210. package/platform.local_distribution_pb.d.ts +73 -0
  211. package/platform.local_distribution_pb.js +536 -0
  212. package/platform.local_distribution_pb_service.d.ts +63 -0
  213. package/platform.local_distribution_pb_service.js +61 -0
  214. package/platform.location_pb.d.ts +271 -0
  215. package/platform.location_pb.js +2046 -0
  216. package/platform.location_pb_service.d.ts +139 -0
  217. package/platform.location_pb_service.js +221 -0
  218. package/platform.pagination_pb.d.ts +45 -0
  219. package/platform.pagination_pb.js +276 -0
  220. package/platform.pagination_pb_service.d.ts +3 -0
  221. package/platform.pagination_pb_service.js +3 -0
  222. package/spic.alarm_pb.d.ts +382 -0
  223. package/spic.alarm_pb.js +2915 -0
  224. package/spic.alarm_pb_service.d.ts +101 -0
  225. package/spic.alarm_pb_service.js +141 -0
  226. package/spic.asset_pb.d.ts +697 -0
  227. package/spic.asset_pb.js +4995 -0
  228. package/spic.asset_pb_service.d.ts +197 -0
  229. package/spic.asset_pb_service.js +342 -0
  230. package/spic.cabinet_pb.d.ts +1062 -0
  231. package/spic.cabinet_pb.js +7723 -0
  232. package/spic.cabinet_pb_service.d.ts +245 -0
  233. package/spic.cabinet_pb_service.js +437 -0
  234. package/spic.config_pb.d.ts +249 -0
  235. package/spic.config_pb.js +1891 -0
  236. package/spic.config_pb_service.d.ts +120 -0
  237. package/spic.config_pb_service.js +181 -0
  238. package/spic.contractor_pb.d.ts +195 -0
  239. package/spic.contractor_pb.js +1476 -0
  240. package/spic.contractor_pb_service.d.ts +139 -0
  241. package/spic.contractor_pb_service.js +221 -0
  242. package/spic.history_pb.d.ts +142 -0
  243. package/spic.history_pb.js +1130 -0
  244. package/spic.history_pb_service.d.ts +63 -0
  245. package/spic.history_pb_service.js +61 -0
  246. package/spic.open_request_pb.d.ts +237 -0
  247. package/spic.open_request_pb.js +1784 -0
  248. package/spic.open_request_pb_service.d.ts +101 -0
  249. package/spic.open_request_pb_service.js +141 -0
@@ -0,0 +1,102 @@
1
+ // package: Auth
2
+ // file: auth.account_two_factor.proto
3
+
4
+ import * as auth_account_two_factor_pb from "./auth.account_two_factor_pb";
5
+ import * as auth_authn_pb from "./auth.authn_pb";
6
+ import {grpc} from "@improbable-eng/grpc-web";
7
+
8
+ type AccountTwoFactorGRPCSetupTwoFactor = {
9
+ readonly methodName: string;
10
+ readonly service: typeof AccountTwoFactorGRPC;
11
+ readonly requestStream: false;
12
+ readonly responseStream: false;
13
+ readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.SetupRequest;
14
+ readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto.SetupReply;
15
+ };
16
+
17
+ type AccountTwoFactorGRPCRemove = {
18
+ readonly methodName: string;
19
+ readonly service: typeof AccountTwoFactorGRPC;
20
+ readonly requestStream: false;
21
+ readonly responseStream: false;
22
+ readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.RemoveRequest;
23
+ readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto;
24
+ };
25
+
26
+ type AccountTwoFactorGRPCValidate = {
27
+ readonly methodName: string;
28
+ readonly service: typeof AccountTwoFactorGRPC;
29
+ readonly requestStream: false;
30
+ readonly responseStream: false;
31
+ readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.ValidateRequest;
32
+ readonly responseType: typeof auth_authn_pb.AuthnProto;
33
+ };
34
+
35
+ export class AccountTwoFactorGRPC {
36
+ static readonly serviceName: string;
37
+ static readonly SetupTwoFactor: AccountTwoFactorGRPCSetupTwoFactor;
38
+ static readonly Remove: AccountTwoFactorGRPCRemove;
39
+ static readonly Validate: AccountTwoFactorGRPCValidate;
40
+ }
41
+
42
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
43
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
44
+
45
+ interface UnaryResponse {
46
+ cancel(): void;
47
+ }
48
+ interface ResponseStream<T> {
49
+ cancel(): void;
50
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
51
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
52
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
53
+ }
54
+ interface RequestStream<T> {
55
+ write(message: T): RequestStream<T>;
56
+ end(): void;
57
+ cancel(): void;
58
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
59
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
60
+ }
61
+ interface BidirectionalStream<ReqT, ResT> {
62
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
63
+ end(): void;
64
+ cancel(): void;
65
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
66
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
67
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
68
+ }
69
+
70
+ export class AccountTwoFactorGRPCClient {
71
+ readonly serviceHost: string;
72
+
73
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
74
+ setupTwoFactor(
75
+ requestMessage: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
76
+ metadata: grpc.Metadata,
77
+ callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.SetupReply|null) => void
78
+ ): UnaryResponse;
79
+ setupTwoFactor(
80
+ requestMessage: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
81
+ callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.SetupReply|null) => void
82
+ ): UnaryResponse;
83
+ remove(
84
+ requestMessage: auth_account_two_factor_pb.TwoFactorProto.RemoveRequest,
85
+ metadata: grpc.Metadata,
86
+ callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto|null) => void
87
+ ): UnaryResponse;
88
+ remove(
89
+ requestMessage: auth_account_two_factor_pb.TwoFactorProto.RemoveRequest,
90
+ callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto|null) => void
91
+ ): UnaryResponse;
92
+ validate(
93
+ requestMessage: auth_account_two_factor_pb.TwoFactorProto.ValidateRequest,
94
+ metadata: grpc.Metadata,
95
+ callback: (error: ServiceError|null, responseMessage: auth_authn_pb.AuthnProto|null) => void
96
+ ): UnaryResponse;
97
+ validate(
98
+ requestMessage: auth_account_two_factor_pb.TwoFactorProto.ValidateRequest,
99
+ callback: (error: ServiceError|null, responseMessage: auth_authn_pb.AuthnProto|null) => void
100
+ ): UnaryResponse;
101
+ }
102
+
@@ -0,0 +1,142 @@
1
+ // package: Auth
2
+ // file: auth.account_two_factor.proto
3
+
4
+ var auth_account_two_factor_pb = require("./auth.account_two_factor_pb");
5
+ var auth_authn_pb = require("./auth.authn_pb");
6
+ var grpc = require("@improbable-eng/grpc-web").grpc;
7
+
8
+ var AccountTwoFactorGRPC = (function () {
9
+ function AccountTwoFactorGRPC() {}
10
+ AccountTwoFactorGRPC.serviceName = "Auth.AccountTwoFactorGRPC";
11
+ return AccountTwoFactorGRPC;
12
+ }());
13
+
14
+ AccountTwoFactorGRPC.SetupTwoFactor = {
15
+ methodName: "SetupTwoFactor",
16
+ service: AccountTwoFactorGRPC,
17
+ requestStream: false,
18
+ responseStream: false,
19
+ requestType: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
20
+ responseType: auth_account_two_factor_pb.TwoFactorProto.SetupReply
21
+ };
22
+
23
+ AccountTwoFactorGRPC.Remove = {
24
+ methodName: "Remove",
25
+ service: AccountTwoFactorGRPC,
26
+ requestStream: false,
27
+ responseStream: false,
28
+ requestType: auth_account_two_factor_pb.TwoFactorProto.RemoveRequest,
29
+ responseType: auth_account_two_factor_pb.TwoFactorProto
30
+ };
31
+
32
+ AccountTwoFactorGRPC.Validate = {
33
+ methodName: "Validate",
34
+ service: AccountTwoFactorGRPC,
35
+ requestStream: false,
36
+ responseStream: false,
37
+ requestType: auth_account_two_factor_pb.TwoFactorProto.ValidateRequest,
38
+ responseType: auth_authn_pb.AuthnProto
39
+ };
40
+
41
+ exports.AccountTwoFactorGRPC = AccountTwoFactorGRPC;
42
+
43
+ function AccountTwoFactorGRPCClient(serviceHost, options) {
44
+ this.serviceHost = serviceHost;
45
+ this.options = options || {};
46
+ }
47
+
48
+ AccountTwoFactorGRPCClient.prototype.setupTwoFactor = function setupTwoFactor(requestMessage, metadata, callback) {
49
+ if (arguments.length === 2) {
50
+ callback = arguments[1];
51
+ }
52
+ var client = grpc.unary(AccountTwoFactorGRPC.SetupTwoFactor, {
53
+ request: requestMessage,
54
+ host: this.serviceHost,
55
+ metadata: metadata,
56
+ transport: this.options.transport,
57
+ debug: this.options.debug,
58
+ onEnd: function (response) {
59
+ if (callback) {
60
+ if (response.status !== grpc.Code.OK) {
61
+ var err = new Error(response.statusMessage);
62
+ err.code = response.status;
63
+ err.metadata = response.trailers;
64
+ callback(err, null);
65
+ } else {
66
+ callback(null, response.message);
67
+ }
68
+ }
69
+ }
70
+ });
71
+ return {
72
+ cancel: function () {
73
+ callback = null;
74
+ client.close();
75
+ }
76
+ };
77
+ };
78
+
79
+ AccountTwoFactorGRPCClient.prototype.remove = function remove(requestMessage, metadata, callback) {
80
+ if (arguments.length === 2) {
81
+ callback = arguments[1];
82
+ }
83
+ var client = grpc.unary(AccountTwoFactorGRPC.Remove, {
84
+ request: requestMessage,
85
+ host: this.serviceHost,
86
+ metadata: metadata,
87
+ transport: this.options.transport,
88
+ debug: this.options.debug,
89
+ onEnd: function (response) {
90
+ if (callback) {
91
+ if (response.status !== grpc.Code.OK) {
92
+ var err = new Error(response.statusMessage);
93
+ err.code = response.status;
94
+ err.metadata = response.trailers;
95
+ callback(err, null);
96
+ } else {
97
+ callback(null, response.message);
98
+ }
99
+ }
100
+ }
101
+ });
102
+ return {
103
+ cancel: function () {
104
+ callback = null;
105
+ client.close();
106
+ }
107
+ };
108
+ };
109
+
110
+ AccountTwoFactorGRPCClient.prototype.validate = function validate(requestMessage, metadata, callback) {
111
+ if (arguments.length === 2) {
112
+ callback = arguments[1];
113
+ }
114
+ var client = grpc.unary(AccountTwoFactorGRPC.Validate, {
115
+ request: requestMessage,
116
+ host: this.serviceHost,
117
+ metadata: metadata,
118
+ transport: this.options.transport,
119
+ debug: this.options.debug,
120
+ onEnd: function (response) {
121
+ if (callback) {
122
+ if (response.status !== grpc.Code.OK) {
123
+ var err = new Error(response.statusMessage);
124
+ err.code = response.status;
125
+ err.metadata = response.trailers;
126
+ callback(err, null);
127
+ } else {
128
+ callback(null, response.message);
129
+ }
130
+ }
131
+ }
132
+ });
133
+ return {
134
+ cancel: function () {
135
+ callback = null;
136
+ client.close();
137
+ }
138
+ };
139
+ };
140
+
141
+ exports.AccountTwoFactorGRPCClient = AccountTwoFactorGRPCClient;
142
+
@@ -0,0 +1,186 @@
1
+ // package: Auth
2
+ // file: auth.app_account.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_api_annotations_pb from "./google/api/annotations_pb";
6
+ import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
7
+ import * as auth_account_pb from "./auth.account_pb";
8
+
9
+ export class AppAccountProto extends jspb.Message {
10
+ serializeBinary(): Uint8Array;
11
+ toObject(includeInstance?: boolean): AppAccountProto.AsObject;
12
+ static toObject(includeInstance: boolean, msg: AppAccountProto): AppAccountProto.AsObject;
13
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
15
+ static serializeBinaryToWriter(message: AppAccountProto, writer: jspb.BinaryWriter): void;
16
+ static deserializeBinary(bytes: Uint8Array): AppAccountProto;
17
+ static deserializeBinaryFromReader(message: AppAccountProto, reader: jspb.BinaryReader): AppAccountProto;
18
+ }
19
+
20
+ export namespace AppAccountProto {
21
+ export type AsObject = {
22
+ }
23
+
24
+ export class FinishRegisterMobileRequest extends jspb.Message {
25
+ getId(): number;
26
+ setId(value: number): void;
27
+
28
+ getLastName(): string;
29
+ setLastName(value: string): void;
30
+
31
+ getFirstName(): string;
32
+ setFirstName(value: string): void;
33
+
34
+ getCompany(): string;
35
+ setCompany(value: string): void;
36
+
37
+ serializeBinary(): Uint8Array;
38
+ toObject(includeInstance?: boolean): FinishRegisterMobileRequest.AsObject;
39
+ static toObject(includeInstance: boolean, msg: FinishRegisterMobileRequest): FinishRegisterMobileRequest.AsObject;
40
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
41
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
42
+ static serializeBinaryToWriter(message: FinishRegisterMobileRequest, writer: jspb.BinaryWriter): void;
43
+ static deserializeBinary(bytes: Uint8Array): FinishRegisterMobileRequest;
44
+ static deserializeBinaryFromReader(message: FinishRegisterMobileRequest, reader: jspb.BinaryReader): FinishRegisterMobileRequest;
45
+ }
46
+
47
+ export namespace FinishRegisterMobileRequest {
48
+ export type AsObject = {
49
+ id: number,
50
+ lastName: string,
51
+ firstName: string,
52
+ company: string,
53
+ }
54
+ }
55
+
56
+ export class RemoveMobileRequest extends jspb.Message {
57
+ getId(): number;
58
+ setId(value: number): void;
59
+
60
+ serializeBinary(): Uint8Array;
61
+ toObject(includeInstance?: boolean): RemoveMobileRequest.AsObject;
62
+ static toObject(includeInstance: boolean, msg: RemoveMobileRequest): RemoveMobileRequest.AsObject;
63
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
64
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
65
+ static serializeBinaryToWriter(message: RemoveMobileRequest, writer: jspb.BinaryWriter): void;
66
+ static deserializeBinary(bytes: Uint8Array): RemoveMobileRequest;
67
+ static deserializeBinaryFromReader(message: RemoveMobileRequest, reader: jspb.BinaryReader): RemoveMobileRequest;
68
+ }
69
+
70
+ export namespace RemoveMobileRequest {
71
+ export type AsObject = {
72
+ id: number,
73
+ }
74
+ }
75
+
76
+ export class ChangeNameRequest extends jspb.Message {
77
+ getId(): number;
78
+ setId(value: number): void;
79
+
80
+ getLastName(): string;
81
+ setLastName(value: string): void;
82
+
83
+ getFirstName(): string;
84
+ setFirstName(value: string): void;
85
+
86
+ serializeBinary(): Uint8Array;
87
+ toObject(includeInstance?: boolean): ChangeNameRequest.AsObject;
88
+ static toObject(includeInstance: boolean, msg: ChangeNameRequest): ChangeNameRequest.AsObject;
89
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
90
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
91
+ static serializeBinaryToWriter(message: ChangeNameRequest, writer: jspb.BinaryWriter): void;
92
+ static deserializeBinary(bytes: Uint8Array): ChangeNameRequest;
93
+ static deserializeBinaryFromReader(message: ChangeNameRequest, reader: jspb.BinaryReader): ChangeNameRequest;
94
+ }
95
+
96
+ export namespace ChangeNameRequest {
97
+ export type AsObject = {
98
+ id: number,
99
+ lastName: string,
100
+ firstName: string,
101
+ }
102
+ }
103
+
104
+ export class ChangePskRequest extends jspb.Message {
105
+ getId(): number;
106
+ setId(value: number): void;
107
+
108
+ getPsk(): string;
109
+ setPsk(value: string): void;
110
+
111
+ serializeBinary(): Uint8Array;
112
+ toObject(includeInstance?: boolean): ChangePskRequest.AsObject;
113
+ static toObject(includeInstance: boolean, msg: ChangePskRequest): ChangePskRequest.AsObject;
114
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
115
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
116
+ static serializeBinaryToWriter(message: ChangePskRequest, writer: jspb.BinaryWriter): void;
117
+ static deserializeBinary(bytes: Uint8Array): ChangePskRequest;
118
+ static deserializeBinaryFromReader(message: ChangePskRequest, reader: jspb.BinaryReader): ChangePskRequest;
119
+ }
120
+
121
+ export namespace ChangePskRequest {
122
+ export type AsObject = {
123
+ id: number,
124
+ psk: string,
125
+ }
126
+ }
127
+
128
+ export class ModifyClientRequest extends jspb.Message {
129
+ getId(): number;
130
+ setId(value: number): void;
131
+
132
+ getClientId(): number;
133
+ setClientId(value: number): void;
134
+
135
+ getClusterId(): number;
136
+ setClusterId(value: number): void;
137
+
138
+ serializeBinary(): Uint8Array;
139
+ toObject(includeInstance?: boolean): ModifyClientRequest.AsObject;
140
+ static toObject(includeInstance: boolean, msg: ModifyClientRequest): ModifyClientRequest.AsObject;
141
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
142
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
143
+ static serializeBinaryToWriter(message: ModifyClientRequest, writer: jspb.BinaryWriter): void;
144
+ static deserializeBinary(bytes: Uint8Array): ModifyClientRequest;
145
+ static deserializeBinaryFromReader(message: ModifyClientRequest, reader: jspb.BinaryReader): ModifyClientRequest;
146
+ }
147
+
148
+ export namespace ModifyClientRequest {
149
+ export type AsObject = {
150
+ id: number,
151
+ clientId: number,
152
+ clusterId: number,
153
+ }
154
+ }
155
+
156
+ export class RegisterFirebaseRequest extends jspb.Message {
157
+ getAppType(): AppAccountProto.AppTypeMap[keyof AppAccountProto.AppTypeMap];
158
+ setAppType(value: AppAccountProto.AppTypeMap[keyof AppAccountProto.AppTypeMap]): void;
159
+
160
+ getFirebaseInstallationId(): string;
161
+ setFirebaseInstallationId(value: string): void;
162
+
163
+ serializeBinary(): Uint8Array;
164
+ toObject(includeInstance?: boolean): RegisterFirebaseRequest.AsObject;
165
+ static toObject(includeInstance: boolean, msg: RegisterFirebaseRequest): RegisterFirebaseRequest.AsObject;
166
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
167
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
168
+ static serializeBinaryToWriter(message: RegisterFirebaseRequest, writer: jspb.BinaryWriter): void;
169
+ static deserializeBinary(bytes: Uint8Array): RegisterFirebaseRequest;
170
+ static deserializeBinaryFromReader(message: RegisterFirebaseRequest, reader: jspb.BinaryReader): RegisterFirebaseRequest;
171
+ }
172
+
173
+ export namespace RegisterFirebaseRequest {
174
+ export type AsObject = {
175
+ appType: AppAccountProto.AppTypeMap[keyof AppAccountProto.AppTypeMap],
176
+ firebaseInstallationId: string,
177
+ }
178
+ }
179
+
180
+ export interface AppTypeMap {
181
+ APP_TYPE_MOBILE_WEB: 0;
182
+ }
183
+
184
+ export const AppType: AppTypeMap;
185
+ }
186
+