2022-10-31 10:49:21 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package protobuf;
|
|
|
|
|
|
|
|
|
|
option go_package = "./";
|
|
|
|
|
|
|
|
|
|
import "objects.proto";
|
|
|
|
|
|
2022-11-01 13:02:37 +00:00
|
|
|
// API: SystemCall
|
2022-11-02 09:47:01 +00:00
|
|
|
//-----------------------------------------------------------
|
2022-11-01 13:02:37 +00:00
|
|
|
message SystemCallRequest {
|
2022-11-02 09:47:01 +00:00
|
|
|
string command = 0x00000001;
|
2022-11-01 13:02:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SystemCallResult {
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-31 10:49:21 +00:00
|
|
|
// API: Echo
|
2022-11-02 09:47:01 +00:00
|
|
|
//-----------------------------------------------------------
|
2022-10-31 10:49:21 +00:00
|
|
|
message EchoRequest {
|
|
|
|
|
Document document = 0x00000001;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message EchoResult {
|
|
|
|
|
Document document = 0x00000001;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-14 08:44:03 +00:00
|
|
|
// API: Signup
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message SignupRequest {
|
|
|
|
|
string username = 0x00000001;
|
|
|
|
|
string email = 0x00000002;
|
|
|
|
|
string password = 0x00000003;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message SignupResult {
|
|
|
|
|
string token = 0x00000001;
|
|
|
|
|
string code = 0x00000002;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// API: Verify
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message VerifyRequest {
|
|
|
|
|
string email = 0x00000001;
|
|
|
|
|
string token = 0x00000002;
|
|
|
|
|
string code = 0x00000003;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message VerifyResult {
|
|
|
|
|
string token = 0x00000001;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// API: Login
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message LoginRequest {
|
|
|
|
|
string email = 0x00000001;
|
|
|
|
|
string password = 0x00000002;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LoginResult {
|
|
|
|
|
string username = 0x00000001;
|
|
|
|
|
string token = 0x00000002;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-16 09:05:26 +00:00
|
|
|
// API: GetProfileByUser
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message GetProfileByUserRequest {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message GetProfileByUserResult {
|
|
|
|
|
string username = 0x00000001;
|
|
|
|
|
string displayName = 0x00000002;
|
|
|
|
|
string avatar = 0x00000003;
|
|
|
|
|
string banner = 0x00000004;
|
|
|
|
|
string summary = 0x00000005;
|
|
|
|
|
string github = 0x00000006;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// API: UpdateProfileByUser
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message UpdateProfileByUserRequest {
|
|
|
|
|
string displayName = 0x00000001;
|
|
|
|
|
string avatar = 0x00000002;
|
|
|
|
|
string banner = 0x00000003;
|
|
|
|
|
string summary = 0x00000004;
|
|
|
|
|
string github = 0x00000005;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message UpdateProfileByUserResult {
|
|
|
|
|
string displayName = 0x00000001;
|
|
|
|
|
string avatar = 0x00000002;
|
|
|
|
|
string banner = 0x00000003;
|
|
|
|
|
string summary = 0x00000004;
|
|
|
|
|
string github = 0x00000005;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-18 07:54:37 +00:00
|
|
|
// API: Logout
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message LogoutRequest {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message LogoutResult {
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-21 14:14:45 +00:00
|
|
|
// API: Webfinger
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
message WebfingerRequest {
|
|
|
|
|
string resource = 0x00000001;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
message WebfingerResult {
|
|
|
|
|
repeated string aliases = 0x00000001;
|
|
|
|
|
repeated ActivityPubLink links = 0x00000002;
|
|
|
|
|
string subject = 0x00000003;
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-02 09:47:01 +00:00
|
|
|
//-----------------------------------------------------------
|