diff --git a/dozer-types/protos/cloud.proto b/dozer-types/protos/cloud.proto index d27ca747ff..db4e95f397 100644 --- a/dozer-types/protos/cloud.proto +++ b/dozer-types/protos/cloud.proto @@ -47,11 +47,23 @@ service DozerCloud { rpc get_resources(GetResourcesRequest) returns (ResourcesResponse); rpc Subscribe(google.protobuf.Empty) returns (stream Notification); + + rpc list_notifications(ListNotificationsRequest) returns (ListNotificationsResponse); } service DozerPublic { rpc company_metadata(CompanyRequest) returns (CompanyResponse); } +message ListNotificationsRequest { + string app_id = 1; + optional uint32 limit = 2; + optional uint32 offset = 3; +} + +message ListNotificationsResponse { + repeated Notification notifications = 1; + Pagination pagination = 2; +} message CreateAppRequest { repeated File files = 3; } diff --git a/dozer-types/protos/cloud_notification.proto b/dozer-types/protos/cloud_notification.proto index 41fed27149..343381a9e0 100644 --- a/dozer-types/protos/cloud_notification.proto +++ b/dozer-types/protos/cloud_notification.proto @@ -1,11 +1,14 @@ syntax = "proto3"; package dozer.cloud; +import "google/protobuf/timestamp.proto"; message Notification { - string namespace = 1; - Level level = 2; + string id = 1; + google.protobuf.Timestamp created_at = 2; + string namespace = 3; + Level level = 4; oneof kind { - PodNotification pod = 3; + PodNotification pod = 5; } }