@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,196 @@
1
+ // package: Auth
2
+ // file: auth.app_distribution.proto
3
+
4
+ import * as auth_app_distribution_pb from "./auth.app_distribution_pb";
5
+ import {grpc} from "@improbable-eng/grpc-web";
6
+
7
+ type AppDistributionGRPCGetPhonePrefixes = {
8
+ readonly methodName: string;
9
+ readonly service: typeof AppDistributionGRPC;
10
+ readonly requestStream: false;
11
+ readonly responseStream: false;
12
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest;
13
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse;
14
+ };
15
+
16
+ type AppDistributionGRPCGetClientsList = {
17
+ readonly methodName: string;
18
+ readonly service: typeof AppDistributionGRPC;
19
+ readonly requestStream: false;
20
+ readonly responseStream: false;
21
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsRequest;
22
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsResponse;
23
+ };
24
+
25
+ type AppDistributionGRPCGetClientsListForAutoInvite = {
26
+ readonly methodName: string;
27
+ readonly service: typeof AppDistributionGRPC;
28
+ readonly requestStream: false;
29
+ readonly responseStream: false;
30
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsRequest;
31
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.GetClientsResponse;
32
+ };
33
+
34
+ type AppDistributionGRPCCheckQr = {
35
+ readonly methodName: string;
36
+ readonly service: typeof AppDistributionGRPC;
37
+ readonly requestStream: false;
38
+ readonly responseStream: false;
39
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrRequest;
40
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrResponse;
41
+ };
42
+
43
+ type AppDistributionGRPCCheckQrV2 = {
44
+ readonly methodName: string;
45
+ readonly service: typeof AppDistributionGRPC;
46
+ readonly requestStream: false;
47
+ readonly responseStream: false;
48
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrRequest;
49
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2;
50
+ };
51
+
52
+ type AppDistributionGRPCConnectQr = {
53
+ readonly methodName: string;
54
+ readonly service: typeof AppDistributionGRPC;
55
+ readonly requestStream: false;
56
+ readonly responseStream: false;
57
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest;
58
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse;
59
+ };
60
+
61
+ type AppDistributionGRPCGetQrHistory = {
62
+ readonly methodName: string;
63
+ readonly service: typeof AppDistributionGRPC;
64
+ readonly requestStream: false;
65
+ readonly responseStream: false;
66
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest;
67
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse;
68
+ };
69
+
70
+ type AppDistributionGRPCGetActiveQrs = {
71
+ readonly methodName: string;
72
+ readonly service: typeof AppDistributionGRPC;
73
+ readonly requestStream: false;
74
+ readonly responseStream: false;
75
+ readonly requestType: typeof auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest;
76
+ readonly responseType: typeof auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse;
77
+ };
78
+
79
+ export class AppDistributionGRPC {
80
+ static readonly serviceName: string;
81
+ static readonly GetPhonePrefixes: AppDistributionGRPCGetPhonePrefixes;
82
+ static readonly GetClientsList: AppDistributionGRPCGetClientsList;
83
+ static readonly GetClientsListForAutoInvite: AppDistributionGRPCGetClientsListForAutoInvite;
84
+ static readonly CheckQr: AppDistributionGRPCCheckQr;
85
+ static readonly CheckQrV2: AppDistributionGRPCCheckQrV2;
86
+ static readonly ConnectQr: AppDistributionGRPCConnectQr;
87
+ static readonly GetQrHistory: AppDistributionGRPCGetQrHistory;
88
+ static readonly GetActiveQrs: AppDistributionGRPCGetActiveQrs;
89
+ }
90
+
91
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
92
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
93
+
94
+ interface UnaryResponse {
95
+ cancel(): void;
96
+ }
97
+ interface ResponseStream<T> {
98
+ cancel(): void;
99
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
100
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
101
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
102
+ }
103
+ interface RequestStream<T> {
104
+ write(message: T): RequestStream<T>;
105
+ end(): void;
106
+ cancel(): void;
107
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
108
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
109
+ }
110
+ interface BidirectionalStream<ReqT, ResT> {
111
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
112
+ end(): void;
113
+ cancel(): void;
114
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
115
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
116
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
117
+ }
118
+
119
+ export class AppDistributionGRPCClient {
120
+ readonly serviceHost: string;
121
+
122
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
123
+ getPhonePrefixes(
124
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest,
125
+ metadata: grpc.Metadata,
126
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse|null) => void
127
+ ): UnaryResponse;
128
+ getPhonePrefixes(
129
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest,
130
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse|null) => void
131
+ ): UnaryResponse;
132
+ getClientsList(
133
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
134
+ metadata: grpc.Metadata,
135
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
136
+ ): UnaryResponse;
137
+ getClientsList(
138
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
139
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
140
+ ): UnaryResponse;
141
+ getClientsListForAutoInvite(
142
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
143
+ metadata: grpc.Metadata,
144
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
145
+ ): UnaryResponse;
146
+ getClientsListForAutoInvite(
147
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
148
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse|null) => void
149
+ ): UnaryResponse;
150
+ checkQr(
151
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
152
+ metadata: grpc.Metadata,
153
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse|null) => void
154
+ ): UnaryResponse;
155
+ checkQr(
156
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
157
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse|null) => void
158
+ ): UnaryResponse;
159
+ checkQrV2(
160
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
161
+ metadata: grpc.Metadata,
162
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2|null) => void
163
+ ): UnaryResponse;
164
+ checkQrV2(
165
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
166
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2|null) => void
167
+ ): UnaryResponse;
168
+ connectQr(
169
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
170
+ metadata: grpc.Metadata,
171
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse|null) => void
172
+ ): UnaryResponse;
173
+ connectQr(
174
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
175
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse|null) => void
176
+ ): UnaryResponse;
177
+ getQrHistory(
178
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
179
+ metadata: grpc.Metadata,
180
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse|null) => void
181
+ ): UnaryResponse;
182
+ getQrHistory(
183
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
184
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse|null) => void
185
+ ): UnaryResponse;
186
+ getActiveQrs(
187
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
188
+ metadata: grpc.Metadata,
189
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse|null) => void
190
+ ): UnaryResponse;
191
+ getActiveQrs(
192
+ requestMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
193
+ callback: (error: ServiceError|null, responseMessage: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse|null) => void
194
+ ): UnaryResponse;
195
+ }
196
+
@@ -0,0 +1,341 @@
1
+ // package: Auth
2
+ // file: auth.app_distribution.proto
3
+
4
+ var auth_app_distribution_pb = require("./auth.app_distribution_pb");
5
+ var grpc = require("@improbable-eng/grpc-web").grpc;
6
+
7
+ var AppDistributionGRPC = (function () {
8
+ function AppDistributionGRPC() {}
9
+ AppDistributionGRPC.serviceName = "Auth.AppDistributionGRPC";
10
+ return AppDistributionGRPC;
11
+ }());
12
+
13
+ AppDistributionGRPC.GetPhonePrefixes = {
14
+ methodName: "GetPhonePrefixes",
15
+ service: AppDistributionGRPC,
16
+ requestStream: false,
17
+ responseStream: false,
18
+ requestType: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesRequest,
19
+ responseType: auth_app_distribution_pb.AppDistributionProto.PhonePrefixesResponse
20
+ };
21
+
22
+ AppDistributionGRPC.GetClientsList = {
23
+ methodName: "GetClientsList",
24
+ service: AppDistributionGRPC,
25
+ requestStream: false,
26
+ responseStream: false,
27
+ requestType: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
28
+ responseType: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse
29
+ };
30
+
31
+ AppDistributionGRPC.GetClientsListForAutoInvite = {
32
+ methodName: "GetClientsListForAutoInvite",
33
+ service: AppDistributionGRPC,
34
+ requestStream: false,
35
+ responseStream: false,
36
+ requestType: auth_app_distribution_pb.AppDistributionProto.GetClientsRequest,
37
+ responseType: auth_app_distribution_pb.AppDistributionProto.GetClientsResponse
38
+ };
39
+
40
+ AppDistributionGRPC.CheckQr = {
41
+ methodName: "CheckQr",
42
+ service: AppDistributionGRPC,
43
+ requestStream: false,
44
+ responseStream: false,
45
+ requestType: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
46
+ responseType: auth_app_distribution_pb.AppDistributionProto.CheckQrResponse
47
+ };
48
+
49
+ AppDistributionGRPC.CheckQrV2 = {
50
+ methodName: "CheckQrV2",
51
+ service: AppDistributionGRPC,
52
+ requestStream: false,
53
+ responseStream: false,
54
+ requestType: auth_app_distribution_pb.AppDistributionProto.CheckQrRequest,
55
+ responseType: auth_app_distribution_pb.AppDistributionProto.CheckQrResponseV2
56
+ };
57
+
58
+ AppDistributionGRPC.ConnectQr = {
59
+ methodName: "ConnectQr",
60
+ service: AppDistributionGRPC,
61
+ requestStream: false,
62
+ responseStream: false,
63
+ requestType: auth_app_distribution_pb.AppDistributionProto.ConnectQrRequest,
64
+ responseType: auth_app_distribution_pb.AppDistributionProto.ConnectQrResponse
65
+ };
66
+
67
+ AppDistributionGRPC.GetQrHistory = {
68
+ methodName: "GetQrHistory",
69
+ service: AppDistributionGRPC,
70
+ requestStream: false,
71
+ responseStream: false,
72
+ requestType: auth_app_distribution_pb.AppDistributionProto.QrHistoryRequest,
73
+ responseType: auth_app_distribution_pb.AppDistributionProto.QrHistoryResponse
74
+ };
75
+
76
+ AppDistributionGRPC.GetActiveQrs = {
77
+ methodName: "GetActiveQrs",
78
+ service: AppDistributionGRPC,
79
+ requestStream: false,
80
+ responseStream: false,
81
+ requestType: auth_app_distribution_pb.AppDistributionProto.ActiveQrRequest,
82
+ responseType: auth_app_distribution_pb.AppDistributionProto.ActiveQrResponse
83
+ };
84
+
85
+ exports.AppDistributionGRPC = AppDistributionGRPC;
86
+
87
+ function AppDistributionGRPCClient(serviceHost, options) {
88
+ this.serviceHost = serviceHost;
89
+ this.options = options || {};
90
+ }
91
+
92
+ AppDistributionGRPCClient.prototype.getPhonePrefixes = function getPhonePrefixes(requestMessage, metadata, callback) {
93
+ if (arguments.length === 2) {
94
+ callback = arguments[1];
95
+ }
96
+ var client = grpc.unary(AppDistributionGRPC.GetPhonePrefixes, {
97
+ request: requestMessage,
98
+ host: this.serviceHost,
99
+ metadata: metadata,
100
+ transport: this.options.transport,
101
+ debug: this.options.debug,
102
+ onEnd: function (response) {
103
+ if (callback) {
104
+ if (response.status !== grpc.Code.OK) {
105
+ var err = new Error(response.statusMessage);
106
+ err.code = response.status;
107
+ err.metadata = response.trailers;
108
+ callback(err, null);
109
+ } else {
110
+ callback(null, response.message);
111
+ }
112
+ }
113
+ }
114
+ });
115
+ return {
116
+ cancel: function () {
117
+ callback = null;
118
+ client.close();
119
+ }
120
+ };
121
+ };
122
+
123
+ AppDistributionGRPCClient.prototype.getClientsList = function getClientsList(requestMessage, metadata, callback) {
124
+ if (arguments.length === 2) {
125
+ callback = arguments[1];
126
+ }
127
+ var client = grpc.unary(AppDistributionGRPC.GetClientsList, {
128
+ request: requestMessage,
129
+ host: this.serviceHost,
130
+ metadata: metadata,
131
+ transport: this.options.transport,
132
+ debug: this.options.debug,
133
+ onEnd: function (response) {
134
+ if (callback) {
135
+ if (response.status !== grpc.Code.OK) {
136
+ var err = new Error(response.statusMessage);
137
+ err.code = response.status;
138
+ err.metadata = response.trailers;
139
+ callback(err, null);
140
+ } else {
141
+ callback(null, response.message);
142
+ }
143
+ }
144
+ }
145
+ });
146
+ return {
147
+ cancel: function () {
148
+ callback = null;
149
+ client.close();
150
+ }
151
+ };
152
+ };
153
+
154
+ AppDistributionGRPCClient.prototype.getClientsListForAutoInvite = function getClientsListForAutoInvite(requestMessage, metadata, callback) {
155
+ if (arguments.length === 2) {
156
+ callback = arguments[1];
157
+ }
158
+ var client = grpc.unary(AppDistributionGRPC.GetClientsListForAutoInvite, {
159
+ request: requestMessage,
160
+ host: this.serviceHost,
161
+ metadata: metadata,
162
+ transport: this.options.transport,
163
+ debug: this.options.debug,
164
+ onEnd: function (response) {
165
+ if (callback) {
166
+ if (response.status !== grpc.Code.OK) {
167
+ var err = new Error(response.statusMessage);
168
+ err.code = response.status;
169
+ err.metadata = response.trailers;
170
+ callback(err, null);
171
+ } else {
172
+ callback(null, response.message);
173
+ }
174
+ }
175
+ }
176
+ });
177
+ return {
178
+ cancel: function () {
179
+ callback = null;
180
+ client.close();
181
+ }
182
+ };
183
+ };
184
+
185
+ AppDistributionGRPCClient.prototype.checkQr = function checkQr(requestMessage, metadata, callback) {
186
+ if (arguments.length === 2) {
187
+ callback = arguments[1];
188
+ }
189
+ var client = grpc.unary(AppDistributionGRPC.CheckQr, {
190
+ request: requestMessage,
191
+ host: this.serviceHost,
192
+ metadata: metadata,
193
+ transport: this.options.transport,
194
+ debug: this.options.debug,
195
+ onEnd: function (response) {
196
+ if (callback) {
197
+ if (response.status !== grpc.Code.OK) {
198
+ var err = new Error(response.statusMessage);
199
+ err.code = response.status;
200
+ err.metadata = response.trailers;
201
+ callback(err, null);
202
+ } else {
203
+ callback(null, response.message);
204
+ }
205
+ }
206
+ }
207
+ });
208
+ return {
209
+ cancel: function () {
210
+ callback = null;
211
+ client.close();
212
+ }
213
+ };
214
+ };
215
+
216
+ AppDistributionGRPCClient.prototype.checkQrV2 = function checkQrV2(requestMessage, metadata, callback) {
217
+ if (arguments.length === 2) {
218
+ callback = arguments[1];
219
+ }
220
+ var client = grpc.unary(AppDistributionGRPC.CheckQrV2, {
221
+ request: requestMessage,
222
+ host: this.serviceHost,
223
+ metadata: metadata,
224
+ transport: this.options.transport,
225
+ debug: this.options.debug,
226
+ onEnd: function (response) {
227
+ if (callback) {
228
+ if (response.status !== grpc.Code.OK) {
229
+ var err = new Error(response.statusMessage);
230
+ err.code = response.status;
231
+ err.metadata = response.trailers;
232
+ callback(err, null);
233
+ } else {
234
+ callback(null, response.message);
235
+ }
236
+ }
237
+ }
238
+ });
239
+ return {
240
+ cancel: function () {
241
+ callback = null;
242
+ client.close();
243
+ }
244
+ };
245
+ };
246
+
247
+ AppDistributionGRPCClient.prototype.connectQr = function connectQr(requestMessage, metadata, callback) {
248
+ if (arguments.length === 2) {
249
+ callback = arguments[1];
250
+ }
251
+ var client = grpc.unary(AppDistributionGRPC.ConnectQr, {
252
+ request: requestMessage,
253
+ host: this.serviceHost,
254
+ metadata: metadata,
255
+ transport: this.options.transport,
256
+ debug: this.options.debug,
257
+ onEnd: function (response) {
258
+ if (callback) {
259
+ if (response.status !== grpc.Code.OK) {
260
+ var err = new Error(response.statusMessage);
261
+ err.code = response.status;
262
+ err.metadata = response.trailers;
263
+ callback(err, null);
264
+ } else {
265
+ callback(null, response.message);
266
+ }
267
+ }
268
+ }
269
+ });
270
+ return {
271
+ cancel: function () {
272
+ callback = null;
273
+ client.close();
274
+ }
275
+ };
276
+ };
277
+
278
+ AppDistributionGRPCClient.prototype.getQrHistory = function getQrHistory(requestMessage, metadata, callback) {
279
+ if (arguments.length === 2) {
280
+ callback = arguments[1];
281
+ }
282
+ var client = grpc.unary(AppDistributionGRPC.GetQrHistory, {
283
+ request: requestMessage,
284
+ host: this.serviceHost,
285
+ metadata: metadata,
286
+ transport: this.options.transport,
287
+ debug: this.options.debug,
288
+ onEnd: function (response) {
289
+ if (callback) {
290
+ if (response.status !== grpc.Code.OK) {
291
+ var err = new Error(response.statusMessage);
292
+ err.code = response.status;
293
+ err.metadata = response.trailers;
294
+ callback(err, null);
295
+ } else {
296
+ callback(null, response.message);
297
+ }
298
+ }
299
+ }
300
+ });
301
+ return {
302
+ cancel: function () {
303
+ callback = null;
304
+ client.close();
305
+ }
306
+ };
307
+ };
308
+
309
+ AppDistributionGRPCClient.prototype.getActiveQrs = function getActiveQrs(requestMessage, metadata, callback) {
310
+ if (arguments.length === 2) {
311
+ callback = arguments[1];
312
+ }
313
+ var client = grpc.unary(AppDistributionGRPC.GetActiveQrs, {
314
+ request: requestMessage,
315
+ host: this.serviceHost,
316
+ metadata: metadata,
317
+ transport: this.options.transport,
318
+ debug: this.options.debug,
319
+ onEnd: function (response) {
320
+ if (callback) {
321
+ if (response.status !== grpc.Code.OK) {
322
+ var err = new Error(response.statusMessage);
323
+ err.code = response.status;
324
+ err.metadata = response.trailers;
325
+ callback(err, null);
326
+ } else {
327
+ callback(null, response.message);
328
+ }
329
+ }
330
+ }
331
+ });
332
+ return {
333
+ cancel: function () {
334
+ callback = null;
335
+ client.close();
336
+ }
337
+ };
338
+ };
339
+
340
+ exports.AppDistributionGRPCClient = AppDistributionGRPCClient;
341
+
@@ -0,0 +1,95 @@
1
+ // package: Auth
2
+ // file: auth.authn.proto
3
+
4
+ import * as jspb from "google-protobuf";
5
+ import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
6
+ import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
+
8
+ export class AuthnProto extends jspb.Message {
9
+ getAccessToken(): string;
10
+ setAccessToken(value: string): void;
11
+
12
+ getRefreshToken(): string;
13
+ setRefreshToken(value: string): void;
14
+
15
+ hasExpiresIn(): boolean;
16
+ clearExpiresIn(): void;
17
+ getExpiresIn(): google_protobuf_duration_pb.Duration | undefined;
18
+ setExpiresIn(value?: google_protobuf_duration_pb.Duration): void;
19
+
20
+ serializeBinary(): Uint8Array;
21
+ toObject(includeInstance?: boolean): AuthnProto.AsObject;
22
+ static toObject(includeInstance: boolean, msg: AuthnProto): AuthnProto.AsObject;
23
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
24
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
25
+ static serializeBinaryToWriter(message: AuthnProto, writer: jspb.BinaryWriter): void;
26
+ static deserializeBinary(bytes: Uint8Array): AuthnProto;
27
+ static deserializeBinaryFromReader(message: AuthnProto, reader: jspb.BinaryReader): AuthnProto;
28
+ }
29
+
30
+ export namespace AuthnProto {
31
+ export type AsObject = {
32
+ accessToken: string,
33
+ refreshToken: string,
34
+ expiresIn?: google_protobuf_duration_pb.Duration.AsObject,
35
+ }
36
+
37
+ export class LoginRequest extends jspb.Message {
38
+ getUsername(): string;
39
+ setUsername(value: string): void;
40
+
41
+ getPassword(): string;
42
+ setPassword(value: string): void;
43
+
44
+ serializeBinary(): Uint8Array;
45
+ toObject(includeInstance?: boolean): LoginRequest.AsObject;
46
+ static toObject(includeInstance: boolean, msg: LoginRequest): LoginRequest.AsObject;
47
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
48
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
49
+ static serializeBinaryToWriter(message: LoginRequest, writer: jspb.BinaryWriter): void;
50
+ static deserializeBinary(bytes: Uint8Array): LoginRequest;
51
+ static deserializeBinaryFromReader(message: LoginRequest, reader: jspb.BinaryReader): LoginRequest;
52
+ }
53
+
54
+ export namespace LoginRequest {
55
+ export type AsObject = {
56
+ username: string,
57
+ password: string,
58
+ }
59
+ }
60
+
61
+ export class RefreshRequest extends jspb.Message {
62
+ getAccessToken(): string;
63
+ setAccessToken(value: string): void;
64
+
65
+ getRefreshToken(): string;
66
+ setRefreshToken(value: string): void;
67
+
68
+ serializeBinary(): Uint8Array;
69
+ toObject(includeInstance?: boolean): RefreshRequest.AsObject;
70
+ static toObject(includeInstance: boolean, msg: RefreshRequest): RefreshRequest.AsObject;
71
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
72
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
73
+ static serializeBinaryToWriter(message: RefreshRequest, writer: jspb.BinaryWriter): void;
74
+ static deserializeBinary(bytes: Uint8Array): RefreshRequest;
75
+ static deserializeBinaryFromReader(message: RefreshRequest, reader: jspb.BinaryReader): RefreshRequest;
76
+ }
77
+
78
+ export namespace RefreshRequest {
79
+ export type AsObject = {
80
+ accessToken: string,
81
+ refreshToken: string,
82
+ }
83
+ }
84
+
85
+ export interface AuthnErrorMap {
86
+ ACCOUNT_DISABLED: 0;
87
+ ACCOUNT_EXPIRED: 1;
88
+ MFA_REGISTRATION_REQUIRED: 2;
89
+ MFA_VERIFICATION_FAILED: 3;
90
+ INVALID_CLIENT_HEADER: 4;
91
+ }
92
+
93
+ export const AuthnError: AuthnErrorMap;
94
+ }
95
+