protobuf-platform 1.2.558 → 1.2.559
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 +34 -0
- package/user/user_grpc_pb.js +34 -0
- package/user/user_pb.js +1427 -178
package/package.json
CHANGED
package/user/user.proto
CHANGED
|
@@ -143,6 +143,8 @@ service User {
|
|
|
143
143
|
rpc approveVerification(ApproveVerificationRequest) returns (ApproveVerificationResponse);
|
|
144
144
|
// Provider-agnostic KYC capability-level verification read for FE/BO (not field-level profile data).
|
|
145
145
|
rpc getUserVerification(GetUserVerificationRequest) returns (GetUserVerificationResponse);
|
|
146
|
+
// Provider-agnostic KYC: ordered verification steps for a user and purpose (backend-driven flow for FE rendering).
|
|
147
|
+
rpc getUserVerificationFlow(GetUserVerificationFlowRequest) returns (GetUserVerificationFlowResponse);
|
|
146
148
|
// Platform-wide Profile Data verification requirement field configuration.
|
|
147
149
|
rpc getVerificationProfileDataRequirements(GetVerificationProfileDataRequirementsRequest) returns (GetVerificationProfileDataRequirementsResponse);
|
|
148
150
|
rpc replaceVerificationProfileDataRequirements(ReplaceVerificationProfileDataRequirementsRequest) returns (ReplaceVerificationProfileDataRequirementsResponse);
|
|
@@ -1779,6 +1781,38 @@ message ApproveVerificationRequest {
|
|
|
1779
1781
|
VerificationCapability capability = 2;
|
|
1780
1782
|
}
|
|
1781
1783
|
message ApproveVerificationResponse {}
|
|
1784
|
+
enum VerificationSelectionMode {
|
|
1785
|
+
VERIFICATION_SELECTION_MODE_UNSPECIFIED = 0;
|
|
1786
|
+
VERIFICATION_SELECTION_MODE_ONE_OF = 1;
|
|
1787
|
+
}
|
|
1788
|
+
message UserVerificationFlowUpload {
|
|
1789
|
+
string side = 1;
|
|
1790
|
+
bool required = 2;
|
|
1791
|
+
VerificationCapabilityStatus status = 3;
|
|
1792
|
+
}
|
|
1793
|
+
message UserVerificationFlowOption {
|
|
1794
|
+
string document_type = 1;
|
|
1795
|
+
bool supported = 2;
|
|
1796
|
+
bool upload_requirements_resolved = 3;
|
|
1797
|
+
repeated UserVerificationFlowUpload uploads = 4;
|
|
1798
|
+
}
|
|
1799
|
+
message UserVerificationFlowStep {
|
|
1800
|
+
VerificationCapability capability = 1;
|
|
1801
|
+
VerificationCapabilityStatus status = 2;
|
|
1802
|
+
bool required = 3;
|
|
1803
|
+
VerificationSelectionMode selection_mode = 4;
|
|
1804
|
+
repeated UserVerificationFlowOption options = 5;
|
|
1805
|
+
}
|
|
1806
|
+
message GetUserVerificationFlowRequest {
|
|
1807
|
+
int32 user_id = 1;
|
|
1808
|
+
string purpose = 2;
|
|
1809
|
+
}
|
|
1810
|
+
message GetUserVerificationFlowResponse {
|
|
1811
|
+
string purpose = 1;
|
|
1812
|
+
UserVerificationOverallStatus overall_status = 2;
|
|
1813
|
+
bool is_kyc_confirmed = 3;
|
|
1814
|
+
repeated UserVerificationFlowStep steps = 4;
|
|
1815
|
+
}
|
|
1782
1816
|
// Platform-wide Profile Data verification requirement field configuration.
|
|
1783
1817
|
message GetVerificationProfileDataRequirementsRequest {}
|
|
1784
1818
|
message GetVerificationProfileDataRequirementsResponse {
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -609,6 +609,28 @@ function deserialize_user_GetUserSegmentIdsRequest(buffer_arg) {
|
|
|
609
609
|
return user_pb.GetUserSegmentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
+
function serialize_user_GetUserVerificationFlowRequest(arg) {
|
|
613
|
+
if (!(arg instanceof user_pb.GetUserVerificationFlowRequest)) {
|
|
614
|
+
throw new Error('Expected argument of type user.GetUserVerificationFlowRequest');
|
|
615
|
+
}
|
|
616
|
+
return Buffer.from(arg.serializeBinary());
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
function deserialize_user_GetUserVerificationFlowRequest(buffer_arg) {
|
|
620
|
+
return user_pb.GetUserVerificationFlowRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
function serialize_user_GetUserVerificationFlowResponse(arg) {
|
|
624
|
+
if (!(arg instanceof user_pb.GetUserVerificationFlowResponse)) {
|
|
625
|
+
throw new Error('Expected argument of type user.GetUserVerificationFlowResponse');
|
|
626
|
+
}
|
|
627
|
+
return Buffer.from(arg.serializeBinary());
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
function deserialize_user_GetUserVerificationFlowResponse(buffer_arg) {
|
|
631
|
+
return user_pb.GetUserVerificationFlowResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
632
|
+
}
|
|
633
|
+
|
|
612
634
|
function serialize_user_GetUserVerificationRequest(arg) {
|
|
613
635
|
if (!(arg instanceof user_pb.GetUserVerificationRequest)) {
|
|
614
636
|
throw new Error('Expected argument of type user.GetUserVerificationRequest');
|
|
@@ -3536,6 +3558,18 @@ getUserVerification: {
|
|
|
3536
3558
|
responseSerialize: serialize_user_GetUserVerificationResponse,
|
|
3537
3559
|
responseDeserialize: deserialize_user_GetUserVerificationResponse,
|
|
3538
3560
|
},
|
|
3561
|
+
// Provider-agnostic KYC: ordered verification steps for a user and purpose (backend-driven flow for FE rendering).
|
|
3562
|
+
getUserVerificationFlow: {
|
|
3563
|
+
path: '/user.User/getUserVerificationFlow',
|
|
3564
|
+
requestStream: false,
|
|
3565
|
+
responseStream: false,
|
|
3566
|
+
requestType: user_pb.GetUserVerificationFlowRequest,
|
|
3567
|
+
responseType: user_pb.GetUserVerificationFlowResponse,
|
|
3568
|
+
requestSerialize: serialize_user_GetUserVerificationFlowRequest,
|
|
3569
|
+
requestDeserialize: deserialize_user_GetUserVerificationFlowRequest,
|
|
3570
|
+
responseSerialize: serialize_user_GetUserVerificationFlowResponse,
|
|
3571
|
+
responseDeserialize: deserialize_user_GetUserVerificationFlowResponse,
|
|
3572
|
+
},
|
|
3539
3573
|
// Platform-wide Profile Data verification requirement field configuration.
|
|
3540
3574
|
getVerificationProfileDataRequirements: {
|
|
3541
3575
|
path: '/user.User/getVerificationProfileDataRequirements',
|