ration/pkg/pb/gateway/gateway.pb.go
caelum0x c3236f0bca feat(card-issuance,gateway,cli): add CloseCard — issued cards could never be shut off
CARD_STATUS_SUSPENDED/CLOSED have existed in common.proto since the
original build, and the Airwallex client package even defined
CardStatusSuspended/CardStatusClosed constants, but nothing in this
repo ever transitioned a stored card into either state: card-issuance's
airwallex.Client interface only exposed IssueCard/GetCard/
SetCardControls (limit/controls only, never status), so a leaked
credential, an offboarded cardholder's card, or any card that should
stop spending forever had no real operator path to close — only
"adjust-limit" to a smaller (but still nonzero-possible, still active)
limit.

Adds card_issuance.proto/gateway.proto's CloseCard RPC, a real
airwallex.Client.CloseCard on both Mock and Live (POST
/api/v1/issuing/cards/{id}/close), cardsvc.Service.CloseCard (releases
the card's full remaining ledger HOLD back to the tenant's available
balance, idempotent on an already-closed card), the gateway fan-out,
and `ration card close --card <id>`. AdjustCardLimit now rejects a
closed card instead of silently reopening a zombie hold.

tenantauth/ratelimit needed zero changes: both resolve card_id via
reflection, so CloseCardRequest's card_id field is automatically
tenant-scoped and rate-limited the same way GetCard/AdjustCardLimit
already are.

Verified live against the real bare-metal 7-service stack
(scripts/run-demo.sh): issued a real card (Held 1,000.00 USD), closed
it (status CLOSED, Held back to 0.00, Available back to 7,500.00),
re-closed it (idempotent — Available unchanged, no double-release),
confirmed adjust-limit on the closed card is rejected, and confirmed
closing an unknown card_id surfaces the same NotFound-wrapped error
GetCard/AdjustCardLimit already do. verify-chain: intact (5 records).
`go build`/`go vet` clean across every Go module (gateway,
card-issuance, cli, tui, auth, tenant-registry, webhook-ingestion,
agent, audit-log, sdk/go/ration), full `make build` (Rust+Go+SDK)
clean, 0 regressions.
2026-10-29 11:35:23 +03:00

1279 lines
42 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc v6.33.4
// source: gateway.proto
package gateway
import (
common "github.com/caelum0x/ration/pkg/pb/common"
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 Card 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"`
AirwallexCardId string `protobuf:"bytes,3,opt,name=airwallex_card_id,json=airwallexCardId,proto3" json:"airwallex_card_id,omitempty"`
CardholderName string `protobuf:"bytes,4,opt,name=cardholder_name,json=cardholderName,proto3" json:"cardholder_name,omitempty"`
Status common.CardStatus `protobuf:"varint,5,opt,name=status,proto3,enum=ration.common.v1.CardStatus" json:"status,omitempty"`
LimitMinorUnits int64 `protobuf:"varint,6,opt,name=limit_minor_units,json=limitMinorUnits,proto3" json:"limit_minor_units,omitempty"`
LimitInterval string `protobuf:"bytes,7,opt,name=limit_interval,json=limitInterval,proto3" json:"limit_interval,omitempty"` // "daily" | "monthly"
Currency string `protobuf:"bytes,8,opt,name=currency,proto3" json:"currency,omitempty"`
CreatedAtUnix int64 `protobuf:"varint,9,opt,name=created_at_unix,json=createdAtUnix,proto3" json:"created_at_unix,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Card) Reset() {
*x = Card{}
mi := &file_gateway_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Card) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Card) ProtoMessage() {}
func (x *Card) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 Card.ProtoReflect.Descriptor instead.
func (*Card) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{0}
}
func (x *Card) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Card) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *Card) GetAirwallexCardId() string {
if x != nil {
return x.AirwallexCardId
}
return ""
}
func (x *Card) GetCardholderName() string {
if x != nil {
return x.CardholderName
}
return ""
}
func (x *Card) GetStatus() common.CardStatus {
if x != nil {
return x.Status
}
return common.CardStatus(0)
}
func (x *Card) GetLimitMinorUnits() int64 {
if x != nil {
return x.LimitMinorUnits
}
return 0
}
func (x *Card) GetLimitInterval() string {
if x != nil {
return x.LimitInterval
}
return ""
}
func (x *Card) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *Card) GetCreatedAtUnix() int64 {
if x != nil {
return x.CreatedAtUnix
}
return 0
}
type IssueCardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
CardholderName string `protobuf:"bytes,2,opt,name=cardholder_name,json=cardholderName,proto3" json:"cardholder_name,omitempty"`
LimitMinorUnits int64 `protobuf:"varint,3,opt,name=limit_minor_units,json=limitMinorUnits,proto3" json:"limit_minor_units,omitempty"`
LimitInterval string `protobuf:"bytes,4,opt,name=limit_interval,json=limitInterval,proto3" json:"limit_interval,omitempty"`
Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *IssueCardRequest) Reset() {
*x = IssueCardRequest{}
mi := &file_gateway_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *IssueCardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IssueCardRequest) ProtoMessage() {}
func (x *IssueCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 IssueCardRequest.ProtoReflect.Descriptor instead.
func (*IssueCardRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{1}
}
func (x *IssueCardRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *IssueCardRequest) GetCardholderName() string {
if x != nil {
return x.CardholderName
}
return ""
}
func (x *IssueCardRequest) GetLimitMinorUnits() int64 {
if x != nil {
return x.LimitMinorUnits
}
return 0
}
func (x *IssueCardRequest) GetLimitInterval() string {
if x != nil {
return x.LimitInterval
}
return ""
}
func (x *IssueCardRequest) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
type AdjustCardLimitRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
NewLimitMinorUnits int64 `protobuf:"varint,2,opt,name=new_limit_minor_units,json=newLimitMinorUnits,proto3" json:"new_limit_minor_units,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdjustCardLimitRequest) Reset() {
*x = AdjustCardLimitRequest{}
mi := &file_gateway_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdjustCardLimitRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdjustCardLimitRequest) ProtoMessage() {}
func (x *AdjustCardLimitRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 AdjustCardLimitRequest.ProtoReflect.Descriptor instead.
func (*AdjustCardLimitRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{2}
}
func (x *AdjustCardLimitRequest) GetCardId() string {
if x != nil {
return x.CardId
}
return ""
}
func (x *AdjustCardLimitRequest) GetNewLimitMinorUnits() int64 {
if x != nil {
return x.NewLimitMinorUnits
}
return 0
}
func (x *AdjustCardLimitRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
type GetCardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetCardRequest) Reset() {
*x = GetCardRequest{}
mi := &file_gateway_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetCardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCardRequest) ProtoMessage() {}
func (x *GetCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 GetCardRequest.ProtoReflect.Descriptor instead.
func (*GetCardRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{3}
}
func (x *GetCardRequest) GetCardId() string {
if x != nil {
return x.CardId
}
return ""
}
type CloseCardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
CardId string `protobuf:"bytes,1,opt,name=card_id,json=cardId,proto3" json:"card_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CloseCardRequest) Reset() {
*x = CloseCardRequest{}
mi := &file_gateway_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CloseCardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CloseCardRequest) ProtoMessage() {}
func (x *CloseCardRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 CloseCardRequest.ProtoReflect.Descriptor instead.
func (*CloseCardRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{4}
}
func (x *CloseCardRequest) GetCardId() string {
if x != nil {
return x.CardId
}
return ""
}
type ListCardsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListCardsRequest) Reset() {
*x = ListCardsRequest{}
mi := &file_gateway_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListCardsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCardsRequest) ProtoMessage() {}
func (x *ListCardsRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 ListCardsRequest.ProtoReflect.Descriptor instead.
func (*ListCardsRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{5}
}
func (x *ListCardsRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
type ListCardsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cards []*Card `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListCardsResponse) Reset() {
*x = ListCardsResponse{}
mi := &file_gateway_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListCardsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListCardsResponse) ProtoMessage() {}
func (x *ListCardsResponse) ProtoReflect() protoreflect.Message {
mi := &file_gateway_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 ListCardsResponse.ProtoReflect.Descriptor instead.
func (*ListCardsResponse) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{6}
}
func (x *ListCardsResponse) GetCards() []*Card {
if x != nil {
return x.Cards
}
return nil
}
type RationBridgeFundingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
RequestedMinorUnits int64 `protobuf:"varint,2,opt,name=requested_minor_units,json=requestedMinorUnits,proto3" json:"requested_minor_units,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RationBridgeFundingRequest) Reset() {
*x = RationBridgeFundingRequest{}
mi := &file_gateway_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RationBridgeFundingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RationBridgeFundingRequest) ProtoMessage() {}
func (x *RationBridgeFundingRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[7]
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 RationBridgeFundingRequest.ProtoReflect.Descriptor instead.
func (*RationBridgeFundingRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{7}
}
func (x *RationBridgeFundingRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *RationBridgeFundingRequest) GetRequestedMinorUnits() int64 {
if x != nil {
return x.RequestedMinorUnits
}
return 0
}
func (x *RationBridgeFundingRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
type RationBridgeFundingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
GrantedMinorUnits int64 `protobuf:"varint,1,opt,name=granted_minor_units,json=grantedMinorUnits,proto3" json:"granted_minor_units,omitempty"`
FullyGranted bool `protobuf:"varint,2,opt,name=fully_granted,json=fullyGranted,proto3" json:"fully_granted,omitempty"`
Explanation string `protobuf:"bytes,3,opt,name=explanation,proto3" json:"explanation,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RationBridgeFundingResponse) Reset() {
*x = RationBridgeFundingResponse{}
mi := &file_gateway_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RationBridgeFundingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RationBridgeFundingResponse) ProtoMessage() {}
func (x *RationBridgeFundingResponse) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[8]
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 RationBridgeFundingResponse.ProtoReflect.Descriptor instead.
func (*RationBridgeFundingResponse) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{8}
}
func (x *RationBridgeFundingResponse) GetGrantedMinorUnits() int64 {
if x != nil {
return x.GrantedMinorUnits
}
return 0
}
func (x *RationBridgeFundingResponse) GetFullyGranted() bool {
if x != nil {
return x.FullyGranted
}
return false
}
func (x *RationBridgeFundingResponse) GetExplanation() string {
if x != nil {
return x.Explanation
}
return ""
}
type SimulateDepositRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
AmountMinorUnits int64 `protobuf:"varint,2,opt,name=amount_minor_units,json=amountMinorUnits,proto3" json:"amount_minor_units,omitempty"`
ExpectedAtUnix int64 `protobuf:"varint,3,opt,name=expected_at_unix,json=expectedAtUnix,proto3" json:"expected_at_unix,omitempty"`
MarkLate bool `protobuf:"varint,4,opt,name=mark_late,json=markLate,proto3" json:"mark_late,omitempty"` // if true, created already past expected_at_unix
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SimulateDepositRequest) Reset() {
*x = SimulateDepositRequest{}
mi := &file_gateway_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SimulateDepositRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SimulateDepositRequest) ProtoMessage() {}
func (x *SimulateDepositRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[9]
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 SimulateDepositRequest.ProtoReflect.Descriptor instead.
func (*SimulateDepositRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{9}
}
func (x *SimulateDepositRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *SimulateDepositRequest) GetAmountMinorUnits() int64 {
if x != nil {
return x.AmountMinorUnits
}
return 0
}
func (x *SimulateDepositRequest) GetExpectedAtUnix() int64 {
if x != nil {
return x.ExpectedAtUnix
}
return 0
}
func (x *SimulateDepositRequest) GetMarkLate() bool {
if x != nil {
return x.MarkLate
}
return false
}
type SimulateDepositResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
DepositId string `protobuf:"bytes,1,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SimulateDepositResponse) Reset() {
*x = SimulateDepositResponse{}
mi := &file_gateway_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SimulateDepositResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SimulateDepositResponse) ProtoMessage() {}
func (x *SimulateDepositResponse) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[10]
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 SimulateDepositResponse.ProtoReflect.Descriptor instead.
func (*SimulateDepositResponse) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{10}
}
func (x *SimulateDepositResponse) GetDepositId() string {
if x != nil {
return x.DepositId
}
return ""
}
type StreamActivityRequest 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 *StreamActivityRequest) Reset() {
*x = StreamActivityRequest{}
mi := &file_gateway_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StreamActivityRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StreamActivityRequest) ProtoMessage() {}
func (x *StreamActivityRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[11]
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 StreamActivityRequest.ProtoReflect.Descriptor instead.
func (*StreamActivityRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{11}
}
func (x *StreamActivityRequest) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
type ActivityEvent 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", "card", "agent_decision", "ledger_entry"
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 *ActivityEvent) Reset() {
*x = ActivityEvent{}
mi := &file_gateway_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ActivityEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ActivityEvent) ProtoMessage() {}
func (x *ActivityEvent) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[12]
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 ActivityEvent.ProtoReflect.Descriptor instead.
func (*ActivityEvent) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{12}
}
func (x *ActivityEvent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *ActivityEvent) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *ActivityEvent) GetKind() string {
if x != nil {
return x.Kind
}
return ""
}
func (x *ActivityEvent) GetSummary() string {
if x != nil {
return x.Summary
}
return ""
}
func (x *ActivityEvent) GetAtUnix() int64 {
if x != nil {
return x.AtUnix
}
return 0
}
type GetDashboardSnapshotRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// decisions_per_tenant bounds how many of each tenant's most recent
// agent decisions are fetched before merging and sorting across
// tenants (see services/tui's identical decisionsPerTenant constant
// for the same demo-scale rationale). 0 = server default (20).
DecisionsPerTenant int32 `protobuf:"varint,1,opt,name=decisions_per_tenant,json=decisionsPerTenant,proto3" json:"decisions_per_tenant,omitempty"`
// max_decisions bounds the total size of recent_decisions after
// merging across every tenant. 0 = server default (50).
MaxDecisions int32 `protobuf:"varint,2,opt,name=max_decisions,json=maxDecisions,proto3" json:"max_decisions,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDashboardSnapshotRequest) Reset() {
*x = GetDashboardSnapshotRequest{}
mi := &file_gateway_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDashboardSnapshotRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDashboardSnapshotRequest) ProtoMessage() {}
func (x *GetDashboardSnapshotRequest) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[13]
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 GetDashboardSnapshotRequest.ProtoReflect.Descriptor instead.
func (*GetDashboardSnapshotRequest) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{13}
}
func (x *GetDashboardSnapshotRequest) GetDecisionsPerTenant() int32 {
if x != nil {
return x.DecisionsPerTenant
}
return 0
}
func (x *GetDashboardSnapshotRequest) GetMaxDecisions() int32 {
if x != nil {
return x.MaxDecisions
}
return 0
}
type TenantSnapshot struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
TenantName string `protobuf:"bytes,2,opt,name=tenant_name,json=tenantName,proto3" json:"tenant_name,omitempty"`
Currency string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
ReserveFloorMinorUnits int64 `protobuf:"varint,4,opt,name=reserve_floor_minor_units,json=reserveFloorMinorUnits,proto3" json:"reserve_floor_minor_units,omitempty"`
AvailableMinorUnits int64 `protobuf:"varint,5,opt,name=available_minor_units,json=availableMinorUnits,proto3" json:"available_minor_units,omitempty"`
HeldMinorUnits int64 `protobuf:"varint,6,opt,name=held_minor_units,json=heldMinorUnits,proto3" json:"held_minor_units,omitempty"`
// headroom_minor_units is available_minor_units - reserve_floor_minor_units
// (ration.ledger.v1's CheckReserveFloor RPC, the exact same number
// every bridge-funding decision is gated on) — never recomputed
// client-side from the other two fields, so the dashboard can never
// silently drift from the authoritative definition if that math ever
// changes.
HeadroomMinorUnits int64 `protobuf:"varint,7,opt,name=headroom_minor_units,json=headroomMinorUnits,proto3" json:"headroom_minor_units,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TenantSnapshot) Reset() {
*x = TenantSnapshot{}
mi := &file_gateway_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TenantSnapshot) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TenantSnapshot) ProtoMessage() {}
func (x *TenantSnapshot) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[14]
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 TenantSnapshot.ProtoReflect.Descriptor instead.
func (*TenantSnapshot) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{14}
}
func (x *TenantSnapshot) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *TenantSnapshot) GetTenantName() string {
if x != nil {
return x.TenantName
}
return ""
}
func (x *TenantSnapshot) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *TenantSnapshot) GetReserveFloorMinorUnits() int64 {
if x != nil {
return x.ReserveFloorMinorUnits
}
return 0
}
func (x *TenantSnapshot) GetAvailableMinorUnits() int64 {
if x != nil {
return x.AvailableMinorUnits
}
return 0
}
func (x *TenantSnapshot) GetHeldMinorUnits() int64 {
if x != nil {
return x.HeldMinorUnits
}
return 0
}
func (x *TenantSnapshot) GetHeadroomMinorUnits() int64 {
if x != nil {
return x.HeadroomMinorUnits
}
return 0
}
type AgentDecisionSummary struct {
state protoimpl.MessageState `protogen:"open.v1"`
TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
TenantName string `protobuf:"bytes,2,opt,name=tenant_name,json=tenantName,proto3" json:"tenant_name,omitempty"`
Trigger string `protobuf:"bytes,3,opt,name=trigger,proto3" json:"trigger,omitempty"`
Action common.AgentAction `protobuf:"varint,4,opt,name=action,proto3,enum=ration.common.v1.AgentAction" json:"action,omitempty"`
Rationale string `protobuf:"bytes,5,opt,name=rationale,proto3" json:"rationale,omitempty"`
PolicySnapshotJson string `protobuf:"bytes,6,opt,name=policy_snapshot_json,json=policySnapshotJson,proto3" json:"policy_snapshot_json,omitempty"`
CreatedAtUnix int64 `protobuf:"varint,7,opt,name=created_at_unix,json=createdAtUnix,proto3" json:"created_at_unix,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AgentDecisionSummary) Reset() {
*x = AgentDecisionSummary{}
mi := &file_gateway_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AgentDecisionSummary) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AgentDecisionSummary) ProtoMessage() {}
func (x *AgentDecisionSummary) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[15]
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 AgentDecisionSummary.ProtoReflect.Descriptor instead.
func (*AgentDecisionSummary) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{15}
}
func (x *AgentDecisionSummary) GetTenantId() string {
if x != nil {
return x.TenantId
}
return ""
}
func (x *AgentDecisionSummary) GetTenantName() string {
if x != nil {
return x.TenantName
}
return ""
}
func (x *AgentDecisionSummary) GetTrigger() string {
if x != nil {
return x.Trigger
}
return ""
}
func (x *AgentDecisionSummary) GetAction() common.AgentAction {
if x != nil {
return x.Action
}
return common.AgentAction(0)
}
func (x *AgentDecisionSummary) GetRationale() string {
if x != nil {
return x.Rationale
}
return ""
}
func (x *AgentDecisionSummary) GetPolicySnapshotJson() string {
if x != nil {
return x.PolicySnapshotJson
}
return ""
}
func (x *AgentDecisionSummary) GetCreatedAtUnix() int64 {
if x != nil {
return x.CreatedAtUnix
}
return 0
}
type GetDashboardSnapshotResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Tenants []*TenantSnapshot `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
// recent_decisions is sorted newest first, merged across every
// tenant and capped at the request's max_decisions.
RecentDecisions []*AgentDecisionSummary `protobuf:"bytes,2,rep,name=recent_decisions,json=recentDecisions,proto3" json:"recent_decisions,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetDashboardSnapshotResponse) Reset() {
*x = GetDashboardSnapshotResponse{}
mi := &file_gateway_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetDashboardSnapshotResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetDashboardSnapshotResponse) ProtoMessage() {}
func (x *GetDashboardSnapshotResponse) ProtoReflect() protoreflect.Message {
mi := &file_gateway_proto_msgTypes[16]
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 GetDashboardSnapshotResponse.ProtoReflect.Descriptor instead.
func (*GetDashboardSnapshotResponse) Descriptor() ([]byte, []int) {
return file_gateway_proto_rawDescGZIP(), []int{16}
}
func (x *GetDashboardSnapshotResponse) GetTenants() []*TenantSnapshot {
if x != nil {
return x.Tenants
}
return nil
}
func (x *GetDashboardSnapshotResponse) GetRecentDecisions() []*AgentDecisionSummary {
if x != nil {
return x.RecentDecisions
}
return nil
}
var File_gateway_proto protoreflect.FileDescriptor
const file_gateway_proto_rawDesc = "" +
"\n" +
"\rgateway.proto\x12\x11ration.gateway.v1\x1a\fcommon.proto\"\xd5\x02\n" +
"\x04Card\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
"\ttenant_id\x18\x02 \x01(\tR\btenantId\x12*\n" +
"\x11airwallex_card_id\x18\x03 \x01(\tR\x0fairwallexCardId\x12'\n" +
"\x0fcardholder_name\x18\x04 \x01(\tR\x0ecardholderName\x124\n" +
"\x06status\x18\x05 \x01(\x0e2\x1c.ration.common.v1.CardStatusR\x06status\x12*\n" +
"\x11limit_minor_units\x18\x06 \x01(\x03R\x0flimitMinorUnits\x12%\n" +
"\x0elimit_interval\x18\a \x01(\tR\rlimitInterval\x12\x1a\n" +
"\bcurrency\x18\b \x01(\tR\bcurrency\x12&\n" +
"\x0fcreated_at_unix\x18\t \x01(\x03R\rcreatedAtUnix\"\xc7\x01\n" +
"\x10IssueCardRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12'\n" +
"\x0fcardholder_name\x18\x02 \x01(\tR\x0ecardholderName\x12*\n" +
"\x11limit_minor_units\x18\x03 \x01(\x03R\x0flimitMinorUnits\x12%\n" +
"\x0elimit_interval\x18\x04 \x01(\tR\rlimitInterval\x12\x1a\n" +
"\bcurrency\x18\x05 \x01(\tR\bcurrency\"|\n" +
"\x16AdjustCardLimitRequest\x12\x17\n" +
"\acard_id\x18\x01 \x01(\tR\x06cardId\x121\n" +
"\x15new_limit_minor_units\x18\x02 \x01(\x03R\x12newLimitMinorUnits\x12\x16\n" +
"\x06reason\x18\x03 \x01(\tR\x06reason\")\n" +
"\x0eGetCardRequest\x12\x17\n" +
"\acard_id\x18\x01 \x01(\tR\x06cardId\"+\n" +
"\x10CloseCardRequest\x12\x17\n" +
"\acard_id\x18\x01 \x01(\tR\x06cardId\"/\n" +
"\x10ListCardsRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\"B\n" +
"\x11ListCardsResponse\x12-\n" +
"\x05cards\x18\x01 \x03(\v2\x17.ration.gateway.v1.CardR\x05cards\"\x85\x01\n" +
"\x1aRationBridgeFundingRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x122\n" +
"\x15requested_minor_units\x18\x02 \x01(\x03R\x13requestedMinorUnits\x12\x16\n" +
"\x06reason\x18\x03 \x01(\tR\x06reason\"\x94\x01\n" +
"\x1bRationBridgeFundingResponse\x12.\n" +
"\x13granted_minor_units\x18\x01 \x01(\x03R\x11grantedMinorUnits\x12#\n" +
"\rfully_granted\x18\x02 \x01(\bR\ffullyGranted\x12 \n" +
"\vexplanation\x18\x03 \x01(\tR\vexplanation\"\xaa\x01\n" +
"\x16SimulateDepositRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12,\n" +
"\x12amount_minor_units\x18\x02 \x01(\x03R\x10amountMinorUnits\x12(\n" +
"\x10expected_at_unix\x18\x03 \x01(\x03R\x0eexpectedAtUnix\x12\x1b\n" +
"\tmark_late\x18\x04 \x01(\bR\bmarkLate\"8\n" +
"\x17SimulateDepositResponse\x12\x1d\n" +
"\n" +
"deposit_id\x18\x01 \x01(\tR\tdepositId\"4\n" +
"\x15StreamActivityRequest\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\"\x83\x01\n" +
"\rActivityEvent\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\x06atUnix\"t\n" +
"\x1bGetDashboardSnapshotRequest\x120\n" +
"\x14decisions_per_tenant\x18\x01 \x01(\x05R\x12decisionsPerTenant\x12#\n" +
"\rmax_decisions\x18\x02 \x01(\x05R\fmaxDecisions\"\xb5\x02\n" +
"\x0eTenantSnapshot\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1f\n" +
"\vtenant_name\x18\x02 \x01(\tR\n" +
"tenantName\x12\x1a\n" +
"\bcurrency\x18\x03 \x01(\tR\bcurrency\x129\n" +
"\x19reserve_floor_minor_units\x18\x04 \x01(\x03R\x16reserveFloorMinorUnits\x122\n" +
"\x15available_minor_units\x18\x05 \x01(\x03R\x13availableMinorUnits\x12(\n" +
"\x10held_minor_units\x18\x06 \x01(\x03R\x0eheldMinorUnits\x120\n" +
"\x14headroom_minor_units\x18\a \x01(\x03R\x12headroomMinorUnits\"\x9d\x02\n" +
"\x14AgentDecisionSummary\x12\x1b\n" +
"\ttenant_id\x18\x01 \x01(\tR\btenantId\x12\x1f\n" +
"\vtenant_name\x18\x02 \x01(\tR\n" +
"tenantName\x12\x18\n" +
"\atrigger\x18\x03 \x01(\tR\atrigger\x125\n" +
"\x06action\x18\x04 \x01(\x0e2\x1d.ration.common.v1.AgentActionR\x06action\x12\x1c\n" +
"\trationale\x18\x05 \x01(\tR\trationale\x120\n" +
"\x14policy_snapshot_json\x18\x06 \x01(\tR\x12policySnapshotJson\x12&\n" +
"\x0fcreated_at_unix\x18\a \x01(\x03R\rcreatedAtUnix\"\xaf\x01\n" +
"\x1cGetDashboardSnapshotResponse\x12;\n" +
"\atenants\x18\x01 \x03(\v2!.ration.gateway.v1.TenantSnapshotR\atenants\x12R\n" +
"\x10recent_decisions\x18\x02 \x03(\v2'.ration.gateway.v1.AgentDecisionSummaryR\x0frecentDecisions2\xce\x06\n" +
"\aGateway\x12I\n" +
"\tIssueCard\x12#.ration.gateway.v1.IssueCardRequest\x1a\x17.ration.gateway.v1.Card\x12U\n" +
"\x0fAdjustCardLimit\x12).ration.gateway.v1.AdjustCardLimitRequest\x1a\x17.ration.gateway.v1.Card\x12E\n" +
"\aGetCard\x12!.ration.gateway.v1.GetCardRequest\x1a\x17.ration.gateway.v1.Card\x12V\n" +
"\tListCards\x12#.ration.gateway.v1.ListCardsRequest\x1a$.ration.gateway.v1.ListCardsResponse\x12I\n" +
"\tCloseCard\x12#.ration.gateway.v1.CloseCardRequest\x1a\x17.ration.gateway.v1.Card\x12t\n" +
"\x13RationBridgeFunding\x12-.ration.gateway.v1.RationBridgeFundingRequest\x1a..ration.gateway.v1.RationBridgeFundingResponse\x12h\n" +
"\x0fSimulateDeposit\x12).ration.gateway.v1.SimulateDepositRequest\x1a*.ration.gateway.v1.SimulateDepositResponse\x12^\n" +
"\x0eStreamActivity\x12(.ration.gateway.v1.StreamActivityRequest\x1a .ration.gateway.v1.ActivityEvent0\x01\x12w\n" +
"\x14GetDashboardSnapshot\x12..ration.gateway.v1.GetDashboardSnapshotRequest\x1a/.ration.gateway.v1.GetDashboardSnapshotResponseB+Z)github.com/caelum0x/ration/pkg/pb/gatewayb\x06proto3"
var (
file_gateway_proto_rawDescOnce sync.Once
file_gateway_proto_rawDescData []byte
)
func file_gateway_proto_rawDescGZIP() []byte {
file_gateway_proto_rawDescOnce.Do(func() {
file_gateway_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_gateway_proto_rawDesc), len(file_gateway_proto_rawDesc)))
})
return file_gateway_proto_rawDescData
}
var file_gateway_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
var file_gateway_proto_goTypes = []any{
(*Card)(nil), // 0: ration.gateway.v1.Card
(*IssueCardRequest)(nil), // 1: ration.gateway.v1.IssueCardRequest
(*AdjustCardLimitRequest)(nil), // 2: ration.gateway.v1.AdjustCardLimitRequest
(*GetCardRequest)(nil), // 3: ration.gateway.v1.GetCardRequest
(*CloseCardRequest)(nil), // 4: ration.gateway.v1.CloseCardRequest
(*ListCardsRequest)(nil), // 5: ration.gateway.v1.ListCardsRequest
(*ListCardsResponse)(nil), // 6: ration.gateway.v1.ListCardsResponse
(*RationBridgeFundingRequest)(nil), // 7: ration.gateway.v1.RationBridgeFundingRequest
(*RationBridgeFundingResponse)(nil), // 8: ration.gateway.v1.RationBridgeFundingResponse
(*SimulateDepositRequest)(nil), // 9: ration.gateway.v1.SimulateDepositRequest
(*SimulateDepositResponse)(nil), // 10: ration.gateway.v1.SimulateDepositResponse
(*StreamActivityRequest)(nil), // 11: ration.gateway.v1.StreamActivityRequest
(*ActivityEvent)(nil), // 12: ration.gateway.v1.ActivityEvent
(*GetDashboardSnapshotRequest)(nil), // 13: ration.gateway.v1.GetDashboardSnapshotRequest
(*TenantSnapshot)(nil), // 14: ration.gateway.v1.TenantSnapshot
(*AgentDecisionSummary)(nil), // 15: ration.gateway.v1.AgentDecisionSummary
(*GetDashboardSnapshotResponse)(nil), // 16: ration.gateway.v1.GetDashboardSnapshotResponse
(common.CardStatus)(0), // 17: ration.common.v1.CardStatus
(common.AgentAction)(0), // 18: ration.common.v1.AgentAction
}
var file_gateway_proto_depIdxs = []int32{
17, // 0: ration.gateway.v1.Card.status:type_name -> ration.common.v1.CardStatus
0, // 1: ration.gateway.v1.ListCardsResponse.cards:type_name -> ration.gateway.v1.Card
18, // 2: ration.gateway.v1.AgentDecisionSummary.action:type_name -> ration.common.v1.AgentAction
14, // 3: ration.gateway.v1.GetDashboardSnapshotResponse.tenants:type_name -> ration.gateway.v1.TenantSnapshot
15, // 4: ration.gateway.v1.GetDashboardSnapshotResponse.recent_decisions:type_name -> ration.gateway.v1.AgentDecisionSummary
1, // 5: ration.gateway.v1.Gateway.IssueCard:input_type -> ration.gateway.v1.IssueCardRequest
2, // 6: ration.gateway.v1.Gateway.AdjustCardLimit:input_type -> ration.gateway.v1.AdjustCardLimitRequest
3, // 7: ration.gateway.v1.Gateway.GetCard:input_type -> ration.gateway.v1.GetCardRequest
5, // 8: ration.gateway.v1.Gateway.ListCards:input_type -> ration.gateway.v1.ListCardsRequest
4, // 9: ration.gateway.v1.Gateway.CloseCard:input_type -> ration.gateway.v1.CloseCardRequest
7, // 10: ration.gateway.v1.Gateway.RationBridgeFunding:input_type -> ration.gateway.v1.RationBridgeFundingRequest
9, // 11: ration.gateway.v1.Gateway.SimulateDeposit:input_type -> ration.gateway.v1.SimulateDepositRequest
11, // 12: ration.gateway.v1.Gateway.StreamActivity:input_type -> ration.gateway.v1.StreamActivityRequest
13, // 13: ration.gateway.v1.Gateway.GetDashboardSnapshot:input_type -> ration.gateway.v1.GetDashboardSnapshotRequest
0, // 14: ration.gateway.v1.Gateway.IssueCard:output_type -> ration.gateway.v1.Card
0, // 15: ration.gateway.v1.Gateway.AdjustCardLimit:output_type -> ration.gateway.v1.Card
0, // 16: ration.gateway.v1.Gateway.GetCard:output_type -> ration.gateway.v1.Card
6, // 17: ration.gateway.v1.Gateway.ListCards:output_type -> ration.gateway.v1.ListCardsResponse
0, // 18: ration.gateway.v1.Gateway.CloseCard:output_type -> ration.gateway.v1.Card
8, // 19: ration.gateway.v1.Gateway.RationBridgeFunding:output_type -> ration.gateway.v1.RationBridgeFundingResponse
10, // 20: ration.gateway.v1.Gateway.SimulateDeposit:output_type -> ration.gateway.v1.SimulateDepositResponse
12, // 21: ration.gateway.v1.Gateway.StreamActivity:output_type -> ration.gateway.v1.ActivityEvent
16, // 22: ration.gateway.v1.Gateway.GetDashboardSnapshot:output_type -> ration.gateway.v1.GetDashboardSnapshotResponse
14, // [14:23] is the sub-list for method output_type
5, // [5:14] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_gateway_proto_init() }
func file_gateway_proto_init() {
if File_gateway_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_gateway_proto_rawDesc), len(file_gateway_proto_rawDesc)),
NumEnums: 0,
NumMessages: 17,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_gateway_proto_goTypes,
DependencyIndexes: file_gateway_proto_depIdxs,
MessageInfos: file_gateway_proto_msgTypes,
}.Build()
File_gateway_proto = out.File
file_gateway_proto_goTypes = nil
file_gateway_proto_depIdxs = nil
}