ration/pkg/pb/webhookingestion/webhook_ingestion.pb.go
caelum0x 77324a7b50 feat(ration): split gateway into auth/tenant-registry/card-issuance/webhook-ingestion
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>
2026-10-19 12:25:41 +03:00

210 lines
6.7 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc v6.33.4
// source: webhook_ingestion.proto
package webhookingestion
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 StreamEventsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // empty = all tenants
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StreamEventsRequest) Reset() {
*x = StreamEventsRequest{}
mi := &file_webhook_ingestion_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StreamEventsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StreamEventsRequest) ProtoMessage() {}
func (x *StreamEventsRequest) ProtoReflect() protoreflect.Message {
mi := &file_webhook_ingestion_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 StreamEventsRequest.ProtoReflect.Descriptor instead.
func (*StreamEventsRequest) Descriptor() ([]byte, []int) {
return file_webhook_ingestion_proto_rawDescGZIP(), []int{0}
}
func (x *StreamEventsRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
type NormalizedEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // "deposit", ...
Summary string `protobuf:"bytes,4,opt,name=summary,proto3" json:"summary,omitempty"`
AtUnix int64 `protobuf:"varint,5,opt,name=at_unix,json=atUnix,proto3" json:"at_unix,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NormalizedEvent) Reset() {
*x = NormalizedEvent{}
mi := &file_webhook_ingestion_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NormalizedEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NormalizedEvent) ProtoMessage() {}
func (x *NormalizedEvent) ProtoReflect() protoreflect.Message {
mi := &file_webhook_ingestion_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 NormalizedEvent.ProtoReflect.Descriptor instead.
func (*NormalizedEvent) Descriptor() ([]byte, []int) {
return file_webhook_ingestion_proto_rawDescGZIP(), []int{1}
}
func (x *NormalizedEvent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *NormalizedEvent) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *NormalizedEvent) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
func (x *NormalizedEvent) GetSummary() string {
if x != nil {
return x.Summary
}
return ""
}
func (x *NormalizedEvent) GetAtUnix() int64 {
if x != nil {
return x.AtUnix
}
return 0
}
var File_webhook_ingestion_proto protoreflect.FileDescriptor
const file_webhook_ingestion_proto_rawDesc = "" +
"\n" +
"\x17webhook_ingestion.proto\x12\x1aration.webhookingestion.v1\"2\n" +
"\x13StreamEventsRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\"\x85\x01\n" +
"\x0fNormalizedEvent\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
"\ttenant_id\x18\x02 \x01(\tR\btenantId\x12\x12\n" +
"\x04kind\x18\x03 \x01(\tR\x04kind\x12\x18\n" +
"\asummary\x18\x04 \x01(\tR\asummary\x12\x17\n" +
"\aat_unix\x18\x05 \x01(\x03R\x06atUnix2\x82\x01\n" +
"\x10WebhookIngestion\x12n\n" +
"\fStreamEvents\x12/.ration.webhookingestion.v1.StreamEventsRequest\x1a+.ration.webhookingestion.v1.NormalizedEvent0\x01B4Z2github.com/caelum0x/ration/pkg/pb/webhookingestionb\x06proto3"
var (
file_webhook_ingestion_proto_rawDescOnce sync.Once
file_webhook_ingestion_proto_rawDescData []byte
)
func file_webhook_ingestion_proto_rawDescGZIP() []byte {
file_webhook_ingestion_proto_rawDescOnce.Do(func() {
file_webhook_ingestion_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_webhook_ingestion_proto_rawDesc), len(file_webhook_ingestion_proto_rawDesc)))
})
return file_webhook_ingestion_proto_rawDescData
}
var file_webhook_ingestion_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_webhook_ingestion_proto_goTypes = []any{
(*StreamEventsRequest)(nil), // 0: ration.webhookingestion.v1.StreamEventsRequest
(*NormalizedEvent)(nil), // 1: ration.webhookingestion.v1.NormalizedEvent
}
var file_webhook_ingestion_proto_depIdxs = []int32{
0, // 0: ration.webhookingestion.v1.WebhookIngestion.StreamEvents:input_type -> ration.webhookingestion.v1.StreamEventsRequest
1, // 1: ration.webhookingestion.v1.WebhookIngestion.StreamEvents:output_type -> ration.webhookingestion.v1.NormalizedEvent
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_webhook_ingestion_proto_init() }
func file_webhook_ingestion_proto_init() {
if File_webhook_ingestion_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_webhook_ingestion_proto_rawDesc), len(file_webhook_ingestion_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_webhook_ingestion_proto_goTypes,
DependencyIndexes: file_webhook_ingestion_proto_depIdxs,
MessageInfos: file_webhook_ingestion_proto_msgTypes,
}.Build()
File_webhook_ingestion_proto = out.File
file_webhook_ingestion_proto_goTypes = nil
file_webhook_ingestion_proto_depIdxs = nil
}