Files
proto/wallet/v1/audit.proto
T
nfel e87d4d3ef7
ci-check / check (pull_request_review) Failing after 1s
feat: define Auth audit delivery RPC
2026-11-06 17:41:28 +03:30

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;
}