@sniipwebmaster/user-service-client-grpcweb-ts 26.3.14242 → 26.4.14295

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.
@@ -6576,5 +6576,48 @@ export class SniipUserServiceServiceClient {
6576
6576
  this.methodDescriptorRecordKycDownload);
6577
6577
  }
6578
6578
 
6579
+ methodDescriptorGetCallerIp = new grpcWeb.MethodDescriptor(
6580
+ '/sniipuserservice.SniipUserServiceService/GetCallerIp',
6581
+ grpcWeb.MethodType.UNARY,
6582
+ google_protobuf_empty_pb.Empty,
6583
+ service_pb.GetCallerIpResponse,
6584
+ (request: google_protobuf_empty_pb.Empty) => {
6585
+ return request.serializeBinary();
6586
+ },
6587
+ service_pb.GetCallerIpResponse.deserializeBinary
6588
+ );
6589
+
6590
+ getCallerIp(
6591
+ request: google_protobuf_empty_pb.Empty,
6592
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.GetCallerIpResponse>;
6593
+
6594
+ getCallerIp(
6595
+ request: google_protobuf_empty_pb.Empty,
6596
+ metadata: grpcWeb.Metadata | null,
6597
+ callback: (err: grpcWeb.RpcError,
6598
+ response: service_pb.GetCallerIpResponse) => void): grpcWeb.ClientReadableStream<service_pb.GetCallerIpResponse>;
6599
+
6600
+ getCallerIp(
6601
+ request: google_protobuf_empty_pb.Empty,
6602
+ metadata?: grpcWeb.Metadata | null,
6603
+ callback?: (err: grpcWeb.RpcError,
6604
+ response: service_pb.GetCallerIpResponse) => void) {
6605
+ if (callback !== undefined) {
6606
+ return this.client_.rpcCall(
6607
+ this.hostname_ +
6608
+ '/sniipuserservice.SniipUserServiceService/GetCallerIp',
6609
+ request,
6610
+ metadata || {},
6611
+ this.methodDescriptorGetCallerIp,
6612
+ callback);
6613
+ }
6614
+ return this.client_.unaryCall(
6615
+ this.hostname_ +
6616
+ '/sniipuserservice.SniipUserServiceService/GetCallerIp',
6617
+ request,
6618
+ metadata || {},
6619
+ this.methodDescriptorGetCallerIp);
6620
+ }
6621
+
6579
6622
  }
6580
6623
 
@@ -6577,6 +6577,38 @@ export namespace RecordKycDownloadResponse {
6577
6577
  }
6578
6578
  }
6579
6579
 
6580
+ export class GetCallerIpResponse extends jspb.Message {
6581
+ getResponseCode(): ResponseCode | undefined;
6582
+ setResponseCode(value?: ResponseCode): GetCallerIpResponse;
6583
+ hasResponseCode(): boolean;
6584
+ clearResponseCode(): GetCallerIpResponse;
6585
+
6586
+ getForwardedForIp(): string;
6587
+ setForwardedForIp(value: string): GetCallerIpResponse;
6588
+
6589
+ getTransportIp(): string;
6590
+ setTransportIp(value: string): GetCallerIpResponse;
6591
+
6592
+ getResolvedIp(): string;
6593
+ setResolvedIp(value: string): GetCallerIpResponse;
6594
+
6595
+ serializeBinary(): Uint8Array;
6596
+ toObject(includeInstance?: boolean): GetCallerIpResponse.AsObject;
6597
+ static toObject(includeInstance: boolean, msg: GetCallerIpResponse): GetCallerIpResponse.AsObject;
6598
+ static serializeBinaryToWriter(message: GetCallerIpResponse, writer: jspb.BinaryWriter): void;
6599
+ static deserializeBinary(bytes: Uint8Array): GetCallerIpResponse;
6600
+ static deserializeBinaryFromReader(message: GetCallerIpResponse, reader: jspb.BinaryReader): GetCallerIpResponse;
6601
+ }
6602
+
6603
+ export namespace GetCallerIpResponse {
6604
+ export type AsObject = {
6605
+ responseCode?: ResponseCode.AsObject,
6606
+ forwardedForIp: string,
6607
+ transportIp: string,
6608
+ resolvedIp: string,
6609
+ }
6610
+ }
6611
+
6580
6612
  export enum KycUserStatus {
6581
6613
  KYC_USER_PENDING_REVIEW = 0,
6582
6614
  KYC_USER_VERIFIED = 1,
@@ -80,6 +80,7 @@ goog.exportSymbol('proto.sniipuserservice.File', null, global);
80
80
  goog.exportSymbol('proto.sniipuserservice.FileUploadRequest', null, global);
81
81
  goog.exportSymbol('proto.sniipuserservice.GetAssignedPermissionRolesRequest', null, global);
82
82
  goog.exportSymbol('proto.sniipuserservice.GetAvailablePermissionRolesRequest', null, global);
83
+ goog.exportSymbol('proto.sniipuserservice.GetCallerIpResponse', null, global);
83
84
  goog.exportSymbol('proto.sniipuserservice.GetDuplicatesUsersRequest', null, global);
84
85
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileByApiKeyRequest', null, global);
85
86
  goog.exportSymbol('proto.sniipuserservice.GetInternalProfileFromEmailRequest', null, global);
@@ -4868,6 +4869,27 @@ if (goog.DEBUG && !COMPILED) {
4868
4869
  */
4869
4870
  proto.sniipuserservice.RecordKycDownloadResponse.displayName = 'proto.sniipuserservice.RecordKycDownloadResponse';
4870
4871
  }
4872
+ /**
4873
+ * Generated by JsPbCodeGenerator.
4874
+ * @param {Array=} opt_data Optional initial data array, typically from a
4875
+ * server response, or constructed directly in Javascript. The array is used
4876
+ * in place and becomes part of the constructed object. It is not cloned.
4877
+ * If no data is provided, the constructed object will be empty, but still
4878
+ * valid.
4879
+ * @extends {jspb.Message}
4880
+ * @constructor
4881
+ */
4882
+ proto.sniipuserservice.GetCallerIpResponse = function(opt_data) {
4883
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4884
+ };
4885
+ goog.inherits(proto.sniipuserservice.GetCallerIpResponse, jspb.Message);
4886
+ if (goog.DEBUG && !COMPILED) {
4887
+ /**
4888
+ * @public
4889
+ * @override
4890
+ */
4891
+ proto.sniipuserservice.GetCallerIpResponse.displayName = 'proto.sniipuserservice.GetCallerIpResponse';
4892
+ }
4871
4893
 
4872
4894
 
4873
4895
 
@@ -53670,6 +53692,247 @@ proto.sniipuserservice.RecordKycDownloadResponse.prototype.setAccountLocked = fu
53670
53692
  };
53671
53693
 
53672
53694
 
53695
+
53696
+
53697
+
53698
+ if (jspb.Message.GENERATE_TO_OBJECT) {
53699
+ /**
53700
+ * Creates an object representation of this proto.
53701
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
53702
+ * Optional fields that are not set will be set to undefined.
53703
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
53704
+ * For the list of reserved names please see:
53705
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
53706
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
53707
+ * JSPB instance for transitional soy proto support:
53708
+ * http://goto/soy-param-migration
53709
+ * @return {!Object}
53710
+ */
53711
+ proto.sniipuserservice.GetCallerIpResponse.prototype.toObject = function(opt_includeInstance) {
53712
+ return proto.sniipuserservice.GetCallerIpResponse.toObject(opt_includeInstance, this);
53713
+ };
53714
+
53715
+
53716
+ /**
53717
+ * Static version of the {@see toObject} method.
53718
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
53719
+ * the JSPB instance for transitional soy proto support:
53720
+ * http://goto/soy-param-migration
53721
+ * @param {!proto.sniipuserservice.GetCallerIpResponse} msg The msg instance to transform.
53722
+ * @return {!Object}
53723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53724
+ */
53725
+ proto.sniipuserservice.GetCallerIpResponse.toObject = function(includeInstance, msg) {
53726
+ var f, obj = {
53727
+ responseCode: (f = msg.getResponseCode()) && proto.sniipuserservice.ResponseCode.toObject(includeInstance, f),
53728
+ forwardedForIp: jspb.Message.getFieldWithDefault(msg, 2, ""),
53729
+ transportIp: jspb.Message.getFieldWithDefault(msg, 3, ""),
53730
+ resolvedIp: jspb.Message.getFieldWithDefault(msg, 4, "")
53731
+ };
53732
+
53733
+ if (includeInstance) {
53734
+ obj.$jspbMessageInstance = msg;
53735
+ }
53736
+ return obj;
53737
+ };
53738
+ }
53739
+
53740
+
53741
+ /**
53742
+ * Deserializes binary data (in protobuf wire format).
53743
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
53744
+ * @return {!proto.sniipuserservice.GetCallerIpResponse}
53745
+ */
53746
+ proto.sniipuserservice.GetCallerIpResponse.deserializeBinary = function(bytes) {
53747
+ var reader = new jspb.BinaryReader(bytes);
53748
+ var msg = new proto.sniipuserservice.GetCallerIpResponse;
53749
+ return proto.sniipuserservice.GetCallerIpResponse.deserializeBinaryFromReader(msg, reader);
53750
+ };
53751
+
53752
+
53753
+ /**
53754
+ * Deserializes binary data (in protobuf wire format) from the
53755
+ * given reader into the given message object.
53756
+ * @param {!proto.sniipuserservice.GetCallerIpResponse} msg The message object to deserialize into.
53757
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
53758
+ * @return {!proto.sniipuserservice.GetCallerIpResponse}
53759
+ */
53760
+ proto.sniipuserservice.GetCallerIpResponse.deserializeBinaryFromReader = function(msg, reader) {
53761
+ while (reader.nextField()) {
53762
+ if (reader.isEndGroup()) {
53763
+ break;
53764
+ }
53765
+ var field = reader.getFieldNumber();
53766
+ switch (field) {
53767
+ case 1:
53768
+ var value = new proto.sniipuserservice.ResponseCode;
53769
+ reader.readMessage(value,proto.sniipuserservice.ResponseCode.deserializeBinaryFromReader);
53770
+ msg.setResponseCode(value);
53771
+ break;
53772
+ case 2:
53773
+ var value = /** @type {string} */ (reader.readString());
53774
+ msg.setForwardedForIp(value);
53775
+ break;
53776
+ case 3:
53777
+ var value = /** @type {string} */ (reader.readString());
53778
+ msg.setTransportIp(value);
53779
+ break;
53780
+ case 4:
53781
+ var value = /** @type {string} */ (reader.readString());
53782
+ msg.setResolvedIp(value);
53783
+ break;
53784
+ default:
53785
+ reader.skipField();
53786
+ break;
53787
+ }
53788
+ }
53789
+ return msg;
53790
+ };
53791
+
53792
+
53793
+ /**
53794
+ * Serializes the message to binary data (in protobuf wire format).
53795
+ * @return {!Uint8Array}
53796
+ */
53797
+ proto.sniipuserservice.GetCallerIpResponse.prototype.serializeBinary = function() {
53798
+ var writer = new jspb.BinaryWriter();
53799
+ proto.sniipuserservice.GetCallerIpResponse.serializeBinaryToWriter(this, writer);
53800
+ return writer.getResultBuffer();
53801
+ };
53802
+
53803
+
53804
+ /**
53805
+ * Serializes the given message to binary data (in protobuf wire
53806
+ * format), writing to the given BinaryWriter.
53807
+ * @param {!proto.sniipuserservice.GetCallerIpResponse} message
53808
+ * @param {!jspb.BinaryWriter} writer
53809
+ * @suppress {unusedLocalVariables} f is only used for nested messages
53810
+ */
53811
+ proto.sniipuserservice.GetCallerIpResponse.serializeBinaryToWriter = function(message, writer) {
53812
+ var f = undefined;
53813
+ f = message.getResponseCode();
53814
+ if (f != null) {
53815
+ writer.writeMessage(
53816
+ 1,
53817
+ f,
53818
+ proto.sniipuserservice.ResponseCode.serializeBinaryToWriter
53819
+ );
53820
+ }
53821
+ f = message.getForwardedForIp();
53822
+ if (f.length > 0) {
53823
+ writer.writeString(
53824
+ 2,
53825
+ f
53826
+ );
53827
+ }
53828
+ f = message.getTransportIp();
53829
+ if (f.length > 0) {
53830
+ writer.writeString(
53831
+ 3,
53832
+ f
53833
+ );
53834
+ }
53835
+ f = message.getResolvedIp();
53836
+ if (f.length > 0) {
53837
+ writer.writeString(
53838
+ 4,
53839
+ f
53840
+ );
53841
+ }
53842
+ };
53843
+
53844
+
53845
+ /**
53846
+ * optional ResponseCode response_code = 1;
53847
+ * @return {?proto.sniipuserservice.ResponseCode}
53848
+ */
53849
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getResponseCode = function() {
53850
+ return /** @type{?proto.sniipuserservice.ResponseCode} */ (
53851
+ jspb.Message.getWrapperField(this, proto.sniipuserservice.ResponseCode, 1));
53852
+ };
53853
+
53854
+
53855
+ /**
53856
+ * @param {?proto.sniipuserservice.ResponseCode|undefined} value
53857
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53858
+ */
53859
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setResponseCode = function(value) {
53860
+ return jspb.Message.setWrapperField(this, 1, value);
53861
+ };
53862
+
53863
+
53864
+ /**
53865
+ * Clears the message field making it undefined.
53866
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53867
+ */
53868
+ proto.sniipuserservice.GetCallerIpResponse.prototype.clearResponseCode = function() {
53869
+ return this.setResponseCode(undefined);
53870
+ };
53871
+
53872
+
53873
+ /**
53874
+ * Returns whether this field is set.
53875
+ * @return {boolean}
53876
+ */
53877
+ proto.sniipuserservice.GetCallerIpResponse.prototype.hasResponseCode = function() {
53878
+ return jspb.Message.getField(this, 1) != null;
53879
+ };
53880
+
53881
+
53882
+ /**
53883
+ * optional string forwarded_for_ip = 2;
53884
+ * @return {string}
53885
+ */
53886
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getForwardedForIp = function() {
53887
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
53888
+ };
53889
+
53890
+
53891
+ /**
53892
+ * @param {string} value
53893
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53894
+ */
53895
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setForwardedForIp = function(value) {
53896
+ return jspb.Message.setProto3StringField(this, 2, value);
53897
+ };
53898
+
53899
+
53900
+ /**
53901
+ * optional string transport_ip = 3;
53902
+ * @return {string}
53903
+ */
53904
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getTransportIp = function() {
53905
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
53906
+ };
53907
+
53908
+
53909
+ /**
53910
+ * @param {string} value
53911
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53912
+ */
53913
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setTransportIp = function(value) {
53914
+ return jspb.Message.setProto3StringField(this, 3, value);
53915
+ };
53916
+
53917
+
53918
+ /**
53919
+ * optional string resolved_ip = 4;
53920
+ * @return {string}
53921
+ */
53922
+ proto.sniipuserservice.GetCallerIpResponse.prototype.getResolvedIp = function() {
53923
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
53924
+ };
53925
+
53926
+
53927
+ /**
53928
+ * @param {string} value
53929
+ * @return {!proto.sniipuserservice.GetCallerIpResponse} returns this
53930
+ */
53931
+ proto.sniipuserservice.GetCallerIpResponse.prototype.setResolvedIp = function(value) {
53932
+ return jspb.Message.setProto3StringField(this, 4, value);
53933
+ };
53934
+
53935
+
53673
53936
  /**
53674
53937
  * @enum {number}
53675
53938
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/user-service-client-grpcweb-ts",
3
- "version": "26.3.14242",
3
+ "version": "26.4.14295",
4
4
  "description": "user-service-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",