@aceplus/smartace-api 2.13.0-alpha.16 → 2.13.0-alpha.18

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