syntax = "proto2";

package larksuite.ws;

message Header {
  required string key = 1;
  required string value = 2;
}

// Frame is the binary framing unit exchanged over the WebSocket connection.
// The Lark WebSocket gateway uses protobuf-encoded binary WebSocket messages.
message Frame {
  required uint64 SeqID = 1;
  required uint64 LogID = 2;
  required int32 service = 3;
  required int32 method = 4;
  repeated Header headers = 5;
  optional string payload_encoding = 6;
  optional string payload_type = 7;
  optional bytes payload = 8;
  optional string LogIDNew = 9;
}
