Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update proto for notifications #2054

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dozer-types/protos/cloud.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
9 changes: 6 additions & 3 deletions dozer-types/protos/cloud_notification.proto
Original file line number Diff line number Diff line change
@@ -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;
}
}

Expand Down