Skip to content

Commit

Permalink
chore: update proto (#2054)
Browse files Browse the repository at this point in the history
  • Loading branch information
duonganhthu43 authored Sep 19, 2023
1 parent e4c559e commit 3b16202
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
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

0 comments on commit 3b16202

Please sign in to comment.