feat(protocol): define gateway control envelopes

This commit is contained in:
sechmachine
2026-07-29 17:24:18 +07:00
parent 36f6edffca
commit 0ea21cd3f2
29 changed files with 1445 additions and 41 deletions
+7
View File
@@ -32,3 +32,10 @@ message ClipboardText {
string text = 1;
string encoding = 2;
}
message GatewayClipboardText {
string direction = 1;
string text = 2;
string encoding = 3;
string loop_token = 4;
}
+18
View File
@@ -135,6 +135,15 @@ message ProviderSessionWork {
string client_private_key_pem = 15;
string server_certificate_pem = 16;
string client_id = 17;
ClipboardPolicy clipboard_policy = 18;
bool provider_application_termination_allowed = 19;
}
message ClipboardPolicy {
bool client_to_provider_enabled = 1;
bool provider_to_client_enabled = 2;
uint32 max_text_bytes = 3;
uint32 max_updates_per_minute = 4;
}
message ChannelFrame {
@@ -156,6 +165,15 @@ message ProviderState {
repeated string channels = 5;
}
message GatewayClipboardAudit {
string version = 1;
string session_id = 2;
string direction = 3;
string outcome = 4;
uint32 text_bytes = 5;
string reason = 6;
}
message StableError {
string version = 1;
string code = 2;