protobuf-platform 1.2.310 → 1.2.311
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/package.json +1 -1
- package/user/user.proto +222 -0
- package/user/user_grpc_pb.js +446 -0
- package/user/user_pb.js +17395 -8422
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -47,10 +47,31 @@ service User {
|
|
|
47
47
|
rpc getUserSegmentIds(GetUserSegmentIdsRequest) returns (UserSegmentIdsResponse);
|
|
48
48
|
//Risk Statuses
|
|
49
49
|
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
|
50
|
+
//Manual user risk profile
|
|
51
|
+
rpc readUserRiskProfile(ReadUserRiskProfileRequest) returns (UserRiskProfileResponse);
|
|
52
|
+
rpc updateUserRiskProfile(UpdateUserRiskProfileRequest) returns (UserRiskProfileResponse);
|
|
53
|
+
//Manual user restrictions
|
|
54
|
+
rpc readUserManualRestrictions(ReadUserManualRestrictionsRequest) returns (UserManualRestrictionsResponse);
|
|
55
|
+
rpc updateUserManualRestriction(UpdateUserManualRestrictionRequest) returns (UserManualRestrictionItem);
|
|
56
|
+
//Calculated user restrictions
|
|
57
|
+
rpc readUserCalculatedRestrictions(ReadUserCalculatedRestrictionsRequest) returns (UserCalculatedRestrictionsResponse);
|
|
58
|
+
//Risk permission matrix
|
|
59
|
+
rpc readListRiskPermissionMatrices(PaginationRequest) returns (RiskPermissionMatricesResponse);
|
|
60
|
+
rpc readRiskPermissionMatrix(ReadRiskPermissionMatrixRequest) returns (RiskPermissionMatrixItem);
|
|
61
|
+
rpc updateRiskPermissionMatrix(UpdateRiskPermissionMatrixRequest) returns (RiskPermissionMatrixItem);
|
|
62
|
+
rpc readRiskPermissionMatrixLimits(ReadRiskPermissionMatrixLimitsRequest) returns (RiskPermissionMatrixLimitsResponse);
|
|
63
|
+
rpc updateRiskPermissionMatrixLimit(UpdateRiskPermissionMatrixLimitRequest) returns (RiskPermissionMatrixLimitItem);
|
|
50
64
|
//Categories
|
|
51
65
|
rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
|
|
52
66
|
//Verification Statuses
|
|
53
67
|
rpc readListVerificationStatuses(PaginationRequest) returns (VerificationStatusItemsResponse);
|
|
68
|
+
//User KYC profile
|
|
69
|
+
rpc readUserKycProfile(ReadUserKycProfileRequest) returns (UserKycProfileResponse);
|
|
70
|
+
rpc updateUserKycProfile(UpdateUserKycProfileRequest) returns (UserKycProfileResponse);
|
|
71
|
+
//User KYC documents
|
|
72
|
+
rpc readUserKycDocuments(ReadUserKycDocumentsRequest) returns (UserKycDocumentsResponse);
|
|
73
|
+
rpc createUserKycDocumentMetadata(CreateUserKycDocumentMetadataRequest) returns (UserKycDocumentItem);
|
|
74
|
+
rpc updateUserKycDocumentReview(UpdateUserKycDocumentReviewRequest) returns (UserKycDocumentItem);
|
|
54
75
|
//Dashboard
|
|
55
76
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
|
56
77
|
//Notes
|
|
@@ -617,6 +638,142 @@ message RiskStatusItemsResponse {
|
|
|
617
638
|
optional int32 total_pages = 2;
|
|
618
639
|
optional int32 total_items = 3;
|
|
619
640
|
}
|
|
641
|
+
message ReadUserRiskProfileRequest {
|
|
642
|
+
int32 user_id = 1;
|
|
643
|
+
}
|
|
644
|
+
message UpdateUserRiskProfileRequest {
|
|
645
|
+
int32 user_id = 1;
|
|
646
|
+
string risk_level = 2;
|
|
647
|
+
string reason = 3;
|
|
648
|
+
}
|
|
649
|
+
message UserRiskProfileResponse {
|
|
650
|
+
int32 user_id = 1;
|
|
651
|
+
optional string risk_level = 2;
|
|
652
|
+
optional string reason = 3;
|
|
653
|
+
optional string source = 4;
|
|
654
|
+
optional int32 assigned_by = 5;
|
|
655
|
+
optional string created_at = 6;
|
|
656
|
+
optional string updated_at = 7;
|
|
657
|
+
}
|
|
658
|
+
message ReadUserManualRestrictionsRequest {
|
|
659
|
+
int32 user_id = 1;
|
|
660
|
+
}
|
|
661
|
+
message UserManualRestrictionsResponse {
|
|
662
|
+
int32 user_id = 1;
|
|
663
|
+
repeated UserManualRestrictionItem restrictions = 2;
|
|
664
|
+
}
|
|
665
|
+
message UserManualRestrictionItem {
|
|
666
|
+
int32 user_id = 1;
|
|
667
|
+
string restriction_type = 2;
|
|
668
|
+
bool is_blocked = 3;
|
|
669
|
+
optional string reason = 4;
|
|
670
|
+
optional string source = 5;
|
|
671
|
+
optional int32 created_by = 6;
|
|
672
|
+
optional int32 updated_by = 7;
|
|
673
|
+
optional string created_at = 8;
|
|
674
|
+
optional string updated_at = 9;
|
|
675
|
+
}
|
|
676
|
+
message UpdateUserManualRestrictionRequest {
|
|
677
|
+
int32 user_id = 1;
|
|
678
|
+
string restriction_type = 2;
|
|
679
|
+
bool is_blocked = 3;
|
|
680
|
+
optional string reason = 4;
|
|
681
|
+
}
|
|
682
|
+
message ReadUserCalculatedRestrictionsRequest {
|
|
683
|
+
int32 user_id = 1;
|
|
684
|
+
optional string restriction_type = 2;
|
|
685
|
+
optional string operation_type = 3;
|
|
686
|
+
optional string currency = 4;
|
|
687
|
+
optional int64 amount_minor = 5;
|
|
688
|
+
optional int32 currency_scale = 6;
|
|
689
|
+
}
|
|
690
|
+
message UserCalculatedRestrictionsResponse {
|
|
691
|
+
int32 user_id = 1;
|
|
692
|
+
optional string risk_level = 2;
|
|
693
|
+
repeated UserCalculatedRestrictionItem restrictions = 3;
|
|
694
|
+
}
|
|
695
|
+
message UserCalculatedRestrictionItem {
|
|
696
|
+
string restriction_type = 1;
|
|
697
|
+
bool allowed = 2;
|
|
698
|
+
optional string source = 3;
|
|
699
|
+
optional string reason = 4;
|
|
700
|
+
optional CalculatedRestrictionLimit limit = 5;
|
|
701
|
+
}
|
|
702
|
+
message CalculatedRestrictionLimit {
|
|
703
|
+
int64 amount_minor = 1;
|
|
704
|
+
string currency = 2;
|
|
705
|
+
int32 currency_scale = 3;
|
|
706
|
+
}
|
|
707
|
+
message ReadRiskPermissionMatrixRequest {
|
|
708
|
+
string risk_level = 1;
|
|
709
|
+
}
|
|
710
|
+
message UpdateRiskPermissionMatrixRequest {
|
|
711
|
+
string risk_level = 1;
|
|
712
|
+
bool can_deposit = 2;
|
|
713
|
+
bool can_withdraw = 3;
|
|
714
|
+
bool can_play_casino = 4;
|
|
715
|
+
bool can_play_sport = 5;
|
|
716
|
+
bool can_play_poker = 6;
|
|
717
|
+
bool can_use_bonus = 7;
|
|
718
|
+
bool can_use_cashback = 8;
|
|
719
|
+
bool can_use_promo_code = 9;
|
|
720
|
+
bool can_join_tournament = 10;
|
|
721
|
+
bool can_transfer = 11;
|
|
722
|
+
bool can_crypto_convert = 12;
|
|
723
|
+
bool can_use_affiliate_features = 13;
|
|
724
|
+
bool is_user_blocked = 14;
|
|
725
|
+
bool is_active = 15;
|
|
726
|
+
}
|
|
727
|
+
message RiskPermissionMatrixItem {
|
|
728
|
+
string risk_level = 1;
|
|
729
|
+
bool can_deposit = 2;
|
|
730
|
+
bool can_withdraw = 3;
|
|
731
|
+
bool can_play_casino = 4;
|
|
732
|
+
bool can_play_sport = 5;
|
|
733
|
+
bool can_play_poker = 6;
|
|
734
|
+
bool can_use_bonus = 7;
|
|
735
|
+
bool can_use_cashback = 8;
|
|
736
|
+
bool can_use_promo_code = 9;
|
|
737
|
+
bool can_join_tournament = 10;
|
|
738
|
+
bool can_transfer = 11;
|
|
739
|
+
bool can_crypto_convert = 12;
|
|
740
|
+
bool can_use_affiliate_features = 13;
|
|
741
|
+
bool is_user_blocked = 14;
|
|
742
|
+
bool is_active = 15;
|
|
743
|
+
optional string created_at = 16;
|
|
744
|
+
optional string updated_at = 17;
|
|
745
|
+
}
|
|
746
|
+
message RiskPermissionMatricesResponse {
|
|
747
|
+
repeated RiskPermissionMatrixItem items = 1;
|
|
748
|
+
optional int32 total_pages = 2;
|
|
749
|
+
optional int32 total_items = 3;
|
|
750
|
+
}
|
|
751
|
+
message ReadRiskPermissionMatrixLimitsRequest {
|
|
752
|
+
string risk_level = 1;
|
|
753
|
+
optional string operation_type = 2;
|
|
754
|
+
optional string currency = 3;
|
|
755
|
+
}
|
|
756
|
+
message RiskPermissionMatrixLimitsResponse {
|
|
757
|
+
repeated RiskPermissionMatrixLimitItem items = 1;
|
|
758
|
+
}
|
|
759
|
+
message RiskPermissionMatrixLimitItem {
|
|
760
|
+
string risk_level = 1;
|
|
761
|
+
string operation_type = 2;
|
|
762
|
+
int64 amount_minor = 3;
|
|
763
|
+
string currency = 4;
|
|
764
|
+
int32 currency_scale = 5;
|
|
765
|
+
bool is_active = 6;
|
|
766
|
+
optional string created_at = 7;
|
|
767
|
+
optional string updated_at = 8;
|
|
768
|
+
}
|
|
769
|
+
message UpdateRiskPermissionMatrixLimitRequest {
|
|
770
|
+
string risk_level = 1;
|
|
771
|
+
string operation_type = 2;
|
|
772
|
+
int64 amount_minor = 3;
|
|
773
|
+
string currency = 4;
|
|
774
|
+
int32 currency_scale = 5;
|
|
775
|
+
bool is_active = 6;
|
|
776
|
+
}
|
|
620
777
|
message CategoryItem {
|
|
621
778
|
int32 id = 1;
|
|
622
779
|
string title = 2;
|
|
@@ -637,6 +794,71 @@ message VerificationStatusItemsResponse {
|
|
|
637
794
|
optional int32 total_pages = 2;
|
|
638
795
|
optional int32 total_items = 3;
|
|
639
796
|
}
|
|
797
|
+
message ReadUserKycProfileRequest {
|
|
798
|
+
int32 user_id = 1;
|
|
799
|
+
}
|
|
800
|
+
message UpdateUserKycProfileRequest {
|
|
801
|
+
int32 user_id = 1;
|
|
802
|
+
string kyc_status = 2;
|
|
803
|
+
optional string reason = 3;
|
|
804
|
+
}
|
|
805
|
+
message UserKycProfileResponse {
|
|
806
|
+
int32 user_id = 1;
|
|
807
|
+
optional string kyc_status = 2;
|
|
808
|
+
optional string reason = 3;
|
|
809
|
+
optional string source = 4;
|
|
810
|
+
optional int32 updated_by = 5;
|
|
811
|
+
optional string created_at = 6;
|
|
812
|
+
optional string updated_at = 7;
|
|
813
|
+
}
|
|
814
|
+
message ReadUserKycDocumentsRequest {
|
|
815
|
+
int32 user_id = 1;
|
|
816
|
+
optional string document_type = 2;
|
|
817
|
+
optional string document_side = 3;
|
|
818
|
+
optional string status = 4;
|
|
819
|
+
}
|
|
820
|
+
message CreateUserKycDocumentMetadataRequest {
|
|
821
|
+
int32 user_id = 1;
|
|
822
|
+
string document_type = 2;
|
|
823
|
+
string document_side = 3;
|
|
824
|
+
optional string status = 4;
|
|
825
|
+
optional string reason = 5;
|
|
826
|
+
optional string source = 6;
|
|
827
|
+
optional int32 uploaded_by = 7;
|
|
828
|
+
optional string storage_provider = 8;
|
|
829
|
+
optional string storage_ref = 9;
|
|
830
|
+
optional string file_name = 10;
|
|
831
|
+
optional string mime_type = 11;
|
|
832
|
+
optional int64 file_size = 12;
|
|
833
|
+
}
|
|
834
|
+
message UpdateUserKycDocumentReviewRequest {
|
|
835
|
+
int32 id = 1;
|
|
836
|
+
string status = 2;
|
|
837
|
+
optional string reason = 3;
|
|
838
|
+
optional int32 reviewer_id = 4;
|
|
839
|
+
}
|
|
840
|
+
message UserKycDocumentItem {
|
|
841
|
+
int32 id = 1;
|
|
842
|
+
int32 user_id = 2;
|
|
843
|
+
string document_type = 3;
|
|
844
|
+
string document_side = 4;
|
|
845
|
+
string status = 5;
|
|
846
|
+
optional string reason = 6;
|
|
847
|
+
optional string source = 7;
|
|
848
|
+
optional int32 reviewer_id = 8;
|
|
849
|
+
optional int32 uploaded_by = 9;
|
|
850
|
+
optional string storage_provider = 10;
|
|
851
|
+
optional string storage_ref = 11;
|
|
852
|
+
optional string file_name = 12;
|
|
853
|
+
optional string mime_type = 13;
|
|
854
|
+
optional int64 file_size = 14;
|
|
855
|
+
optional string created_at = 15;
|
|
856
|
+
optional string updated_at = 16;
|
|
857
|
+
}
|
|
858
|
+
message UserKycDocumentsResponse {
|
|
859
|
+
int32 user_id = 1;
|
|
860
|
+
repeated UserKycDocumentItem documents = 2;
|
|
861
|
+
}
|
|
640
862
|
//Dashboard
|
|
641
863
|
message DashboardRequest {
|
|
642
864
|
string start_date = 1;
|