mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-19 21:59:59 -08:00
Update the mumble proto.
This commit is contained in:
parent
30e28d06aa
commit
c8919d4338
2 changed files with 1175 additions and 416 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -1,3 +1,10 @@
|
||||||
|
// Copyright 2005-2020 The Mumble Developers. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style license
|
||||||
|
// that can be found in the LICENSE file at the root of the
|
||||||
|
// Mumble source tree or at <https://www.mumble.info/LICENSE>.
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
package mumbleproto;
|
package mumbleproto;
|
||||||
|
|
||||||
option optimize_for = SPEED;
|
option optimize_for = SPEED;
|
||||||
|
|
@ -65,7 +72,8 @@ message Ping {
|
||||||
// Sent by the server when it rejects the user connection.
|
// Sent by the server when it rejects the user connection.
|
||||||
message Reject {
|
message Reject {
|
||||||
enum RejectType {
|
enum RejectType {
|
||||||
// TODO ??
|
// The rejection reason is unknown (details should be available
|
||||||
|
// in Reject.reason).
|
||||||
None = 0;
|
None = 0;
|
||||||
// The client attempted to connect with an incompatible version.
|
// The client attempted to connect with an incompatible version.
|
||||||
WrongVersion = 1;
|
WrongVersion = 1;
|
||||||
|
|
@ -100,7 +108,7 @@ message ServerSync {
|
||||||
optional uint32 max_bandwidth = 2;
|
optional uint32 max_bandwidth = 2;
|
||||||
// Server welcome text.
|
// Server welcome text.
|
||||||
optional string welcome_text = 3;
|
optional string welcome_text = 3;
|
||||||
// Current user permissions TODO: Confirm??
|
// Current user permissions in the root channel.
|
||||||
optional uint64 permissions = 4;
|
optional uint64 permissions = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -140,6 +148,10 @@ message ChannelState {
|
||||||
// the maximum number of users allowed in the channel is given by the
|
// the maximum number of users allowed in the channel is given by the
|
||||||
// server's "usersperchannel" setting.
|
// server's "usersperchannel" setting.
|
||||||
optional uint32 max_users = 11;
|
optional uint32 max_users = 11;
|
||||||
|
// Whether this channel has enter restrictions (ACL denying ENTER) set
|
||||||
|
optional bool is_enter_restricted = 12;
|
||||||
|
// Whether the receiver of this msg is considered to be able to enter this channel
|
||||||
|
optional bool can_enter = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used to communicate user leaving or being kicked. May be sent by the client
|
// Used to communicate user leaving or being kicked. May be sent by the client
|
||||||
|
|
@ -186,9 +198,14 @@ message UserState {
|
||||||
optional bool self_deaf = 10;
|
optional bool self_deaf = 10;
|
||||||
// User image if it is less than 128 bytes.
|
// User image if it is less than 128 bytes.
|
||||||
optional bytes texture = 11;
|
optional bytes texture = 11;
|
||||||
// TODO ??
|
// The positional audio plugin identifier.
|
||||||
|
// Positional audio information is only sent to users who share
|
||||||
|
// identical plugin contexts.
|
||||||
|
//
|
||||||
|
// This value is not trasmitted to clients.
|
||||||
optional bytes plugin_context = 12;
|
optional bytes plugin_context = 12;
|
||||||
// TODO ??
|
// The user's plugin-specific identity.
|
||||||
|
// This value is not transmitted to clients.
|
||||||
optional string plugin_identity = 13;
|
optional string plugin_identity = 13;
|
||||||
// User comment if it is less than 128 bytes.
|
// User comment if it is less than 128 bytes.
|
||||||
optional string comment = 14;
|
optional string comment = 14;
|
||||||
|
|
@ -202,6 +219,8 @@ message UserState {
|
||||||
optional bool priority_speaker = 18;
|
optional bool priority_speaker = 18;
|
||||||
// True if the user is currently recording.
|
// True if the user is currently recording.
|
||||||
optional bool recording = 19;
|
optional bool recording = 19;
|
||||||
|
// A list of temporary acces tokens to be respected when processing this request.
|
||||||
|
repeated string temporary_access_tokens = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Relays information on the bans. The client may send the BanList message to
|
// Relays information on the bans. The client may send the BanList message to
|
||||||
|
|
@ -215,7 +234,7 @@ message BanList {
|
||||||
required uint32 mask = 2;
|
required uint32 mask = 2;
|
||||||
// User name for identification purposes (does not affect the ban).
|
// User name for identification purposes (does not affect the ban).
|
||||||
optional string name = 3;
|
optional string name = 3;
|
||||||
// TODO ??
|
// The certificate hash of the banned user.
|
||||||
optional string hash = 4;
|
optional string hash = 4;
|
||||||
// Reason for the ban (does not affect the ban).
|
// Reason for the ban (does not affect the ban).
|
||||||
optional string reason = 5;
|
optional string reason = 5;
|
||||||
|
|
@ -269,7 +288,10 @@ message PermissionDenied {
|
||||||
UserName = 8;
|
UserName = 8;
|
||||||
// Channel is full.
|
// Channel is full.
|
||||||
ChannelFull = 9;
|
ChannelFull = 9;
|
||||||
|
// Channels are nested too deply.
|
||||||
NestingLimit = 10;
|
NestingLimit = 10;
|
||||||
|
// Maximum channel count reached.
|
||||||
|
ChannelCountLimit = 11;
|
||||||
}
|
}
|
||||||
// The denied permission when type is Permission.
|
// The denied permission when type is Permission.
|
||||||
optional uint32 permission = 1;
|
optional uint32 permission = 1;
|
||||||
|
|
@ -409,9 +431,9 @@ message VoiceTarget {
|
||||||
message Target {
|
message Target {
|
||||||
// Users that are included as targets.
|
// Users that are included as targets.
|
||||||
repeated uint32 session = 1;
|
repeated uint32 session = 1;
|
||||||
// Channels that are included as targets.
|
// Channel that is included as a target.
|
||||||
optional uint32 channel_id = 2;
|
optional uint32 channel_id = 2;
|
||||||
// TODO ??
|
// ACL group that is included as a target.
|
||||||
optional string group = 3;
|
optional string group = 3;
|
||||||
// True if the voice should follow links from the specified channel.
|
// True if the voice should follow links from the specified channel.
|
||||||
optional bool links = 4 [default = false];
|
optional bool links = 4 [default = false];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue