@aceplus/smartace-api 2.3.2 → 2.4.0-alpha.4
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_two_factor_pb.d.ts +66 -18
- package/auth.account_two_factor_pb.js +422 -56
- package/auth.account_two_factor_pb_service.d.ts +29 -10
- package/auth.account_two_factor_pb_service.js +46 -6
- package/package.json +1 -1
- package/platform.local_account_pb.d.ts +19 -0
- package/platform.local_account_pb.js +182 -6
|
@@ -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,
|
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ import * as google_api_annotations_pb from "./google/api/annotations_pb";
|
|
|
7
7
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
8
8
|
import * as platform_pagination_pb from "./platform.pagination_pb";
|
|
9
9
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10
|
+
import * as platform_client_pb from "./platform.client_pb";
|
|
10
11
|
|
|
11
12
|
export class LocalAccountProto extends jspb.Message {
|
|
12
13
|
getId(): number;
|
|
@@ -41,6 +42,11 @@ export class LocalAccountProto extends jspb.Message {
|
|
|
41
42
|
getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
42
43
|
setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
43
44
|
|
|
45
|
+
clearAssignedRolesList(): void;
|
|
46
|
+
getAssignedRolesList(): Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>;
|
|
47
|
+
setAssignedRolesList(value: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>): void;
|
|
48
|
+
addAssignedRoles(value: platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap], index?: number): platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap];
|
|
49
|
+
|
|
44
50
|
serializeBinary(): Uint8Array;
|
|
45
51
|
toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
|
|
46
52
|
static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
|
|
@@ -63,6 +69,7 @@ export namespace LocalAccountProto {
|
|
|
63
69
|
groupId: string,
|
|
64
70
|
enabled: boolean,
|
|
65
71
|
expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
72
|
+
assignedRolesList: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>,
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
export class CreateAdminRequest extends jspb.Message {
|
|
@@ -87,6 +94,11 @@ export namespace LocalAccountProto {
|
|
|
87
94
|
getGroupId(): string;
|
|
88
95
|
setGroupId(value: string): void;
|
|
89
96
|
|
|
97
|
+
clearAssignedRolesList(): void;
|
|
98
|
+
getAssignedRolesList(): Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>;
|
|
99
|
+
setAssignedRolesList(value: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>): void;
|
|
100
|
+
addAssignedRoles(value: platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap], index?: number): platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap];
|
|
101
|
+
|
|
90
102
|
serializeBinary(): Uint8Array;
|
|
91
103
|
toObject(includeInstance?: boolean): CreateAdminRequest.AsObject;
|
|
92
104
|
static toObject(includeInstance: boolean, msg: CreateAdminRequest): CreateAdminRequest.AsObject;
|
|
@@ -106,6 +118,7 @@ export namespace LocalAccountProto {
|
|
|
106
118
|
company: string,
|
|
107
119
|
clientId: number,
|
|
108
120
|
groupId: string,
|
|
121
|
+
assignedRolesList: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>,
|
|
109
122
|
}
|
|
110
123
|
}
|
|
111
124
|
|
|
@@ -172,6 +185,11 @@ export namespace LocalAccountProto {
|
|
|
172
185
|
getGroupId(): string;
|
|
173
186
|
setGroupId(value: string): void;
|
|
174
187
|
|
|
188
|
+
clearAssignedRolesList(): void;
|
|
189
|
+
getAssignedRolesList(): Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>;
|
|
190
|
+
setAssignedRolesList(value: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>): void;
|
|
191
|
+
addAssignedRoles(value: platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap], index?: number): platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap];
|
|
192
|
+
|
|
175
193
|
serializeBinary(): Uint8Array;
|
|
176
194
|
toObject(includeInstance?: boolean): UpdateRequest.AsObject;
|
|
177
195
|
static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
|
|
@@ -190,6 +208,7 @@ export namespace LocalAccountProto {
|
|
|
190
208
|
locale: string,
|
|
191
209
|
company: string,
|
|
192
210
|
groupId: string,
|
|
211
|
+
assignedRolesList: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>,
|
|
193
212
|
}
|
|
194
213
|
}
|
|
195
214
|
|
|
@@ -31,6 +31,8 @@ var platform_pagination_pb = require('./platform.pagination_pb.js');
|
|
|
31
31
|
goog.object.extend(proto, platform_pagination_pb);
|
|
32
32
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
33
33
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
34
|
+
var platform_client_pb = require('./platform.client_pb.js');
|
|
35
|
+
goog.object.extend(proto, platform_client_pb);
|
|
34
36
|
goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
|
|
35
37
|
goog.exportSymbol('proto.Platform.LocalAccountProto.AddClientRequest', null, global);
|
|
36
38
|
goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
|
|
@@ -54,7 +56,7 @@ goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateRequest', null, global
|
|
|
54
56
|
* @constructor
|
|
55
57
|
*/
|
|
56
58
|
proto.Platform.LocalAccountProto = function(opt_data) {
|
|
57
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
59
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.repeatedFields_, null);
|
|
58
60
|
};
|
|
59
61
|
goog.inherits(proto.Platform.LocalAccountProto, jspb.Message);
|
|
60
62
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -75,7 +77,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
75
77
|
* @constructor
|
|
76
78
|
*/
|
|
77
79
|
proto.Platform.LocalAccountProto.CreateAdminRequest = function(opt_data) {
|
|
78
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
80
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_, null);
|
|
79
81
|
};
|
|
80
82
|
goog.inherits(proto.Platform.LocalAccountProto.CreateAdminRequest, jspb.Message);
|
|
81
83
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -117,7 +119,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
117
119
|
* @constructor
|
|
118
120
|
*/
|
|
119
121
|
proto.Platform.LocalAccountProto.UpdateRequest = function(opt_data) {
|
|
120
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
122
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_, null);
|
|
121
123
|
};
|
|
122
124
|
goog.inherits(proto.Platform.LocalAccountProto.UpdateRequest, jspb.Message);
|
|
123
125
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -296,6 +298,13 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
296
298
|
proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
|
|
297
299
|
}
|
|
298
300
|
|
|
301
|
+
/**
|
|
302
|
+
* List of repeated fields within this message type.
|
|
303
|
+
* @private {!Array<number>}
|
|
304
|
+
* @const
|
|
305
|
+
*/
|
|
306
|
+
proto.Platform.LocalAccountProto.repeatedFields_ = [11];
|
|
307
|
+
|
|
299
308
|
|
|
300
309
|
|
|
301
310
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -336,7 +345,8 @@ proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
|
|
|
336
345
|
company: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
337
346
|
groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
338
347
|
enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
339
|
-
expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
348
|
+
expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
349
|
+
assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
|
|
340
350
|
};
|
|
341
351
|
|
|
342
352
|
if (includeInstance) {
|
|
@@ -414,6 +424,12 @@ proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, rea
|
|
|
414
424
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
415
425
|
msg.setExpiredAt(value);
|
|
416
426
|
break;
|
|
427
|
+
case 11:
|
|
428
|
+
var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
429
|
+
for (var i = 0; i < values.length; i++) {
|
|
430
|
+
msg.addAssignedRoles(values[i]);
|
|
431
|
+
}
|
|
432
|
+
break;
|
|
417
433
|
default:
|
|
418
434
|
reader.skipField();
|
|
419
435
|
break;
|
|
@@ -514,10 +530,24 @@ proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, wri
|
|
|
514
530
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
515
531
|
);
|
|
516
532
|
}
|
|
533
|
+
f = message.getAssignedRolesList();
|
|
534
|
+
if (f.length > 0) {
|
|
535
|
+
writer.writePackedEnum(
|
|
536
|
+
11,
|
|
537
|
+
f
|
|
538
|
+
);
|
|
539
|
+
}
|
|
517
540
|
};
|
|
518
541
|
|
|
519
542
|
|
|
520
543
|
|
|
544
|
+
/**
|
|
545
|
+
* List of repeated fields within this message type.
|
|
546
|
+
* @private {!Array<number>}
|
|
547
|
+
* @const
|
|
548
|
+
*/
|
|
549
|
+
proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_ = [8];
|
|
550
|
+
|
|
521
551
|
|
|
522
552
|
|
|
523
553
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -555,7 +585,8 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.toObject = function(includeI
|
|
|
555
585
|
locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
556
586
|
company: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
557
587
|
clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
558
|
-
groupId: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
588
|
+
groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
589
|
+
assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
|
|
559
590
|
};
|
|
560
591
|
|
|
561
592
|
if (includeInstance) {
|
|
@@ -620,6 +651,12 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader
|
|
|
620
651
|
var value = /** @type {string} */ (reader.readString());
|
|
621
652
|
msg.setGroupId(value);
|
|
622
653
|
break;
|
|
654
|
+
case 8:
|
|
655
|
+
var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
656
|
+
for (var i = 0; i < values.length; i++) {
|
|
657
|
+
msg.addAssignedRoles(values[i]);
|
|
658
|
+
}
|
|
659
|
+
break;
|
|
623
660
|
default:
|
|
624
661
|
reader.skipField();
|
|
625
662
|
break;
|
|
@@ -698,6 +735,13 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.serializeBinaryToWriter = fu
|
|
|
698
735
|
f
|
|
699
736
|
);
|
|
700
737
|
}
|
|
738
|
+
f = message.getAssignedRolesList();
|
|
739
|
+
if (f.length > 0) {
|
|
740
|
+
writer.writePackedEnum(
|
|
741
|
+
8,
|
|
742
|
+
f
|
|
743
|
+
);
|
|
744
|
+
}
|
|
701
745
|
};
|
|
702
746
|
|
|
703
747
|
|
|
@@ -827,6 +871,43 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setGroupId = funct
|
|
|
827
871
|
};
|
|
828
872
|
|
|
829
873
|
|
|
874
|
+
/**
|
|
875
|
+
* repeated ClientProto.Roles assigned_roles = 8;
|
|
876
|
+
* @return {!Array<!proto.Platform.ClientProto.Roles>}
|
|
877
|
+
*/
|
|
878
|
+
proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getAssignedRolesList = function() {
|
|
879
|
+
return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 8));
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* @param {!Array<!proto.Platform.ClientProto.Roles>} value
|
|
885
|
+
* @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
|
|
886
|
+
*/
|
|
887
|
+
proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setAssignedRolesList = function(value) {
|
|
888
|
+
return jspb.Message.setField(this, 8, value || []);
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* @param {!proto.Platform.ClientProto.Roles} value
|
|
894
|
+
* @param {number=} opt_index
|
|
895
|
+
* @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
|
|
896
|
+
*/
|
|
897
|
+
proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.addAssignedRoles = function(value, opt_index) {
|
|
898
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* Clears the list making it empty but non-null.
|
|
904
|
+
* @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
|
|
905
|
+
*/
|
|
906
|
+
proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.clearAssignedRolesList = function() {
|
|
907
|
+
return this.setAssignedRolesList([]);
|
|
908
|
+
};
|
|
909
|
+
|
|
910
|
+
|
|
830
911
|
|
|
831
912
|
|
|
832
913
|
|
|
@@ -1138,6 +1219,13 @@ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setGroupId = functio
|
|
|
1138
1219
|
|
|
1139
1220
|
|
|
1140
1221
|
|
|
1222
|
+
/**
|
|
1223
|
+
* List of repeated fields within this message type.
|
|
1224
|
+
* @private {!Array<number>}
|
|
1225
|
+
* @const
|
|
1226
|
+
*/
|
|
1227
|
+
proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_ = [7];
|
|
1228
|
+
|
|
1141
1229
|
|
|
1142
1230
|
|
|
1143
1231
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -1174,7 +1262,8 @@ proto.Platform.LocalAccountProto.UpdateRequest.toObject = function(includeInstan
|
|
|
1174
1262
|
firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1175
1263
|
locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1176
1264
|
company: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1177
|
-
groupId: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
1265
|
+
groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
1266
|
+
assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
1178
1267
|
};
|
|
1179
1268
|
|
|
1180
1269
|
if (includeInstance) {
|
|
@@ -1235,6 +1324,12 @@ proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader = fun
|
|
|
1235
1324
|
var value = /** @type {string} */ (reader.readString());
|
|
1236
1325
|
msg.setGroupId(value);
|
|
1237
1326
|
break;
|
|
1327
|
+
case 7:
|
|
1328
|
+
var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
|
|
1329
|
+
for (var i = 0; i < values.length; i++) {
|
|
1330
|
+
msg.addAssignedRoles(values[i]);
|
|
1331
|
+
}
|
|
1332
|
+
break;
|
|
1238
1333
|
default:
|
|
1239
1334
|
reader.skipField();
|
|
1240
1335
|
break;
|
|
@@ -1306,6 +1401,13 @@ proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter = functio
|
|
|
1306
1401
|
f
|
|
1307
1402
|
);
|
|
1308
1403
|
}
|
|
1404
|
+
f = message.getAssignedRolesList();
|
|
1405
|
+
if (f.length > 0) {
|
|
1406
|
+
writer.writePackedEnum(
|
|
1407
|
+
7,
|
|
1408
|
+
f
|
|
1409
|
+
);
|
|
1410
|
+
}
|
|
1309
1411
|
};
|
|
1310
1412
|
|
|
1311
1413
|
|
|
@@ -1417,6 +1519,43 @@ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setGroupId = function(v
|
|
|
1417
1519
|
};
|
|
1418
1520
|
|
|
1419
1521
|
|
|
1522
|
+
/**
|
|
1523
|
+
* repeated ClientProto.Roles assigned_roles = 7;
|
|
1524
|
+
* @return {!Array<!proto.Platform.ClientProto.Roles>}
|
|
1525
|
+
*/
|
|
1526
|
+
proto.Platform.LocalAccountProto.UpdateRequest.prototype.getAssignedRolesList = function() {
|
|
1527
|
+
return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
/**
|
|
1532
|
+
* @param {!Array<!proto.Platform.ClientProto.Roles>} value
|
|
1533
|
+
* @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
|
|
1534
|
+
*/
|
|
1535
|
+
proto.Platform.LocalAccountProto.UpdateRequest.prototype.setAssignedRolesList = function(value) {
|
|
1536
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* @param {!proto.Platform.ClientProto.Roles} value
|
|
1542
|
+
* @param {number=} opt_index
|
|
1543
|
+
* @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
|
|
1544
|
+
*/
|
|
1545
|
+
proto.Platform.LocalAccountProto.UpdateRequest.prototype.addAssignedRoles = function(value, opt_index) {
|
|
1546
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* Clears the list making it empty but non-null.
|
|
1552
|
+
* @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
|
|
1553
|
+
*/
|
|
1554
|
+
proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearAssignedRolesList = function() {
|
|
1555
|
+
return this.setAssignedRolesList([]);
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
|
|
1420
1559
|
|
|
1421
1560
|
|
|
1422
1561
|
|
|
@@ -2959,4 +3098,41 @@ proto.Platform.LocalAccountProto.prototype.hasExpiredAt = function() {
|
|
|
2959
3098
|
};
|
|
2960
3099
|
|
|
2961
3100
|
|
|
3101
|
+
/**
|
|
3102
|
+
* repeated ClientProto.Roles assigned_roles = 11;
|
|
3103
|
+
* @return {!Array<!proto.Platform.ClientProto.Roles>}
|
|
3104
|
+
*/
|
|
3105
|
+
proto.Platform.LocalAccountProto.prototype.getAssignedRolesList = function() {
|
|
3106
|
+
return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 11));
|
|
3107
|
+
};
|
|
3108
|
+
|
|
3109
|
+
|
|
3110
|
+
/**
|
|
3111
|
+
* @param {!Array<!proto.Platform.ClientProto.Roles>} value
|
|
3112
|
+
* @return {!proto.Platform.LocalAccountProto} returns this
|
|
3113
|
+
*/
|
|
3114
|
+
proto.Platform.LocalAccountProto.prototype.setAssignedRolesList = function(value) {
|
|
3115
|
+
return jspb.Message.setField(this, 11, value || []);
|
|
3116
|
+
};
|
|
3117
|
+
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* @param {!proto.Platform.ClientProto.Roles} value
|
|
3121
|
+
* @param {number=} opt_index
|
|
3122
|
+
* @return {!proto.Platform.LocalAccountProto} returns this
|
|
3123
|
+
*/
|
|
3124
|
+
proto.Platform.LocalAccountProto.prototype.addAssignedRoles = function(value, opt_index) {
|
|
3125
|
+
return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
|
|
3126
|
+
};
|
|
3127
|
+
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
* Clears the list making it empty but non-null.
|
|
3131
|
+
* @return {!proto.Platform.LocalAccountProto} returns this
|
|
3132
|
+
*/
|
|
3133
|
+
proto.Platform.LocalAccountProto.prototype.clearAssignedRolesList = function() {
|
|
3134
|
+
return this.setAssignedRolesList([]);
|
|
3135
|
+
};
|
|
3136
|
+
|
|
3137
|
+
|
|
2962
3138
|
goog.object.extend(exports, proto.Platform);
|