26 lines
335 B
Protocol Buffer
26 lines
335 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package AviaryFormat;
|
|
|
|
enum Format {
|
|
WEBP = 0;
|
|
AVIF = 1;
|
|
JPG = 2;
|
|
PNG = 3;
|
|
GIF = 4;
|
|
}
|
|
|
|
message Image {
|
|
bytes key = 1;
|
|
string full_url = 2;
|
|
string thumb_url = 3;
|
|
string blurhash = 4;
|
|
Format format = 5;
|
|
}
|
|
|
|
message Index {
|
|
repeated Image images = 1;
|
|
optional string title = 2;
|
|
optional string desc = 3;
|
|
}
|