This commit is contained in:
1 parent
09782d739d
commit
e87d4d3ef7
1 file changed
+35
@@ -0,0 +1,35 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package wallet.v1;
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
|
||||
// Registered only on the trusted internal Wallet listener.
|
||||
service AuthAuditService {
|
||||
rpc RecordAuthAudit(AuthAuditEvent) returns (google.protobuf.Empty);
|
||||
}
|
||||
|
||||
message AuthAuditEvent {
|
||||
enum Resource {
|
||||
RESOURCE_UNSPECIFIED = 0;
|
||||
RESOURCE_BANK_ACCOUNT = 1;
|
||||
RESOURCE_IDENTITY = 2;
|
||||
RESOURCE_KYC_STATUS = 3;
|
||||
RESOURCE_SESSION = 4;
|
||||
}
|
||||
|
||||
message State {
|
||||
int32 status = 1;
|
||||
bool removed = 2;
|
||||
google.protobuf.Timestamp expires_at = 3;
|
||||
}
|
||||
|
||||
string event_id = 1;
|
||||
int64 actor_id = 2;
|
||||
int64 resource_id = 3;
|
||||
Resource resource = 4;
|
||||
State previous = 5;
|
||||
State resulting = 6;
|
||||
google.protobuf.Timestamp occurred_at = 7;
|
||||
}
|
||||
Reference in new issue
Block a user