softplayer-proto/proto/accounts/accounts_v1.proto

47 lines
908 B
Protocol Buffer
Raw Normal View History

2024-03-18 10:14:42 +00:00
/// This file has messages for describing environments
syntax = "proto3";
package accounts;
option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts";
/**
* Service for handling environments
*/
2024-03-18 11:16:30 +00:00
service Accounts {
2024-03-18 13:20:24 +00:00
rpc SignUp (AccountWithPassword) returns (AccountFullWithToken) {}
rpc SignIn (AccountWithPassword) returns (AccountFullWithToken) {}
2024-03-18 10:14:42 +00:00
}
/**
* Represents a environment UUID only
*/
message AccountId {
string id = 1; // Contour ID: UUID
}
message AccountPassword {
string Password = 1;
}
message AccountData {
string name = 1; // Account name
2024-03-18 11:49:55 +00:00
string email = 2; // Account email
2024-03-18 10:14:42 +00:00
}
message AccountWithPassword {
AccountData data = 1;
AccountPassword AccountPassword = 2;
}
message AccountFull {
AccountId id = 1;
AccountData data = 2;
}
2024-03-18 11:16:30 +00:00
2024-03-18 13:20:24 +00:00
message AccountFullWithToken {
AccountId id = 1;
AccountData data = 2;
string Token = 3;
2024-03-18 11:16:30 +00:00
}