Phase 2 service decomposition per docs/SCALE-EXPANSION.md section 1: extracts
internal/{airwallex,bridge,card,tenant,httpserver} out of the monolithic
gateway into four independently deployable gRPC services (each own go.mod,
Dockerfile, and tests), with gateway now a thin BFF that fans out through new
cardissuanceclient/webhookeventsclient gRPC clients. gateway.proto's external
surface is unchanged — agent/tui/cli still talk to gateway exactly as before.
Verified: all 10 go.work modules build and `go test ./...` passes across
every one, including the new gateway client packages against the live split
services (via `make build && make test`).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
666 lines
20 KiB
Go
666 lines
20 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.12
|
|
// protoc v6.33.4
|
|
// source: audit.proto
|
|
|
|
package audit
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type SourceKind int32
|
|
|
|
const (
|
|
SourceKind_SOURCE_KIND_UNSPECIFIED SourceKind = 0
|
|
SourceKind_SOURCE_KIND_LEDGER_ENTRY SourceKind = 1
|
|
SourceKind_SOURCE_KIND_AGENT_DECISION SourceKind = 2
|
|
)
|
|
|
|
// Enum value maps for SourceKind.
|
|
var (
|
|
SourceKind_name = map[int32]string{
|
|
0: "SOURCE_KIND_UNSPECIFIED",
|
|
1: "SOURCE_KIND_LEDGER_ENTRY",
|
|
2: "SOURCE_KIND_AGENT_DECISION",
|
|
}
|
|
SourceKind_value = map[string]int32{
|
|
"SOURCE_KIND_UNSPECIFIED": 0,
|
|
"SOURCE_KIND_LEDGER_ENTRY": 1,
|
|
"SOURCE_KIND_AGENT_DECISION": 2,
|
|
}
|
|
)
|
|
|
|
func (x SourceKind) Enum() *SourceKind {
|
|
p := new(SourceKind)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x SourceKind) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (SourceKind) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_audit_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (SourceKind) Type() protoreflect.EnumType {
|
|
return &file_audit_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x SourceKind) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use SourceKind.Descriptor instead.
|
|
func (SourceKind) EnumDescriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type AppendRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Which service produced this record, e.g. "ledger-core". Recorded
|
|
// verbatim for the audit trail; AuditLog does not authenticate it
|
|
// beyond whatever transport-level mTLS identity the gRPC call carries.
|
|
SourceService string `protobuf:"bytes,1,opt,name=source_service,json=sourceService,proto3" json:"source_service,omitempty"`
|
|
Kind SourceKind `protobuf:"varint,2,opt,name=kind,proto3,enum=ration.audit.v1.SourceKind" json:"kind,omitempty"`
|
|
TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
|
|
// ref_id is the id of the original record in the source system (the
|
|
// LedgerEntry.id or AgentDecision.id ledger-core already assigned),
|
|
// not a new id minted here.
|
|
RefId string `protobuf:"bytes,4,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
|
|
// payload_json is a serialized snapshot of the original record (the
|
|
// full LedgerEntry or AgentDecision proto, marshaled as JSON) so an
|
|
// auditor can reconstruct exactly what happened without needing
|
|
// ledger-core's own store to still be intact or trustworthy.
|
|
PayloadJson string `protobuf:"bytes,5,opt,name=payload_json,json=payloadJson,proto3" json:"payload_json,omitempty"`
|
|
OccurredAtUnix int64 `protobuf:"varint,6,opt,name=occurred_at_unix,json=occurredAtUnix,proto3" json:"occurred_at_unix,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AppendRequest) Reset() {
|
|
*x = AppendRequest{}
|
|
mi := &file_audit_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AppendRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AppendRequest) ProtoMessage() {}
|
|
|
|
func (x *AppendRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AppendRequest.ProtoReflect.Descriptor instead.
|
|
func (*AppendRequest) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *AppendRequest) GetSourceService() string {
|
|
if x != nil {
|
|
return x.SourceService
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AppendRequest) GetKind() SourceKind {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return SourceKind_SOURCE_KIND_UNSPECIFIED
|
|
}
|
|
|
|
func (x *AppendRequest) GetTenantId() string {
|
|
if x != nil {
|
|
return x.TenantId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AppendRequest) GetRefId() string {
|
|
if x != nil {
|
|
return x.RefId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AppendRequest) GetPayloadJson() string {
|
|
if x != nil {
|
|
return x.PayloadJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AppendRequest) GetOccurredAtUnix() int64 {
|
|
if x != nil {
|
|
return x.OccurredAtUnix
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AppendResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Record *AuditRecord `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AppendResponse) Reset() {
|
|
*x = AppendResponse{}
|
|
mi := &file_audit_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AppendResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AppendResponse) ProtoMessage() {}
|
|
|
|
func (x *AppendResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AppendResponse.ProtoReflect.Descriptor instead.
|
|
func (*AppendResponse) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *AppendResponse) GetRecord() *AuditRecord {
|
|
if x != nil {
|
|
return x.Record
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AuditRecord struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Monotonically increasing position in the chain, starting at 1.
|
|
Sequence int64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
|
|
SourceService string `protobuf:"bytes,2,opt,name=source_service,json=sourceService,proto3" json:"source_service,omitempty"`
|
|
Kind SourceKind `protobuf:"varint,3,opt,name=kind,proto3,enum=ration.audit.v1.SourceKind" json:"kind,omitempty"`
|
|
TenantId string `protobuf:"bytes,4,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
|
|
RefId string `protobuf:"bytes,5,opt,name=ref_id,json=refId,proto3" json:"ref_id,omitempty"`
|
|
PayloadJson string `protobuf:"bytes,6,opt,name=payload_json,json=payloadJson,proto3" json:"payload_json,omitempty"`
|
|
OccurredAtUnix int64 `protobuf:"varint,7,opt,name=occurred_at_unix,json=occurredAtUnix,proto3" json:"occurred_at_unix,omitempty"`
|
|
RecordedAtUnix int64 `protobuf:"varint,8,opt,name=recorded_at_unix,json=recordedAtUnix,proto3" json:"recorded_at_unix,omitempty"`
|
|
// prev_hash is the hash of the previous record in the chain ("" /
|
|
// 64 zeros for the first record); hash = sha256(prev_hash ||
|
|
// canonical record bytes). Exposed so a client can independently
|
|
// re-verify a slice of the chain without trusting VerifyChain's own
|
|
// verdict.
|
|
PrevHash string `protobuf:"bytes,9,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"`
|
|
Hash string `protobuf:"bytes,10,opt,name=hash,proto3" json:"hash,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AuditRecord) Reset() {
|
|
*x = AuditRecord{}
|
|
mi := &file_audit_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AuditRecord) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AuditRecord) ProtoMessage() {}
|
|
|
|
func (x *AuditRecord) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AuditRecord.ProtoReflect.Descriptor instead.
|
|
func (*AuditRecord) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *AuditRecord) GetSequence() int64 {
|
|
if x != nil {
|
|
return x.Sequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AuditRecord) GetSourceService() string {
|
|
if x != nil {
|
|
return x.SourceService
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditRecord) GetKind() SourceKind {
|
|
if x != nil {
|
|
return x.Kind
|
|
}
|
|
return SourceKind_SOURCE_KIND_UNSPECIFIED
|
|
}
|
|
|
|
func (x *AuditRecord) GetTenantId() string {
|
|
if x != nil {
|
|
return x.TenantId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditRecord) GetRefId() string {
|
|
if x != nil {
|
|
return x.RefId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditRecord) GetPayloadJson() string {
|
|
if x != nil {
|
|
return x.PayloadJson
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditRecord) GetOccurredAtUnix() int64 {
|
|
if x != nil {
|
|
return x.OccurredAtUnix
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AuditRecord) GetRecordedAtUnix() int64 {
|
|
if x != nil {
|
|
return x.RecordedAtUnix
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AuditRecord) GetPrevHash() string {
|
|
if x != nil {
|
|
return x.PrevHash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AuditRecord) GetHash() string {
|
|
if x != nil {
|
|
return x.Hash
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListRecordsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
|
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListRecordsRequest) Reset() {
|
|
*x = ListRecordsRequest{}
|
|
mi := &file_audit_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListRecordsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRecordsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListRecordsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListRecordsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListRecordsRequest) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ListRecordsRequest) GetTenantId() string {
|
|
if x != nil {
|
|
return x.TenantId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListRecordsRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListRecordsRequest) GetPageToken() string {
|
|
if x != nil {
|
|
return x.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListRecordsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Records []*AuditRecord `protobuf:"bytes,1,rep,name=records,proto3" json:"records,omitempty"`
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListRecordsResponse) Reset() {
|
|
*x = ListRecordsResponse{}
|
|
mi := &file_audit_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListRecordsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListRecordsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListRecordsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListRecordsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListRecordsResponse) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ListRecordsResponse) GetRecords() []*AuditRecord {
|
|
if x != nil {
|
|
return x.Records
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListRecordsResponse) GetNextPageToken() string {
|
|
if x != nil {
|
|
return x.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerifyChainRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyChainRequest) Reset() {
|
|
*x = VerifyChainRequest{}
|
|
mi := &file_audit_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyChainRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyChainRequest) ProtoMessage() {}
|
|
|
|
func (x *VerifyChainRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerifyChainRequest.ProtoReflect.Descriptor instead.
|
|
func (*VerifyChainRequest) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type VerifyChainResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Intact bool `protobuf:"varint,1,opt,name=intact,proto3" json:"intact,omitempty"`
|
|
RecordsChecked int64 `protobuf:"varint,2,opt,name=records_checked,json=recordsChecked,proto3" json:"records_checked,omitempty"`
|
|
// first_broken_sequence is 0 when intact is true.
|
|
FirstBrokenSequence int64 `protobuf:"varint,3,opt,name=first_broken_sequence,json=firstBrokenSequence,proto3" json:"first_broken_sequence,omitempty"`
|
|
Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerifyChainResponse) Reset() {
|
|
*x = VerifyChainResponse{}
|
|
mi := &file_audit_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerifyChainResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerifyChainResponse) ProtoMessage() {}
|
|
|
|
func (x *VerifyChainResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_audit_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerifyChainResponse.ProtoReflect.Descriptor instead.
|
|
func (*VerifyChainResponse) Descriptor() ([]byte, []int) {
|
|
return file_audit_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *VerifyChainResponse) GetIntact() bool {
|
|
if x != nil {
|
|
return x.Intact
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *VerifyChainResponse) GetRecordsChecked() int64 {
|
|
if x != nil {
|
|
return x.RecordsChecked
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VerifyChainResponse) GetFirstBrokenSequence() int64 {
|
|
if x != nil {
|
|
return x.FirstBrokenSequence
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VerifyChainResponse) GetDetail() string {
|
|
if x != nil {
|
|
return x.Detail
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_audit_proto protoreflect.FileDescriptor
|
|
|
|
const file_audit_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\vaudit.proto\x12\x0fration.audit.v1\"\xe8\x01\n" +
|
|
"\rAppendRequest\x12%\n" +
|
|
"\x0esource_service\x18\x01 \x01(\tR\rsourceService\x12/\n" +
|
|
"\x04kind\x18\x02 \x01(\x0e2\x1b.ration.audit.v1.SourceKindR\x04kind\x12\x1b\n" +
|
|
"\ttenant_id\x18\x03 \x01(\tR\btenantId\x12\x15\n" +
|
|
"\x06ref_id\x18\x04 \x01(\tR\x05refId\x12!\n" +
|
|
"\fpayload_json\x18\x05 \x01(\tR\vpayloadJson\x12(\n" +
|
|
"\x10occurred_at_unix\x18\x06 \x01(\x03R\x0eoccurredAtUnix\"F\n" +
|
|
"\x0eAppendResponse\x124\n" +
|
|
"\x06record\x18\x01 \x01(\v2\x1c.ration.audit.v1.AuditRecordR\x06record\"\xdd\x02\n" +
|
|
"\vAuditRecord\x12\x1a\n" +
|
|
"\bsequence\x18\x01 \x01(\x03R\bsequence\x12%\n" +
|
|
"\x0esource_service\x18\x02 \x01(\tR\rsourceService\x12/\n" +
|
|
"\x04kind\x18\x03 \x01(\x0e2\x1b.ration.audit.v1.SourceKindR\x04kind\x12\x1b\n" +
|
|
"\ttenant_id\x18\x04 \x01(\tR\btenantId\x12\x15\n" +
|
|
"\x06ref_id\x18\x05 \x01(\tR\x05refId\x12!\n" +
|
|
"\fpayload_json\x18\x06 \x01(\tR\vpayloadJson\x12(\n" +
|
|
"\x10occurred_at_unix\x18\a \x01(\x03R\x0eoccurredAtUnix\x12(\n" +
|
|
"\x10recorded_at_unix\x18\b \x01(\x03R\x0erecordedAtUnix\x12\x1b\n" +
|
|
"\tprev_hash\x18\t \x01(\tR\bprevHash\x12\x12\n" +
|
|
"\x04hash\x18\n" +
|
|
" \x01(\tR\x04hash\"m\n" +
|
|
"\x12ListRecordsRequest\x12\x1b\n" +
|
|
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1b\n" +
|
|
"\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" +
|
|
"\n" +
|
|
"page_token\x18\x03 \x01(\tR\tpageToken\"u\n" +
|
|
"\x13ListRecordsResponse\x126\n" +
|
|
"\arecords\x18\x01 \x03(\v2\x1c.ration.audit.v1.AuditRecordR\arecords\x12&\n" +
|
|
"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x14\n" +
|
|
"\x12VerifyChainRequest\"\xa2\x01\n" +
|
|
"\x13VerifyChainResponse\x12\x16\n" +
|
|
"\x06intact\x18\x01 \x01(\bR\x06intact\x12'\n" +
|
|
"\x0frecords_checked\x18\x02 \x01(\x03R\x0erecordsChecked\x122\n" +
|
|
"\x15first_broken_sequence\x18\x03 \x01(\x03R\x13firstBrokenSequence\x12\x16\n" +
|
|
"\x06detail\x18\x04 \x01(\tR\x06detail*g\n" +
|
|
"\n" +
|
|
"SourceKind\x12\x1b\n" +
|
|
"\x17SOURCE_KIND_UNSPECIFIED\x10\x00\x12\x1c\n" +
|
|
"\x18SOURCE_KIND_LEDGER_ENTRY\x10\x01\x12\x1e\n" +
|
|
"\x1aSOURCE_KIND_AGENT_DECISION\x10\x022\x89\x02\n" +
|
|
"\bAuditLog\x12I\n" +
|
|
"\x06Append\x12\x1e.ration.audit.v1.AppendRequest\x1a\x1f.ration.audit.v1.AppendResponse\x12X\n" +
|
|
"\vListRecords\x12#.ration.audit.v1.ListRecordsRequest\x1a$.ration.audit.v1.ListRecordsResponse\x12X\n" +
|
|
"\vVerifyChain\x12#.ration.audit.v1.VerifyChainRequest\x1a$.ration.audit.v1.VerifyChainResponseB)Z'github.com/caelum0x/ration/pkg/pb/auditb\x06proto3"
|
|
|
|
var (
|
|
file_audit_proto_rawDescOnce sync.Once
|
|
file_audit_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_audit_proto_rawDescGZIP() []byte {
|
|
file_audit_proto_rawDescOnce.Do(func() {
|
|
file_audit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_audit_proto_rawDesc), len(file_audit_proto_rawDesc)))
|
|
})
|
|
return file_audit_proto_rawDescData
|
|
}
|
|
|
|
var file_audit_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_audit_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
var file_audit_proto_goTypes = []any{
|
|
(SourceKind)(0), // 0: ration.audit.v1.SourceKind
|
|
(*AppendRequest)(nil), // 1: ration.audit.v1.AppendRequest
|
|
(*AppendResponse)(nil), // 2: ration.audit.v1.AppendResponse
|
|
(*AuditRecord)(nil), // 3: ration.audit.v1.AuditRecord
|
|
(*ListRecordsRequest)(nil), // 4: ration.audit.v1.ListRecordsRequest
|
|
(*ListRecordsResponse)(nil), // 5: ration.audit.v1.ListRecordsResponse
|
|
(*VerifyChainRequest)(nil), // 6: ration.audit.v1.VerifyChainRequest
|
|
(*VerifyChainResponse)(nil), // 7: ration.audit.v1.VerifyChainResponse
|
|
}
|
|
var file_audit_proto_depIdxs = []int32{
|
|
0, // 0: ration.audit.v1.AppendRequest.kind:type_name -> ration.audit.v1.SourceKind
|
|
3, // 1: ration.audit.v1.AppendResponse.record:type_name -> ration.audit.v1.AuditRecord
|
|
0, // 2: ration.audit.v1.AuditRecord.kind:type_name -> ration.audit.v1.SourceKind
|
|
3, // 3: ration.audit.v1.ListRecordsResponse.records:type_name -> ration.audit.v1.AuditRecord
|
|
1, // 4: ration.audit.v1.AuditLog.Append:input_type -> ration.audit.v1.AppendRequest
|
|
4, // 5: ration.audit.v1.AuditLog.ListRecords:input_type -> ration.audit.v1.ListRecordsRequest
|
|
6, // 6: ration.audit.v1.AuditLog.VerifyChain:input_type -> ration.audit.v1.VerifyChainRequest
|
|
2, // 7: ration.audit.v1.AuditLog.Append:output_type -> ration.audit.v1.AppendResponse
|
|
5, // 8: ration.audit.v1.AuditLog.ListRecords:output_type -> ration.audit.v1.ListRecordsResponse
|
|
7, // 9: ration.audit.v1.AuditLog.VerifyChain:output_type -> ration.audit.v1.VerifyChainResponse
|
|
7, // [7:10] is the sub-list for method output_type
|
|
4, // [4:7] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_audit_proto_init() }
|
|
func file_audit_proto_init() {
|
|
if File_audit_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_audit_proto_rawDesc), len(file_audit_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 7,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_audit_proto_goTypes,
|
|
DependencyIndexes: file_audit_proto_depIdxs,
|
|
EnumInfos: file_audit_proto_enumTypes,
|
|
MessageInfos: file_audit_proto_msgTypes,
|
|
}.Build()
|
|
File_audit_proto = out.File
|
|
file_audit_proto_goTypes = nil
|
|
file_audit_proto_depIdxs = nil
|
|
}
|