2022-10-31 10:49:21 +00:00
|
|
|
package contracts
|
|
|
|
|
2023-04-21 06:49:17 +00:00
|
|
|
import . "github.com/reiver/greatape/components/api/protobuf"
|
2022-10-31 10:49:21 +00:00
|
|
|
|
|
|
|
type IApi interface {
|
|
|
|
SetToken(string)
|
|
|
|
SetDebugMode(bool)
|
|
|
|
//API Methods
|
|
|
|
SystemCall(*SystemCallRequest) (*SystemCallResult, error)
|
|
|
|
Echo(*EchoRequest) (*EchoResult, error)
|
2023-05-29 10:37:31 +00:00
|
|
|
CheckUsernameAvailability(*CheckUsernameAvailabilityRequest) (*CheckUsernameAvailabilityResult, error)
|
2022-11-14 08:44:03 +00:00
|
|
|
Signup(*SignupRequest) (*SignupResult, error)
|
|
|
|
Verify(*VerifyRequest) (*VerifyResult, error)
|
|
|
|
Login(*LoginRequest) (*LoginResult, error)
|
2022-11-16 09:05:26 +00:00
|
|
|
GetProfileByUser(*GetProfileByUserRequest) (*GetProfileByUserResult, error)
|
|
|
|
UpdateProfileByUser(*UpdateProfileByUserRequest) (*UpdateProfileByUserResult, error)
|
2022-11-18 07:54:37 +00:00
|
|
|
Logout(*LogoutRequest) (*LogoutResult, error)
|
2022-11-21 14:14:45 +00:00
|
|
|
Webfinger(*WebfingerRequest) (*WebfingerResult, error)
|
2023-05-02 17:47:43 +00:00
|
|
|
GetPackages(*GetPackagesRequest) (*GetPackagesResult, error)
|
2022-11-26 08:28:00 +00:00
|
|
|
GetActor(*GetActorRequest) (*GetActorResult, error)
|
2022-12-02 18:37:08 +00:00
|
|
|
FollowActor(*FollowActorRequest) (*FollowActorResult, error)
|
2022-12-06 08:18:31 +00:00
|
|
|
AuthorizeInteraction(*AuthorizeInteractionRequest) (*AuthorizeInteractionResult, error)
|
2022-12-08 18:41:55 +00:00
|
|
|
GetFollowers(*GetFollowersRequest) (*GetFollowersResult, error)
|
2022-12-12 16:16:43 +00:00
|
|
|
GetFollowing(*GetFollowingRequest) (*GetFollowingResult, error)
|
2022-12-15 15:13:01 +00:00
|
|
|
PostToOutbox(*PostToOutboxRequest) (*PostToOutboxResult, error)
|
2022-12-20 13:20:18 +00:00
|
|
|
GetOutbox(*GetOutboxRequest) (*GetOutboxResult, error)
|
2022-12-22 16:46:08 +00:00
|
|
|
PostToInbox(*PostToInboxRequest) (*PostToInboxResult, error)
|
2023-01-04 09:52:15 +00:00
|
|
|
GetInbox(*GetInboxRequest) (*GetInboxResult, error)
|
2022-10-31 10:49:21 +00:00
|
|
|
}
|