protobuf-platform 1.2.341 → 1.2.343
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 +77 -0
- package/user/user_grpc_pb.js +96 -2
- package/user/user_pb.js +3381 -257
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -67,6 +67,8 @@ service User {
|
|
|
67
67
|
rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
|
|
68
68
|
//Verification Statuses
|
|
69
69
|
rpc readListVerificationStatuses(PaginationRequest) returns (VerificationStatusItemsResponse);
|
|
70
|
+
// KYC: `kyc_status` is a platform canonical status (string). Typical values include none, pending, in_review, approved, rejected, resubmission_required, expired, failed, requiresReview, blocked — not enforced as enums here (for now).
|
|
71
|
+
// `provider_status` where present is a safe provider status code or label, not a raw provider payload. Raw provider payloads must not be exposed through these messages.
|
|
70
72
|
//User KYC profile
|
|
71
73
|
rpc readUserKycProfile(ReadUserKycProfileRequest) returns (UserKycProfileResponse);
|
|
72
74
|
rpc updateUserKycProfile(UpdateUserKycProfileRequest) returns (UserKycProfileResponse);
|
|
@@ -78,6 +80,12 @@ service User {
|
|
|
78
80
|
rpc readUserKycDocument(ReadUserKycDocumentRequest) returns (UserKycDocumentItem);
|
|
79
81
|
rpc readListUserKycDocuments(ReadListUserKycDocumentsRequest) returns (UserKycDocumentListResponse);
|
|
80
82
|
rpc readUserKycDocumentOptions(ReadUserKycDocumentOptionsRequest) returns (UserKycDocumentOptionsResponse);
|
|
83
|
+
// Provider-agnostic KYC: start a provider-hosted or provider-driven verification session.
|
|
84
|
+
rpc startUserKycVerification(StartUserKycVerificationRequest) returns (StartUserKycVerificationResponse);
|
|
85
|
+
// Single internal entrypoint for provider webhook processing (`raw_body` / `headers` are internal-only).
|
|
86
|
+
rpc processUserKycProviderWebhook(ProcessUserKycProviderWebhookRequest) returns (ProcessUserKycProviderWebhookResponse);
|
|
87
|
+
// Optional operational support: refresh or poll provider verification status where the provider supports it.
|
|
88
|
+
rpc syncUserKycProviderStatus(SyncUserKycProviderStatusRequest) returns (UserKycProfileResponse);
|
|
81
89
|
//Dashboard
|
|
82
90
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
|
83
91
|
//Notes
|
|
@@ -89,6 +97,7 @@ service User {
|
|
|
89
97
|
//User`s Limits
|
|
90
98
|
rpc setUserLimits(UserLimitsRequest) returns (LimitStatusResponse);
|
|
91
99
|
rpc readUserLimits(GetUserLimitsRequest) returns (UserLimitsResponse);
|
|
100
|
+
// Legacy provider-specific KYC RPCs. Do not use for new provider-agnostic KYC flows; use startUserKycVerification and related RPCs instead. Do not extend these contracts.
|
|
92
101
|
//KYC
|
|
93
102
|
rpc createSumSubApplicant(SumSubApplicantRequest) returns (SumSubResponse);
|
|
94
103
|
rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
|
|
@@ -841,6 +850,61 @@ message UserKycProfileResponse {
|
|
|
841
850
|
optional int32 updated_by = 5;
|
|
842
851
|
optional string created_at = 6;
|
|
843
852
|
optional string updated_at = 7;
|
|
853
|
+
optional string kyc_provider = 8;
|
|
854
|
+
optional string provider_applicant_id = 9;
|
|
855
|
+
optional string provider_session_id = 10;
|
|
856
|
+
optional string provider_check_id = 11;
|
|
857
|
+
optional string provider_status = 12;
|
|
858
|
+
optional string provider_reason_code = 13;
|
|
859
|
+
optional string provider_last_event_id = 14;
|
|
860
|
+
optional string provider_last_event_at = 15;
|
|
861
|
+
optional string provider_updated_at = 16;
|
|
862
|
+
}
|
|
863
|
+
message StartUserKycVerificationRequest {
|
|
864
|
+
int32 user_id = 1;
|
|
865
|
+
optional string user_public_id = 2;
|
|
866
|
+
optional string level = 3;
|
|
867
|
+
optional string locale = 4;
|
|
868
|
+
optional string return_url = 5;
|
|
869
|
+
optional string callback_url = 6;
|
|
870
|
+
optional string correlation_id = 7;
|
|
871
|
+
}
|
|
872
|
+
message StartUserKycVerificationResponse {
|
|
873
|
+
int32 user_id = 1;
|
|
874
|
+
optional string user_public_id = 2;
|
|
875
|
+
string kyc_status = 3;
|
|
876
|
+
optional string kyc_provider = 4;
|
|
877
|
+
optional string provider_applicant_id = 5;
|
|
878
|
+
optional string provider_session_id = 6;
|
|
879
|
+
optional string verification_url = 7;
|
|
880
|
+
optional string verification_token = 8;
|
|
881
|
+
optional string expires_at = 9;
|
|
882
|
+
optional string created_at = 10;
|
|
883
|
+
optional string updated_at = 11;
|
|
884
|
+
}
|
|
885
|
+
message ProcessUserKycProviderWebhookRequest {
|
|
886
|
+
// Internal webhook processing only; not for public client APIs.
|
|
887
|
+
string raw_body = 1;
|
|
888
|
+
// JSON-encoded HTTP header map (or equivalent) for internal signature verification.
|
|
889
|
+
string headers = 2;
|
|
890
|
+
optional string correlation_id = 3;
|
|
891
|
+
}
|
|
892
|
+
message ProcessUserKycProviderWebhookResponse {
|
|
893
|
+
string status = 1;
|
|
894
|
+
optional int32 user_id = 2;
|
|
895
|
+
optional string user_public_id = 3;
|
|
896
|
+
optional string kyc_status = 4;
|
|
897
|
+
optional string kyc_provider = 5;
|
|
898
|
+
optional string provider_applicant_id = 6;
|
|
899
|
+
optional string provider_event_id = 7;
|
|
900
|
+
optional string provider_event_at = 8;
|
|
901
|
+
optional string reason_code = 9;
|
|
902
|
+
}
|
|
903
|
+
message SyncUserKycProviderStatusRequest {
|
|
904
|
+
int32 user_id = 1;
|
|
905
|
+
optional string user_public_id = 2;
|
|
906
|
+
optional string provider_applicant_id = 3;
|
|
907
|
+
optional string correlation_id = 4;
|
|
844
908
|
}
|
|
845
909
|
message ReadListRiskPlayersRequest {
|
|
846
910
|
int32 limit = 1;
|
|
@@ -910,6 +974,12 @@ message UserKycDocumentItem {
|
|
|
910
974
|
optional string uploaded_by_email = 17;
|
|
911
975
|
// Backend-derived actor email resolved from reviewer_id; omitted when user-service cannot resolve.
|
|
912
976
|
optional string reviewer_email = 18;
|
|
977
|
+
optional string kyc_provider = 19;
|
|
978
|
+
optional string provider_document_id = 20;
|
|
979
|
+
optional string provider_document_type = 21;
|
|
980
|
+
optional string provider_status = 22;
|
|
981
|
+
optional string provider_reason_code = 23;
|
|
982
|
+
optional string provider_updated_at = 24;
|
|
913
983
|
}
|
|
914
984
|
message UserKycDocumentsResponse {
|
|
915
985
|
int32 user_id = 1;
|
|
@@ -958,6 +1028,12 @@ message UserKycDocumentListItem {
|
|
|
958
1028
|
optional string risk_level = 22;
|
|
959
1029
|
optional string uploaded_by_email = 23;
|
|
960
1030
|
optional string reviewer_email = 24;
|
|
1031
|
+
optional string kyc_provider = 25;
|
|
1032
|
+
optional string provider_document_id = 26;
|
|
1033
|
+
optional string provider_document_type = 27;
|
|
1034
|
+
optional string provider_status = 28;
|
|
1035
|
+
optional string provider_reason_code = 29;
|
|
1036
|
+
optional string provider_updated_at = 30;
|
|
961
1037
|
}
|
|
962
1038
|
message UserKycDocumentListResponse {
|
|
963
1039
|
repeated UserKycDocumentListItem items = 1;
|
|
@@ -1007,6 +1083,7 @@ message NoteStatusResponse {
|
|
|
1007
1083
|
message GetNoteRequest {
|
|
1008
1084
|
optional int32 id = 1;
|
|
1009
1085
|
}
|
|
1086
|
+
// Legacy provider-specific KYC messages. New integrations must use provider-agnostic KYC RPCs and messages. Do not extend these contracts.
|
|
1010
1087
|
//KYC | SumSub
|
|
1011
1088
|
message SumSubApplicantRequest {
|
|
1012
1089
|
string user_public_id = 1;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -389,6 +389,28 @@ function deserialize_user_PongResponse(buffer_arg) {
|
|
|
389
389
|
return user_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
+
function serialize_user_ProcessUserKycProviderWebhookRequest(arg) {
|
|
393
|
+
if (!(arg instanceof user_pb.ProcessUserKycProviderWebhookRequest)) {
|
|
394
|
+
throw new Error('Expected argument of type user.ProcessUserKycProviderWebhookRequest');
|
|
395
|
+
}
|
|
396
|
+
return Buffer.from(arg.serializeBinary());
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function deserialize_user_ProcessUserKycProviderWebhookRequest(buffer_arg) {
|
|
400
|
+
return user_pb.ProcessUserKycProviderWebhookRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function serialize_user_ProcessUserKycProviderWebhookResponse(arg) {
|
|
404
|
+
if (!(arg instanceof user_pb.ProcessUserKycProviderWebhookResponse)) {
|
|
405
|
+
throw new Error('Expected argument of type user.ProcessUserKycProviderWebhookResponse');
|
|
406
|
+
}
|
|
407
|
+
return Buffer.from(arg.serializeBinary());
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function deserialize_user_ProcessUserKycProviderWebhookResponse(buffer_arg) {
|
|
411
|
+
return user_pb.ProcessUserKycProviderWebhookResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
412
|
+
}
|
|
413
|
+
|
|
392
414
|
function serialize_user_ReadListRiskPlayersRequest(arg) {
|
|
393
415
|
if (!(arg instanceof user_pb.ReadListRiskPlayersRequest)) {
|
|
394
416
|
throw new Error('Expected argument of type user.ReadListRiskPlayersRequest');
|
|
@@ -719,6 +741,28 @@ function deserialize_user_SetNewPasswordConfirmedRequest(buffer_arg) {
|
|
|
719
741
|
return user_pb.SetNewPasswordConfirmedRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
720
742
|
}
|
|
721
743
|
|
|
744
|
+
function serialize_user_StartUserKycVerificationRequest(arg) {
|
|
745
|
+
if (!(arg instanceof user_pb.StartUserKycVerificationRequest)) {
|
|
746
|
+
throw new Error('Expected argument of type user.StartUserKycVerificationRequest');
|
|
747
|
+
}
|
|
748
|
+
return Buffer.from(arg.serializeBinary());
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
function deserialize_user_StartUserKycVerificationRequest(buffer_arg) {
|
|
752
|
+
return user_pb.StartUserKycVerificationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function serialize_user_StartUserKycVerificationResponse(arg) {
|
|
756
|
+
if (!(arg instanceof user_pb.StartUserKycVerificationResponse)) {
|
|
757
|
+
throw new Error('Expected argument of type user.StartUserKycVerificationResponse');
|
|
758
|
+
}
|
|
759
|
+
return Buffer.from(arg.serializeBinary());
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
function deserialize_user_StartUserKycVerificationResponse(buffer_arg) {
|
|
763
|
+
return user_pb.StartUserKycVerificationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
764
|
+
}
|
|
765
|
+
|
|
722
766
|
function serialize_user_SumSubApplicantRequest(arg) {
|
|
723
767
|
if (!(arg instanceof user_pb.SumSubApplicantRequest)) {
|
|
724
768
|
throw new Error('Expected argument of type user.SumSubApplicantRequest');
|
|
@@ -752,6 +796,17 @@ function deserialize_user_SumSubResponse(buffer_arg) {
|
|
|
752
796
|
return user_pb.SumSubResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
753
797
|
}
|
|
754
798
|
|
|
799
|
+
function serialize_user_SyncUserKycProviderStatusRequest(arg) {
|
|
800
|
+
if (!(arg instanceof user_pb.SyncUserKycProviderStatusRequest)) {
|
|
801
|
+
throw new Error('Expected argument of type user.SyncUserKycProviderStatusRequest');
|
|
802
|
+
}
|
|
803
|
+
return Buffer.from(arg.serializeBinary());
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
function deserialize_user_SyncUserKycProviderStatusRequest(buffer_arg) {
|
|
807
|
+
return user_pb.SyncUserKycProviderStatusRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
808
|
+
}
|
|
809
|
+
|
|
755
810
|
function serialize_user_TelegramLoginRequest(arg) {
|
|
756
811
|
if (!(arg instanceof user_pb.TelegramLoginRequest)) {
|
|
757
812
|
throw new Error('Expected argument of type user.TelegramLoginRequest');
|
|
@@ -1799,7 +1854,9 @@ readListVerificationStatuses: {
|
|
|
1799
1854
|
responseSerialize: serialize_user_VerificationStatusItemsResponse,
|
|
1800
1855
|
responseDeserialize: deserialize_user_VerificationStatusItemsResponse,
|
|
1801
1856
|
},
|
|
1802
|
-
//
|
|
1857
|
+
// KYC: `kyc_status` is a platform canonical status (string). Typical values include none, pending, in_review, approved, rejected, resubmission_required, expired, failed, requiresReview, blocked — not enforced as enums here (for now).
|
|
1858
|
+
// `provider_status` where present is a safe provider status code or label, not a raw provider payload. Raw provider payloads must not be exposed through these messages.
|
|
1859
|
+
// User KYC profile
|
|
1803
1860
|
readUserKycProfile: {
|
|
1804
1861
|
path: '/user.User/readUserKycProfile',
|
|
1805
1862
|
requestStream: false,
|
|
@@ -1900,6 +1957,42 @@ readUserKycDocuments: {
|
|
|
1900
1957
|
responseSerialize: serialize_user_UserKycDocumentOptionsResponse,
|
|
1901
1958
|
responseDeserialize: deserialize_user_UserKycDocumentOptionsResponse,
|
|
1902
1959
|
},
|
|
1960
|
+
// Provider-agnostic KYC: start a provider-hosted or provider-driven verification session.
|
|
1961
|
+
startUserKycVerification: {
|
|
1962
|
+
path: '/user.User/startUserKycVerification',
|
|
1963
|
+
requestStream: false,
|
|
1964
|
+
responseStream: false,
|
|
1965
|
+
requestType: user_pb.StartUserKycVerificationRequest,
|
|
1966
|
+
responseType: user_pb.StartUserKycVerificationResponse,
|
|
1967
|
+
requestSerialize: serialize_user_StartUserKycVerificationRequest,
|
|
1968
|
+
requestDeserialize: deserialize_user_StartUserKycVerificationRequest,
|
|
1969
|
+
responseSerialize: serialize_user_StartUserKycVerificationResponse,
|
|
1970
|
+
responseDeserialize: deserialize_user_StartUserKycVerificationResponse,
|
|
1971
|
+
},
|
|
1972
|
+
// Single internal entrypoint for provider webhook processing (`raw_body` / `headers` are internal-only).
|
|
1973
|
+
processUserKycProviderWebhook: {
|
|
1974
|
+
path: '/user.User/processUserKycProviderWebhook',
|
|
1975
|
+
requestStream: false,
|
|
1976
|
+
responseStream: false,
|
|
1977
|
+
requestType: user_pb.ProcessUserKycProviderWebhookRequest,
|
|
1978
|
+
responseType: user_pb.ProcessUserKycProviderWebhookResponse,
|
|
1979
|
+
requestSerialize: serialize_user_ProcessUserKycProviderWebhookRequest,
|
|
1980
|
+
requestDeserialize: deserialize_user_ProcessUserKycProviderWebhookRequest,
|
|
1981
|
+
responseSerialize: serialize_user_ProcessUserKycProviderWebhookResponse,
|
|
1982
|
+
responseDeserialize: deserialize_user_ProcessUserKycProviderWebhookResponse,
|
|
1983
|
+
},
|
|
1984
|
+
// Optional operational support: refresh or poll provider verification status where the provider supports it.
|
|
1985
|
+
syncUserKycProviderStatus: {
|
|
1986
|
+
path: '/user.User/syncUserKycProviderStatus',
|
|
1987
|
+
requestStream: false,
|
|
1988
|
+
responseStream: false,
|
|
1989
|
+
requestType: user_pb.SyncUserKycProviderStatusRequest,
|
|
1990
|
+
responseType: user_pb.UserKycProfileResponse,
|
|
1991
|
+
requestSerialize: serialize_user_SyncUserKycProviderStatusRequest,
|
|
1992
|
+
requestDeserialize: deserialize_user_SyncUserKycProviderStatusRequest,
|
|
1993
|
+
responseSerialize: serialize_user_UserKycProfileResponse,
|
|
1994
|
+
responseDeserialize: deserialize_user_UserKycProfileResponse,
|
|
1995
|
+
},
|
|
1903
1996
|
// Dashboard
|
|
1904
1997
|
getDashboardInfo: {
|
|
1905
1998
|
path: '/user.User/getDashboardInfo',
|
|
@@ -1991,7 +2084,8 @@ setUserLimits: {
|
|
|
1991
2084
|
responseSerialize: serialize_user_UserLimitsResponse,
|
|
1992
2085
|
responseDeserialize: deserialize_user_UserLimitsResponse,
|
|
1993
2086
|
},
|
|
1994
|
-
// KYC
|
|
2087
|
+
// Legacy provider-specific KYC RPCs. Do not use for new provider-agnostic KYC flows; use startUserKycVerification and related RPCs instead. Do not extend these contracts.
|
|
2088
|
+
// KYC
|
|
1995
2089
|
createSumSubApplicant: {
|
|
1996
2090
|
path: '/user.User/createSumSubApplicant',
|
|
1997
2091
|
requestStream: false,
|