mirror of
https://github.com/cline/cline.git
synced 2025-06-03 03:59:07 +00:00
28 lines
552 B
Protocol Buffer
28 lines
552 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cline;
|
|
option java_package = "bot.cline.proto";
|
|
option java_multiple_files = true;
|
|
|
|
import "common.proto";
|
|
|
|
service WebService {
|
|
rpc checkIsImageUrl(StringRequest) returns (IsImageUrl);
|
|
rpc fetchOpenGraphData(StringRequest) returns (OpenGraphData);
|
|
rpc openInBrowser(StringRequest) returns (Empty);
|
|
}
|
|
|
|
message IsImageUrl {
|
|
bool is_image = 1;
|
|
string url = 2;
|
|
}
|
|
|
|
message OpenGraphData {
|
|
string title = 1;
|
|
string description = 2;
|
|
string image = 3;
|
|
string url = 4;
|
|
string site_name = 5;
|
|
string type = 6;
|
|
}
|