This commit is contained in:
royalcat 2025-05-06 02:41:02 +04:00
parent 0614199b5f
commit 6350009fcf
20 changed files with 1256 additions and 54 deletions

View file

@ -7,21 +7,21 @@ option go_package = "/channelv1";
// import "google/protobuf/timestamp.proto";
message Channel {
oneof channel {
TextChannel text_channel = 1;
VoiceChannel voice_channel = 2;
}
oneof channel {
TextChannel text_channel = 1;
VoiceChannel voice_channel = 2;
}
}
message TextChannel {
string server_id = 1;
string channel_id = 2;
string name = 3;
string server_id = 1;
string channel_id = 2;
string name = 3;
}
message VoiceChannel {
string server_id = 1;
string channel_id = 2;
string name = 3;
string server_id = 1;
string channel_id = 2;
string name = 3;
string voice_relay_id = 4;
}

View file

@ -0,0 +1,16 @@
syntax = "proto3";
package konfa.hub.v1;
message AuthProvider {
string id = 1;
string name = 2;
oneof protocol { OpenIDConnect openid_connect = 101; }
}
message OpenIDConnect {
string issuer = 1;
string client_id = 2;
string client_secret = 3;
}

View file

@ -0,0 +1,30 @@
syntax = "proto3";
import "konfa/hub/v1/auth_provider.proto";
package konfa.hub.v1;
service HubService {
rpc ListServerIDs(ListServersRequest) returns (ListServersResponse);
rpc ListVoiceRelays(ListVoiceRelaysRequest) returns (ListVoiceRelaysResponse);
rpc ListAuthProviders(ListAuthProvidersRequest)
returns (ListAuthProvidersResponse);
}
message ListServersRequest {}
message ListServersResponse { repeated string server_ids = 1; }
message ListVoiceRelaysRequest {}
message VoiceRelay {
string id = 1;
string name = 2;
string address = 3;
}
message ListVoiceRelaysResponse { repeated VoiceRelay voice_relays = 1; }
message ListAuthProvidersRequest {}
message ListAuthProvidersResponse { repeated AuthProvider auth_providers = 1; }