36 lines
773 B
Protocol Buffer
36 lines
773 B
Protocol Buffer
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;
|
|
}
|