syntax = "proto3"; package notification; import "google/protobuf/empty.proto"; import "google/protobuf/wrappers.proto"; option go_package = "github.com/soardigital/klozr-protobuf/notification"; service EmailService { rpc dispatchByteEmail(EmailByteRequest) returns (google.protobuf.BoolValue); rpc dispatchStringEmail(EmailStringRequest) returns (google.protobuf.BoolValue); rpc dispatchOTPEmail(OTPEmailRequest) returns (google.protobuf.BoolValue); rpc dispatchSms(SmsRequest) returns (google.protobuf.BoolValue); rpc dispatchOTPSms(SmsRequest) returns (google.protobuf.BoolValue); } service SmsService { rpc dispatchSms(SmsRequest) returns (google.protobuf.BoolValue); rpc dispatchOTPSms(SmsRequest) returns (google.protobuf.BoolValue); } message EmailByteRequest { bytes message = 1; repeated string recipients = 2; string from = 3; string subject = 4; } message EmailStringRequest { string message = 1; repeated string recipients = 2; string from = 3; string subject = 4; } message SmsRequest { string to = 1; string body = 2; } message OTPEmailRequest { string otp = 1; repeated string recipients = 2; string from = 3; }