@aceplus/smartace-api 3.6.0-alpha.16 → 3.6.0-alpha.17

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