@@ -103,9 +103,37 @@ message ReadResp {
103103 FellBehind fell_behind = 9 ;
104104 }
105105
106- message CaughtUp {}
106+ // The $all or stream subscription has caught up and become live.
107+ message CaughtUp {
108+ // Current time in the server when the subscription caught up
109+ google.protobuf.Timestamp timestamp = 1 ;
110+
111+ // Checkpoint for resuming a stream subscription.
112+ // For stream subscriptions it is populated unless the stream is empty.
113+ // For $all subscriptions it is not populated.
114+ optional int64 stream_revision = 2 ;
115+
116+ // Checkpoint for resuming a $all subscription.
117+ // For stream subscriptions it is not populated.
118+ // For $all subscriptions it is populated unless the database is empty.
119+ optional Position position = 3 ;
120+ }
121+
122+ // The $all or stream subscription has fallen back into catchup mode and is no longer live.
123+ message FellBehind {
124+ // Current time in the server when the subscription fell behind
125+ google.protobuf.Timestamp timestamp = 1 ;
126+
127+ // Checkpoint for resuming a stream subscription.
128+ // For stream subscriptions it is populated unless the stream is empty.
129+ // For $all subscriptions it is not populated.
130+ optional int64 stream_revision = 2 ;
107131
108- message FellBehind {}
132+ // Checkpoint for resuming a $all subscription.
133+ // For stream subscriptions it is not populated.
134+ // For $all subscriptions it is populated unless the database is empty.
135+ optional Position position = 3 ;
136+ }
109137
110138 message ReadEvent {
111139 RecordedEvent event = 1 ;
@@ -132,7 +160,16 @@ message ReadResp {
132160 message Checkpoint {
133161 uint64 commit_position = 1 ;
134162 uint64 prepare_position = 2 ;
163+
164+ // Current time in the server when the checkpoint was reached
165+ google.protobuf.Timestamp timestamp = 3 ;
135166 }
167+
168+ message Position {
169+ uint64 commit_position = 1 ;
170+ uint64 prepare_position = 2 ;
171+ }
172+
136173 message StreamNotFound {
137174 event_store.client.StreamIdentifier stream_identifier = 1 ;
138175 }
0 commit comments