@sniipwebmaster/user-service-client-grpcweb-ts 25.10.13596 → 25.10.13629

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.
@@ -5802,6 +5802,49 @@ export class SniipUserServiceServiceClient {
5802
5802
  this.methodDescriptorInternalValidatePin);
5803
5803
  }
5804
5804
 
5805
+ methodDescriptorInternalValidateMfaOtp = new grpcWeb.MethodDescriptor(
5806
+ '/sniipuserservice.SniipUserServiceService/InternalValidateMfaOtp',
5807
+ grpcWeb.MethodType.UNARY,
5808
+ service_pb.InternalValidateMfaOtpRequest,
5809
+ service_pb.ResponseCode,
5810
+ (request: service_pb.InternalValidateMfaOtpRequest) => {
5811
+ return request.serializeBinary();
5812
+ },
5813
+ service_pb.ResponseCode.deserializeBinary
5814
+ );
5815
+
5816
+ internalValidateMfaOtp(
5817
+ request: service_pb.InternalValidateMfaOtpRequest,
5818
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
5819
+
5820
+ internalValidateMfaOtp(
5821
+ request: service_pb.InternalValidateMfaOtpRequest,
5822
+ metadata: grpcWeb.Metadata | null,
5823
+ callback: (err: grpcWeb.RpcError,
5824
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
5825
+
5826
+ internalValidateMfaOtp(
5827
+ request: service_pb.InternalValidateMfaOtpRequest,
5828
+ metadata?: grpcWeb.Metadata | null,
5829
+ callback?: (err: grpcWeb.RpcError,
5830
+ response: service_pb.ResponseCode) => void) {
5831
+ if (callback !== undefined) {
5832
+ return this.client_.rpcCall(
5833
+ this.hostname_ +
5834
+ '/sniipuserservice.SniipUserServiceService/InternalValidateMfaOtp',
5835
+ request,
5836
+ metadata || {},
5837
+ this.methodDescriptorInternalValidateMfaOtp,
5838
+ callback);
5839
+ }
5840
+ return this.client_.unaryCall(
5841
+ this.hostname_ +
5842
+ '/sniipuserservice.SniipUserServiceService/InternalValidateMfaOtp',
5843
+ request,
5844
+ metadata || {},
5845
+ this.methodDescriptorInternalValidateMfaOtp);
5846
+ }
5847
+
5805
5848
  methodDescriptorValidateVerificationCodeEmail = new grpcWeb.MethodDescriptor(
5806
5849
  '/sniipuserservice.SniipUserServiceService/ValidateVerificationCodeEmail',
5807
5850
  grpcWeb.MethodType.UNARY,
@@ -5473,6 +5473,9 @@ export class UserProfile extends jspb.Message {
5473
5473
  getWexaccountnumber(): string;
5474
5474
  setWexaccountnumber(value: string): UserProfile;
5475
5475
 
5476
+ getMfasecretstatus(): MfaSecretStatus;
5477
+ setMfasecretstatus(value: MfaSecretStatus): UserProfile;
5478
+
5476
5479
  serializeBinary(): Uint8Array;
5477
5480
  toObject(includeInstance?: boolean): UserProfile.AsObject;
5478
5481
  static toObject(includeInstance: boolean, msg: UserProfile): UserProfile.AsObject;
@@ -5514,6 +5517,7 @@ export namespace UserProfile {
5514
5517
  wexusername: string,
5515
5518
  wexuserid: string,
5516
5519
  wexaccountnumber: string,
5520
+ mfasecretstatus: MfaSecretStatus,
5517
5521
  }
5518
5522
  }
5519
5523
 
@@ -5820,6 +5824,32 @@ export namespace InternalValidatePinRequest {
5820
5824
  }
5821
5825
  }
5822
5826
 
5827
+ export class InternalValidateMfaOtpRequest extends jspb.Message {
5828
+ getUserid(): number;
5829
+ setUserid(value: number): InternalValidateMfaOtpRequest;
5830
+
5831
+ getOtp(): string;
5832
+ setOtp(value: string): InternalValidateMfaOtpRequest;
5833
+
5834
+ getOtpsource(): OtpSource;
5835
+ setOtpsource(value: OtpSource): InternalValidateMfaOtpRequest;
5836
+
5837
+ serializeBinary(): Uint8Array;
5838
+ toObject(includeInstance?: boolean): InternalValidateMfaOtpRequest.AsObject;
5839
+ static toObject(includeInstance: boolean, msg: InternalValidateMfaOtpRequest): InternalValidateMfaOtpRequest.AsObject;
5840
+ static serializeBinaryToWriter(message: InternalValidateMfaOtpRequest, writer: jspb.BinaryWriter): void;
5841
+ static deserializeBinary(bytes: Uint8Array): InternalValidateMfaOtpRequest;
5842
+ static deserializeBinaryFromReader(message: InternalValidateMfaOtpRequest, reader: jspb.BinaryReader): InternalValidateMfaOtpRequest;
5843
+ }
5844
+
5845
+ export namespace InternalValidateMfaOtpRequest {
5846
+ export type AsObject = {
5847
+ userid: number,
5848
+ otp: string,
5849
+ otpsource: OtpSource,
5850
+ }
5851
+ }
5852
+
5823
5853
  export class ValidateVerificationCodeEmailRequest extends jspb.Message {
5824
5854
  getEmail(): string;
5825
5855
  setEmail(value: string): ValidateVerificationCodeEmailRequest;
@@ -6411,6 +6441,8 @@ export enum MfaSecretStatus {
6411
6441
  export enum OtpSource {
6412
6442
  AUTHENTICATOR = 0,
6413
6443
  RECOVERY_CODE = 1,
6444
+ EMAIL = 2,
6445
+ SMS = 3,
6414
6446
  }
6415
6447
  export enum AppAccountType {
6416
6448
  ACCOUNT_TYPE_UNSPECIFIED = 0,
@@ -103,6 +103,7 @@ goog.exportSymbol('proto.sniipuserservice.GetUserPassportsResponse', null, globa
103
103
  goog.exportSymbol('proto.sniipuserservice.GetUserStatusRequest', null, global);
104
104
  goog.exportSymbol('proto.sniipuserservice.GetUserStatusResponse', null, global);
105
105
  goog.exportSymbol('proto.sniipuserservice.GiveFeedbackRequest', null, global);
106
+ goog.exportSymbol('proto.sniipuserservice.InternalValidateMfaOtpRequest', null, global);
106
107
  goog.exportSymbol('proto.sniipuserservice.InternalValidatePasswordRequest', null, global);
107
108
  goog.exportSymbol('proto.sniipuserservice.InternalValidatePinRequest', null, global);
108
109
  goog.exportSymbol('proto.sniipuserservice.IsEmailVerifiedRequest', null, global);
@@ -4294,6 +4295,27 @@ if (goog.DEBUG && !COMPILED) {
4294
4295
  */
4295
4296
  proto.sniipuserservice.InternalValidatePinRequest.displayName = 'proto.sniipuserservice.InternalValidatePinRequest';
4296
4297
  }
4298
+ /**
4299
+ * Generated by JsPbCodeGenerator.
4300
+ * @param {Array=} opt_data Optional initial data array, typically from a
4301
+ * server response, or constructed directly in Javascript. The array is used
4302
+ * in place and becomes part of the constructed object. It is not cloned.
4303
+ * If no data is provided, the constructed object will be empty, but still
4304
+ * valid.
4305
+ * @extends {jspb.Message}
4306
+ * @constructor
4307
+ */
4308
+ proto.sniipuserservice.InternalValidateMfaOtpRequest = function(opt_data) {
4309
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4310
+ };
4311
+ goog.inherits(proto.sniipuserservice.InternalValidateMfaOtpRequest, jspb.Message);
4312
+ if (goog.DEBUG && !COMPILED) {
4313
+ /**
4314
+ * @public
4315
+ * @override
4316
+ */
4317
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.displayName = 'proto.sniipuserservice.InternalValidateMfaOtpRequest';
4318
+ }
4297
4319
  /**
4298
4320
  * Generated by JsPbCodeGenerator.
4299
4321
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -44722,7 +44744,8 @@ proto.sniipuserservice.UserProfile.toObject = function(includeInstance, msg) {
44722
44744
  appaccounttype: jspb.Message.getFieldWithDefault(msg, 28, 0),
44723
44745
  wexusername: jspb.Message.getFieldWithDefault(msg, 29, ""),
44724
44746
  wexuserid: jspb.Message.getFieldWithDefault(msg, 30, ""),
44725
- wexaccountnumber: jspb.Message.getFieldWithDefault(msg, 31, "")
44747
+ wexaccountnumber: jspb.Message.getFieldWithDefault(msg, 31, ""),
44748
+ mfasecretstatus: jspb.Message.getFieldWithDefault(msg, 32, 0)
44726
44749
  };
44727
44750
 
44728
44751
  if (includeInstance) {
@@ -44884,6 +44907,10 @@ proto.sniipuserservice.UserProfile.deserializeBinaryFromReader = function(msg, r
44884
44907
  var value = /** @type {string} */ (reader.readString());
44885
44908
  msg.setWexaccountnumber(value);
44886
44909
  break;
44910
+ case 32:
44911
+ var value = /** @type {!proto.sniipuserservice.MfaSecretStatus} */ (reader.readEnum());
44912
+ msg.setMfasecretstatus(value);
44913
+ break;
44887
44914
  default:
44888
44915
  reader.skipField();
44889
44916
  break;
@@ -45131,6 +45158,13 @@ proto.sniipuserservice.UserProfile.serializeBinaryToWriter = function(message, w
45131
45158
  f
45132
45159
  );
45133
45160
  }
45161
+ f = message.getMfasecretstatus();
45162
+ if (f !== 0.0) {
45163
+ writer.writeEnum(
45164
+ 32,
45165
+ f
45166
+ );
45167
+ }
45134
45168
  };
45135
45169
 
45136
45170
 
@@ -45712,6 +45746,24 @@ proto.sniipuserservice.UserProfile.prototype.setWexaccountnumber = function(valu
45712
45746
  };
45713
45747
 
45714
45748
 
45749
+ /**
45750
+ * optional MfaSecretStatus mfaSecretStatus = 32;
45751
+ * @return {!proto.sniipuserservice.MfaSecretStatus}
45752
+ */
45753
+ proto.sniipuserservice.UserProfile.prototype.getMfasecretstatus = function() {
45754
+ return /** @type {!proto.sniipuserservice.MfaSecretStatus} */ (jspb.Message.getFieldWithDefault(this, 32, 0));
45755
+ };
45756
+
45757
+
45758
+ /**
45759
+ * @param {!proto.sniipuserservice.MfaSecretStatus} value
45760
+ * @return {!proto.sniipuserservice.UserProfile} returns this
45761
+ */
45762
+ proto.sniipuserservice.UserProfile.prototype.setMfasecretstatus = function(value) {
45763
+ return jspb.Message.setProto3EnumField(this, 32, value);
45764
+ };
45765
+
45766
+
45715
45767
 
45716
45768
  /**
45717
45769
  * List of repeated fields within this message type.
@@ -47973,6 +48025,196 @@ proto.sniipuserservice.InternalValidatePinRequest.prototype.setUserid = function
47973
48025
 
47974
48026
 
47975
48027
 
48028
+ if (jspb.Message.GENERATE_TO_OBJECT) {
48029
+ /**
48030
+ * Creates an object representation of this proto.
48031
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
48032
+ * Optional fields that are not set will be set to undefined.
48033
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
48034
+ * For the list of reserved names please see:
48035
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
48036
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
48037
+ * JSPB instance for transitional soy proto support:
48038
+ * http://goto/soy-param-migration
48039
+ * @return {!Object}
48040
+ */
48041
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.toObject = function(opt_includeInstance) {
48042
+ return proto.sniipuserservice.InternalValidateMfaOtpRequest.toObject(opt_includeInstance, this);
48043
+ };
48044
+
48045
+
48046
+ /**
48047
+ * Static version of the {@see toObject} method.
48048
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
48049
+ * the JSPB instance for transitional soy proto support:
48050
+ * http://goto/soy-param-migration
48051
+ * @param {!proto.sniipuserservice.InternalValidateMfaOtpRequest} msg The msg instance to transform.
48052
+ * @return {!Object}
48053
+ * @suppress {unusedLocalVariables} f is only used for nested messages
48054
+ */
48055
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.toObject = function(includeInstance, msg) {
48056
+ var f, obj = {
48057
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
48058
+ otp: jspb.Message.getFieldWithDefault(msg, 2, ""),
48059
+ otpsource: jspb.Message.getFieldWithDefault(msg, 3, 0)
48060
+ };
48061
+
48062
+ if (includeInstance) {
48063
+ obj.$jspbMessageInstance = msg;
48064
+ }
48065
+ return obj;
48066
+ };
48067
+ }
48068
+
48069
+
48070
+ /**
48071
+ * Deserializes binary data (in protobuf wire format).
48072
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
48073
+ * @return {!proto.sniipuserservice.InternalValidateMfaOtpRequest}
48074
+ */
48075
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.deserializeBinary = function(bytes) {
48076
+ var reader = new jspb.BinaryReader(bytes);
48077
+ var msg = new proto.sniipuserservice.InternalValidateMfaOtpRequest;
48078
+ return proto.sniipuserservice.InternalValidateMfaOtpRequest.deserializeBinaryFromReader(msg, reader);
48079
+ };
48080
+
48081
+
48082
+ /**
48083
+ * Deserializes binary data (in protobuf wire format) from the
48084
+ * given reader into the given message object.
48085
+ * @param {!proto.sniipuserservice.InternalValidateMfaOtpRequest} msg The message object to deserialize into.
48086
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
48087
+ * @return {!proto.sniipuserservice.InternalValidateMfaOtpRequest}
48088
+ */
48089
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.deserializeBinaryFromReader = function(msg, reader) {
48090
+ while (reader.nextField()) {
48091
+ if (reader.isEndGroup()) {
48092
+ break;
48093
+ }
48094
+ var field = reader.getFieldNumber();
48095
+ switch (field) {
48096
+ case 1:
48097
+ var value = /** @type {number} */ (reader.readInt64());
48098
+ msg.setUserid(value);
48099
+ break;
48100
+ case 2:
48101
+ var value = /** @type {string} */ (reader.readString());
48102
+ msg.setOtp(value);
48103
+ break;
48104
+ case 3:
48105
+ var value = /** @type {!proto.sniipuserservice.OtpSource} */ (reader.readEnum());
48106
+ msg.setOtpsource(value);
48107
+ break;
48108
+ default:
48109
+ reader.skipField();
48110
+ break;
48111
+ }
48112
+ }
48113
+ return msg;
48114
+ };
48115
+
48116
+
48117
+ /**
48118
+ * Serializes the message to binary data (in protobuf wire format).
48119
+ * @return {!Uint8Array}
48120
+ */
48121
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.serializeBinary = function() {
48122
+ var writer = new jspb.BinaryWriter();
48123
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.serializeBinaryToWriter(this, writer);
48124
+ return writer.getResultBuffer();
48125
+ };
48126
+
48127
+
48128
+ /**
48129
+ * Serializes the given message to binary data (in protobuf wire
48130
+ * format), writing to the given BinaryWriter.
48131
+ * @param {!proto.sniipuserservice.InternalValidateMfaOtpRequest} message
48132
+ * @param {!jspb.BinaryWriter} writer
48133
+ * @suppress {unusedLocalVariables} f is only used for nested messages
48134
+ */
48135
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.serializeBinaryToWriter = function(message, writer) {
48136
+ var f = undefined;
48137
+ f = message.getUserid();
48138
+ if (f !== 0) {
48139
+ writer.writeInt64(
48140
+ 1,
48141
+ f
48142
+ );
48143
+ }
48144
+ f = message.getOtp();
48145
+ if (f.length > 0) {
48146
+ writer.writeString(
48147
+ 2,
48148
+ f
48149
+ );
48150
+ }
48151
+ f = message.getOtpsource();
48152
+ if (f !== 0.0) {
48153
+ writer.writeEnum(
48154
+ 3,
48155
+ f
48156
+ );
48157
+ }
48158
+ };
48159
+
48160
+
48161
+ /**
48162
+ * optional int64 userId = 1;
48163
+ * @return {number}
48164
+ */
48165
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.getUserid = function() {
48166
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
48167
+ };
48168
+
48169
+
48170
+ /**
48171
+ * @param {number} value
48172
+ * @return {!proto.sniipuserservice.InternalValidateMfaOtpRequest} returns this
48173
+ */
48174
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.setUserid = function(value) {
48175
+ return jspb.Message.setProto3IntField(this, 1, value);
48176
+ };
48177
+
48178
+
48179
+ /**
48180
+ * optional string otp = 2;
48181
+ * @return {string}
48182
+ */
48183
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.getOtp = function() {
48184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
48185
+ };
48186
+
48187
+
48188
+ /**
48189
+ * @param {string} value
48190
+ * @return {!proto.sniipuserservice.InternalValidateMfaOtpRequest} returns this
48191
+ */
48192
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.setOtp = function(value) {
48193
+ return jspb.Message.setProto3StringField(this, 2, value);
48194
+ };
48195
+
48196
+
48197
+ /**
48198
+ * optional OtpSource otpSource = 3;
48199
+ * @return {!proto.sniipuserservice.OtpSource}
48200
+ */
48201
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.getOtpsource = function() {
48202
+ return /** @type {!proto.sniipuserservice.OtpSource} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
48203
+ };
48204
+
48205
+
48206
+ /**
48207
+ * @param {!proto.sniipuserservice.OtpSource} value
48208
+ * @return {!proto.sniipuserservice.InternalValidateMfaOtpRequest} returns this
48209
+ */
48210
+ proto.sniipuserservice.InternalValidateMfaOtpRequest.prototype.setOtpsource = function(value) {
48211
+ return jspb.Message.setProto3EnumField(this, 3, value);
48212
+ };
48213
+
48214
+
48215
+
48216
+
48217
+
47976
48218
  if (jspb.Message.GENERATE_TO_OBJECT) {
47977
48219
  /**
47978
48220
  * Creates an object representation of this proto.
@@ -52133,7 +52375,9 @@ proto.sniipuserservice.MfaSecretStatus = {
52133
52375
  */
52134
52376
  proto.sniipuserservice.OtpSource = {
52135
52377
  AUTHENTICATOR: 0,
52136
- RECOVERY_CODE: 1
52378
+ RECOVERY_CODE: 1,
52379
+ EMAIL: 2,
52380
+ SMS: 3
52137
52381
  };
52138
52382
 
52139
52383
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "25.10.13596",
3
+ "version": "25.10.13629",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",