@aceplus/smartace-api 3.6.0 → 3.7.0-alpha.10
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.
- package/auth.account_pb.d.ts +4 -153
- package/auth.account_pb.js +63 -1209
- package/auth.account_pb_service.d.ts +0 -124
- package/auth.account_pb_service.js +0 -255
- package/auth.account_two_factor_pb.d.ts +0 -24
- package/auth.account_two_factor_pb.js +0 -182
- package/auth.account_two_factor_pb_service.d.ts +0 -19
- package/auth.account_two_factor_pb_service.js +0 -40
- package/auth.app_account_pb.d.ts +30 -0
- package/auth.app_account_pb.js +190 -0
- package/auth.app_account_pb_service.d.ts +19 -0
- package/auth.app_account_pb_service.js +40 -0
- package/auth.app_distribution_pb.d.ts +68 -0
- package/auth.app_distribution_pb.js +516 -0
- package/auth.app_distribution_pb_service.d.ts +38 -0
- package/auth.app_distribution_pb_service.js +80 -0
- package/auth.passkey_pb.d.ts +239 -0
- package/auth.passkey_pb.js +1842 -0
- package/auth.passkey_pb_service.d.ts +160 -0
- package/auth.passkey_pb_service.js +263 -0
- package/package.json +1 -1
- package/platform.local_account_pb.d.ts +20 -0
- package/platform.local_account_pb.js +152 -0
- package/platform.local_account_pb_service.d.ts +6 -6
- package/platform.local_account_pb_service.js +2 -2
- package/spic.asset_pb.d.ts +79 -71
- package/spic.asset_pb.js +679 -619
|
@@ -20,15 +20,6 @@ AccountTwoFactorGRPC.SetupTwoFactor = {
|
|
|
20
20
|
responseType: auth_account_two_factor_pb.TwoFactorProto.SetupReply
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
AccountTwoFactorGRPC.ConfirmTwoFactor = {
|
|
24
|
-
methodName: "ConfirmTwoFactor",
|
|
25
|
-
service: AccountTwoFactorGRPC,
|
|
26
|
-
requestStream: false,
|
|
27
|
-
responseStream: false,
|
|
28
|
-
requestType: auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest,
|
|
29
|
-
responseType: auth_account_two_factor_pb.TwoFactorProto.ConfirmReply
|
|
30
|
-
};
|
|
31
|
-
|
|
32
23
|
AccountTwoFactorGRPC.Remove = {
|
|
33
24
|
methodName: "Remove",
|
|
34
25
|
service: AccountTwoFactorGRPC,
|
|
@@ -85,37 +76,6 @@ AccountTwoFactorGRPCClient.prototype.setupTwoFactor = function setupTwoFactor(re
|
|
|
85
76
|
};
|
|
86
77
|
};
|
|
87
78
|
|
|
88
|
-
AccountTwoFactorGRPCClient.prototype.confirmTwoFactor = function confirmTwoFactor(requestMessage, metadata, callback) {
|
|
89
|
-
if (arguments.length === 2) {
|
|
90
|
-
callback = arguments[1];
|
|
91
|
-
}
|
|
92
|
-
var client = grpc.unary(AccountTwoFactorGRPC.ConfirmTwoFactor, {
|
|
93
|
-
request: requestMessage,
|
|
94
|
-
host: this.serviceHost,
|
|
95
|
-
metadata: metadata,
|
|
96
|
-
transport: this.options.transport,
|
|
97
|
-
debug: this.options.debug,
|
|
98
|
-
onEnd: function (response) {
|
|
99
|
-
if (callback) {
|
|
100
|
-
if (response.status !== grpc.Code.OK) {
|
|
101
|
-
var err = new Error(response.statusMessage);
|
|
102
|
-
err.code = response.status;
|
|
103
|
-
err.metadata = response.trailers;
|
|
104
|
-
callback(err, null);
|
|
105
|
-
} else {
|
|
106
|
-
callback(null, response.message);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
return {
|
|
112
|
-
cancel: function () {
|
|
113
|
-
callback = null;
|
|
114
|
-
client.close();
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
|
|
119
79
|
AccountTwoFactorGRPCClient.prototype.remove = function remove(requestMessage, metadata, callback) {
|
|
120
80
|
if (arguments.length === 2) {
|
|
121
81
|
callback = arguments[1];
|
package/auth.app_account_pb.d.ts
CHANGED
|
@@ -152,5 +152,35 @@ export namespace AppAccountProto {
|
|
|
152
152
|
clusterId: number,
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
+
|
|
156
|
+
export class RegisterFirebaseRequest extends jspb.Message {
|
|
157
|
+
getAppType(): AppAccountProto.AppTypeMap[keyof AppAccountProto.AppTypeMap];
|
|
158
|
+
setAppType(value: AppAccountProto.AppTypeMap[keyof AppAccountProto.AppTypeMap]): void;
|
|
159
|
+
|
|
160
|
+
getFirebaseInstallationId(): string;
|
|
161
|
+
setFirebaseInstallationId(value: string): void;
|
|
162
|
+
|
|
163
|
+
serializeBinary(): Uint8Array;
|
|
164
|
+
toObject(includeInstance?: boolean): RegisterFirebaseRequest.AsObject;
|
|
165
|
+
static toObject(includeInstance: boolean, msg: RegisterFirebaseRequest): RegisterFirebaseRequest.AsObject;
|
|
166
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
167
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
168
|
+
static serializeBinaryToWriter(message: RegisterFirebaseRequest, writer: jspb.BinaryWriter): void;
|
|
169
|
+
static deserializeBinary(bytes: Uint8Array): RegisterFirebaseRequest;
|
|
170
|
+
static deserializeBinaryFromReader(message: RegisterFirebaseRequest, reader: jspb.BinaryReader): RegisterFirebaseRequest;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export namespace RegisterFirebaseRequest {
|
|
174
|
+
export type AsObject = {
|
|
175
|
+
appType: AppAccountProto.AppTypeMap[keyof AppAccountProto.AppTypeMap],
|
|
176
|
+
firebaseInstallationId: string,
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface AppTypeMap {
|
|
181
|
+
APP_TYPE_MOBILE_WEB: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export const AppType: AppTypeMap;
|
|
155
185
|
}
|
|
156
186
|
|
package/auth.app_account_pb.js
CHANGED
|
@@ -28,10 +28,12 @@ goog.object.extend(proto, google_protobuf_empty_pb);
|
|
|
28
28
|
var auth_account_pb = require('./auth.account_pb.js');
|
|
29
29
|
goog.object.extend(proto, auth_account_pb);
|
|
30
30
|
goog.exportSymbol('proto.Auth.AppAccountProto', null, global);
|
|
31
|
+
goog.exportSymbol('proto.Auth.AppAccountProto.AppType', null, global);
|
|
31
32
|
goog.exportSymbol('proto.Auth.AppAccountProto.ChangeNameRequest', null, global);
|
|
32
33
|
goog.exportSymbol('proto.Auth.AppAccountProto.ChangePskRequest', null, global);
|
|
33
34
|
goog.exportSymbol('proto.Auth.AppAccountProto.FinishRegisterMobileRequest', null, global);
|
|
34
35
|
goog.exportSymbol('proto.Auth.AppAccountProto.ModifyClientRequest', null, global);
|
|
36
|
+
goog.exportSymbol('proto.Auth.AppAccountProto.RegisterFirebaseRequest', null, global);
|
|
35
37
|
goog.exportSymbol('proto.Auth.AppAccountProto.RemoveMobileRequest', null, global);
|
|
36
38
|
/**
|
|
37
39
|
* Generated by JsPbCodeGenerator.
|
|
@@ -159,6 +161,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
159
161
|
*/
|
|
160
162
|
proto.Auth.AppAccountProto.ModifyClientRequest.displayName = 'proto.Auth.AppAccountProto.ModifyClientRequest';
|
|
161
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Generated by JsPbCodeGenerator.
|
|
166
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
167
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
168
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
169
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
170
|
+
* valid.
|
|
171
|
+
* @extends {jspb.Message}
|
|
172
|
+
* @constructor
|
|
173
|
+
*/
|
|
174
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest = function(opt_data) {
|
|
175
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
176
|
+
};
|
|
177
|
+
goog.inherits(proto.Auth.AppAccountProto.RegisterFirebaseRequest, jspb.Message);
|
|
178
|
+
if (goog.DEBUG && !COMPILED) {
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
* @override
|
|
182
|
+
*/
|
|
183
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.displayName = 'proto.Auth.AppAccountProto.RegisterFirebaseRequest';
|
|
184
|
+
}
|
|
162
185
|
|
|
163
186
|
|
|
164
187
|
|
|
@@ -260,6 +283,13 @@ proto.Auth.AppAccountProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
260
283
|
};
|
|
261
284
|
|
|
262
285
|
|
|
286
|
+
/**
|
|
287
|
+
* @enum {number}
|
|
288
|
+
*/
|
|
289
|
+
proto.Auth.AppAccountProto.AppType = {
|
|
290
|
+
APP_TYPE_MOBILE_WEB: 0
|
|
291
|
+
};
|
|
292
|
+
|
|
263
293
|
|
|
264
294
|
|
|
265
295
|
|
|
@@ -1150,4 +1180,164 @@ proto.Auth.AppAccountProto.ModifyClientRequest.prototype.setClusterId = function
|
|
|
1150
1180
|
};
|
|
1151
1181
|
|
|
1152
1182
|
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1187
|
+
/**
|
|
1188
|
+
* Creates an object representation of this proto.
|
|
1189
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1190
|
+
* Optional fields that are not set will be set to undefined.
|
|
1191
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1192
|
+
* For the list of reserved names please see:
|
|
1193
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1194
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1195
|
+
* JSPB instance for transitional soy proto support:
|
|
1196
|
+
* http://goto/soy-param-migration
|
|
1197
|
+
* @return {!Object}
|
|
1198
|
+
*/
|
|
1199
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1200
|
+
return proto.Auth.AppAccountProto.RegisterFirebaseRequest.toObject(opt_includeInstance, this);
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Static version of the {@see toObject} method.
|
|
1206
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1207
|
+
* the JSPB instance for transitional soy proto support:
|
|
1208
|
+
* http://goto/soy-param-migration
|
|
1209
|
+
* @param {!proto.Auth.AppAccountProto.RegisterFirebaseRequest} msg The msg instance to transform.
|
|
1210
|
+
* @return {!Object}
|
|
1211
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1212
|
+
*/
|
|
1213
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.toObject = function(includeInstance, msg) {
|
|
1214
|
+
var f, obj = {
|
|
1215
|
+
appType: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1216
|
+
firebaseInstallationId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
if (includeInstance) {
|
|
1220
|
+
obj.$jspbMessageInstance = msg;
|
|
1221
|
+
}
|
|
1222
|
+
return obj;
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
/**
|
|
1228
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1229
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1230
|
+
* @return {!proto.Auth.AppAccountProto.RegisterFirebaseRequest}
|
|
1231
|
+
*/
|
|
1232
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.deserializeBinary = function(bytes) {
|
|
1233
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1234
|
+
var msg = new proto.Auth.AppAccountProto.RegisterFirebaseRequest;
|
|
1235
|
+
return proto.Auth.AppAccountProto.RegisterFirebaseRequest.deserializeBinaryFromReader(msg, reader);
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1241
|
+
* given reader into the given message object.
|
|
1242
|
+
* @param {!proto.Auth.AppAccountProto.RegisterFirebaseRequest} msg The message object to deserialize into.
|
|
1243
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1244
|
+
* @return {!proto.Auth.AppAccountProto.RegisterFirebaseRequest}
|
|
1245
|
+
*/
|
|
1246
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1247
|
+
while (reader.nextField()) {
|
|
1248
|
+
if (reader.isEndGroup()) {
|
|
1249
|
+
break;
|
|
1250
|
+
}
|
|
1251
|
+
var field = reader.getFieldNumber();
|
|
1252
|
+
switch (field) {
|
|
1253
|
+
case 1:
|
|
1254
|
+
var value = /** @type {!proto.Auth.AppAccountProto.AppType} */ (reader.readEnum());
|
|
1255
|
+
msg.setAppType(value);
|
|
1256
|
+
break;
|
|
1257
|
+
case 2:
|
|
1258
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1259
|
+
msg.setFirebaseInstallationId(value);
|
|
1260
|
+
break;
|
|
1261
|
+
default:
|
|
1262
|
+
reader.skipField();
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
return msg;
|
|
1267
|
+
};
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1272
|
+
* @return {!Uint8Array}
|
|
1273
|
+
*/
|
|
1274
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.prototype.serializeBinary = function() {
|
|
1275
|
+
var writer = new jspb.BinaryWriter();
|
|
1276
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.serializeBinaryToWriter(this, writer);
|
|
1277
|
+
return writer.getResultBuffer();
|
|
1278
|
+
};
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1283
|
+
* format), writing to the given BinaryWriter.
|
|
1284
|
+
* @param {!proto.Auth.AppAccountProto.RegisterFirebaseRequest} message
|
|
1285
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1286
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1287
|
+
*/
|
|
1288
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1289
|
+
var f = undefined;
|
|
1290
|
+
f = message.getAppType();
|
|
1291
|
+
if (f !== 0.0) {
|
|
1292
|
+
writer.writeEnum(
|
|
1293
|
+
1,
|
|
1294
|
+
f
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1297
|
+
f = message.getFirebaseInstallationId();
|
|
1298
|
+
if (f.length > 0) {
|
|
1299
|
+
writer.writeString(
|
|
1300
|
+
2,
|
|
1301
|
+
f
|
|
1302
|
+
);
|
|
1303
|
+
}
|
|
1304
|
+
};
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* optional AppType app_type = 1;
|
|
1309
|
+
* @return {!proto.Auth.AppAccountProto.AppType}
|
|
1310
|
+
*/
|
|
1311
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.prototype.getAppType = function() {
|
|
1312
|
+
return /** @type {!proto.Auth.AppAccountProto.AppType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* @param {!proto.Auth.AppAccountProto.AppType} value
|
|
1318
|
+
* @return {!proto.Auth.AppAccountProto.RegisterFirebaseRequest} returns this
|
|
1319
|
+
*/
|
|
1320
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.prototype.setAppType = function(value) {
|
|
1321
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
1322
|
+
};
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* optional string firebase_installation_id = 2;
|
|
1327
|
+
* @return {string}
|
|
1328
|
+
*/
|
|
1329
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.prototype.getFirebaseInstallationId = function() {
|
|
1330
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1331
|
+
};
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* @param {string} value
|
|
1336
|
+
* @return {!proto.Auth.AppAccountProto.RegisterFirebaseRequest} returns this
|
|
1337
|
+
*/
|
|
1338
|
+
proto.Auth.AppAccountProto.RegisterFirebaseRequest.prototype.setFirebaseInstallationId = function(value) {
|
|
1339
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
|
|
1153
1343
|
goog.object.extend(exports, proto.Auth);
|
|
@@ -60,6 +60,15 @@ type AppAccountGRPCUnRegisterClient = {
|
|
|
60
60
|
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
type AppAccountGRPCRegisterFirebase = {
|
|
64
|
+
readonly methodName: string;
|
|
65
|
+
readonly service: typeof AppAccountGRPC;
|
|
66
|
+
readonly requestStream: false;
|
|
67
|
+
readonly responseStream: false;
|
|
68
|
+
readonly requestType: typeof auth_app_account_pb.AppAccountProto.RegisterFirebaseRequest;
|
|
69
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
70
|
+
};
|
|
71
|
+
|
|
63
72
|
export class AppAccountGRPC {
|
|
64
73
|
static readonly serviceName: string;
|
|
65
74
|
static readonly FinishRegisterMobile: AppAccountGRPCFinishRegisterMobile;
|
|
@@ -68,6 +77,7 @@ export class AppAccountGRPC {
|
|
|
68
77
|
static readonly ChangePsk: AppAccountGRPCChangePsk;
|
|
69
78
|
static readonly RegisterClient: AppAccountGRPCRegisterClient;
|
|
70
79
|
static readonly UnRegisterClient: AppAccountGRPCUnRegisterClient;
|
|
80
|
+
static readonly RegisterFirebase: AppAccountGRPCRegisterFirebase;
|
|
71
81
|
}
|
|
72
82
|
|
|
73
83
|
export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }
|
|
@@ -156,5 +166,14 @@ export class AppAccountGRPCClient {
|
|
|
156
166
|
requestMessage: auth_app_account_pb.AppAccountProto.ModifyClientRequest,
|
|
157
167
|
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
158
168
|
): UnaryResponse;
|
|
169
|
+
registerFirebase(
|
|
170
|
+
requestMessage: auth_app_account_pb.AppAccountProto.RegisterFirebaseRequest,
|
|
171
|
+
metadata: grpc.Metadata,
|
|
172
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
173
|
+
): UnaryResponse;
|
|
174
|
+
registerFirebase(
|
|
175
|
+
requestMessage: auth_app_account_pb.AppAccountProto.RegisterFirebaseRequest,
|
|
176
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
177
|
+
): UnaryResponse;
|
|
159
178
|
}
|
|
160
179
|
|
|
@@ -66,6 +66,15 @@ AppAccountGRPC.UnRegisterClient = {
|
|
|
66
66
|
responseType: google_protobuf_empty_pb.Empty
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
+
AppAccountGRPC.RegisterFirebase = {
|
|
70
|
+
methodName: "RegisterFirebase",
|
|
71
|
+
service: AppAccountGRPC,
|
|
72
|
+
requestStream: false,
|
|
73
|
+
responseStream: false,
|
|
74
|
+
requestType: auth_app_account_pb.AppAccountProto.RegisterFirebaseRequest,
|
|
75
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
76
|
+
};
|
|
77
|
+
|
|
69
78
|
exports.AppAccountGRPC = AppAccountGRPC;
|
|
70
79
|
|
|
71
80
|
function AppAccountGRPCClient(serviceHost, options) {
|
|
@@ -259,5 +268,36 @@ AppAccountGRPCClient.prototype.unRegisterClient = function unRegisterClient(requ
|
|
|
259
268
|
};
|
|
260
269
|
};
|
|
261
270
|
|
|
271
|
+
AppAccountGRPCClient.prototype.registerFirebase = function registerFirebase(requestMessage, metadata, callback) {
|
|
272
|
+
if (arguments.length === 2) {
|
|
273
|
+
callback = arguments[1];
|
|
274
|
+
}
|
|
275
|
+
var client = grpc.unary(AppAccountGRPC.RegisterFirebase, {
|
|
276
|
+
request: requestMessage,
|
|
277
|
+
host: this.serviceHost,
|
|
278
|
+
metadata: metadata,
|
|
279
|
+
transport: this.options.transport,
|
|
280
|
+
debug: this.options.debug,
|
|
281
|
+
onEnd: function (response) {
|
|
282
|
+
if (callback) {
|
|
283
|
+
if (response.status !== grpc.Code.OK) {
|
|
284
|
+
var err = new Error(response.statusMessage);
|
|
285
|
+
err.code = response.status;
|
|
286
|
+
err.metadata = response.trailers;
|
|
287
|
+
callback(err, null);
|
|
288
|
+
} else {
|
|
289
|
+
callback(null, response.message);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
return {
|
|
295
|
+
cancel: function () {
|
|
296
|
+
callback = null;
|
|
297
|
+
client.close();
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
|
|
262
302
|
exports.AppAccountGRPCClient = AppAccountGRPCClient;
|
|
263
303
|
|
|
@@ -170,5 +170,73 @@ export namespace AppDistributionProto {
|
|
|
170
170
|
client?: AppDistributionProto.ClientWithClusterProto.AsObject,
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
+
|
|
174
|
+
export class CheckQrResponseV2 extends jspb.Message {
|
|
175
|
+
getUid(): string;
|
|
176
|
+
setUid(value: string): void;
|
|
177
|
+
|
|
178
|
+
serializeBinary(): Uint8Array;
|
|
179
|
+
toObject(includeInstance?: boolean): CheckQrResponseV2.AsObject;
|
|
180
|
+
static toObject(includeInstance: boolean, msg: CheckQrResponseV2): CheckQrResponseV2.AsObject;
|
|
181
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
182
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
183
|
+
static serializeBinaryToWriter(message: CheckQrResponseV2, writer: jspb.BinaryWriter): void;
|
|
184
|
+
static deserializeBinary(bytes: Uint8Array): CheckQrResponseV2;
|
|
185
|
+
static deserializeBinaryFromReader(message: CheckQrResponseV2, reader: jspb.BinaryReader): CheckQrResponseV2;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export namespace CheckQrResponseV2 {
|
|
189
|
+
export type AsObject = {
|
|
190
|
+
uid: string,
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export class ConnectQrRequest extends jspb.Message {
|
|
195
|
+
getCode1(): string;
|
|
196
|
+
setCode1(value: string): void;
|
|
197
|
+
|
|
198
|
+
getCode2(): string;
|
|
199
|
+
setCode2(value: string): void;
|
|
200
|
+
|
|
201
|
+
serializeBinary(): Uint8Array;
|
|
202
|
+
toObject(includeInstance?: boolean): ConnectQrRequest.AsObject;
|
|
203
|
+
static toObject(includeInstance: boolean, msg: ConnectQrRequest): ConnectQrRequest.AsObject;
|
|
204
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
205
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
206
|
+
static serializeBinaryToWriter(message: ConnectQrRequest, writer: jspb.BinaryWriter): void;
|
|
207
|
+
static deserializeBinary(bytes: Uint8Array): ConnectQrRequest;
|
|
208
|
+
static deserializeBinaryFromReader(message: ConnectQrRequest, reader: jspb.BinaryReader): ConnectQrRequest;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export namespace ConnectQrRequest {
|
|
212
|
+
export type AsObject = {
|
|
213
|
+
code1: string,
|
|
214
|
+
code2: string,
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export class ConnectQrResponse extends jspb.Message {
|
|
219
|
+
getMessage(): string;
|
|
220
|
+
setMessage(value: string): void;
|
|
221
|
+
|
|
222
|
+
getUid(): string;
|
|
223
|
+
setUid(value: string): void;
|
|
224
|
+
|
|
225
|
+
serializeBinary(): Uint8Array;
|
|
226
|
+
toObject(includeInstance?: boolean): ConnectQrResponse.AsObject;
|
|
227
|
+
static toObject(includeInstance: boolean, msg: ConnectQrResponse): ConnectQrResponse.AsObject;
|
|
228
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
229
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
230
|
+
static serializeBinaryToWriter(message: ConnectQrResponse, writer: jspb.BinaryWriter): void;
|
|
231
|
+
static deserializeBinary(bytes: Uint8Array): ConnectQrResponse;
|
|
232
|
+
static deserializeBinaryFromReader(message: ConnectQrResponse, reader: jspb.BinaryReader): ConnectQrResponse;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export namespace ConnectQrResponse {
|
|
236
|
+
export type AsObject = {
|
|
237
|
+
message: string,
|
|
238
|
+
uid: string,
|
|
239
|
+
}
|
|
240
|
+
}
|
|
173
241
|
}
|
|
174
242
|
|