New workspace structure with 9 crates. Adds: - proto/qpq/v1/*.proto: 11 protobuf schemas covering all 33 RPC methods - quicproquo-proto: dual codegen (capnp legacy + prost v2) - quicproquo-rpc: QUIC RPC framework (framing, server, client, middleware) - quicproquo-sdk: client SDK (QpqClient, events, conversation store) - quicproquo-server/domain/: protocol-agnostic domain types and services - justfile: build commands Wire format: [method_id:u16][req_id:u32][len:u32][protobuf] per QUIC stream. All 151 existing tests pass. Backward compatible with v1 capnp code.
35 lines
546 B
Protocol Buffer
35 lines
546 B
Protocol Buffer
syntax = "proto3";
|
|
package qpq.v1;
|
|
|
|
// Device register/list/revoke (3 methods).
|
|
// Method IDs: 700-702.
|
|
|
|
message RegisterDeviceRequest {
|
|
bytes device_id = 1;
|
|
string device_name = 2;
|
|
}
|
|
|
|
message RegisterDeviceResponse {
|
|
bool success = 1;
|
|
}
|
|
|
|
message ListDevicesRequest {}
|
|
|
|
message ListDevicesResponse {
|
|
repeated Device devices = 1;
|
|
}
|
|
|
|
message Device {
|
|
bytes device_id = 1;
|
|
string device_name = 2;
|
|
uint64 registered_at = 3;
|
|
}
|
|
|
|
message RevokeDeviceRequest {
|
|
bytes device_id = 1;
|
|
}
|
|
|
|
message RevokeDeviceResponse {
|
|
bool success = 1;
|
|
}
|