2021-04-07 01:04:30 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2022-02-24 05:25:58 +00:00
|
|
|
package waku.v2.store.v2beta3;
|
2021-04-07 01:04:30 +00:00
|
|
|
|
|
|
|
import "waku/v2/message.proto";
|
|
|
|
|
|
|
|
message Index {
|
|
|
|
bytes digest = 1;
|
|
|
|
double received_time = 2;
|
2021-07-22 00:59:45 +00:00
|
|
|
double sender_time = 3;
|
2021-04-07 01:04:30 +00:00
|
|
|
}
|
|
|
|
|
2021-04-13 00:36:22 +00:00
|
|
|
message PagingInfo {
|
|
|
|
uint64 page_size = 1;
|
2021-04-07 01:04:30 +00:00
|
|
|
Index cursor = 2;
|
2021-04-20 00:24:03 +00:00
|
|
|
enum Direction {
|
|
|
|
DIRECTION_BACKWARD_UNSPECIFIED = 0;
|
|
|
|
DIRECTION_FORWARD = 1;
|
|
|
|
}
|
2021-04-07 01:04:30 +00:00
|
|
|
Direction direction = 3;
|
|
|
|
}
|
|
|
|
|
2021-04-20 00:24:03 +00:00
|
|
|
message ContentFilter {
|
|
|
|
string content_topic = 1;
|
|
|
|
}
|
|
|
|
|
2021-04-07 01:04:30 +00:00
|
|
|
message HistoryQuery {
|
2021-08-20 00:12:19 +00:00
|
|
|
optional string pub_sub_topic = 2;
|
2021-04-29 06:04:34 +00:00
|
|
|
repeated ContentFilter content_filters = 3;
|
|
|
|
optional PagingInfo paging_info = 4;
|
|
|
|
optional double start_time = 5;
|
|
|
|
optional double end_time = 6;
|
2021-04-07 01:04:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryResponse {
|
2021-07-22 00:59:45 +00:00
|
|
|
repeated WakuMessage messages = 2;
|
|
|
|
PagingInfo paging_info = 3;
|
|
|
|
enum Error {
|
|
|
|
ERROR_NONE_UNSPECIFIED = 0;
|
|
|
|
ERROR_INVALID_CURSOR = 1;
|
|
|
|
}
|
|
|
|
Error error = 4;
|
2021-04-07 01:04:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message HistoryRPC {
|
|
|
|
string request_id = 1;
|
|
|
|
HistoryQuery query = 2;
|
|
|
|
HistoryResponse response = 3;
|
|
|
|
}
|