protobuf-platform 1.2.501 → 1.2.504
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/payment/payment.proto +16 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +702 -2
- package/user/user.proto +35 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +1414 -0
package/user/user.proto
CHANGED
|
@@ -105,6 +105,7 @@ service User {
|
|
|
105
105
|
rpc processUserKycProviderWebhook(ProcessUserKycProviderWebhookRequest) returns (ProcessUserKycProviderWebhookResponse);
|
|
106
106
|
// Single internal entrypoint for antifraud provider webhook processing (`raw_body` / `headers` are internal-only).
|
|
107
107
|
rpc processAntifraudProviderWebhook(ProcessAntifraudProviderWebhookRequest) returns (ProcessAntifraudProviderWebhookResponse);
|
|
108
|
+
rpc scoreAntifraudPaymentEvent(ScoreAntifraudPaymentEventRequest) returns (ScoreAntifraudPaymentEventResponse);
|
|
108
109
|
// Optional operational support: refresh or poll provider verification status where the provider supports it.
|
|
109
110
|
rpc syncUserKycProviderStatus(SyncUserKycProviderStatusRequest) returns (UserKycProfileResponse);
|
|
110
111
|
// KYC requirement matrix: configured trigger rules and presets (separate from provider KYC flow).
|
|
@@ -1239,6 +1240,40 @@ message ProcessAntifraudProviderWebhookResponse {
|
|
|
1239
1240
|
string risk_level = 10;
|
|
1240
1241
|
string reason_code = 11;
|
|
1241
1242
|
}
|
|
1243
|
+
message ScoreAntifraudPaymentEventRequest {
|
|
1244
|
+
string event_type = 1;
|
|
1245
|
+
int32 user_id = 2;
|
|
1246
|
+
optional string user_public_id = 3;
|
|
1247
|
+
int64 payment_operation_id = 4;
|
|
1248
|
+
string payment_operation_public_id = 5;
|
|
1249
|
+
int64 amount_minor = 6;
|
|
1250
|
+
string currency = 7;
|
|
1251
|
+
int32 currency_scale = 8;
|
|
1252
|
+
optional string payment_method = 9;
|
|
1253
|
+
optional string payment_channel = 10;
|
|
1254
|
+
optional string external_id = 11;
|
|
1255
|
+
optional string antifraud_session = 12;
|
|
1256
|
+
optional string ip = 13;
|
|
1257
|
+
optional string user_agent = 14;
|
|
1258
|
+
string occurred_at = 15;
|
|
1259
|
+
optional string correlation_id = 16;
|
|
1260
|
+
string idempotency_key = 17;
|
|
1261
|
+
}
|
|
1262
|
+
message ScoreAntifraudPaymentEventResponse {
|
|
1263
|
+
bool processed = 1;
|
|
1264
|
+
bool success = 2;
|
|
1265
|
+
bool skipped = 3;
|
|
1266
|
+
bool duplicate = 4;
|
|
1267
|
+
bool fail_open = 5;
|
|
1268
|
+
string decision = 6;
|
|
1269
|
+
optional int64 assessment_id = 7;
|
|
1270
|
+
optional string request_id = 8;
|
|
1271
|
+
optional string provider_event_id = 9;
|
|
1272
|
+
optional int32 score = 10;
|
|
1273
|
+
optional string risk_type = 11;
|
|
1274
|
+
optional string error_code = 12;
|
|
1275
|
+
optional string error_message = 13;
|
|
1276
|
+
}
|
|
1242
1277
|
message SyncUserKycProviderStatusRequest {
|
|
1243
1278
|
int32 user_id = 1;
|
|
1244
1279
|
optional string user_public_id = 2;
|
package/user/user_grpc_pb.js
CHANGED
|
@@ -1137,6 +1137,28 @@ function deserialize_user_RolesItemsResponse(buffer_arg) {
|
|
|
1137
1137
|
return user_pb.RolesItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
+
function serialize_user_ScoreAntifraudPaymentEventRequest(arg) {
|
|
1141
|
+
if (!(arg instanceof user_pb.ScoreAntifraudPaymentEventRequest)) {
|
|
1142
|
+
throw new Error('Expected argument of type user.ScoreAntifraudPaymentEventRequest');
|
|
1143
|
+
}
|
|
1144
|
+
return Buffer.from(arg.serializeBinary());
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
function deserialize_user_ScoreAntifraudPaymentEventRequest(buffer_arg) {
|
|
1148
|
+
return user_pb.ScoreAntifraudPaymentEventRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
function serialize_user_ScoreAntifraudPaymentEventResponse(arg) {
|
|
1152
|
+
if (!(arg instanceof user_pb.ScoreAntifraudPaymentEventResponse)) {
|
|
1153
|
+
throw new Error('Expected argument of type user.ScoreAntifraudPaymentEventResponse');
|
|
1154
|
+
}
|
|
1155
|
+
return Buffer.from(arg.serializeBinary());
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
function deserialize_user_ScoreAntifraudPaymentEventResponse(buffer_arg) {
|
|
1159
|
+
return user_pb.ScoreAntifraudPaymentEventResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1140
1162
|
function serialize_user_SegmentItemsResponse(arg) {
|
|
1141
1163
|
if (!(arg instanceof user_pb.SegmentItemsResponse)) {
|
|
1142
1164
|
throw new Error('Expected argument of type user.SegmentItemsResponse');
|
|
@@ -2809,6 +2831,17 @@ processAntifraudProviderWebhook: {
|
|
|
2809
2831
|
responseSerialize: serialize_user_ProcessAntifraudProviderWebhookResponse,
|
|
2810
2832
|
responseDeserialize: deserialize_user_ProcessAntifraudProviderWebhookResponse,
|
|
2811
2833
|
},
|
|
2834
|
+
scoreAntifraudPaymentEvent: {
|
|
2835
|
+
path: '/user.User/scoreAntifraudPaymentEvent',
|
|
2836
|
+
requestStream: false,
|
|
2837
|
+
responseStream: false,
|
|
2838
|
+
requestType: user_pb.ScoreAntifraudPaymentEventRequest,
|
|
2839
|
+
responseType: user_pb.ScoreAntifraudPaymentEventResponse,
|
|
2840
|
+
requestSerialize: serialize_user_ScoreAntifraudPaymentEventRequest,
|
|
2841
|
+
requestDeserialize: deserialize_user_ScoreAntifraudPaymentEventRequest,
|
|
2842
|
+
responseSerialize: serialize_user_ScoreAntifraudPaymentEventResponse,
|
|
2843
|
+
responseDeserialize: deserialize_user_ScoreAntifraudPaymentEventResponse,
|
|
2844
|
+
},
|
|
2812
2845
|
// Optional operational support: refresh or poll provider verification status where the provider supports it.
|
|
2813
2846
|
syncUserKycProviderStatus: {
|
|
2814
2847
|
path: '/user.User/syncUserKycProviderStatus',
|