All import paths updated to git.wntrmute.dev/mc/. Bumps mcdsl to v1.2.0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
587 B
Protocol Buffer
29 lines
587 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package mcns.v1;
|
|
|
|
option go_package = "git.wntrmute.dev/mc/mcns/gen/mcns/v1;mcnsv1";
|
|
|
|
// AuthService handles authentication by delegating to MCIAS.
|
|
service AuthService {
|
|
rpc Login(LoginRequest) returns (LoginResponse);
|
|
rpc Logout(LogoutRequest) returns (LogoutResponse);
|
|
}
|
|
|
|
message LoginRequest {
|
|
string username = 1;
|
|
string password = 2;
|
|
// TOTP code for two-factor authentication, if enabled on the account.
|
|
string totp_code = 3;
|
|
}
|
|
|
|
message LoginResponse {
|
|
string token = 1;
|
|
}
|
|
|
|
message LogoutRequest {
|
|
string token = 1;
|
|
}
|
|
|
|
message LogoutResponse {}
|