Paperclip/pkg/proto/attachments.proto

34 lines
717 B
Protocol Buffer
Raw Permalink Normal View History

2024-05-17 07:59:51 +00:00
syntax = "proto3";
option go_package = ".;proto";
import "google/protobuf/empty.proto";
2024-05-17 07:59:51 +00:00
package proto;
service Attachments {
rpc GetAttachment(AttachmentLookupRequest) returns (Attachment) {}
rpc CheckAttachmentExists(AttachmentLookupRequest) returns (google.protobuf.Empty) {}
2024-05-17 07:59:51 +00:00
}
message Attachment {
uint64 id = 1;
string uuid = 2;
int64 size = 3;
string name = 4;
string alt = 5;
string usage = 6;
string mimetype = 7;
string hash = 8;
string destination = 9;
bytes metadata = 10;
bool is_mature = 11;
uint64 account_id = 12;
}
message AttachmentLookupRequest {
optional uint64 id = 1;
optional string uuid = 2;
optional string usage = 3;
2024-05-17 07:59:51 +00:00
}