@aceplus/smartace-api 2.3.2 → 2.3.3
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.
|
@@ -13,6 +13,9 @@ export class TwoFactorProto extends jspb.Message {
|
|
|
13
13
|
getAccountId(): number;
|
|
14
14
|
setAccountId(value: number): void;
|
|
15
15
|
|
|
16
|
+
getBrowserFingerprint(): string;
|
|
17
|
+
setBrowserFingerprint(value: string): void;
|
|
18
|
+
|
|
16
19
|
serializeBinary(): Uint8Array;
|
|
17
20
|
toObject(includeInstance?: boolean): TwoFactorProto.AsObject;
|
|
18
21
|
static toObject(includeInstance: boolean, msg: TwoFactorProto): TwoFactorProto.AsObject;
|
|
@@ -27,45 +30,90 @@ export namespace TwoFactorProto {
|
|
|
27
30
|
export type AsObject = {
|
|
28
31
|
id: number,
|
|
29
32
|
accountId: number,
|
|
33
|
+
browserFingerprint: string,
|
|
30
34
|
}
|
|
31
35
|
|
|
32
|
-
export class
|
|
33
|
-
getAccountId(): number;
|
|
34
|
-
setAccountId(value: number): void;
|
|
35
|
-
|
|
36
|
+
export class SetupRequest extends jspb.Message {
|
|
36
37
|
serializeBinary(): Uint8Array;
|
|
37
|
-
toObject(includeInstance?: boolean):
|
|
38
|
-
static toObject(includeInstance: boolean, msg:
|
|
38
|
+
toObject(includeInstance?: boolean): SetupRequest.AsObject;
|
|
39
|
+
static toObject(includeInstance: boolean, msg: SetupRequest): SetupRequest.AsObject;
|
|
39
40
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
40
41
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
41
|
-
static serializeBinaryToWriter(message:
|
|
42
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
43
|
-
static deserializeBinaryFromReader(message:
|
|
42
|
+
static serializeBinaryToWriter(message: SetupRequest, writer: jspb.BinaryWriter): void;
|
|
43
|
+
static deserializeBinary(bytes: Uint8Array): SetupRequest;
|
|
44
|
+
static deserializeBinaryFromReader(message: SetupRequest, reader: jspb.BinaryReader): SetupRequest;
|
|
44
45
|
}
|
|
45
46
|
|
|
46
|
-
export namespace
|
|
47
|
+
export namespace SetupRequest {
|
|
47
48
|
export type AsObject = {
|
|
48
|
-
accountId: number,
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export class
|
|
52
|
+
export class SetupReply extends jspb.Message {
|
|
53
|
+
getId(): number;
|
|
54
|
+
setId(value: number): void;
|
|
55
|
+
|
|
53
56
|
getQrData(): string;
|
|
54
57
|
setQrData(value: string): void;
|
|
55
58
|
|
|
59
|
+
getManualEntryKey(): string;
|
|
60
|
+
setManualEntryKey(value: string): void;
|
|
61
|
+
|
|
56
62
|
serializeBinary(): Uint8Array;
|
|
57
|
-
toObject(includeInstance?: boolean):
|
|
58
|
-
static toObject(includeInstance: boolean, msg:
|
|
63
|
+
toObject(includeInstance?: boolean): SetupReply.AsObject;
|
|
64
|
+
static toObject(includeInstance: boolean, msg: SetupReply): SetupReply.AsObject;
|
|
59
65
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
60
66
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
61
|
-
static serializeBinaryToWriter(message:
|
|
62
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
63
|
-
static deserializeBinaryFromReader(message:
|
|
67
|
+
static serializeBinaryToWriter(message: SetupReply, writer: jspb.BinaryWriter): void;
|
|
68
|
+
static deserializeBinary(bytes: Uint8Array): SetupReply;
|
|
69
|
+
static deserializeBinaryFromReader(message: SetupReply, reader: jspb.BinaryReader): SetupReply;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
|
-
export namespace
|
|
72
|
+
export namespace SetupReply {
|
|
67
73
|
export type AsObject = {
|
|
74
|
+
id: number,
|
|
68
75
|
qrData: string,
|
|
76
|
+
manualEntryKey: string,
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export class ConfirmRequest extends jspb.Message {
|
|
81
|
+
getId(): number;
|
|
82
|
+
setId(value: number): void;
|
|
83
|
+
|
|
84
|
+
getValidationkey(): string;
|
|
85
|
+
setValidationkey(value: string): void;
|
|
86
|
+
|
|
87
|
+
serializeBinary(): Uint8Array;
|
|
88
|
+
toObject(includeInstance?: boolean): ConfirmRequest.AsObject;
|
|
89
|
+
static toObject(includeInstance: boolean, msg: ConfirmRequest): ConfirmRequest.AsObject;
|
|
90
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
91
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
92
|
+
static serializeBinaryToWriter(message: ConfirmRequest, writer: jspb.BinaryWriter): void;
|
|
93
|
+
static deserializeBinary(bytes: Uint8Array): ConfirmRequest;
|
|
94
|
+
static deserializeBinaryFromReader(message: ConfirmRequest, reader: jspb.BinaryReader): ConfirmRequest;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace ConfirmRequest {
|
|
98
|
+
export type AsObject = {
|
|
99
|
+
id: number,
|
|
100
|
+
validationkey: string,
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export class ConfirmReply extends jspb.Message {
|
|
105
|
+
serializeBinary(): Uint8Array;
|
|
106
|
+
toObject(includeInstance?: boolean): ConfirmReply.AsObject;
|
|
107
|
+
static toObject(includeInstance: boolean, msg: ConfirmReply): ConfirmReply.AsObject;
|
|
108
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
109
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
110
|
+
static serializeBinaryToWriter(message: ConfirmReply, writer: jspb.BinaryWriter): void;
|
|
111
|
+
static deserializeBinary(bytes: Uint8Array): ConfirmReply;
|
|
112
|
+
static deserializeBinaryFromReader(message: ConfirmReply, reader: jspb.BinaryReader): ConfirmReply;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export namespace ConfirmReply {
|
|
116
|
+
export type AsObject = {
|
|
69
117
|
}
|
|
70
118
|
}
|
|
71
119
|
|
|
@@ -28,9 +28,11 @@ goog.object.extend(proto, google_api_annotations_pb);
|
|
|
28
28
|
var auth_authn_pb = require('./auth.authn_pb.js');
|
|
29
29
|
goog.object.extend(proto, auth_authn_pb);
|
|
30
30
|
goog.exportSymbol('proto.Auth.TwoFactorProto', null, global);
|
|
31
|
-
goog.exportSymbol('proto.Auth.TwoFactorProto.
|
|
32
|
-
goog.exportSymbol('proto.Auth.TwoFactorProto.
|
|
31
|
+
goog.exportSymbol('proto.Auth.TwoFactorProto.ConfirmReply', null, global);
|
|
32
|
+
goog.exportSymbol('proto.Auth.TwoFactorProto.ConfirmRequest', null, global);
|
|
33
33
|
goog.exportSymbol('proto.Auth.TwoFactorProto.RemoveRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.Auth.TwoFactorProto.SetupReply', null, global);
|
|
35
|
+
goog.exportSymbol('proto.Auth.TwoFactorProto.SetupRequest', null, global);
|
|
34
36
|
goog.exportSymbol('proto.Auth.TwoFactorProto.ValidateRequest', null, global);
|
|
35
37
|
/**
|
|
36
38
|
* Generated by JsPbCodeGenerator.
|
|
@@ -63,16 +65,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
63
65
|
* @extends {jspb.Message}
|
|
64
66
|
* @constructor
|
|
65
67
|
*/
|
|
66
|
-
proto.Auth.TwoFactorProto.
|
|
68
|
+
proto.Auth.TwoFactorProto.SetupRequest = function(opt_data) {
|
|
67
69
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
68
70
|
};
|
|
69
|
-
goog.inherits(proto.Auth.TwoFactorProto.
|
|
71
|
+
goog.inherits(proto.Auth.TwoFactorProto.SetupRequest, jspb.Message);
|
|
70
72
|
if (goog.DEBUG && !COMPILED) {
|
|
71
73
|
/**
|
|
72
74
|
* @public
|
|
73
75
|
* @override
|
|
74
76
|
*/
|
|
75
|
-
proto.Auth.TwoFactorProto.
|
|
77
|
+
proto.Auth.TwoFactorProto.SetupRequest.displayName = 'proto.Auth.TwoFactorProto.SetupRequest';
|
|
76
78
|
}
|
|
77
79
|
/**
|
|
78
80
|
* Generated by JsPbCodeGenerator.
|
|
@@ -84,16 +86,58 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
84
86
|
* @extends {jspb.Message}
|
|
85
87
|
* @constructor
|
|
86
88
|
*/
|
|
87
|
-
proto.Auth.TwoFactorProto.
|
|
89
|
+
proto.Auth.TwoFactorProto.SetupReply = function(opt_data) {
|
|
88
90
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
89
91
|
};
|
|
90
|
-
goog.inherits(proto.Auth.TwoFactorProto.
|
|
92
|
+
goog.inherits(proto.Auth.TwoFactorProto.SetupReply, jspb.Message);
|
|
91
93
|
if (goog.DEBUG && !COMPILED) {
|
|
92
94
|
/**
|
|
93
95
|
* @public
|
|
94
96
|
* @override
|
|
95
97
|
*/
|
|
96
|
-
proto.Auth.TwoFactorProto.
|
|
98
|
+
proto.Auth.TwoFactorProto.SetupReply.displayName = 'proto.Auth.TwoFactorProto.SetupReply';
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Generated by JsPbCodeGenerator.
|
|
102
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
103
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
104
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
105
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
106
|
+
* valid.
|
|
107
|
+
* @extends {jspb.Message}
|
|
108
|
+
* @constructor
|
|
109
|
+
*/
|
|
110
|
+
proto.Auth.TwoFactorProto.ConfirmRequest = function(opt_data) {
|
|
111
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
112
|
+
};
|
|
113
|
+
goog.inherits(proto.Auth.TwoFactorProto.ConfirmRequest, jspb.Message);
|
|
114
|
+
if (goog.DEBUG && !COMPILED) {
|
|
115
|
+
/**
|
|
116
|
+
* @public
|
|
117
|
+
* @override
|
|
118
|
+
*/
|
|
119
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.displayName = 'proto.Auth.TwoFactorProto.ConfirmRequest';
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Generated by JsPbCodeGenerator.
|
|
123
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
124
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
125
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
126
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
127
|
+
* valid.
|
|
128
|
+
* @extends {jspb.Message}
|
|
129
|
+
* @constructor
|
|
130
|
+
*/
|
|
131
|
+
proto.Auth.TwoFactorProto.ConfirmReply = function(opt_data) {
|
|
132
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
133
|
+
};
|
|
134
|
+
goog.inherits(proto.Auth.TwoFactorProto.ConfirmReply, jspb.Message);
|
|
135
|
+
if (goog.DEBUG && !COMPILED) {
|
|
136
|
+
/**
|
|
137
|
+
* @public
|
|
138
|
+
* @override
|
|
139
|
+
*/
|
|
140
|
+
proto.Auth.TwoFactorProto.ConfirmReply.displayName = 'proto.Auth.TwoFactorProto.ConfirmReply';
|
|
97
141
|
}
|
|
98
142
|
/**
|
|
99
143
|
* Generated by JsPbCodeGenerator.
|
|
@@ -170,7 +214,8 @@ proto.Auth.TwoFactorProto.prototype.toObject = function(opt_includeInstance) {
|
|
|
170
214
|
proto.Auth.TwoFactorProto.toObject = function(includeInstance, msg) {
|
|
171
215
|
var f, obj = {
|
|
172
216
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
173
|
-
accountId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
217
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
218
|
+
browserFingerprint: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
174
219
|
};
|
|
175
220
|
|
|
176
221
|
if (includeInstance) {
|
|
@@ -215,6 +260,10 @@ proto.Auth.TwoFactorProto.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
215
260
|
var value = /** @type {number} */ (reader.readInt64());
|
|
216
261
|
msg.setAccountId(value);
|
|
217
262
|
break;
|
|
263
|
+
case 3:
|
|
264
|
+
var value = /** @type {string} */ (reader.readString());
|
|
265
|
+
msg.setBrowserFingerprint(value);
|
|
266
|
+
break;
|
|
218
267
|
default:
|
|
219
268
|
reader.skipField();
|
|
220
269
|
break;
|
|
@@ -258,6 +307,114 @@ proto.Auth.TwoFactorProto.serializeBinaryToWriter = function(message, writer) {
|
|
|
258
307
|
f
|
|
259
308
|
);
|
|
260
309
|
}
|
|
310
|
+
f = message.getBrowserFingerprint();
|
|
311
|
+
if (f.length > 0) {
|
|
312
|
+
writer.writeString(
|
|
313
|
+
3,
|
|
314
|
+
f
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
324
|
+
/**
|
|
325
|
+
* Creates an object representation of this proto.
|
|
326
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
327
|
+
* Optional fields that are not set will be set to undefined.
|
|
328
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
329
|
+
* For the list of reserved names please see:
|
|
330
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
331
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
332
|
+
* JSPB instance for transitional soy proto support:
|
|
333
|
+
* http://goto/soy-param-migration
|
|
334
|
+
* @return {!Object}
|
|
335
|
+
*/
|
|
336
|
+
proto.Auth.TwoFactorProto.SetupRequest.prototype.toObject = function(opt_includeInstance) {
|
|
337
|
+
return proto.Auth.TwoFactorProto.SetupRequest.toObject(opt_includeInstance, this);
|
|
338
|
+
};
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Static version of the {@see toObject} method.
|
|
343
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
344
|
+
* the JSPB instance for transitional soy proto support:
|
|
345
|
+
* http://goto/soy-param-migration
|
|
346
|
+
* @param {!proto.Auth.TwoFactorProto.SetupRequest} msg The msg instance to transform.
|
|
347
|
+
* @return {!Object}
|
|
348
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
349
|
+
*/
|
|
350
|
+
proto.Auth.TwoFactorProto.SetupRequest.toObject = function(includeInstance, msg) {
|
|
351
|
+
var f, obj = {
|
|
352
|
+
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
if (includeInstance) {
|
|
356
|
+
obj.$jspbMessageInstance = msg;
|
|
357
|
+
}
|
|
358
|
+
return obj;
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Deserializes binary data (in protobuf wire format).
|
|
365
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
366
|
+
* @return {!proto.Auth.TwoFactorProto.SetupRequest}
|
|
367
|
+
*/
|
|
368
|
+
proto.Auth.TwoFactorProto.SetupRequest.deserializeBinary = function(bytes) {
|
|
369
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
370
|
+
var msg = new proto.Auth.TwoFactorProto.SetupRequest;
|
|
371
|
+
return proto.Auth.TwoFactorProto.SetupRequest.deserializeBinaryFromReader(msg, reader);
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
377
|
+
* given reader into the given message object.
|
|
378
|
+
* @param {!proto.Auth.TwoFactorProto.SetupRequest} msg The message object to deserialize into.
|
|
379
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
380
|
+
* @return {!proto.Auth.TwoFactorProto.SetupRequest}
|
|
381
|
+
*/
|
|
382
|
+
proto.Auth.TwoFactorProto.SetupRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
383
|
+
while (reader.nextField()) {
|
|
384
|
+
if (reader.isEndGroup()) {
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
var field = reader.getFieldNumber();
|
|
388
|
+
switch (field) {
|
|
389
|
+
default:
|
|
390
|
+
reader.skipField();
|
|
391
|
+
break;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
return msg;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
400
|
+
* @return {!Uint8Array}
|
|
401
|
+
*/
|
|
402
|
+
proto.Auth.TwoFactorProto.SetupRequest.prototype.serializeBinary = function() {
|
|
403
|
+
var writer = new jspb.BinaryWriter();
|
|
404
|
+
proto.Auth.TwoFactorProto.SetupRequest.serializeBinaryToWriter(this, writer);
|
|
405
|
+
return writer.getResultBuffer();
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
411
|
+
* format), writing to the given BinaryWriter.
|
|
412
|
+
* @param {!proto.Auth.TwoFactorProto.SetupRequest} message
|
|
413
|
+
* @param {!jspb.BinaryWriter} writer
|
|
414
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
415
|
+
*/
|
|
416
|
+
proto.Auth.TwoFactorProto.SetupRequest.serializeBinaryToWriter = function(message, writer) {
|
|
417
|
+
var f = undefined;
|
|
261
418
|
};
|
|
262
419
|
|
|
263
420
|
|
|
@@ -277,8 +434,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
277
434
|
* http://goto/soy-param-migration
|
|
278
435
|
* @return {!Object}
|
|
279
436
|
*/
|
|
280
|
-
proto.Auth.TwoFactorProto.
|
|
281
|
-
return proto.Auth.TwoFactorProto.
|
|
437
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.toObject = function(opt_includeInstance) {
|
|
438
|
+
return proto.Auth.TwoFactorProto.SetupReply.toObject(opt_includeInstance, this);
|
|
282
439
|
};
|
|
283
440
|
|
|
284
441
|
|
|
@@ -287,13 +444,15 @@ proto.Auth.TwoFactorProto.CreateRequest.prototype.toObject = function(opt_includ
|
|
|
287
444
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
288
445
|
* the JSPB instance for transitional soy proto support:
|
|
289
446
|
* http://goto/soy-param-migration
|
|
290
|
-
* @param {!proto.Auth.TwoFactorProto.
|
|
447
|
+
* @param {!proto.Auth.TwoFactorProto.SetupReply} msg The msg instance to transform.
|
|
291
448
|
* @return {!Object}
|
|
292
449
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
293
450
|
*/
|
|
294
|
-
proto.Auth.TwoFactorProto.
|
|
451
|
+
proto.Auth.TwoFactorProto.SetupReply.toObject = function(includeInstance, msg) {
|
|
295
452
|
var f, obj = {
|
|
296
|
-
|
|
453
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
454
|
+
qrData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
455
|
+
manualEntryKey: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
297
456
|
};
|
|
298
457
|
|
|
299
458
|
if (includeInstance) {
|
|
@@ -307,23 +466,23 @@ proto.Auth.TwoFactorProto.CreateRequest.toObject = function(includeInstance, msg
|
|
|
307
466
|
/**
|
|
308
467
|
* Deserializes binary data (in protobuf wire format).
|
|
309
468
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
310
|
-
* @return {!proto.Auth.TwoFactorProto.
|
|
469
|
+
* @return {!proto.Auth.TwoFactorProto.SetupReply}
|
|
311
470
|
*/
|
|
312
|
-
proto.Auth.TwoFactorProto.
|
|
471
|
+
proto.Auth.TwoFactorProto.SetupReply.deserializeBinary = function(bytes) {
|
|
313
472
|
var reader = new jspb.BinaryReader(bytes);
|
|
314
|
-
var msg = new proto.Auth.TwoFactorProto.
|
|
315
|
-
return proto.Auth.TwoFactorProto.
|
|
473
|
+
var msg = new proto.Auth.TwoFactorProto.SetupReply;
|
|
474
|
+
return proto.Auth.TwoFactorProto.SetupReply.deserializeBinaryFromReader(msg, reader);
|
|
316
475
|
};
|
|
317
476
|
|
|
318
477
|
|
|
319
478
|
/**
|
|
320
479
|
* Deserializes binary data (in protobuf wire format) from the
|
|
321
480
|
* given reader into the given message object.
|
|
322
|
-
* @param {!proto.Auth.TwoFactorProto.
|
|
481
|
+
* @param {!proto.Auth.TwoFactorProto.SetupReply} msg The message object to deserialize into.
|
|
323
482
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
324
|
-
* @return {!proto.Auth.TwoFactorProto.
|
|
483
|
+
* @return {!proto.Auth.TwoFactorProto.SetupReply}
|
|
325
484
|
*/
|
|
326
|
-
proto.Auth.TwoFactorProto.
|
|
485
|
+
proto.Auth.TwoFactorProto.SetupReply.deserializeBinaryFromReader = function(msg, reader) {
|
|
327
486
|
while (reader.nextField()) {
|
|
328
487
|
if (reader.isEndGroup()) {
|
|
329
488
|
break;
|
|
@@ -332,7 +491,15 @@ proto.Auth.TwoFactorProto.CreateRequest.deserializeBinaryFromReader = function(m
|
|
|
332
491
|
switch (field) {
|
|
333
492
|
case 1:
|
|
334
493
|
var value = /** @type {number} */ (reader.readInt64());
|
|
335
|
-
msg.
|
|
494
|
+
msg.setId(value);
|
|
495
|
+
break;
|
|
496
|
+
case 2:
|
|
497
|
+
var value = /** @type {string} */ (reader.readString());
|
|
498
|
+
msg.setQrData(value);
|
|
499
|
+
break;
|
|
500
|
+
case 3:
|
|
501
|
+
var value = /** @type {string} */ (reader.readString());
|
|
502
|
+
msg.setManualEntryKey(value);
|
|
336
503
|
break;
|
|
337
504
|
default:
|
|
338
505
|
reader.skipField();
|
|
@@ -347,9 +514,9 @@ proto.Auth.TwoFactorProto.CreateRequest.deserializeBinaryFromReader = function(m
|
|
|
347
514
|
* Serializes the message to binary data (in protobuf wire format).
|
|
348
515
|
* @return {!Uint8Array}
|
|
349
516
|
*/
|
|
350
|
-
proto.Auth.TwoFactorProto.
|
|
517
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.serializeBinary = function() {
|
|
351
518
|
var writer = new jspb.BinaryWriter();
|
|
352
|
-
proto.Auth.TwoFactorProto.
|
|
519
|
+
proto.Auth.TwoFactorProto.SetupReply.serializeBinaryToWriter(this, writer);
|
|
353
520
|
return writer.getResultBuffer();
|
|
354
521
|
};
|
|
355
522
|
|
|
@@ -357,40 +524,90 @@ proto.Auth.TwoFactorProto.CreateRequest.prototype.serializeBinary = function() {
|
|
|
357
524
|
/**
|
|
358
525
|
* Serializes the given message to binary data (in protobuf wire
|
|
359
526
|
* format), writing to the given BinaryWriter.
|
|
360
|
-
* @param {!proto.Auth.TwoFactorProto.
|
|
527
|
+
* @param {!proto.Auth.TwoFactorProto.SetupReply} message
|
|
361
528
|
* @param {!jspb.BinaryWriter} writer
|
|
362
529
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
363
530
|
*/
|
|
364
|
-
proto.Auth.TwoFactorProto.
|
|
531
|
+
proto.Auth.TwoFactorProto.SetupReply.serializeBinaryToWriter = function(message, writer) {
|
|
365
532
|
var f = undefined;
|
|
366
|
-
f = message.
|
|
533
|
+
f = message.getId();
|
|
367
534
|
if (f !== 0) {
|
|
368
535
|
writer.writeInt64(
|
|
369
536
|
1,
|
|
370
537
|
f
|
|
371
538
|
);
|
|
372
539
|
}
|
|
540
|
+
f = message.getQrData();
|
|
541
|
+
if (f.length > 0) {
|
|
542
|
+
writer.writeString(
|
|
543
|
+
2,
|
|
544
|
+
f
|
|
545
|
+
);
|
|
546
|
+
}
|
|
547
|
+
f = message.getManualEntryKey();
|
|
548
|
+
if (f.length > 0) {
|
|
549
|
+
writer.writeString(
|
|
550
|
+
3,
|
|
551
|
+
f
|
|
552
|
+
);
|
|
553
|
+
}
|
|
373
554
|
};
|
|
374
555
|
|
|
375
556
|
|
|
376
557
|
/**
|
|
377
|
-
* optional int64
|
|
558
|
+
* optional int64 id = 1;
|
|
378
559
|
* @return {number}
|
|
379
560
|
*/
|
|
380
|
-
proto.Auth.TwoFactorProto.
|
|
561
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.getId = function() {
|
|
381
562
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
382
563
|
};
|
|
383
564
|
|
|
384
565
|
|
|
385
566
|
/**
|
|
386
567
|
* @param {number} value
|
|
387
|
-
* @return {!proto.Auth.TwoFactorProto.
|
|
568
|
+
* @return {!proto.Auth.TwoFactorProto.SetupReply} returns this
|
|
388
569
|
*/
|
|
389
|
-
proto.Auth.TwoFactorProto.
|
|
570
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.setId = function(value) {
|
|
390
571
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
391
572
|
};
|
|
392
573
|
|
|
393
574
|
|
|
575
|
+
/**
|
|
576
|
+
* optional string qr_data = 2;
|
|
577
|
+
* @return {string}
|
|
578
|
+
*/
|
|
579
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.getQrData = function() {
|
|
580
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @param {string} value
|
|
586
|
+
* @return {!proto.Auth.TwoFactorProto.SetupReply} returns this
|
|
587
|
+
*/
|
|
588
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.setQrData = function(value) {
|
|
589
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* optional string manual_entry_key = 3;
|
|
595
|
+
* @return {string}
|
|
596
|
+
*/
|
|
597
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.getManualEntryKey = function() {
|
|
598
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* @param {string} value
|
|
604
|
+
* @return {!proto.Auth.TwoFactorProto.SetupReply} returns this
|
|
605
|
+
*/
|
|
606
|
+
proto.Auth.TwoFactorProto.SetupReply.prototype.setManualEntryKey = function(value) {
|
|
607
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
|
|
394
611
|
|
|
395
612
|
|
|
396
613
|
|
|
@@ -407,8 +624,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
407
624
|
* http://goto/soy-param-migration
|
|
408
625
|
* @return {!Object}
|
|
409
626
|
*/
|
|
410
|
-
proto.Auth.TwoFactorProto.
|
|
411
|
-
return proto.Auth.TwoFactorProto.
|
|
627
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.prototype.toObject = function(opt_includeInstance) {
|
|
628
|
+
return proto.Auth.TwoFactorProto.ConfirmRequest.toObject(opt_includeInstance, this);
|
|
412
629
|
};
|
|
413
630
|
|
|
414
631
|
|
|
@@ -417,13 +634,14 @@ proto.Auth.TwoFactorProto.CreateReply.prototype.toObject = function(opt_includeI
|
|
|
417
634
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
418
635
|
* the JSPB instance for transitional soy proto support:
|
|
419
636
|
* http://goto/soy-param-migration
|
|
420
|
-
* @param {!proto.Auth.TwoFactorProto.
|
|
637
|
+
* @param {!proto.Auth.TwoFactorProto.ConfirmRequest} msg The msg instance to transform.
|
|
421
638
|
* @return {!Object}
|
|
422
639
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
423
640
|
*/
|
|
424
|
-
proto.Auth.TwoFactorProto.
|
|
641
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.toObject = function(includeInstance, msg) {
|
|
425
642
|
var f, obj = {
|
|
426
|
-
|
|
643
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
644
|
+
validationkey: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
427
645
|
};
|
|
428
646
|
|
|
429
647
|
if (includeInstance) {
|
|
@@ -437,23 +655,23 @@ proto.Auth.TwoFactorProto.CreateReply.toObject = function(includeInstance, msg)
|
|
|
437
655
|
/**
|
|
438
656
|
* Deserializes binary data (in protobuf wire format).
|
|
439
657
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
440
|
-
* @return {!proto.Auth.TwoFactorProto.
|
|
658
|
+
* @return {!proto.Auth.TwoFactorProto.ConfirmRequest}
|
|
441
659
|
*/
|
|
442
|
-
proto.Auth.TwoFactorProto.
|
|
660
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.deserializeBinary = function(bytes) {
|
|
443
661
|
var reader = new jspb.BinaryReader(bytes);
|
|
444
|
-
var msg = new proto.Auth.TwoFactorProto.
|
|
445
|
-
return proto.Auth.TwoFactorProto.
|
|
662
|
+
var msg = new proto.Auth.TwoFactorProto.ConfirmRequest;
|
|
663
|
+
return proto.Auth.TwoFactorProto.ConfirmRequest.deserializeBinaryFromReader(msg, reader);
|
|
446
664
|
};
|
|
447
665
|
|
|
448
666
|
|
|
449
667
|
/**
|
|
450
668
|
* Deserializes binary data (in protobuf wire format) from the
|
|
451
669
|
* given reader into the given message object.
|
|
452
|
-
* @param {!proto.Auth.TwoFactorProto.
|
|
670
|
+
* @param {!proto.Auth.TwoFactorProto.ConfirmRequest} msg The message object to deserialize into.
|
|
453
671
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
454
|
-
* @return {!proto.Auth.TwoFactorProto.
|
|
672
|
+
* @return {!proto.Auth.TwoFactorProto.ConfirmRequest}
|
|
455
673
|
*/
|
|
456
|
-
proto.Auth.TwoFactorProto.
|
|
674
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
457
675
|
while (reader.nextField()) {
|
|
458
676
|
if (reader.isEndGroup()) {
|
|
459
677
|
break;
|
|
@@ -461,8 +679,12 @@ proto.Auth.TwoFactorProto.CreateReply.deserializeBinaryFromReader = function(msg
|
|
|
461
679
|
var field = reader.getFieldNumber();
|
|
462
680
|
switch (field) {
|
|
463
681
|
case 1:
|
|
682
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
683
|
+
msg.setId(value);
|
|
684
|
+
break;
|
|
685
|
+
case 2:
|
|
464
686
|
var value = /** @type {string} */ (reader.readString());
|
|
465
|
-
msg.
|
|
687
|
+
msg.setValidationkey(value);
|
|
466
688
|
break;
|
|
467
689
|
default:
|
|
468
690
|
reader.skipField();
|
|
@@ -477,9 +699,9 @@ proto.Auth.TwoFactorProto.CreateReply.deserializeBinaryFromReader = function(msg
|
|
|
477
699
|
* Serializes the message to binary data (in protobuf wire format).
|
|
478
700
|
* @return {!Uint8Array}
|
|
479
701
|
*/
|
|
480
|
-
proto.Auth.TwoFactorProto.
|
|
702
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.prototype.serializeBinary = function() {
|
|
481
703
|
var writer = new jspb.BinaryWriter();
|
|
482
|
-
proto.Auth.TwoFactorProto.
|
|
704
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.serializeBinaryToWriter(this, writer);
|
|
483
705
|
return writer.getResultBuffer();
|
|
484
706
|
};
|
|
485
707
|
|
|
@@ -487,16 +709,23 @@ proto.Auth.TwoFactorProto.CreateReply.prototype.serializeBinary = function() {
|
|
|
487
709
|
/**
|
|
488
710
|
* Serializes the given message to binary data (in protobuf wire
|
|
489
711
|
* format), writing to the given BinaryWriter.
|
|
490
|
-
* @param {!proto.Auth.TwoFactorProto.
|
|
712
|
+
* @param {!proto.Auth.TwoFactorProto.ConfirmRequest} message
|
|
491
713
|
* @param {!jspb.BinaryWriter} writer
|
|
492
714
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
493
715
|
*/
|
|
494
|
-
proto.Auth.TwoFactorProto.
|
|
716
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.serializeBinaryToWriter = function(message, writer) {
|
|
495
717
|
var f = undefined;
|
|
496
|
-
f = message.
|
|
718
|
+
f = message.getId();
|
|
719
|
+
if (f !== 0) {
|
|
720
|
+
writer.writeInt64(
|
|
721
|
+
1,
|
|
722
|
+
f
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
f = message.getValidationkey();
|
|
497
726
|
if (f.length > 0) {
|
|
498
727
|
writer.writeString(
|
|
499
|
-
|
|
728
|
+
2,
|
|
500
729
|
f
|
|
501
730
|
);
|
|
502
731
|
}
|
|
@@ -504,20 +733,139 @@ proto.Auth.TwoFactorProto.CreateReply.serializeBinaryToWriter = function(message
|
|
|
504
733
|
|
|
505
734
|
|
|
506
735
|
/**
|
|
507
|
-
* optional
|
|
736
|
+
* optional int64 id = 1;
|
|
737
|
+
* @return {number}
|
|
738
|
+
*/
|
|
739
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.prototype.getId = function() {
|
|
740
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* @param {number} value
|
|
746
|
+
* @return {!proto.Auth.TwoFactorProto.ConfirmRequest} returns this
|
|
747
|
+
*/
|
|
748
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.prototype.setId = function(value) {
|
|
749
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* optional string validationKey = 2;
|
|
508
755
|
* @return {string}
|
|
509
756
|
*/
|
|
510
|
-
proto.Auth.TwoFactorProto.
|
|
511
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
757
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.prototype.getValidationkey = function() {
|
|
758
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
512
759
|
};
|
|
513
760
|
|
|
514
761
|
|
|
515
762
|
/**
|
|
516
763
|
* @param {string} value
|
|
517
|
-
* @return {!proto.Auth.TwoFactorProto.
|
|
764
|
+
* @return {!proto.Auth.TwoFactorProto.ConfirmRequest} returns this
|
|
518
765
|
*/
|
|
519
|
-
proto.Auth.TwoFactorProto.
|
|
520
|
-
return jspb.Message.setProto3StringField(this,
|
|
766
|
+
proto.Auth.TwoFactorProto.ConfirmRequest.prototype.setValidationkey = function(value) {
|
|
767
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
|
|
774
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
775
|
+
/**
|
|
776
|
+
* Creates an object representation of this proto.
|
|
777
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
778
|
+
* Optional fields that are not set will be set to undefined.
|
|
779
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
780
|
+
* For the list of reserved names please see:
|
|
781
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
782
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
783
|
+
* JSPB instance for transitional soy proto support:
|
|
784
|
+
* http://goto/soy-param-migration
|
|
785
|
+
* @return {!Object}
|
|
786
|
+
*/
|
|
787
|
+
proto.Auth.TwoFactorProto.ConfirmReply.prototype.toObject = function(opt_includeInstance) {
|
|
788
|
+
return proto.Auth.TwoFactorProto.ConfirmReply.toObject(opt_includeInstance, this);
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* Static version of the {@see toObject} method.
|
|
794
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
795
|
+
* the JSPB instance for transitional soy proto support:
|
|
796
|
+
* http://goto/soy-param-migration
|
|
797
|
+
* @param {!proto.Auth.TwoFactorProto.ConfirmReply} msg The msg instance to transform.
|
|
798
|
+
* @return {!Object}
|
|
799
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
800
|
+
*/
|
|
801
|
+
proto.Auth.TwoFactorProto.ConfirmReply.toObject = function(includeInstance, msg) {
|
|
802
|
+
var f, obj = {
|
|
803
|
+
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
if (includeInstance) {
|
|
807
|
+
obj.$jspbMessageInstance = msg;
|
|
808
|
+
}
|
|
809
|
+
return obj;
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Deserializes binary data (in protobuf wire format).
|
|
816
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
817
|
+
* @return {!proto.Auth.TwoFactorProto.ConfirmReply}
|
|
818
|
+
*/
|
|
819
|
+
proto.Auth.TwoFactorProto.ConfirmReply.deserializeBinary = function(bytes) {
|
|
820
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
821
|
+
var msg = new proto.Auth.TwoFactorProto.ConfirmReply;
|
|
822
|
+
return proto.Auth.TwoFactorProto.ConfirmReply.deserializeBinaryFromReader(msg, reader);
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
828
|
+
* given reader into the given message object.
|
|
829
|
+
* @param {!proto.Auth.TwoFactorProto.ConfirmReply} msg The message object to deserialize into.
|
|
830
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
831
|
+
* @return {!proto.Auth.TwoFactorProto.ConfirmReply}
|
|
832
|
+
*/
|
|
833
|
+
proto.Auth.TwoFactorProto.ConfirmReply.deserializeBinaryFromReader = function(msg, reader) {
|
|
834
|
+
while (reader.nextField()) {
|
|
835
|
+
if (reader.isEndGroup()) {
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
var field = reader.getFieldNumber();
|
|
839
|
+
switch (field) {
|
|
840
|
+
default:
|
|
841
|
+
reader.skipField();
|
|
842
|
+
break;
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return msg;
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
851
|
+
* @return {!Uint8Array}
|
|
852
|
+
*/
|
|
853
|
+
proto.Auth.TwoFactorProto.ConfirmReply.prototype.serializeBinary = function() {
|
|
854
|
+
var writer = new jspb.BinaryWriter();
|
|
855
|
+
proto.Auth.TwoFactorProto.ConfirmReply.serializeBinaryToWriter(this, writer);
|
|
856
|
+
return writer.getResultBuffer();
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
862
|
+
* format), writing to the given BinaryWriter.
|
|
863
|
+
* @param {!proto.Auth.TwoFactorProto.ConfirmReply} message
|
|
864
|
+
* @param {!jspb.BinaryWriter} writer
|
|
865
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
866
|
+
*/
|
|
867
|
+
proto.Auth.TwoFactorProto.ConfirmReply.serializeBinaryToWriter = function(message, writer) {
|
|
868
|
+
var f = undefined;
|
|
521
869
|
};
|
|
522
870
|
|
|
523
871
|
|
|
@@ -817,4 +1165,22 @@ proto.Auth.TwoFactorProto.prototype.setAccountId = function(value) {
|
|
|
817
1165
|
};
|
|
818
1166
|
|
|
819
1167
|
|
|
1168
|
+
/**
|
|
1169
|
+
* optional string browser_fingerprint = 3;
|
|
1170
|
+
* @return {string}
|
|
1171
|
+
*/
|
|
1172
|
+
proto.Auth.TwoFactorProto.prototype.getBrowserFingerprint = function() {
|
|
1173
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* @param {string} value
|
|
1179
|
+
* @return {!proto.Auth.TwoFactorProto} returns this
|
|
1180
|
+
*/
|
|
1181
|
+
proto.Auth.TwoFactorProto.prototype.setBrowserFingerprint = function(value) {
|
|
1182
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
|
|
820
1186
|
goog.object.extend(exports, proto.Auth);
|
|
@@ -5,13 +5,22 @@ import * as auth_account_two_factor_pb from "./auth.account_two_factor_pb";
|
|
|
5
5
|
import * as auth_authn_pb from "./auth.authn_pb";
|
|
6
6
|
import {grpc} from "@improbable-eng/grpc-web";
|
|
7
7
|
|
|
8
|
-
type
|
|
8
|
+
type AccountTwoFactorGRPCSetupTwoFactor = {
|
|
9
9
|
readonly methodName: string;
|
|
10
10
|
readonly service: typeof AccountTwoFactorGRPC;
|
|
11
11
|
readonly requestStream: false;
|
|
12
12
|
readonly responseStream: false;
|
|
13
|
-
readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.
|
|
14
|
-
readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto;
|
|
13
|
+
readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.SetupRequest;
|
|
14
|
+
readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto.SetupReply;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type AccountTwoFactorGRPCConfirmTwoFactor = {
|
|
18
|
+
readonly methodName: string;
|
|
19
|
+
readonly service: typeof AccountTwoFactorGRPC;
|
|
20
|
+
readonly requestStream: false;
|
|
21
|
+
readonly responseStream: false;
|
|
22
|
+
readonly requestType: typeof auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest;
|
|
23
|
+
readonly responseType: typeof auth_account_two_factor_pb.TwoFactorProto.ConfirmReply;
|
|
15
24
|
};
|
|
16
25
|
|
|
17
26
|
type AccountTwoFactorGRPCRemove = {
|
|
@@ -34,7 +43,8 @@ type AccountTwoFactorGRPCValidate = {
|
|
|
34
43
|
|
|
35
44
|
export class AccountTwoFactorGRPC {
|
|
36
45
|
static readonly serviceName: string;
|
|
37
|
-
static readonly
|
|
46
|
+
static readonly SetupTwoFactor: AccountTwoFactorGRPCSetupTwoFactor;
|
|
47
|
+
static readonly ConfirmTwoFactor: AccountTwoFactorGRPCConfirmTwoFactor;
|
|
38
48
|
static readonly Remove: AccountTwoFactorGRPCRemove;
|
|
39
49
|
static readonly Validate: AccountTwoFactorGRPCValidate;
|
|
40
50
|
}
|
|
@@ -71,14 +81,23 @@ export class AccountTwoFactorGRPCClient {
|
|
|
71
81
|
readonly serviceHost: string;
|
|
72
82
|
|
|
73
83
|
constructor(serviceHost: string, options?: grpc.RpcOptions);
|
|
74
|
-
|
|
75
|
-
requestMessage: auth_account_two_factor_pb.TwoFactorProto.
|
|
84
|
+
setupTwoFactor(
|
|
85
|
+
requestMessage: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
|
|
76
86
|
metadata: grpc.Metadata,
|
|
77
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto|null) => void
|
|
87
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.SetupReply|null) => void
|
|
78
88
|
): UnaryResponse;
|
|
79
|
-
|
|
80
|
-
requestMessage: auth_account_two_factor_pb.TwoFactorProto.
|
|
81
|
-
callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto|null) => void
|
|
89
|
+
setupTwoFactor(
|
|
90
|
+
requestMessage: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
|
|
91
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.SetupReply|null) => void
|
|
92
|
+
): UnaryResponse;
|
|
93
|
+
confirmTwoFactor(
|
|
94
|
+
requestMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest,
|
|
95
|
+
metadata: grpc.Metadata,
|
|
96
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmReply|null) => void
|
|
97
|
+
): UnaryResponse;
|
|
98
|
+
confirmTwoFactor(
|
|
99
|
+
requestMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmRequest,
|
|
100
|
+
callback: (error: ServiceError|null, responseMessage: auth_account_two_factor_pb.TwoFactorProto.ConfirmReply|null) => void
|
|
82
101
|
): UnaryResponse;
|
|
83
102
|
remove(
|
|
84
103
|
requestMessage: auth_account_two_factor_pb.TwoFactorProto.RemoveRequest,
|
|
@@ -11,13 +11,22 @@ var AccountTwoFactorGRPC = (function () {
|
|
|
11
11
|
return AccountTwoFactorGRPC;
|
|
12
12
|
}());
|
|
13
13
|
|
|
14
|
-
AccountTwoFactorGRPC.
|
|
15
|
-
methodName: "
|
|
14
|
+
AccountTwoFactorGRPC.SetupTwoFactor = {
|
|
15
|
+
methodName: "SetupTwoFactor",
|
|
16
16
|
service: AccountTwoFactorGRPC,
|
|
17
17
|
requestStream: false,
|
|
18
18
|
responseStream: false,
|
|
19
|
-
requestType: auth_account_two_factor_pb.TwoFactorProto.
|
|
20
|
-
responseType: auth_account_two_factor_pb.TwoFactorProto
|
|
19
|
+
requestType: auth_account_two_factor_pb.TwoFactorProto.SetupRequest,
|
|
20
|
+
responseType: auth_account_two_factor_pb.TwoFactorProto.SetupReply
|
|
21
|
+
};
|
|
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
|
|
21
30
|
};
|
|
22
31
|
|
|
23
32
|
AccountTwoFactorGRPC.Remove = {
|
|
@@ -45,11 +54,42 @@ function AccountTwoFactorGRPCClient(serviceHost, options) {
|
|
|
45
54
|
this.options = options || {};
|
|
46
55
|
}
|
|
47
56
|
|
|
48
|
-
AccountTwoFactorGRPCClient.prototype.
|
|
57
|
+
AccountTwoFactorGRPCClient.prototype.setupTwoFactor = function setupTwoFactor(requestMessage, metadata, callback) {
|
|
58
|
+
if (arguments.length === 2) {
|
|
59
|
+
callback = arguments[1];
|
|
60
|
+
}
|
|
61
|
+
var client = grpc.unary(AccountTwoFactorGRPC.SetupTwoFactor, {
|
|
62
|
+
request: requestMessage,
|
|
63
|
+
host: this.serviceHost,
|
|
64
|
+
metadata: metadata,
|
|
65
|
+
transport: this.options.transport,
|
|
66
|
+
debug: this.options.debug,
|
|
67
|
+
onEnd: function (response) {
|
|
68
|
+
if (callback) {
|
|
69
|
+
if (response.status !== grpc.Code.OK) {
|
|
70
|
+
var err = new Error(response.statusMessage);
|
|
71
|
+
err.code = response.status;
|
|
72
|
+
err.metadata = response.trailers;
|
|
73
|
+
callback(err, null);
|
|
74
|
+
} else {
|
|
75
|
+
callback(null, response.message);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return {
|
|
81
|
+
cancel: function () {
|
|
82
|
+
callback = null;
|
|
83
|
+
client.close();
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
AccountTwoFactorGRPCClient.prototype.confirmTwoFactor = function confirmTwoFactor(requestMessage, metadata, callback) {
|
|
49
89
|
if (arguments.length === 2) {
|
|
50
90
|
callback = arguments[1];
|
|
51
91
|
}
|
|
52
|
-
var client = grpc.unary(AccountTwoFactorGRPC.
|
|
92
|
+
var client = grpc.unary(AccountTwoFactorGRPC.ConfirmTwoFactor, {
|
|
53
93
|
request: requestMessage,
|
|
54
94
|
host: this.serviceHost,
|
|
55
95
|
metadata: metadata,
|