This repository was archived by the owner on Jan 28, 2025. It is now read-only.
File tree 1 file changed +54
-0
lines changed
1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ syntax = "proto3" ;
2
+
3
+ import "waku/message/v1/message.proto" ;
4
+
5
+ // 13/WAKU2-STORE rfc: https://rfc.vac.dev/spec/13/
6
+ // Protocol identifier: /vac/waku/store/2.0.0-beta4
7
+ package waku.store.v2beta4 ;
8
+
9
+ message Index {
10
+ bytes digest = 1 ;
11
+ sint64 receiver_time = 2 ;
12
+ sint64 sender_time = 3 ;
13
+ string pubsub_topic = 4 ;
14
+ }
15
+
16
+ message PagingInfo {
17
+ optional uint64 page_size = 1 ;
18
+ optional Index cursor = 2 ;
19
+ enum Direction {
20
+ BACKWARD = 0 ;
21
+ FORWARD = 1 ;
22
+ }
23
+ optional Direction direction = 3 ;
24
+ }
25
+
26
+ message ContentFilter {
27
+ string content_topic = 1 ;
28
+ }
29
+
30
+ message HistoryQuery {
31
+ // The first field is reserved for future use
32
+ optional string pubsub_topic = 2 ;
33
+ repeated ContentFilter content_filters = 3 ;
34
+ optional PagingInfo paging_info = 4 ;
35
+ optional sint64 start_time = 5 ;
36
+ optional sint64 end_time = 6 ;
37
+ }
38
+
39
+ message HistoryResponse {
40
+ // The first field is reserved for future use
41
+ repeated waku.message.v1.WakuMessage messages = 2 ;
42
+ optional PagingInfo paging_info = 3 ;
43
+ enum Error {
44
+ NONE = 0 ;
45
+ INVALID_CURSOR = 1 ;
46
+ }
47
+ Error error = 4 ;
48
+ }
49
+
50
+ message HistoryRPC {
51
+ string request_id = 1 ;
52
+ optional HistoryQuery query = 2 ;
53
+ optional HistoryResponse response = 3 ;
54
+ }
You can’t perform that action at this time.
0 commit comments