@aceplus/smartace-api 2.1.0-drumtracker.9 → 2.1.0

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