@@ -77,11 +77,8 @@ message gateway_info_v2 {
7777 // the asserted device type of the gateway
7878 device_type device_type = 3 ;
7979 // The unix epoch timestamp (in seconds)
80- // when the data was read from chain and written to the db
81- uint64 refreshed_at = 4 ;
82- // The unix epoch timestamp (in seconds)
8380 // when the gateway was first added to the database.
84- uint64 created_at = 5 ;
81+ uint64 created_at = 4 ;
8582}
8683
8784message gateway_info_req_v1 {
@@ -142,10 +139,9 @@ message gateway_info_stream_req_v2 {
142139 // Returns all devices if empty
143140 repeated device_type device_types = 4 ;
144141 // The Unix epoch timestamp (in seconds).
145- // Filters the response based on the `refreshed_at` field in `gateway_info`.
146- // Returns only gateways where `refreshed_at` >= `min_refreshed_at`.
147- // Use 0 to fetch all gateways.
148- uint64 min_refreshed_at = 5 ;
142+ // Filters the response based on the last time gateway parameter(s) was
143+ // updated. Use 0 to fetch all gateways.
144+ uint64 min_updated_at = 5 ;
149145}
150146
151147message gateway_info_stream_res_v1 {
@@ -352,18 +348,29 @@ message carrier_incentive_promotion_list_res_v1 {
352348
353349service gateway {
354350 // Get info for the specified gateway
355- rpc info (gateway_info_req_v1 ) returns (gateway_info_res_v1 );
351+ rpc info (gateway_info_req_v1 ) returns (gateway_info_res_v1 ) {
352+ option deprecated = true ;
353+ }
356354 // Get info for a batch of gateways specified by public key
357355 rpc info_batch (gateway_info_batch_req_v1 )
358- returns (stream gateway_info_stream_res_v1 );
356+ returns (stream gateway_info_stream_res_v1 ) {
357+ option deprecated = true ;
358+ }
359359 // Get a stream of gateway info
360360 rpc info_stream (gateway_info_stream_req_v1 )
361361 returns (stream gateway_info_stream_res_v1 ) {
362362 option deprecated = true ;
363363 }
364+
365+ // V2
366+ // Get info for the specified gateway (V2)
367+ rpc info_v2 (gateway_info_req_v1 ) returns (gateway_info_res_v2 );
364368 // Get a stream of gateway info (V2)
365369 rpc info_stream_v2 (gateway_info_stream_req_v2 )
366370 returns (stream gateway_info_stream_res_v2 );
371+ // Get info for a batch of gateways specified by public key (V2)
372+ rpc info_batch_v2 (gateway_info_batch_req_v1 )
373+ returns (stream gateway_info_stream_res_v2 );
367374}
368375
369376service entity {
0 commit comments