@aceplus/smartace-api 2.9.0-alpha.1 → 2.9.0-alpha.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.
- package/auth.account_pb.d.ts +36 -0
- package/auth.account_pb.js +273 -1
- package/auth.account_pb_service.d.ts +22 -3
- package/auth.account_pb_service.js +41 -1
- package/package.json +1 -1
package/auth.account_pb.d.ts
CHANGED
|
@@ -258,6 +258,9 @@ export namespace AccountProto {
|
|
|
258
258
|
getConfirmpassword(): string;
|
|
259
259
|
setConfirmpassword(value: string): void;
|
|
260
260
|
|
|
261
|
+
getEmail(): string;
|
|
262
|
+
setEmail(value: string): void;
|
|
263
|
+
|
|
261
264
|
serializeBinary(): Uint8Array;
|
|
262
265
|
toObject(includeInstance?: boolean): ActivateAccountRequest.AsObject;
|
|
263
266
|
static toObject(includeInstance: boolean, msg: ActivateAccountRequest): ActivateAccountRequest.AsObject;
|
|
@@ -273,6 +276,7 @@ export namespace AccountProto {
|
|
|
273
276
|
accountconfirmationtoken: number,
|
|
274
277
|
password: string,
|
|
275
278
|
confirmpassword: string,
|
|
279
|
+
email: string,
|
|
276
280
|
}
|
|
277
281
|
}
|
|
278
282
|
|
|
@@ -296,6 +300,38 @@ export namespace AccountProto {
|
|
|
296
300
|
}
|
|
297
301
|
}
|
|
298
302
|
|
|
303
|
+
export class ResetPasswordRequest extends jspb.Message {
|
|
304
|
+
getAccountconfirmationtoken(): number;
|
|
305
|
+
setAccountconfirmationtoken(value: number): void;
|
|
306
|
+
|
|
307
|
+
getPassword(): string;
|
|
308
|
+
setPassword(value: string): void;
|
|
309
|
+
|
|
310
|
+
getConfirmpassword(): string;
|
|
311
|
+
setConfirmpassword(value: string): void;
|
|
312
|
+
|
|
313
|
+
getEmail(): string;
|
|
314
|
+
setEmail(value: string): void;
|
|
315
|
+
|
|
316
|
+
serializeBinary(): Uint8Array;
|
|
317
|
+
toObject(includeInstance?: boolean): ResetPasswordRequest.AsObject;
|
|
318
|
+
static toObject(includeInstance: boolean, msg: ResetPasswordRequest): ResetPasswordRequest.AsObject;
|
|
319
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
320
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
321
|
+
static serializeBinaryToWriter(message: ResetPasswordRequest, writer: jspb.BinaryWriter): void;
|
|
322
|
+
static deserializeBinary(bytes: Uint8Array): ResetPasswordRequest;
|
|
323
|
+
static deserializeBinaryFromReader(message: ResetPasswordRequest, reader: jspb.BinaryReader): ResetPasswordRequest;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export namespace ResetPasswordRequest {
|
|
327
|
+
export type AsObject = {
|
|
328
|
+
accountconfirmationtoken: number,
|
|
329
|
+
password: string,
|
|
330
|
+
confirmpassword: string,
|
|
331
|
+
email: string,
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
299
335
|
export class ChangePasswordRequest extends jspb.Message {
|
|
300
336
|
getId(): number;
|
|
301
337
|
setId(value: number): void;
|
package/auth.account_pb.js
CHANGED
|
@@ -42,6 +42,7 @@ goog.exportSymbol('proto.Auth.AccountProto.DeleteReply', null, global);
|
|
|
42
42
|
goog.exportSymbol('proto.Auth.AccountProto.DeleteRequest', null, global);
|
|
43
43
|
goog.exportSymbol('proto.Auth.AccountProto.ForgotPasswordRequest', null, global);
|
|
44
44
|
goog.exportSymbol('proto.Auth.AccountProto.ResendInvitationRequest', null, global);
|
|
45
|
+
goog.exportSymbol('proto.Auth.AccountProto.ResetPasswordRequest', null, global);
|
|
45
46
|
goog.exportSymbol('proto.Auth.AccountProto.RetrieveAccountActivationStatusesReply', null, global);
|
|
46
47
|
goog.exportSymbol('proto.Auth.AccountProto.RetrieveAccountActivationStatusesRequest', null, global);
|
|
47
48
|
goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoReply', null, global);
|
|
@@ -244,6 +245,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
244
245
|
*/
|
|
245
246
|
proto.Auth.AccountProto.ForgotPasswordRequest.displayName = 'proto.Auth.AccountProto.ForgotPasswordRequest';
|
|
246
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* Generated by JsPbCodeGenerator.
|
|
250
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
251
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
252
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
253
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
254
|
+
* valid.
|
|
255
|
+
* @extends {jspb.Message}
|
|
256
|
+
* @constructor
|
|
257
|
+
*/
|
|
258
|
+
proto.Auth.AccountProto.ResetPasswordRequest = function(opt_data) {
|
|
259
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
260
|
+
};
|
|
261
|
+
goog.inherits(proto.Auth.AccountProto.ResetPasswordRequest, jspb.Message);
|
|
262
|
+
if (goog.DEBUG && !COMPILED) {
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
* @override
|
|
266
|
+
*/
|
|
267
|
+
proto.Auth.AccountProto.ResetPasswordRequest.displayName = 'proto.Auth.AccountProto.ResetPasswordRequest';
|
|
268
|
+
}
|
|
247
269
|
/**
|
|
248
270
|
* Generated by JsPbCodeGenerator.
|
|
249
271
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -2182,7 +2204,8 @@ proto.Auth.AccountProto.ActivateAccountRequest.toObject = function(includeInstan
|
|
|
2182
2204
|
var f, obj = {
|
|
2183
2205
|
accountconfirmationtoken: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2184
2206
|
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2185
|
-
confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
2207
|
+
confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2208
|
+
email: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2186
2209
|
};
|
|
2187
2210
|
|
|
2188
2211
|
if (includeInstance) {
|
|
@@ -2231,6 +2254,10 @@ proto.Auth.AccountProto.ActivateAccountRequest.deserializeBinaryFromReader = fun
|
|
|
2231
2254
|
var value = /** @type {string} */ (reader.readString());
|
|
2232
2255
|
msg.setConfirmpassword(value);
|
|
2233
2256
|
break;
|
|
2257
|
+
case 4:
|
|
2258
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2259
|
+
msg.setEmail(value);
|
|
2260
|
+
break;
|
|
2234
2261
|
default:
|
|
2235
2262
|
reader.skipField();
|
|
2236
2263
|
break;
|
|
@@ -2281,6 +2308,13 @@ proto.Auth.AccountProto.ActivateAccountRequest.serializeBinaryToWriter = functio
|
|
|
2281
2308
|
f
|
|
2282
2309
|
);
|
|
2283
2310
|
}
|
|
2311
|
+
f = message.getEmail();
|
|
2312
|
+
if (f.length > 0) {
|
|
2313
|
+
writer.writeString(
|
|
2314
|
+
4,
|
|
2315
|
+
f
|
|
2316
|
+
);
|
|
2317
|
+
}
|
|
2284
2318
|
};
|
|
2285
2319
|
|
|
2286
2320
|
|
|
@@ -2338,6 +2372,24 @@ proto.Auth.AccountProto.ActivateAccountRequest.prototype.setConfirmpassword = fu
|
|
|
2338
2372
|
};
|
|
2339
2373
|
|
|
2340
2374
|
|
|
2375
|
+
/**
|
|
2376
|
+
* optional string email = 4;
|
|
2377
|
+
* @return {string}
|
|
2378
|
+
*/
|
|
2379
|
+
proto.Auth.AccountProto.ActivateAccountRequest.prototype.getEmail = function() {
|
|
2380
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2381
|
+
};
|
|
2382
|
+
|
|
2383
|
+
|
|
2384
|
+
/**
|
|
2385
|
+
* @param {string} value
|
|
2386
|
+
* @return {!proto.Auth.AccountProto.ActivateAccountRequest} returns this
|
|
2387
|
+
*/
|
|
2388
|
+
proto.Auth.AccountProto.ActivateAccountRequest.prototype.setEmail = function(value) {
|
|
2389
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2390
|
+
};
|
|
2391
|
+
|
|
2392
|
+
|
|
2341
2393
|
|
|
2342
2394
|
|
|
2343
2395
|
|
|
@@ -2471,6 +2523,226 @@ proto.Auth.AccountProto.ForgotPasswordRequest.prototype.setEmail = function(valu
|
|
|
2471
2523
|
|
|
2472
2524
|
|
|
2473
2525
|
|
|
2526
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2527
|
+
/**
|
|
2528
|
+
* Creates an object representation of this proto.
|
|
2529
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2530
|
+
* Optional fields that are not set will be set to undefined.
|
|
2531
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2532
|
+
* For the list of reserved names please see:
|
|
2533
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2534
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2535
|
+
* JSPB instance for transitional soy proto support:
|
|
2536
|
+
* http://goto/soy-param-migration
|
|
2537
|
+
* @return {!Object}
|
|
2538
|
+
*/
|
|
2539
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2540
|
+
return proto.Auth.AccountProto.ResetPasswordRequest.toObject(opt_includeInstance, this);
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* Static version of the {@see toObject} method.
|
|
2546
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2547
|
+
* the JSPB instance for transitional soy proto support:
|
|
2548
|
+
* http://goto/soy-param-migration
|
|
2549
|
+
* @param {!proto.Auth.AccountProto.ResetPasswordRequest} msg The msg instance to transform.
|
|
2550
|
+
* @return {!Object}
|
|
2551
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2552
|
+
*/
|
|
2553
|
+
proto.Auth.AccountProto.ResetPasswordRequest.toObject = function(includeInstance, msg) {
|
|
2554
|
+
var f, obj = {
|
|
2555
|
+
accountconfirmationtoken: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2556
|
+
password: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2557
|
+
confirmpassword: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2558
|
+
email: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
2559
|
+
};
|
|
2560
|
+
|
|
2561
|
+
if (includeInstance) {
|
|
2562
|
+
obj.$jspbMessageInstance = msg;
|
|
2563
|
+
}
|
|
2564
|
+
return obj;
|
|
2565
|
+
};
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2571
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2572
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest}
|
|
2573
|
+
*/
|
|
2574
|
+
proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinary = function(bytes) {
|
|
2575
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2576
|
+
var msg = new proto.Auth.AccountProto.ResetPasswordRequest;
|
|
2577
|
+
return proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinaryFromReader(msg, reader);
|
|
2578
|
+
};
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2583
|
+
* given reader into the given message object.
|
|
2584
|
+
* @param {!proto.Auth.AccountProto.ResetPasswordRequest} msg The message object to deserialize into.
|
|
2585
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2586
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest}
|
|
2587
|
+
*/
|
|
2588
|
+
proto.Auth.AccountProto.ResetPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2589
|
+
while (reader.nextField()) {
|
|
2590
|
+
if (reader.isEndGroup()) {
|
|
2591
|
+
break;
|
|
2592
|
+
}
|
|
2593
|
+
var field = reader.getFieldNumber();
|
|
2594
|
+
switch (field) {
|
|
2595
|
+
case 1:
|
|
2596
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2597
|
+
msg.setAccountconfirmationtoken(value);
|
|
2598
|
+
break;
|
|
2599
|
+
case 2:
|
|
2600
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2601
|
+
msg.setPassword(value);
|
|
2602
|
+
break;
|
|
2603
|
+
case 3:
|
|
2604
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2605
|
+
msg.setConfirmpassword(value);
|
|
2606
|
+
break;
|
|
2607
|
+
case 4:
|
|
2608
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2609
|
+
msg.setEmail(value);
|
|
2610
|
+
break;
|
|
2611
|
+
default:
|
|
2612
|
+
reader.skipField();
|
|
2613
|
+
break;
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
return msg;
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
/**
|
|
2621
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2622
|
+
* @return {!Uint8Array}
|
|
2623
|
+
*/
|
|
2624
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.serializeBinary = function() {
|
|
2625
|
+
var writer = new jspb.BinaryWriter();
|
|
2626
|
+
proto.Auth.AccountProto.ResetPasswordRequest.serializeBinaryToWriter(this, writer);
|
|
2627
|
+
return writer.getResultBuffer();
|
|
2628
|
+
};
|
|
2629
|
+
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2633
|
+
* format), writing to the given BinaryWriter.
|
|
2634
|
+
* @param {!proto.Auth.AccountProto.ResetPasswordRequest} message
|
|
2635
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2636
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2637
|
+
*/
|
|
2638
|
+
proto.Auth.AccountProto.ResetPasswordRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2639
|
+
var f = undefined;
|
|
2640
|
+
f = message.getAccountconfirmationtoken();
|
|
2641
|
+
if (f !== 0) {
|
|
2642
|
+
writer.writeInt32(
|
|
2643
|
+
1,
|
|
2644
|
+
f
|
|
2645
|
+
);
|
|
2646
|
+
}
|
|
2647
|
+
f = message.getPassword();
|
|
2648
|
+
if (f.length > 0) {
|
|
2649
|
+
writer.writeString(
|
|
2650
|
+
2,
|
|
2651
|
+
f
|
|
2652
|
+
);
|
|
2653
|
+
}
|
|
2654
|
+
f = message.getConfirmpassword();
|
|
2655
|
+
if (f.length > 0) {
|
|
2656
|
+
writer.writeString(
|
|
2657
|
+
3,
|
|
2658
|
+
f
|
|
2659
|
+
);
|
|
2660
|
+
}
|
|
2661
|
+
f = message.getEmail();
|
|
2662
|
+
if (f.length > 0) {
|
|
2663
|
+
writer.writeString(
|
|
2664
|
+
4,
|
|
2665
|
+
f
|
|
2666
|
+
);
|
|
2667
|
+
}
|
|
2668
|
+
};
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
* optional int32 accountConfirmationToken = 1;
|
|
2673
|
+
* @return {number}
|
|
2674
|
+
*/
|
|
2675
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getAccountconfirmationtoken = function() {
|
|
2676
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2677
|
+
};
|
|
2678
|
+
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* @param {number} value
|
|
2682
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2683
|
+
*/
|
|
2684
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setAccountconfirmationtoken = function(value) {
|
|
2685
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2688
|
+
|
|
2689
|
+
/**
|
|
2690
|
+
* optional string password = 2;
|
|
2691
|
+
* @return {string}
|
|
2692
|
+
*/
|
|
2693
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getPassword = function() {
|
|
2694
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* @param {string} value
|
|
2700
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2701
|
+
*/
|
|
2702
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setPassword = function(value) {
|
|
2703
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2704
|
+
};
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
/**
|
|
2708
|
+
* optional string confirmPassword = 3;
|
|
2709
|
+
* @return {string}
|
|
2710
|
+
*/
|
|
2711
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getConfirmpassword = function() {
|
|
2712
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2713
|
+
};
|
|
2714
|
+
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* @param {string} value
|
|
2718
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2719
|
+
*/
|
|
2720
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setConfirmpassword = function(value) {
|
|
2721
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2722
|
+
};
|
|
2723
|
+
|
|
2724
|
+
|
|
2725
|
+
/**
|
|
2726
|
+
* optional string email = 4;
|
|
2727
|
+
* @return {string}
|
|
2728
|
+
*/
|
|
2729
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.getEmail = function() {
|
|
2730
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2731
|
+
};
|
|
2732
|
+
|
|
2733
|
+
|
|
2734
|
+
/**
|
|
2735
|
+
* @param {string} value
|
|
2736
|
+
* @return {!proto.Auth.AccountProto.ResetPasswordRequest} returns this
|
|
2737
|
+
*/
|
|
2738
|
+
proto.Auth.AccountProto.ResetPasswordRequest.prototype.setEmail = function(value) {
|
|
2739
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2740
|
+
};
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
|
|
2745
|
+
|
|
2474
2746
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2475
2747
|
/**
|
|
2476
2748
|
* Creates an object representation of this proto.
|
|
@@ -157,7 +157,16 @@ type ClusterAccountGRPCForgotPassword = {
|
|
|
157
157
|
readonly requestStream: false;
|
|
158
158
|
readonly responseStream: false;
|
|
159
159
|
readonly requestType: typeof auth_account_pb.AccountProto.ForgotPasswordRequest;
|
|
160
|
-
readonly responseType: typeof
|
|
160
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
type ClusterAccountGRPCResetPassword = {
|
|
164
|
+
readonly methodName: string;
|
|
165
|
+
readonly service: typeof ClusterAccountGRPC;
|
|
166
|
+
readonly requestStream: false;
|
|
167
|
+
readonly responseStream: false;
|
|
168
|
+
readonly requestType: typeof auth_account_pb.AccountProto.ResetPasswordRequest;
|
|
169
|
+
readonly responseType: typeof google_protobuf_empty_pb.Empty;
|
|
161
170
|
};
|
|
162
171
|
|
|
163
172
|
type ClusterAccountGRPCChangePassword = {
|
|
@@ -234,6 +243,7 @@ export class ClusterAccountGRPC {
|
|
|
234
243
|
static readonly SearchApp: ClusterAccountGRPCSearchApp;
|
|
235
244
|
static readonly ActivateAccount: ClusterAccountGRPCActivateAccount;
|
|
236
245
|
static readonly ForgotPassword: ClusterAccountGRPCForgotPassword;
|
|
246
|
+
static readonly ResetPassword: ClusterAccountGRPCResetPassword;
|
|
237
247
|
static readonly ChangePassword: ClusterAccountGRPCChangePassword;
|
|
238
248
|
static readonly SetAccountScope: ClusterAccountGRPCSetAccountScope;
|
|
239
249
|
static readonly RetrievePushInfo: ClusterAccountGRPCRetrievePushInfo;
|
|
@@ -419,11 +429,20 @@ export class ClusterAccountGRPCClient {
|
|
|
419
429
|
forgotPassword(
|
|
420
430
|
requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
421
431
|
metadata: grpc.Metadata,
|
|
422
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
432
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
423
433
|
): UnaryResponse;
|
|
424
434
|
forgotPassword(
|
|
425
435
|
requestMessage: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
426
|
-
callback: (error: ServiceError|null, responseMessage:
|
|
436
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
437
|
+
): UnaryResponse;
|
|
438
|
+
resetPassword(
|
|
439
|
+
requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
440
|
+
metadata: grpc.Metadata,
|
|
441
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
442
|
+
): UnaryResponse;
|
|
443
|
+
resetPassword(
|
|
444
|
+
requestMessage: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
445
|
+
callback: (error: ServiceError|null, responseMessage: google_protobuf_empty_pb.Empty|null) => void
|
|
427
446
|
): UnaryResponse;
|
|
428
447
|
changePassword(
|
|
429
448
|
requestMessage: auth_account_pb.AccountProto.ChangePasswordRequest,
|
|
@@ -384,7 +384,16 @@ ClusterAccountGRPC.ForgotPassword = {
|
|
|
384
384
|
requestStream: false,
|
|
385
385
|
responseStream: false,
|
|
386
386
|
requestType: auth_account_pb.AccountProto.ForgotPasswordRequest,
|
|
387
|
-
responseType:
|
|
387
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
ClusterAccountGRPC.ResetPassword = {
|
|
391
|
+
methodName: "ResetPassword",
|
|
392
|
+
service: ClusterAccountGRPC,
|
|
393
|
+
requestStream: false,
|
|
394
|
+
responseStream: false,
|
|
395
|
+
requestType: auth_account_pb.AccountProto.ResetPasswordRequest,
|
|
396
|
+
responseType: google_protobuf_empty_pb.Empty
|
|
388
397
|
};
|
|
389
398
|
|
|
390
399
|
ClusterAccountGRPC.ChangePassword = {
|
|
@@ -736,6 +745,37 @@ ClusterAccountGRPCClient.prototype.forgotPassword = function forgotPassword(requ
|
|
|
736
745
|
};
|
|
737
746
|
};
|
|
738
747
|
|
|
748
|
+
ClusterAccountGRPCClient.prototype.resetPassword = function resetPassword(requestMessage, metadata, callback) {
|
|
749
|
+
if (arguments.length === 2) {
|
|
750
|
+
callback = arguments[1];
|
|
751
|
+
}
|
|
752
|
+
var client = grpc.unary(ClusterAccountGRPC.ResetPassword, {
|
|
753
|
+
request: requestMessage,
|
|
754
|
+
host: this.serviceHost,
|
|
755
|
+
metadata: metadata,
|
|
756
|
+
transport: this.options.transport,
|
|
757
|
+
debug: this.options.debug,
|
|
758
|
+
onEnd: function (response) {
|
|
759
|
+
if (callback) {
|
|
760
|
+
if (response.status !== grpc.Code.OK) {
|
|
761
|
+
var err = new Error(response.statusMessage);
|
|
762
|
+
err.code = response.status;
|
|
763
|
+
err.metadata = response.trailers;
|
|
764
|
+
callback(err, null);
|
|
765
|
+
} else {
|
|
766
|
+
callback(null, response.message);
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
return {
|
|
772
|
+
cancel: function () {
|
|
773
|
+
callback = null;
|
|
774
|
+
client.close();
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
|
|
739
779
|
ClusterAccountGRPCClient.prototype.changePassword = function changePassword(requestMessage, metadata, callback) {
|
|
740
780
|
if (arguments.length === 2) {
|
|
741
781
|
callback = arguments[1];
|