@aceplus/smartace-api 1.3.0-alpha.124

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 (210) hide show
  1. package/README.md +0 -0
  2. package/auth.account_events_pb.d.ts +5 -0
  3. package/auth.account_events_pb.js +23 -0
  4. package/auth.account_events_pb_service.d.ts +3 -0
  5. package/auth.account_events_pb_service.js +3 -0
  6. package/auth.account_pb.d.ts +521 -0
  7. package/auth.account_pb.js +3953 -0
  8. package/auth.account_pb_service.d.ts +454 -0
  9. package/auth.account_pb_service.js +877 -0
  10. package/auth.app_account_pb.d.ts +157 -0
  11. package/auth.app_account_pb.js +1155 -0
  12. package/auth.app_account_pb_service.d.ts +160 -0
  13. package/auth.app_account_pb_service.js +263 -0
  14. package/auth.app_authn_pb.d.ts +165 -0
  15. package/auth.app_authn_pb.js +1180 -0
  16. package/auth.app_authn_pb_service.d.ts +140 -0
  17. package/auth.app_authn_pb_service.js +222 -0
  18. package/auth.app_distribution_pb.d.ts +174 -0
  19. package/auth.app_distribution_pb.js +1338 -0
  20. package/auth.app_distribution_pb_service.d.ts +120 -0
  21. package/auth.app_distribution_pb_service.js +181 -0
  22. package/auth.authn_pb.d.ts +85 -0
  23. package/auth.authn_pb.js +625 -0
  24. package/auth.authn_pb_service.d.ts +82 -0
  25. package/auth.authn_pb_service.js +101 -0
  26. package/auth.cluster_pb.d.ts +258 -0
  27. package/auth.cluster_pb.js +1929 -0
  28. package/auth.cluster_pb_service.d.ts +139 -0
  29. package/auth.cluster_pb_service.js +221 -0
  30. package/auth.distribution_pb.d.ts +233 -0
  31. package/auth.distribution_pb.js +1785 -0
  32. package/auth.distribution_pb_service.d.ts +82 -0
  33. package/auth.distribution_pb_service.js +101 -0
  34. package/auth.email_pb.d.ts +235 -0
  35. package/auth.email_pb.js +1632 -0
  36. package/auth.email_pb_service.d.ts +102 -0
  37. package/auth.email_pb_service.js +142 -0
  38. package/auth.push_notification_pb.d.ts +187 -0
  39. package/auth.push_notification_pb.js +1289 -0
  40. package/auth.push_notification_pb_service.d.ts +121 -0
  41. package/auth.push_notification_pb_service.js +182 -0
  42. package/auth.sms_pb.d.ts +80 -0
  43. package/auth.sms_pb.js +577 -0
  44. package/auth.sms_pb_service.d.ts +83 -0
  45. package/auth.sms_pb_service.js +102 -0
  46. package/google/api/annotations_pb.d.ts +9 -0
  47. package/google/api/annotations_pb.js +54 -0
  48. package/google/api/annotations_pb_service.d.ts +3 -0
  49. package/google/api/annotations_pb_service.js +3 -0
  50. package/google/api/auth_pb.d.ts +150 -0
  51. package/google/api/auth_pb.js +1160 -0
  52. package/google/api/auth_pb_service.d.ts +3 -0
  53. package/google/api/auth_pb_service.js +3 -0
  54. package/google/api/backend_pb.d.ts +59 -0
  55. package/google/api/backend_pb.js +448 -0
  56. package/google/api/backend_pb_service.d.ts +3 -0
  57. package/google/api/backend_pb_service.js +3 -0
  58. package/google/api/billing_pb.d.ts +54 -0
  59. package/google/api/billing_pb.js +416 -0
  60. package/google/api/billing_pb_service.d.ts +3 -0
  61. package/google/api/billing_pb_service.js +3 -0
  62. package/google/api/client_pb.d.ts +12 -0
  63. package/google/api/client_pb.js +104 -0
  64. package/google/api/client_pb_service.d.ts +3 -0
  65. package/google/api/client_pb_service.js +3 -0
  66. package/google/api/config_change_pb.d.ts +72 -0
  67. package/google/api/config_change_pb.js +489 -0
  68. package/google/api/config_change_pb_service.d.ts +3 -0
  69. package/google/api/config_change_pb_service.js +3 -0
  70. package/google/api/consumer_pb.d.ts +65 -0
  71. package/google/api/consumer_pb.js +430 -0
  72. package/google/api/consumer_pb_service.d.ts +3 -0
  73. package/google/api/consumer_pb_service.js +3 -0
  74. package/google/api/context_pb.d.ts +59 -0
  75. package/google/api/context_pb.js +463 -0
  76. package/google/api/context_pb_service.d.ts +3 -0
  77. package/google/api/context_pb_service.js +3 -0
  78. package/google/api/control_pb.d.ts +25 -0
  79. package/google/api/control_pb.js +176 -0
  80. package/google/api/control_pb_service.d.ts +3 -0
  81. package/google/api/control_pb_service.js +3 -0
  82. package/google/api/distribution_pb.d.ts +235 -0
  83. package/google/api/distribution_pb.js +1805 -0
  84. package/google/api/distribution_pb_service.d.ts +3 -0
  85. package/google/api/distribution_pb_service.js +3 -0
  86. package/google/api/documentation_pb.d.ts +103 -0
  87. package/google/api/documentation_pb.js +803 -0
  88. package/google/api/documentation_pb_service.d.ts +3 -0
  89. package/google/api/documentation_pb_service.js +3 -0
  90. package/google/api/endpoint_pb.d.ts +46 -0
  91. package/google/api/endpoint_pb.js +343 -0
  92. package/google/api/endpoint_pb_service.d.ts +3 -0
  93. package/google/api/endpoint_pb_service.js +3 -0
  94. package/google/api/error_reason_pb.d.ts +40 -0
  95. package/google/api/error_reason_pb.js +61 -0
  96. package/google/api/error_reason_pb_service.d.ts +3 -0
  97. package/google/api/error_reason_pb_service.js +3 -0
  98. package/google/api/field_behavior_pb.d.ts +20 -0
  99. package/google/api/field_behavior_pb.js +66 -0
  100. package/google/api/field_behavior_pb_service.d.ts +3 -0
  101. package/google/api/field_behavior_pb_service.js +3 -0
  102. package/google/api/http_pb.d.ts +136 -0
  103. package/google/api/http_pb.js +1012 -0
  104. package/google/api/http_pb_service.d.ts +3 -0
  105. package/google/api/http_pb_service.js +3 -0
  106. package/google/api/httpbody_pb.d.ts +38 -0
  107. package/google/api/httpbody_pb.js +292 -0
  108. package/google/api/httpbody_pb_service.d.ts +3 -0
  109. package/google/api/httpbody_pb_service.js +3 -0
  110. package/google/api/label_pb.d.ts +41 -0
  111. package/google/api/label_pb.js +246 -0
  112. package/google/api/label_pb_service.d.ts +3 -0
  113. package/google/api/label_pb_service.js +3 -0
  114. package/google/api/launch_stage_pb.d.ts +16 -0
  115. package/google/api/launch_stage_pb.js +37 -0
  116. package/google/api/launch_stage_pb_service.d.ts +3 -0
  117. package/google/api/launch_stage_pb_service.js +3 -0
  118. package/google/api/log_pb.d.ts +40 -0
  119. package/google/api/log_pb.js +298 -0
  120. package/google/api/log_pb_service.d.ts +3 -0
  121. package/google/api/log_pb_service.js +3 -0
  122. package/google/api/logging_pb.d.ts +60 -0
  123. package/google/api/logging_pb.js +469 -0
  124. package/google/api/logging_pb_service.d.ts +3 -0
  125. package/google/api/logging_pb_service.js +3 -0
  126. package/google/api/metric_pb.d.ts +100 -0
  127. package/google/api/metric_pb.js +629 -0
  128. package/google/api/metric_pb_service.d.ts +3 -0
  129. package/google/api/metric_pb_service.js +3 -0
  130. package/google/api/monitored_resource_pb.d.ts +93 -0
  131. package/google/api/monitored_resource_pb.js +723 -0
  132. package/google/api/monitored_resource_pb_service.d.ts +3 -0
  133. package/google/api/monitored_resource_pb_service.js +3 -0
  134. package/google/api/monitoring_pb.d.ts +60 -0
  135. package/google/api/monitoring_pb.js +469 -0
  136. package/google/api/monitoring_pb_service.d.ts +3 -0
  137. package/google/api/monitoring_pb_service.js +3 -0
  138. package/google/api/policy_pb.d.ts +64 -0
  139. package/google/api/policy_pb.js +502 -0
  140. package/google/api/policy_pb_service.d.ts +3 -0
  141. package/google/api/policy_pb_service.js +3 -0
  142. package/google/api/quota_pb.d.ts +112 -0
  143. package/google/api/quota_pb.js +873 -0
  144. package/google/api/quota_pb_service.d.ts +3 -0
  145. package/google/api/quota_pb_service.js +3 -0
  146. package/google/api/resource_pb.d.ts +99 -0
  147. package/google/api/resource_pb.js +684 -0
  148. package/google/api/resource_pb_service.d.ts +3 -0
  149. package/google/api/resource_pb_service.js +3 -0
  150. package/google/api/routing_pb.d.ts +54 -0
  151. package/google/api/routing_pb.js +416 -0
  152. package/google/api/routing_pb_service.d.ts +3 -0
  153. package/google/api/routing_pb_service.js +3 -0
  154. package/google/api/service_pb.d.ts +184 -0
  155. package/google/api/service_pb.js +1400 -0
  156. package/google/api/service_pb_service.d.ts +3 -0
  157. package/google/api/service_pb_service.js +3 -0
  158. package/google/api/source_info_pb.d.ts +28 -0
  159. package/google/api/source_info_pb.js +208 -0
  160. package/google/api/source_info_pb_service.d.ts +3 -0
  161. package/google/api/source_info_pb_service.js +3 -0
  162. package/google/api/system_parameter_pb.d.ts +81 -0
  163. package/google/api/system_parameter_pb.js +630 -0
  164. package/google/api/system_parameter_pb_service.d.ts +3 -0
  165. package/google/api/system_parameter_pb_service.js +3 -0
  166. package/google/api/usage_pb.d.ts +66 -0
  167. package/google/api/usage_pb.js +499 -0
  168. package/google/api/usage_pb_service.d.ts +3 -0
  169. package/google/api/usage_pb_service.js +3 -0
  170. package/google/api/visibility_pb.d.ts +64 -0
  171. package/google/api/visibility_pb.js +546 -0
  172. package/google/api/visibility_pb_service.d.ts +3 -0
  173. package/google/api/visibility_pb_service.js +3 -0
  174. package/package.json +18 -0
  175. package/platform.activity_log_pb.d.ts +177 -0
  176. package/platform.activity_log_pb.js +1294 -0
  177. package/platform.activity_log_pb_service.d.ts +82 -0
  178. package/platform.activity_log_pb_service.js +101 -0
  179. package/platform.client_pb.d.ts +308 -0
  180. package/platform.client_pb.js +2339 -0
  181. package/platform.client_pb_service.d.ts +158 -0
  182. package/platform.client_pb_service.js +261 -0
  183. package/platform.group_pb.d.ts +195 -0
  184. package/platform.group_pb.js +1476 -0
  185. package/platform.group_pb_service.d.ts +139 -0
  186. package/platform.group_pb_service.js +221 -0
  187. package/platform.local_account_pb.d.ts +315 -0
  188. package/platform.local_account_pb.js +2372 -0
  189. package/platform.local_account_pb_service.d.ts +293 -0
  190. package/platform.local_account_pb_service.js +543 -0
  191. package/platform.local_distribution_pb.d.ts +69 -0
  192. package/platform.local_distribution_pb.js +506 -0
  193. package/platform.local_distribution_pb_service.d.ts +63 -0
  194. package/platform.local_distribution_pb_service.js +61 -0
  195. package/platform.location_pb.d.ts +271 -0
  196. package/platform.location_pb.js +2046 -0
  197. package/platform.location_pb_service.d.ts +139 -0
  198. package/platform.location_pb_service.js +221 -0
  199. package/platform.pagination_pb.d.ts +37 -0
  200. package/platform.pagination_pb.js +266 -0
  201. package/platform.pagination_pb_service.d.ts +3 -0
  202. package/platform.pagination_pb_service.js +3 -0
  203. package/spic.cabinet_pb.d.ts +1296 -0
  204. package/spic.cabinet_pb.js +9667 -0
  205. package/spic.cabinet_pb_service.d.ts +359 -0
  206. package/spic.cabinet_pb_service.js +677 -0
  207. package/spic.contractor_pb.d.ts +195 -0
  208. package/spic.contractor_pb.js +1476 -0
  209. package/spic.contractor_pb_service.d.ts +139 -0
  210. package/spic.contractor_pb_service.js +221 -0
package/auth.sms_pb.js ADDED
@@ -0,0 +1,577 @@
1
+ // source: auth.sms.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
27
+ goog.object.extend(proto, google_protobuf_empty_pb);
28
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
29
+ goog.object.extend(proto, google_api_annotations_pb);
30
+ goog.exportSymbol('proto.Auth.SmsProto', null, global);
31
+ goog.exportSymbol('proto.Auth.SmsProto.InviteRequest', null, global);
32
+ goog.exportSymbol('proto.Auth.SmsProto.LoginCodeRequest', null, global);
33
+ /**
34
+ * Generated by JsPbCodeGenerator.
35
+ * @param {Array=} opt_data Optional initial data array, typically from a
36
+ * server response, or constructed directly in Javascript. The array is used
37
+ * in place and becomes part of the constructed object. It is not cloned.
38
+ * If no data is provided, the constructed object will be empty, but still
39
+ * valid.
40
+ * @extends {jspb.Message}
41
+ * @constructor
42
+ */
43
+ proto.Auth.SmsProto = function(opt_data) {
44
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
45
+ };
46
+ goog.inherits(proto.Auth.SmsProto, jspb.Message);
47
+ if (goog.DEBUG && !COMPILED) {
48
+ /**
49
+ * @public
50
+ * @override
51
+ */
52
+ proto.Auth.SmsProto.displayName = 'proto.Auth.SmsProto';
53
+ }
54
+ /**
55
+ * Generated by JsPbCodeGenerator.
56
+ * @param {Array=} opt_data Optional initial data array, typically from a
57
+ * server response, or constructed directly in Javascript. The array is used
58
+ * in place and becomes part of the constructed object. It is not cloned.
59
+ * If no data is provided, the constructed object will be empty, but still
60
+ * valid.
61
+ * @extends {jspb.Message}
62
+ * @constructor
63
+ */
64
+ proto.Auth.SmsProto.InviteRequest = function(opt_data) {
65
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
66
+ };
67
+ goog.inherits(proto.Auth.SmsProto.InviteRequest, jspb.Message);
68
+ if (goog.DEBUG && !COMPILED) {
69
+ /**
70
+ * @public
71
+ * @override
72
+ */
73
+ proto.Auth.SmsProto.InviteRequest.displayName = 'proto.Auth.SmsProto.InviteRequest';
74
+ }
75
+ /**
76
+ * Generated by JsPbCodeGenerator.
77
+ * @param {Array=} opt_data Optional initial data array, typically from a
78
+ * server response, or constructed directly in Javascript. The array is used
79
+ * in place and becomes part of the constructed object. It is not cloned.
80
+ * If no data is provided, the constructed object will be empty, but still
81
+ * valid.
82
+ * @extends {jspb.Message}
83
+ * @constructor
84
+ */
85
+ proto.Auth.SmsProto.LoginCodeRequest = function(opt_data) {
86
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
87
+ };
88
+ goog.inherits(proto.Auth.SmsProto.LoginCodeRequest, jspb.Message);
89
+ if (goog.DEBUG && !COMPILED) {
90
+ /**
91
+ * @public
92
+ * @override
93
+ */
94
+ proto.Auth.SmsProto.LoginCodeRequest.displayName = 'proto.Auth.SmsProto.LoginCodeRequest';
95
+ }
96
+
97
+
98
+
99
+ if (jspb.Message.GENERATE_TO_OBJECT) {
100
+ /**
101
+ * Creates an object representation of this proto.
102
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
103
+ * Optional fields that are not set will be set to undefined.
104
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
105
+ * For the list of reserved names please see:
106
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
107
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
108
+ * JSPB instance for transitional soy proto support:
109
+ * http://goto/soy-param-migration
110
+ * @return {!Object}
111
+ */
112
+ proto.Auth.SmsProto.prototype.toObject = function(opt_includeInstance) {
113
+ return proto.Auth.SmsProto.toObject(opt_includeInstance, this);
114
+ };
115
+
116
+
117
+ /**
118
+ * Static version of the {@see toObject} method.
119
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
120
+ * the JSPB instance for transitional soy proto support:
121
+ * http://goto/soy-param-migration
122
+ * @param {!proto.Auth.SmsProto} msg The msg instance to transform.
123
+ * @return {!Object}
124
+ * @suppress {unusedLocalVariables} f is only used for nested messages
125
+ */
126
+ proto.Auth.SmsProto.toObject = function(includeInstance, msg) {
127
+ var f, obj = {
128
+
129
+ };
130
+
131
+ if (includeInstance) {
132
+ obj.$jspbMessageInstance = msg;
133
+ }
134
+ return obj;
135
+ };
136
+ }
137
+
138
+
139
+ /**
140
+ * Deserializes binary data (in protobuf wire format).
141
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
142
+ * @return {!proto.Auth.SmsProto}
143
+ */
144
+ proto.Auth.SmsProto.deserializeBinary = function(bytes) {
145
+ var reader = new jspb.BinaryReader(bytes);
146
+ var msg = new proto.Auth.SmsProto;
147
+ return proto.Auth.SmsProto.deserializeBinaryFromReader(msg, reader);
148
+ };
149
+
150
+
151
+ /**
152
+ * Deserializes binary data (in protobuf wire format) from the
153
+ * given reader into the given message object.
154
+ * @param {!proto.Auth.SmsProto} msg The message object to deserialize into.
155
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
156
+ * @return {!proto.Auth.SmsProto}
157
+ */
158
+ proto.Auth.SmsProto.deserializeBinaryFromReader = function(msg, reader) {
159
+ while (reader.nextField()) {
160
+ if (reader.isEndGroup()) {
161
+ break;
162
+ }
163
+ var field = reader.getFieldNumber();
164
+ switch (field) {
165
+ default:
166
+ reader.skipField();
167
+ break;
168
+ }
169
+ }
170
+ return msg;
171
+ };
172
+
173
+
174
+ /**
175
+ * Serializes the message to binary data (in protobuf wire format).
176
+ * @return {!Uint8Array}
177
+ */
178
+ proto.Auth.SmsProto.prototype.serializeBinary = function() {
179
+ var writer = new jspb.BinaryWriter();
180
+ proto.Auth.SmsProto.serializeBinaryToWriter(this, writer);
181
+ return writer.getResultBuffer();
182
+ };
183
+
184
+
185
+ /**
186
+ * Serializes the given message to binary data (in protobuf wire
187
+ * format), writing to the given BinaryWriter.
188
+ * @param {!proto.Auth.SmsProto} message
189
+ * @param {!jspb.BinaryWriter} writer
190
+ * @suppress {unusedLocalVariables} f is only used for nested messages
191
+ */
192
+ proto.Auth.SmsProto.serializeBinaryToWriter = function(message, writer) {
193
+ var f = undefined;
194
+ };
195
+
196
+
197
+
198
+
199
+
200
+ if (jspb.Message.GENERATE_TO_OBJECT) {
201
+ /**
202
+ * Creates an object representation of this proto.
203
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
204
+ * Optional fields that are not set will be set to undefined.
205
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
206
+ * For the list of reserved names please see:
207
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
208
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
209
+ * JSPB instance for transitional soy proto support:
210
+ * http://goto/soy-param-migration
211
+ * @return {!Object}
212
+ */
213
+ proto.Auth.SmsProto.InviteRequest.prototype.toObject = function(opt_includeInstance) {
214
+ return proto.Auth.SmsProto.InviteRequest.toObject(opt_includeInstance, this);
215
+ };
216
+
217
+
218
+ /**
219
+ * Static version of the {@see toObject} method.
220
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
221
+ * the JSPB instance for transitional soy proto support:
222
+ * http://goto/soy-param-migration
223
+ * @param {!proto.Auth.SmsProto.InviteRequest} msg The msg instance to transform.
224
+ * @return {!Object}
225
+ * @suppress {unusedLocalVariables} f is only used for nested messages
226
+ */
227
+ proto.Auth.SmsProto.InviteRequest.toObject = function(includeInstance, msg) {
228
+ var f, obj = {
229
+ phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
230
+ firstname: jspb.Message.getFieldWithDefault(msg, 2, ""),
231
+ clientname: jspb.Message.getFieldWithDefault(msg, 3, "")
232
+ };
233
+
234
+ if (includeInstance) {
235
+ obj.$jspbMessageInstance = msg;
236
+ }
237
+ return obj;
238
+ };
239
+ }
240
+
241
+
242
+ /**
243
+ * Deserializes binary data (in protobuf wire format).
244
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
245
+ * @return {!proto.Auth.SmsProto.InviteRequest}
246
+ */
247
+ proto.Auth.SmsProto.InviteRequest.deserializeBinary = function(bytes) {
248
+ var reader = new jspb.BinaryReader(bytes);
249
+ var msg = new proto.Auth.SmsProto.InviteRequest;
250
+ return proto.Auth.SmsProto.InviteRequest.deserializeBinaryFromReader(msg, reader);
251
+ };
252
+
253
+
254
+ /**
255
+ * Deserializes binary data (in protobuf wire format) from the
256
+ * given reader into the given message object.
257
+ * @param {!proto.Auth.SmsProto.InviteRequest} msg The message object to deserialize into.
258
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
259
+ * @return {!proto.Auth.SmsProto.InviteRequest}
260
+ */
261
+ proto.Auth.SmsProto.InviteRequest.deserializeBinaryFromReader = function(msg, reader) {
262
+ while (reader.nextField()) {
263
+ if (reader.isEndGroup()) {
264
+ break;
265
+ }
266
+ var field = reader.getFieldNumber();
267
+ switch (field) {
268
+ case 1:
269
+ var value = /** @type {string} */ (reader.readString());
270
+ msg.setPhone(value);
271
+ break;
272
+ case 2:
273
+ var value = /** @type {string} */ (reader.readString());
274
+ msg.setFirstname(value);
275
+ break;
276
+ case 3:
277
+ var value = /** @type {string} */ (reader.readString());
278
+ msg.setClientname(value);
279
+ break;
280
+ default:
281
+ reader.skipField();
282
+ break;
283
+ }
284
+ }
285
+ return msg;
286
+ };
287
+
288
+
289
+ /**
290
+ * Serializes the message to binary data (in protobuf wire format).
291
+ * @return {!Uint8Array}
292
+ */
293
+ proto.Auth.SmsProto.InviteRequest.prototype.serializeBinary = function() {
294
+ var writer = new jspb.BinaryWriter();
295
+ proto.Auth.SmsProto.InviteRequest.serializeBinaryToWriter(this, writer);
296
+ return writer.getResultBuffer();
297
+ };
298
+
299
+
300
+ /**
301
+ * Serializes the given message to binary data (in protobuf wire
302
+ * format), writing to the given BinaryWriter.
303
+ * @param {!proto.Auth.SmsProto.InviteRequest} message
304
+ * @param {!jspb.BinaryWriter} writer
305
+ * @suppress {unusedLocalVariables} f is only used for nested messages
306
+ */
307
+ proto.Auth.SmsProto.InviteRequest.serializeBinaryToWriter = function(message, writer) {
308
+ var f = undefined;
309
+ f = message.getPhone();
310
+ if (f.length > 0) {
311
+ writer.writeString(
312
+ 1,
313
+ f
314
+ );
315
+ }
316
+ f = message.getFirstname();
317
+ if (f.length > 0) {
318
+ writer.writeString(
319
+ 2,
320
+ f
321
+ );
322
+ }
323
+ f = message.getClientname();
324
+ if (f.length > 0) {
325
+ writer.writeString(
326
+ 3,
327
+ f
328
+ );
329
+ }
330
+ };
331
+
332
+
333
+ /**
334
+ * optional string phone = 1;
335
+ * @return {string}
336
+ */
337
+ proto.Auth.SmsProto.InviteRequest.prototype.getPhone = function() {
338
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
339
+ };
340
+
341
+
342
+ /**
343
+ * @param {string} value
344
+ * @return {!proto.Auth.SmsProto.InviteRequest} returns this
345
+ */
346
+ proto.Auth.SmsProto.InviteRequest.prototype.setPhone = function(value) {
347
+ return jspb.Message.setProto3StringField(this, 1, value);
348
+ };
349
+
350
+
351
+ /**
352
+ * optional string firstName = 2;
353
+ * @return {string}
354
+ */
355
+ proto.Auth.SmsProto.InviteRequest.prototype.getFirstname = function() {
356
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
357
+ };
358
+
359
+
360
+ /**
361
+ * @param {string} value
362
+ * @return {!proto.Auth.SmsProto.InviteRequest} returns this
363
+ */
364
+ proto.Auth.SmsProto.InviteRequest.prototype.setFirstname = function(value) {
365
+ return jspb.Message.setProto3StringField(this, 2, value);
366
+ };
367
+
368
+
369
+ /**
370
+ * optional string clientName = 3;
371
+ * @return {string}
372
+ */
373
+ proto.Auth.SmsProto.InviteRequest.prototype.getClientname = function() {
374
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
375
+ };
376
+
377
+
378
+ /**
379
+ * @param {string} value
380
+ * @return {!proto.Auth.SmsProto.InviteRequest} returns this
381
+ */
382
+ proto.Auth.SmsProto.InviteRequest.prototype.setClientname = function(value) {
383
+ return jspb.Message.setProto3StringField(this, 3, value);
384
+ };
385
+
386
+
387
+
388
+
389
+
390
+ if (jspb.Message.GENERATE_TO_OBJECT) {
391
+ /**
392
+ * Creates an object representation of this proto.
393
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
394
+ * Optional fields that are not set will be set to undefined.
395
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
396
+ * For the list of reserved names please see:
397
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
398
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
399
+ * JSPB instance for transitional soy proto support:
400
+ * http://goto/soy-param-migration
401
+ * @return {!Object}
402
+ */
403
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.toObject = function(opt_includeInstance) {
404
+ return proto.Auth.SmsProto.LoginCodeRequest.toObject(opt_includeInstance, this);
405
+ };
406
+
407
+
408
+ /**
409
+ * Static version of the {@see toObject} method.
410
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
411
+ * the JSPB instance for transitional soy proto support:
412
+ * http://goto/soy-param-migration
413
+ * @param {!proto.Auth.SmsProto.LoginCodeRequest} msg The msg instance to transform.
414
+ * @return {!Object}
415
+ * @suppress {unusedLocalVariables} f is only used for nested messages
416
+ */
417
+ proto.Auth.SmsProto.LoginCodeRequest.toObject = function(includeInstance, msg) {
418
+ var f, obj = {
419
+ phone: jspb.Message.getFieldWithDefault(msg, 1, ""),
420
+ firstname: jspb.Message.getFieldWithDefault(msg, 2, ""),
421
+ logincode: jspb.Message.getFieldWithDefault(msg, 3, "")
422
+ };
423
+
424
+ if (includeInstance) {
425
+ obj.$jspbMessageInstance = msg;
426
+ }
427
+ return obj;
428
+ };
429
+ }
430
+
431
+
432
+ /**
433
+ * Deserializes binary data (in protobuf wire format).
434
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
435
+ * @return {!proto.Auth.SmsProto.LoginCodeRequest}
436
+ */
437
+ proto.Auth.SmsProto.LoginCodeRequest.deserializeBinary = function(bytes) {
438
+ var reader = new jspb.BinaryReader(bytes);
439
+ var msg = new proto.Auth.SmsProto.LoginCodeRequest;
440
+ return proto.Auth.SmsProto.LoginCodeRequest.deserializeBinaryFromReader(msg, reader);
441
+ };
442
+
443
+
444
+ /**
445
+ * Deserializes binary data (in protobuf wire format) from the
446
+ * given reader into the given message object.
447
+ * @param {!proto.Auth.SmsProto.LoginCodeRequest} msg The message object to deserialize into.
448
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
449
+ * @return {!proto.Auth.SmsProto.LoginCodeRequest}
450
+ */
451
+ proto.Auth.SmsProto.LoginCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
452
+ while (reader.nextField()) {
453
+ if (reader.isEndGroup()) {
454
+ break;
455
+ }
456
+ var field = reader.getFieldNumber();
457
+ switch (field) {
458
+ case 1:
459
+ var value = /** @type {string} */ (reader.readString());
460
+ msg.setPhone(value);
461
+ break;
462
+ case 2:
463
+ var value = /** @type {string} */ (reader.readString());
464
+ msg.setFirstname(value);
465
+ break;
466
+ case 3:
467
+ var value = /** @type {string} */ (reader.readString());
468
+ msg.setLogincode(value);
469
+ break;
470
+ default:
471
+ reader.skipField();
472
+ break;
473
+ }
474
+ }
475
+ return msg;
476
+ };
477
+
478
+
479
+ /**
480
+ * Serializes the message to binary data (in protobuf wire format).
481
+ * @return {!Uint8Array}
482
+ */
483
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.serializeBinary = function() {
484
+ var writer = new jspb.BinaryWriter();
485
+ proto.Auth.SmsProto.LoginCodeRequest.serializeBinaryToWriter(this, writer);
486
+ return writer.getResultBuffer();
487
+ };
488
+
489
+
490
+ /**
491
+ * Serializes the given message to binary data (in protobuf wire
492
+ * format), writing to the given BinaryWriter.
493
+ * @param {!proto.Auth.SmsProto.LoginCodeRequest} message
494
+ * @param {!jspb.BinaryWriter} writer
495
+ * @suppress {unusedLocalVariables} f is only used for nested messages
496
+ */
497
+ proto.Auth.SmsProto.LoginCodeRequest.serializeBinaryToWriter = function(message, writer) {
498
+ var f = undefined;
499
+ f = message.getPhone();
500
+ if (f.length > 0) {
501
+ writer.writeString(
502
+ 1,
503
+ f
504
+ );
505
+ }
506
+ f = message.getFirstname();
507
+ if (f.length > 0) {
508
+ writer.writeString(
509
+ 2,
510
+ f
511
+ );
512
+ }
513
+ f = message.getLogincode();
514
+ if (f.length > 0) {
515
+ writer.writeString(
516
+ 3,
517
+ f
518
+ );
519
+ }
520
+ };
521
+
522
+
523
+ /**
524
+ * optional string phone = 1;
525
+ * @return {string}
526
+ */
527
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.getPhone = function() {
528
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
529
+ };
530
+
531
+
532
+ /**
533
+ * @param {string} value
534
+ * @return {!proto.Auth.SmsProto.LoginCodeRequest} returns this
535
+ */
536
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.setPhone = function(value) {
537
+ return jspb.Message.setProto3StringField(this, 1, value);
538
+ };
539
+
540
+
541
+ /**
542
+ * optional string firstName = 2;
543
+ * @return {string}
544
+ */
545
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.getFirstname = function() {
546
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
547
+ };
548
+
549
+
550
+ /**
551
+ * @param {string} value
552
+ * @return {!proto.Auth.SmsProto.LoginCodeRequest} returns this
553
+ */
554
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.setFirstname = function(value) {
555
+ return jspb.Message.setProto3StringField(this, 2, value);
556
+ };
557
+
558
+
559
+ /**
560
+ * optional string loginCode = 3;
561
+ * @return {string}
562
+ */
563
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.getLogincode = function() {
564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
565
+ };
566
+
567
+
568
+ /**
569
+ * @param {string} value
570
+ * @return {!proto.Auth.SmsProto.LoginCodeRequest} returns this
571
+ */
572
+ proto.Auth.SmsProto.LoginCodeRequest.prototype.setLogincode = function(value) {
573
+ return jspb.Message.setProto3StringField(this, 3, value);
574
+ };
575
+
576
+
577
+ goog.object.extend(exports, proto.Auth);
@@ -0,0 +1,83 @@
1
+ // package: Auth
2
+ // file: auth.sms.proto
3
+
4
+ import * as auth_sms_pb from "./auth.sms_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 SmsGRPCInviteAppUser = {
9
+ readonly methodName: string;
10
+ readonly service: typeof SmsGRPC;
11
+ readonly requestStream: false;
12
+ readonly responseStream: false;
13
+ readonly requestType: typeof auth_sms_pb.SmsProto.InviteRequest;
14
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
15
+ };
16
+
17
+ type SmsGRPCLoginCode = {
18
+ readonly methodName: string;
19
+ readonly service: typeof SmsGRPC;
20
+ readonly requestStream: false;
21
+ readonly responseStream: false;
22
+ readonly requestType: typeof auth_sms_pb.SmsProto.LoginCodeRequest;
23
+ readonly responseType: typeof google_protobuf_empty_pb.Empty;
24
+ };
25
+
26
+ export class SmsGRPC {
27
+ static readonly serviceName: string;
28
+ static readonly InviteAppUser: SmsGRPCInviteAppUser;
29
+ static readonly LoginCode: SmsGRPCLoginCode;
30
+ }
31
+
32
+ export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
33
+ export type Status = { details: string, code: number; metadata: grpc.Metadata }
34
+
35
+ interface UnaryResponse {
36
+ cancel(): void;
37
+ }
38
+ interface ResponseStream<T> {
39
+ cancel(): void;
40
+ on(type: 'data', handler: (message: T) => void): ResponseStream<T>;
41
+ on(type: 'end', handler: (status?: Status) => void): ResponseStream<T>;
42
+ on(type: 'status', handler: (status: Status) => void): ResponseStream<T>;
43
+ }
44
+ interface RequestStream<T> {
45
+ write(message: T): RequestStream<T>;
46
+ end(): void;
47
+ cancel(): void;
48
+ on(type: 'end', handler: (status?: Status) => void): RequestStream<T>;
49
+ on(type: 'status', handler: (status: Status) => void): RequestStream<T>;
50
+ }
51
+ interface BidirectionalStream<ReqT, ResT> {
52
+ write(message: ReqT): BidirectionalStream<ReqT, ResT>;
53
+ end(): void;
54
+ cancel(): void;
55
+ on(type: 'data', handler: (message: ResT) => void): BidirectionalStream<ReqT, ResT>;
56
+ on(type: 'end', handler: (status?: Status) => void): BidirectionalStream<ReqT, ResT>;
57
+ on(type: 'status', handler: (status: Status) => void): BidirectionalStream<ReqT, ResT>;
58
+ }
59
+
60
+ export class SmsGRPCClient {
61
+ readonly serviceHost: string;
62
+
63
+ constructor(serviceHost: string, options?: grpc.RpcOptions);
64
+ inviteAppUser(
65
+ requestMessage: auth_sms_pb.SmsProto.InviteRequest,
66
+ metadata: grpc.Metadata,
67
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
68
+ ): UnaryResponse;
69
+ inviteAppUser(
70
+ requestMessage: auth_sms_pb.SmsProto.InviteRequest,
71
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
72
+ ): UnaryResponse;
73
+ loginCode(
74
+ requestMessage: auth_sms_pb.SmsProto.LoginCodeRequest,
75
+ metadata: grpc.Metadata,
76
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
77
+ ): UnaryResponse;
78
+ loginCode(
79
+ requestMessage: auth_sms_pb.SmsProto.LoginCodeRequest,
80
+ callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
81
+ ): UnaryResponse;
82
+ }
83
+