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;
|
|
|
|
}
|
|
|
|
|
2023-05-29 10:37:31 +00:00
|
|
|
// API: CheckUsernameAvailability
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message CheckUsernameAvailabilityRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CheckUsernameAvailabilityResult {
|
|
|
|
bool isAvailable = 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;
|
|
|
|
}
|
|
|
|
|
2023-06-05 07:58:46 +00:00
|
|
|
// API: ChangePassword
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message ChangePasswordRequest {
|
|
|
|
string currentPassword = 0x00000001;
|
|
|
|
string newPassword = 0x00000002;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ChangePasswordResult {
|
|
|
|
}
|
|
|
|
|
2023-06-08 07:12:37 +00:00
|
|
|
// API: ResetPassword
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message ResetPasswordRequest {
|
|
|
|
string usernameOrEmail = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ResetPasswordResult {
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-05-02 17:47:43 +00:00
|
|
|
// API: GetPackages
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message GetPackagesRequest {
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetPackagesResult {
|
2023-05-03 18:24:05 +00:00
|
|
|
bytes body = 0x00000001;
|
2023-05-02 17:47:43 +00:00
|
|
|
}
|
|
|
|
|
2022-11-26 08:28:00 +00:00
|
|
|
// API: GetActor
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message GetActorRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetActorResult {
|
|
|
|
repeated string context = 0x00000001 [json_name = "@context"];
|
|
|
|
string id = 0x00000002;
|
|
|
|
string followers = 0x00000003;
|
|
|
|
string following = 0x00000004;
|
|
|
|
string inbox = 0x00000005;
|
|
|
|
string outbox = 0x00000006;
|
|
|
|
string name = 0x00000007;
|
|
|
|
string preferredUsername = 0x00000008;
|
|
|
|
string type = 0x00000009;
|
|
|
|
string url = 0x0000000A;
|
|
|
|
ActivityPubMedia icon = 0x0000000B;
|
|
|
|
ActivityPubMedia image = 0x0000000C;
|
|
|
|
ActivityPubPublicKey publicKey = 0x0000000D;
|
|
|
|
string summary = 0x0000000E;
|
|
|
|
string published = 0x0000000F;
|
|
|
|
}
|
|
|
|
|
2022-12-02 18:37:08 +00:00
|
|
|
// API: FollowActor
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message FollowActorRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
string acct = 0x00000002;
|
|
|
|
}
|
|
|
|
|
|
|
|
message FollowActorResult {
|
|
|
|
string url = 0x00000001;
|
|
|
|
}
|
|
|
|
|
2022-12-06 08:18:31 +00:00
|
|
|
// API: AuthorizeInteraction
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message AuthorizeInteractionRequest {
|
|
|
|
string uri = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AuthorizeInteractionResult {
|
|
|
|
string uri = 0x00000001;
|
|
|
|
bool success = 0x00000002;
|
|
|
|
}
|
|
|
|
|
2022-12-08 18:41:55 +00:00
|
|
|
// API: GetFollowers
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message GetFollowersRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFollowersResult {
|
|
|
|
string context = 0x00000001 [json_name = "@context"];
|
|
|
|
string id = 0x00000002;
|
|
|
|
string type = 0x00000003;
|
|
|
|
int32 totalItems = 0x00000004;
|
|
|
|
repeated string orderedItems = 0x00000005;
|
|
|
|
string first = 0x00000006;
|
|
|
|
}
|
|
|
|
|
2022-12-12 16:16:43 +00:00
|
|
|
// API: GetFollowing
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message GetFollowingRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFollowingResult {
|
|
|
|
string context = 0x00000001 [json_name = "@context"];
|
|
|
|
string id = 0x00000002;
|
|
|
|
string type = 0x00000003;
|
|
|
|
int32 totalItems = 0x00000004;
|
|
|
|
repeated string orderedItems = 0x00000005;
|
|
|
|
string first = 0x00000006;
|
|
|
|
}
|
|
|
|
|
2022-12-15 15:13:01 +00:00
|
|
|
// API: PostToOutbox
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message PostToOutboxRequest {
|
|
|
|
string username = 0x00000001;
|
2023-05-03 18:24:05 +00:00
|
|
|
bytes body = 0x00000002;
|
2022-12-15 15:13:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PostToOutboxResult {
|
2023-05-03 18:24:05 +00:00
|
|
|
bytes body = 0x00000001;
|
2022-12-15 15:13:01 +00:00
|
|
|
}
|
|
|
|
|
2022-12-20 13:20:18 +00:00
|
|
|
// API: GetOutbox
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message GetOutboxRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetOutboxResult {
|
|
|
|
string context = 0x00000001 [json_name = "@context"];
|
|
|
|
string id = 0x00000002;
|
|
|
|
string type = 0x00000003;
|
|
|
|
int32 totalItems = 0x00000004;
|
|
|
|
repeated ActivityPubActivity orderedItems = 0x00000005;
|
|
|
|
string first = 0x00000006;
|
|
|
|
}
|
|
|
|
|
2022-12-22 16:46:08 +00:00
|
|
|
// API: PostToInbox
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message PostToInboxRequest {
|
|
|
|
string username = 0x00000001;
|
2023-05-03 18:24:05 +00:00
|
|
|
bytes body = 0x00000002;
|
2022-12-22 16:46:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message PostToInboxResult {
|
2023-05-03 18:24:05 +00:00
|
|
|
bytes body = 0x00000001;
|
2022-12-22 16:46:08 +00:00
|
|
|
}
|
|
|
|
|
2023-01-04 09:52:15 +00:00
|
|
|
// API: GetInbox
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
message GetInboxRequest {
|
|
|
|
string username = 0x00000001;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetInboxResult {
|
|
|
|
string context = 0x00000001 [json_name = "@context"];
|
|
|
|
string id = 0x00000002;
|
|
|
|
string type = 0x00000003;
|
|
|
|
int32 totalItems = 0x00000004;
|
|
|
|
repeated ActivityPubActivity orderedItems = 0x00000005;
|
|
|
|
string first = 0x00000006;
|
|
|
|
}
|
|
|
|
|
2022-11-02 09:47:01 +00:00
|
|
|
//-----------------------------------------------------------
|