2021-03-18 12:40:47 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-04-21 20:09:37 -04:00
|
|
|
package pb;
|
2021-03-18 12:40:47 -04:00
|
|
|
|
|
|
|
import "waku_message.proto";
|
|
|
|
|
|
|
|
message Index {
|
|
|
|
bytes digest = 1;
|
|
|
|
double receivedTime = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PagingInfo {
|
2021-04-07 17:16:29 -04:00
|
|
|
uint64 pageSize = 1;
|
2021-03-18 12:40:47 -04:00
|
|
|
Index cursor = 2;
|
|
|
|
enum Direction {
|
2021-04-07 17:16:29 -04:00
|
|
|
BACKWARD = 0;
|
|
|
|
FORWARD = 1;
|
2021-03-18 12:40:47 -04:00
|
|
|
}
|
|
|
|
Direction direction = 3;
|
|
|
|
}
|
|
|
|
|
2021-04-20 17:46:35 -04:00
|
|
|
message ContentFilter {
|
|
|
|
string contentTopic = 1;
|
|
|
|
}
|
|
|
|
|
2021-03-18 12:40:47 -04:00
|
|
|
message HistoryQuery {
|
2021-04-28 11:11:32 -04:00
|
|
|
string pubsubTopic = 2;
|
|
|
|
repeated ContentFilter contentFilters = 3;
|
|
|
|
PagingInfo pagingInfo = 4; // used for pagination
|
|
|
|
double startTime = 5;
|
|
|
|
double endTime = 6;
|
2021-03-18 12:40:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryResponse {
|
2021-04-20 17:46:35 -04:00
|
|
|
repeated WakuMessage messages = 1;
|
|
|
|
PagingInfo pagingInfo = 2; // used for pagination
|
2021-03-18 12:40:47 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryRPC {
|
|
|
|
string request_id = 1;
|
|
|
|
HistoryQuery query = 2;
|
|
|
|
HistoryResponse response = 3;
|
2021-04-07 17:16:29 -04:00
|
|
|
}
|