2024-05-17 07:59:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = ".;proto";
|
|
|
|
|
2024-05-18 08:54:42 +00:00
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
|
2024-05-17 07:59:51 +00:00
|
|
|
package proto;
|
|
|
|
|
|
|
|
service Attachments {
|
|
|
|
rpc GetAttachment(AttachmentLookupRequest) returns (Attachment) {}
|
2024-05-18 08:54:42 +00:00
|
|
|
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;
|
2024-05-18 08:54:42 +00:00
|
|
|
optional string usage = 3;
|
2024-05-17 07:59:51 +00:00
|
|
|
}
|