@aceplus/smartace-api 1.3.0-alpha.124 → 1.3.0-alpha.125

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 (209) hide show
  1. package/package.json +1 -1
  2. package/auth.account_events_pb.d.ts +0 -5
  3. package/auth.account_events_pb.js +0 -23
  4. package/auth.account_events_pb_service.d.ts +0 -3
  5. package/auth.account_events_pb_service.js +0 -3
  6. package/auth.account_pb.d.ts +0 -521
  7. package/auth.account_pb.js +0 -3953
  8. package/auth.account_pb_service.d.ts +0 -454
  9. package/auth.account_pb_service.js +0 -877
  10. package/auth.app_account_pb.d.ts +0 -157
  11. package/auth.app_account_pb.js +0 -1155
  12. package/auth.app_account_pb_service.d.ts +0 -160
  13. package/auth.app_account_pb_service.js +0 -263
  14. package/auth.app_authn_pb.d.ts +0 -165
  15. package/auth.app_authn_pb.js +0 -1180
  16. package/auth.app_authn_pb_service.d.ts +0 -140
  17. package/auth.app_authn_pb_service.js +0 -222
  18. package/auth.app_distribution_pb.d.ts +0 -174
  19. package/auth.app_distribution_pb.js +0 -1338
  20. package/auth.app_distribution_pb_service.d.ts +0 -120
  21. package/auth.app_distribution_pb_service.js +0 -181
  22. package/auth.authn_pb.d.ts +0 -85
  23. package/auth.authn_pb.js +0 -625
  24. package/auth.authn_pb_service.d.ts +0 -82
  25. package/auth.authn_pb_service.js +0 -101
  26. package/auth.cluster_pb.d.ts +0 -258
  27. package/auth.cluster_pb.js +0 -1929
  28. package/auth.cluster_pb_service.d.ts +0 -139
  29. package/auth.cluster_pb_service.js +0 -221
  30. package/auth.distribution_pb.d.ts +0 -233
  31. package/auth.distribution_pb.js +0 -1785
  32. package/auth.distribution_pb_service.d.ts +0 -82
  33. package/auth.distribution_pb_service.js +0 -101
  34. package/auth.email_pb.d.ts +0 -235
  35. package/auth.email_pb.js +0 -1632
  36. package/auth.email_pb_service.d.ts +0 -102
  37. package/auth.email_pb_service.js +0 -142
  38. package/auth.push_notification_pb.d.ts +0 -187
  39. package/auth.push_notification_pb.js +0 -1289
  40. package/auth.push_notification_pb_service.d.ts +0 -121
  41. package/auth.push_notification_pb_service.js +0 -182
  42. package/auth.sms_pb.d.ts +0 -80
  43. package/auth.sms_pb.js +0 -577
  44. package/auth.sms_pb_service.d.ts +0 -83
  45. package/auth.sms_pb_service.js +0 -102
  46. package/google/api/annotations_pb.d.ts +0 -9
  47. package/google/api/annotations_pb.js +0 -54
  48. package/google/api/annotations_pb_service.d.ts +0 -3
  49. package/google/api/annotations_pb_service.js +0 -3
  50. package/google/api/auth_pb.d.ts +0 -150
  51. package/google/api/auth_pb.js +0 -1160
  52. package/google/api/auth_pb_service.d.ts +0 -3
  53. package/google/api/auth_pb_service.js +0 -3
  54. package/google/api/backend_pb.d.ts +0 -59
  55. package/google/api/backend_pb.js +0 -448
  56. package/google/api/backend_pb_service.d.ts +0 -3
  57. package/google/api/backend_pb_service.js +0 -3
  58. package/google/api/billing_pb.d.ts +0 -54
  59. package/google/api/billing_pb.js +0 -416
  60. package/google/api/billing_pb_service.d.ts +0 -3
  61. package/google/api/billing_pb_service.js +0 -3
  62. package/google/api/client_pb.d.ts +0 -12
  63. package/google/api/client_pb.js +0 -104
  64. package/google/api/client_pb_service.d.ts +0 -3
  65. package/google/api/client_pb_service.js +0 -3
  66. package/google/api/config_change_pb.d.ts +0 -72
  67. package/google/api/config_change_pb.js +0 -489
  68. package/google/api/config_change_pb_service.d.ts +0 -3
  69. package/google/api/config_change_pb_service.js +0 -3
  70. package/google/api/consumer_pb.d.ts +0 -65
  71. package/google/api/consumer_pb.js +0 -430
  72. package/google/api/consumer_pb_service.d.ts +0 -3
  73. package/google/api/consumer_pb_service.js +0 -3
  74. package/google/api/context_pb.d.ts +0 -59
  75. package/google/api/context_pb.js +0 -463
  76. package/google/api/context_pb_service.d.ts +0 -3
  77. package/google/api/context_pb_service.js +0 -3
  78. package/google/api/control_pb.d.ts +0 -25
  79. package/google/api/control_pb.js +0 -176
  80. package/google/api/control_pb_service.d.ts +0 -3
  81. package/google/api/control_pb_service.js +0 -3
  82. package/google/api/distribution_pb.d.ts +0 -235
  83. package/google/api/distribution_pb.js +0 -1805
  84. package/google/api/distribution_pb_service.d.ts +0 -3
  85. package/google/api/distribution_pb_service.js +0 -3
  86. package/google/api/documentation_pb.d.ts +0 -103
  87. package/google/api/documentation_pb.js +0 -803
  88. package/google/api/documentation_pb_service.d.ts +0 -3
  89. package/google/api/documentation_pb_service.js +0 -3
  90. package/google/api/endpoint_pb.d.ts +0 -46
  91. package/google/api/endpoint_pb.js +0 -343
  92. package/google/api/endpoint_pb_service.d.ts +0 -3
  93. package/google/api/endpoint_pb_service.js +0 -3
  94. package/google/api/error_reason_pb.d.ts +0 -40
  95. package/google/api/error_reason_pb.js +0 -61
  96. package/google/api/error_reason_pb_service.d.ts +0 -3
  97. package/google/api/error_reason_pb_service.js +0 -3
  98. package/google/api/field_behavior_pb.d.ts +0 -20
  99. package/google/api/field_behavior_pb.js +0 -66
  100. package/google/api/field_behavior_pb_service.d.ts +0 -3
  101. package/google/api/field_behavior_pb_service.js +0 -3
  102. package/google/api/http_pb.d.ts +0 -136
  103. package/google/api/http_pb.js +0 -1012
  104. package/google/api/http_pb_service.d.ts +0 -3
  105. package/google/api/http_pb_service.js +0 -3
  106. package/google/api/httpbody_pb.d.ts +0 -38
  107. package/google/api/httpbody_pb.js +0 -292
  108. package/google/api/httpbody_pb_service.d.ts +0 -3
  109. package/google/api/httpbody_pb_service.js +0 -3
  110. package/google/api/label_pb.d.ts +0 -41
  111. package/google/api/label_pb.js +0 -246
  112. package/google/api/label_pb_service.d.ts +0 -3
  113. package/google/api/label_pb_service.js +0 -3
  114. package/google/api/launch_stage_pb.d.ts +0 -16
  115. package/google/api/launch_stage_pb.js +0 -37
  116. package/google/api/launch_stage_pb_service.d.ts +0 -3
  117. package/google/api/launch_stage_pb_service.js +0 -3
  118. package/google/api/log_pb.d.ts +0 -40
  119. package/google/api/log_pb.js +0 -298
  120. package/google/api/log_pb_service.d.ts +0 -3
  121. package/google/api/log_pb_service.js +0 -3
  122. package/google/api/logging_pb.d.ts +0 -60
  123. package/google/api/logging_pb.js +0 -469
  124. package/google/api/logging_pb_service.d.ts +0 -3
  125. package/google/api/logging_pb_service.js +0 -3
  126. package/google/api/metric_pb.d.ts +0 -100
  127. package/google/api/metric_pb.js +0 -629
  128. package/google/api/metric_pb_service.d.ts +0 -3
  129. package/google/api/metric_pb_service.js +0 -3
  130. package/google/api/monitored_resource_pb.d.ts +0 -93
  131. package/google/api/monitored_resource_pb.js +0 -723
  132. package/google/api/monitored_resource_pb_service.d.ts +0 -3
  133. package/google/api/monitored_resource_pb_service.js +0 -3
  134. package/google/api/monitoring_pb.d.ts +0 -60
  135. package/google/api/monitoring_pb.js +0 -469
  136. package/google/api/monitoring_pb_service.d.ts +0 -3
  137. package/google/api/monitoring_pb_service.js +0 -3
  138. package/google/api/policy_pb.d.ts +0 -64
  139. package/google/api/policy_pb.js +0 -502
  140. package/google/api/policy_pb_service.d.ts +0 -3
  141. package/google/api/policy_pb_service.js +0 -3
  142. package/google/api/quota_pb.d.ts +0 -112
  143. package/google/api/quota_pb.js +0 -873
  144. package/google/api/quota_pb_service.d.ts +0 -3
  145. package/google/api/quota_pb_service.js +0 -3
  146. package/google/api/resource_pb.d.ts +0 -99
  147. package/google/api/resource_pb.js +0 -684
  148. package/google/api/resource_pb_service.d.ts +0 -3
  149. package/google/api/resource_pb_service.js +0 -3
  150. package/google/api/routing_pb.d.ts +0 -54
  151. package/google/api/routing_pb.js +0 -416
  152. package/google/api/routing_pb_service.d.ts +0 -3
  153. package/google/api/routing_pb_service.js +0 -3
  154. package/google/api/service_pb.d.ts +0 -184
  155. package/google/api/service_pb.js +0 -1400
  156. package/google/api/service_pb_service.d.ts +0 -3
  157. package/google/api/service_pb_service.js +0 -3
  158. package/google/api/source_info_pb.d.ts +0 -28
  159. package/google/api/source_info_pb.js +0 -208
  160. package/google/api/source_info_pb_service.d.ts +0 -3
  161. package/google/api/source_info_pb_service.js +0 -3
  162. package/google/api/system_parameter_pb.d.ts +0 -81
  163. package/google/api/system_parameter_pb.js +0 -630
  164. package/google/api/system_parameter_pb_service.d.ts +0 -3
  165. package/google/api/system_parameter_pb_service.js +0 -3
  166. package/google/api/usage_pb.d.ts +0 -66
  167. package/google/api/usage_pb.js +0 -499
  168. package/google/api/usage_pb_service.d.ts +0 -3
  169. package/google/api/usage_pb_service.js +0 -3
  170. package/google/api/visibility_pb.d.ts +0 -64
  171. package/google/api/visibility_pb.js +0 -546
  172. package/google/api/visibility_pb_service.d.ts +0 -3
  173. package/google/api/visibility_pb_service.js +0 -3
  174. package/platform.activity_log_pb.d.ts +0 -177
  175. package/platform.activity_log_pb.js +0 -1294
  176. package/platform.activity_log_pb_service.d.ts +0 -82
  177. package/platform.activity_log_pb_service.js +0 -101
  178. package/platform.client_pb.d.ts +0 -308
  179. package/platform.client_pb.js +0 -2339
  180. package/platform.client_pb_service.d.ts +0 -158
  181. package/platform.client_pb_service.js +0 -261
  182. package/platform.group_pb.d.ts +0 -195
  183. package/platform.group_pb.js +0 -1476
  184. package/platform.group_pb_service.d.ts +0 -139
  185. package/platform.group_pb_service.js +0 -221
  186. package/platform.local_account_pb.d.ts +0 -315
  187. package/platform.local_account_pb.js +0 -2372
  188. package/platform.local_account_pb_service.d.ts +0 -293
  189. package/platform.local_account_pb_service.js +0 -543
  190. package/platform.local_distribution_pb.d.ts +0 -69
  191. package/platform.local_distribution_pb.js +0 -506
  192. package/platform.local_distribution_pb_service.d.ts +0 -63
  193. package/platform.local_distribution_pb_service.js +0 -61
  194. package/platform.location_pb.d.ts +0 -271
  195. package/platform.location_pb.js +0 -2046
  196. package/platform.location_pb_service.d.ts +0 -139
  197. package/platform.location_pb_service.js +0 -221
  198. package/platform.pagination_pb.d.ts +0 -37
  199. package/platform.pagination_pb.js +0 -266
  200. package/platform.pagination_pb_service.d.ts +0 -3
  201. package/platform.pagination_pb_service.js +0 -3
  202. package/spic.cabinet_pb.d.ts +0 -1296
  203. package/spic.cabinet_pb.js +0 -9667
  204. package/spic.cabinet_pb_service.d.ts +0 -359
  205. package/spic.cabinet_pb_service.js +0 -677
  206. package/spic.contractor_pb.d.ts +0 -195
  207. package/spic.contractor_pb.js +0 -1476
  208. package/spic.contractor_pb_service.d.ts +0 -139
  209. package/spic.contractor_pb_service.js +0 -221
@@ -1,140 +0,0 @@
1
- // package: Auth
2
- // file: auth.app_authn.proto
3
-
4
- import * as auth_app_authn_pb from "./auth.app_authn_pb";
5
- import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
6
- import {grpc} from "@improbable-eng/grpc-web";
7
-
8
- type AppAuthnGRPCSmsLoginExistingUser = {
9
- readonly methodName: string;
10
- readonly service: typeof AppAuthnGRPC;
11
- readonly requestStream: false;
12
- readonly responseStream: false;
13
- readonly requestType: typeof auth_app_authn_pb.AppAuthnProto.SmsLoginRequest;
14
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
15
- };
16
-
17
- type AppAuthnGRPCSmsLoginNewUser = {
18
- readonly methodName: string;
19
- readonly service: typeof AppAuthnGRPC;
20
- readonly requestStream: false;
21
- readonly responseStream: false;
22
- readonly requestType: typeof auth_app_authn_pb.AppAuthnProto.SmsLoginRequest;
23
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
- };
25
-
26
- type AppAuthnGRPCSmsRefreshToken = {
27
- readonly methodName: string;
28
- readonly service: typeof AppAuthnGRPC;
29
- readonly requestStream: false;
30
- readonly responseStream: false;
31
- readonly requestType: typeof auth_app_authn_pb.AppAuthnProto.SmsRefreshRequest;
32
- readonly responseType: typeof google_protobuf_empty_pb.Empty;
33
- };
34
-
35
- type AppAuthnGRPCVerifySecret = {
36
- readonly methodName: string;
37
- readonly service: typeof AppAuthnGRPC;
38
- readonly requestStream: false;
39
- readonly responseStream: false;
40
- readonly requestType: typeof auth_app_authn_pb.AppAuthnProto.VerifySecretRequest;
41
- readonly responseType: typeof auth_app_authn_pb.AppAuthnProto;
42
- };
43
-
44
- type AppAuthnGRPCSmsVerifyToken = {
45
- readonly methodName: string;
46
- readonly service: typeof AppAuthnGRPC;
47
- readonly requestStream: false;
48
- readonly responseStream: false;
49
- readonly requestType: typeof auth_app_authn_pb.AppAuthnProto.SmsVerifyTokenRequest;
50
- readonly responseType: typeof auth_app_authn_pb.AppAuthnProto;
51
- };
52
-
53
- export class AppAuthnGRPC {
54
- static readonly serviceName: string;
55
- static readonly SmsLoginExistingUser: AppAuthnGRPCSmsLoginExistingUser;
56
- static readonly SmsLoginNewUser: AppAuthnGRPCSmsLoginNewUser;
57
- static readonly SmsRefreshToken: AppAuthnGRPCSmsRefreshToken;
58
- static readonly VerifySecret: AppAuthnGRPCVerifySecret;
59
- static readonly SmsVerifyToken: AppAuthnGRPCSmsVerifyToken;
60
- }
61
-
62
- export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
63
- export type Status = { details: string, code: number; metadata: grpc.Metadata }
64
-
65
- interface UnaryResponse {
66
- cancel(): void;
67
- }
68
- interface ResponseStream<T> {
69
- cancel(): void;
70
- on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
71
- on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
72
- on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
73
- }
74
- interface RequestStream<T> {
75
- write(message: T): RequestStream<T>;
76
- end(): void;
77
- cancel(): void;
78
- on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
79
- on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
80
- }
81
- interface BidirectionalStream<ReqT, ResT> {
82
- write(message: ReqT): BidirectionalStream<ReqT, ResT>;
83
- end(): void;
84
- cancel(): void;
85
- on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
86
- on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
87
- on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
88
- }
89
-
90
- export class AppAuthnGRPCClient {
91
- readonly serviceHost: string;
92
-
93
- constructor(serviceHost: string, options?: grpc.RpcOptions);
94
- smsLoginExistingUser(
95
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsLoginRequest,
96
- metadata: grpc.Metadata,
97
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
98
- ): UnaryResponse;
99
- smsLoginExistingUser(
100
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsLoginRequest,
101
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
102
- ): UnaryResponse;
103
- smsLoginNewUser(
104
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsLoginRequest,
105
- metadata: grpc.Metadata,
106
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
107
- ): UnaryResponse;
108
- smsLoginNewUser(
109
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsLoginRequest,
110
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
111
- ): UnaryResponse;
112
- smsRefreshToken(
113
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsRefreshRequest,
114
- metadata: grpc.Metadata,
115
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
116
- ): UnaryResponse;
117
- smsRefreshToken(
118
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsRefreshRequest,
119
- callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
120
- ): UnaryResponse;
121
- verifySecret(
122
- requestMessage: auth_app_authn_pb.AppAuthnProto.VerifySecretRequest,
123
- metadata: grpc.Metadata,
124
- callback: (error: ServiceError|null, responseMessage: auth_app_authn_pb.AppAuthnProto|null) => void
125
- ): UnaryResponse;
126
- verifySecret(
127
- requestMessage: auth_app_authn_pb.AppAuthnProto.VerifySecretRequest,
128
- callback: (error: ServiceError|null, responseMessage: auth_app_authn_pb.AppAuthnProto|null) => void
129
- ): UnaryResponse;
130
- smsVerifyToken(
131
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsVerifyTokenRequest,
132
- metadata: grpc.Metadata,
133
- callback: (error: ServiceError|null, responseMessage: auth_app_authn_pb.AppAuthnProto|null) => void
134
- ): UnaryResponse;
135
- smsVerifyToken(
136
- requestMessage: auth_app_authn_pb.AppAuthnProto.SmsVerifyTokenRequest,
137
- callback: (error: ServiceError|null, responseMessage: auth_app_authn_pb.AppAuthnProto|null) => void
138
- ): UnaryResponse;
139
- }
140
-
@@ -1,222 +0,0 @@
1
- // package: Auth
2
- // file: auth.app_authn.proto
3
-
4
- var auth_app_authn_pb = require("./auth.app_authn_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 AppAuthnGRPC = (function () {
9
- function AppAuthnGRPC() {}
10
- AppAuthnGRPC.serviceName = "Auth.AppAuthnGRPC";
11
- return AppAuthnGRPC;
12
- }());
13
-
14
- AppAuthnGRPC.SmsLoginExistingUser = {
15
- methodName: "SmsLoginExistingUser",
16
- service: AppAuthnGRPC,
17
- requestStream: false,
18
- responseStream: false,
19
- requestType: auth_app_authn_pb.AppAuthnProto.SmsLoginRequest,
20
- responseType: google_protobuf_empty_pb.Empty
21
- };
22
-
23
- AppAuthnGRPC.SmsLoginNewUser = {
24
- methodName: "SmsLoginNewUser",
25
- service: AppAuthnGRPC,
26
- requestStream: false,
27
- responseStream: false,
28
- requestType: auth_app_authn_pb.AppAuthnProto.SmsLoginRequest,
29
- responseType: google_protobuf_empty_pb.Empty
30
- };
31
-
32
- AppAuthnGRPC.SmsRefreshToken = {
33
- methodName: "SmsRefreshToken",
34
- service: AppAuthnGRPC,
35
- requestStream: false,
36
- responseStream: false,
37
- requestType: auth_app_authn_pb.AppAuthnProto.SmsRefreshRequest,
38
- responseType: google_protobuf_empty_pb.Empty
39
- };
40
-
41
- AppAuthnGRPC.VerifySecret = {
42
- methodName: "VerifySecret",
43
- service: AppAuthnGRPC,
44
- requestStream: false,
45
- responseStream: false,
46
- requestType: auth_app_authn_pb.AppAuthnProto.VerifySecretRequest,
47
- responseType: auth_app_authn_pb.AppAuthnProto
48
- };
49
-
50
- AppAuthnGRPC.SmsVerifyToken = {
51
- methodName: "SmsVerifyToken",
52
- service: AppAuthnGRPC,
53
- requestStream: false,
54
- responseStream: false,
55
- requestType: auth_app_authn_pb.AppAuthnProto.SmsVerifyTokenRequest,
56
- responseType: auth_app_authn_pb.AppAuthnProto
57
- };
58
-
59
- exports.AppAuthnGRPC = AppAuthnGRPC;
60
-
61
- function AppAuthnGRPCClient(serviceHost, options) {
62
- this.serviceHost = serviceHost;
63
- this.options = options || {};
64
- }
65
-
66
- AppAuthnGRPCClient.prototype.smsLoginExistingUser = function smsLoginExistingUser(requestMessage, metadata, callback) {
67
- if (arguments.length === 2) {
68
- callback = arguments[1];
69
- }
70
- var client = grpc.unary(AppAuthnGRPC.SmsLoginExistingUser, {
71
- request: requestMessage,
72
- host: this.serviceHost,
73
- metadata: metadata,
74
- transport: this.options.transport,
75
- debug: this.options.debug,
76
- onEnd: function (response) {
77
- if (callback) {
78
- if (response.status !== grpc.Code.OK) {
79
- var err = new Error(response.statusMessage);
80
- err.code = response.status;
81
- err.metadata = response.trailers;
82
- callback(err, null);
83
- } else {
84
- callback(null, response.message);
85
- }
86
- }
87
- }
88
- });
89
- return {
90
- cancel: function () {
91
- callback = null;
92
- client.close();
93
- }
94
- };
95
- };
96
-
97
- AppAuthnGRPCClient.prototype.smsLoginNewUser = function smsLoginNewUser(requestMessage, metadata, callback) {
98
- if (arguments.length === 2) {
99
- callback = arguments[1];
100
- }
101
- var client = grpc.unary(AppAuthnGRPC.SmsLoginNewUser, {
102
- request: requestMessage,
103
- host: this.serviceHost,
104
- metadata: metadata,
105
- transport: this.options.transport,
106
- debug: this.options.debug,
107
- onEnd: function (response) {
108
- if (callback) {
109
- if (response.status !== grpc.Code.OK) {
110
- var err = new Error(response.statusMessage);
111
- err.code = response.status;
112
- err.metadata = response.trailers;
113
- callback(err, null);
114
- } else {
115
- callback(null, response.message);
116
- }
117
- }
118
- }
119
- });
120
- return {
121
- cancel: function () {
122
- callback = null;
123
- client.close();
124
- }
125
- };
126
- };
127
-
128
- AppAuthnGRPCClient.prototype.smsRefreshToken = function smsRefreshToken(requestMessage, metadata, callback) {
129
- if (arguments.length === 2) {
130
- callback = arguments[1];
131
- }
132
- var client = grpc.unary(AppAuthnGRPC.SmsRefreshToken, {
133
- request: requestMessage,
134
- host: this.serviceHost,
135
- metadata: metadata,
136
- transport: this.options.transport,
137
- debug: this.options.debug,
138
- onEnd: function (response) {
139
- if (callback) {
140
- if (response.status !== grpc.Code.OK) {
141
- var err = new Error(response.statusMessage);
142
- err.code = response.status;
143
- err.metadata = response.trailers;
144
- callback(err, null);
145
- } else {
146
- callback(null, response.message);
147
- }
148
- }
149
- }
150
- });
151
- return {
152
- cancel: function () {
153
- callback = null;
154
- client.close();
155
- }
156
- };
157
- };
158
-
159
- AppAuthnGRPCClient.prototype.verifySecret = function verifySecret(requestMessage, metadata, callback) {
160
- if (arguments.length === 2) {
161
- callback = arguments[1];
162
- }
163
- var client = grpc.unary(AppAuthnGRPC.VerifySecret, {
164
- request: requestMessage,
165
- host: this.serviceHost,
166
- metadata: metadata,
167
- transport: this.options.transport,
168
- debug: this.options.debug,
169
- onEnd: function (response) {
170
- if (callback) {
171
- if (response.status !== grpc.Code.OK) {
172
- var err = new Error(response.statusMessage);
173
- err.code = response.status;
174
- err.metadata = response.trailers;
175
- callback(err, null);
176
- } else {
177
- callback(null, response.message);
178
- }
179
- }
180
- }
181
- });
182
- return {
183
- cancel: function () {
184
- callback = null;
185
- client.close();
186
- }
187
- };
188
- };
189
-
190
- AppAuthnGRPCClient.prototype.smsVerifyToken = function smsVerifyToken(requestMessage, metadata, callback) {
191
- if (arguments.length === 2) {
192
- callback = arguments[1];
193
- }
194
- var client = grpc.unary(AppAuthnGRPC.SmsVerifyToken, {
195
- request: requestMessage,
196
- host: this.serviceHost,
197
- metadata: metadata,
198
- transport: this.options.transport,
199
- debug: this.options.debug,
200
- onEnd: function (response) {
201
- if (callback) {
202
- if (response.status !== grpc.Code.OK) {
203
- var err = new Error(response.statusMessage);
204
- err.code = response.status;
205
- err.metadata = response.trailers;
206
- callback(err, null);
207
- } else {
208
- callback(null, response.message);
209
- }
210
- }
211
- }
212
- });
213
- return {
214
- cancel: function () {
215
- callback = null;
216
- client.close();
217
- }
218
- };
219
- };
220
-
221
- exports.AppAuthnGRPCClient = AppAuthnGRPCClient;
222
-
@@ -1,174 +0,0 @@
1
- // package: Auth
2
- // file: auth.app_distribution.proto
3
-
4
- import * as jspb from "google-protobuf";
5
- import * as google_api_annotations_pb from "./google/api/annotations_pb";
6
- import * as auth_cluster_pb from "./auth.cluster_pb";
7
- import * as platform_client_pb from "./platform.client_pb";
8
-
9
- export class AppDistributionProto extends jspb.Message {
10
- serializeBinary(): Uint8Array;
11
- toObject(includeInstance?: boolean): AppDistributionProto.AsObject;
12
- static toObject(includeInstance: boolean, msg: AppDistributionProto): AppDistributionProto.AsObject;
13
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
14
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
15
- static serializeBinaryToWriter(message: AppDistributionProto, writer: jspb.BinaryWriter): void;
16
- static deserializeBinary(bytes: Uint8Array): AppDistributionProto;
17
- static deserializeBinaryFromReader(message: AppDistributionProto, reader: jspb.BinaryReader): AppDistributionProto;
18
- }
19
-
20
- export namespace AppDistributionProto {
21
- export type AsObject = {
22
- }
23
-
24
- export class ClientWithClusterProto extends jspb.Message {
25
- hasClient(): boolean;
26
- clearClient(): void;
27
- getClient(): platform_client_pb.ClientProto | undefined;
28
- setClient(value?: platform_client_pb.ClientProto): void;
29
-
30
- hasCluster(): boolean;
31
- clearCluster(): void;
32
- getCluster(): auth_cluster_pb.ClusterProto | undefined;
33
- setCluster(value?: auth_cluster_pb.ClusterProto): void;
34
-
35
- serializeBinary(): Uint8Array;
36
- toObject(includeInstance?: boolean): ClientWithClusterProto.AsObject;
37
- static toObject(includeInstance: boolean, msg: ClientWithClusterProto): ClientWithClusterProto.AsObject;
38
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
39
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
40
- static serializeBinaryToWriter(message: ClientWithClusterProto, writer: jspb.BinaryWriter): void;
41
- static deserializeBinary(bytes: Uint8Array): ClientWithClusterProto;
42
- static deserializeBinaryFromReader(message: ClientWithClusterProto, reader: jspb.BinaryReader): ClientWithClusterProto;
43
- }
44
-
45
- export namespace ClientWithClusterProto {
46
- export type AsObject = {
47
- client?: platform_client_pb.ClientProto.AsObject,
48
- cluster?: auth_cluster_pb.ClusterProto.AsObject,
49
- }
50
- }
51
-
52
- export class GetClientsRequest extends jspb.Message {
53
- serializeBinary(): Uint8Array;
54
- toObject(includeInstance?: boolean): GetClientsRequest.AsObject;
55
- static toObject(includeInstance: boolean, msg: GetClientsRequest): GetClientsRequest.AsObject;
56
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
57
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
58
- static serializeBinaryToWriter(message: GetClientsRequest, writer: jspb.BinaryWriter): void;
59
- static deserializeBinary(bytes: Uint8Array): GetClientsRequest;
60
- static deserializeBinaryFromReader(message: GetClientsRequest, reader: jspb.BinaryReader): GetClientsRequest;
61
- }
62
-
63
- export namespace GetClientsRequest {
64
- export type AsObject = {
65
- }
66
- }
67
-
68
- export class GetClientsResponse extends jspb.Message {
69
- clearClientsList(): void;
70
- getClientsList(): Array<AppDistributionProto.ClientWithClusterProto>;
71
- setClientsList(value: Array<AppDistributionProto.ClientWithClusterProto>): void;
72
- addClients(value?: AppDistributionProto.ClientWithClusterProto, index?: number): AppDistributionProto.ClientWithClusterProto;
73
-
74
- serializeBinary(): Uint8Array;
75
- toObject(includeInstance?: boolean): GetClientsResponse.AsObject;
76
- static toObject(includeInstance: boolean, msg: GetClientsResponse): GetClientsResponse.AsObject;
77
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
78
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
79
- static serializeBinaryToWriter(message: GetClientsResponse, writer: jspb.BinaryWriter): void;
80
- static deserializeBinary(bytes: Uint8Array): GetClientsResponse;
81
- static deserializeBinaryFromReader(message: GetClientsResponse, reader: jspb.BinaryReader): GetClientsResponse;
82
- }
83
-
84
- export namespace GetClientsResponse {
85
- export type AsObject = {
86
- clientsList: Array<AppDistributionProto.ClientWithClusterProto.AsObject>,
87
- }
88
- }
89
-
90
- export class PhonePrefixesRequest extends jspb.Message {
91
- serializeBinary(): Uint8Array;
92
- toObject(includeInstance?: boolean): PhonePrefixesRequest.AsObject;
93
- static toObject(includeInstance: boolean, msg: PhonePrefixesRequest): PhonePrefixesRequest.AsObject;
94
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
95
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
96
- static serializeBinaryToWriter(message: PhonePrefixesRequest, writer: jspb.BinaryWriter): void;
97
- static deserializeBinary(bytes: Uint8Array): PhonePrefixesRequest;
98
- static deserializeBinaryFromReader(message: PhonePrefixesRequest, reader: jspb.BinaryReader): PhonePrefixesRequest;
99
- }
100
-
101
- export namespace PhonePrefixesRequest {
102
- export type AsObject = {
103
- }
104
- }
105
-
106
- export class PhonePrefixesResponse extends jspb.Message {
107
- clearPrefixesList(): void;
108
- getPrefixesList(): Array<string>;
109
- setPrefixesList(value: Array<string>): void;
110
- addPrefixes(value: string, index?: number): string;
111
-
112
- serializeBinary(): Uint8Array;
113
- toObject(includeInstance?: boolean): PhonePrefixesResponse.AsObject;
114
- static toObject(includeInstance: boolean, msg: PhonePrefixesResponse): PhonePrefixesResponse.AsObject;
115
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
116
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
117
- static serializeBinaryToWriter(message: PhonePrefixesResponse, writer: jspb.BinaryWriter): void;
118
- static deserializeBinary(bytes: Uint8Array): PhonePrefixesResponse;
119
- static deserializeBinaryFromReader(message: PhonePrefixesResponse, reader: jspb.BinaryReader): PhonePrefixesResponse;
120
- }
121
-
122
- export namespace PhonePrefixesResponse {
123
- export type AsObject = {
124
- prefixesList: Array<string>,
125
- }
126
- }
127
-
128
- export class CheckQrRequest extends jspb.Message {
129
- getQr(): string;
130
- setQr(value: string): void;
131
-
132
- serializeBinary(): Uint8Array;
133
- toObject(includeInstance?: boolean): CheckQrRequest.AsObject;
134
- static toObject(includeInstance: boolean, msg: CheckQrRequest): CheckQrRequest.AsObject;
135
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
136
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
137
- static serializeBinaryToWriter(message: CheckQrRequest, writer: jspb.BinaryWriter): void;
138
- static deserializeBinary(bytes: Uint8Array): CheckQrRequest;
139
- static deserializeBinaryFromReader(message: CheckQrRequest, reader: jspb.BinaryReader): CheckQrRequest;
140
- }
141
-
142
- export namespace CheckQrRequest {
143
- export type AsObject = {
144
- qr: string,
145
- }
146
- }
147
-
148
- export class CheckQrResponse extends jspb.Message {
149
- getUid(): string;
150
- setUid(value: string): void;
151
-
152
- hasClient(): boolean;
153
- clearClient(): void;
154
- getClient(): AppDistributionProto.ClientWithClusterProto | undefined;
155
- setClient(value?: AppDistributionProto.ClientWithClusterProto): void;
156
-
157
- serializeBinary(): Uint8Array;
158
- toObject(includeInstance?: boolean): CheckQrResponse.AsObject;
159
- static toObject(includeInstance: boolean, msg: CheckQrResponse): CheckQrResponse.AsObject;
160
- static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
161
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
162
- static serializeBinaryToWriter(message: CheckQrResponse, writer: jspb.BinaryWriter): void;
163
- static deserializeBinary(bytes: Uint8Array): CheckQrResponse;
164
- static deserializeBinaryFromReader(message: CheckQrResponse, reader: jspb.BinaryReader): CheckQrResponse;
165
- }
166
-
167
- export namespace CheckQrResponse {
168
- export type AsObject = {
169
- uid: string,
170
- client?: AppDistributionProto.ClientWithClusterProto.AsObject,
171
- }
172
- }
173
- }
174
-