syntax = "proto3";
package quicproquo.bench;

// Equivalent to the Envelope struct in delivery.capnp
message Envelope {
  uint64 seq = 1;
  bytes data = 2;
}

// Equivalent to a chat message payload (app_message.rs Chat variant)
message ChatMessage {
  bytes message_id = 1;   // 16 bytes
  string body = 2;        // UTF-8 text
  uint64 timestamp_ms = 3;
  bytes sender_key = 4;   // 32 bytes Ed25519 public key
}

// Batch fetch response (equivalent to fetch returning List(Envelope))
message FetchResponse {
  repeated Envelope payloads = 1;
}
