Skip to content

Commit

Permalink
Siren list subscriptions contract (#116)
Browse files Browse the repository at this point in the history
refactor: list subscriptions api
  • Loading branch information
mabdh authored Jul 16, 2024
1 parent 931c392 commit 2e812e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions gotocompany/siren/v1beta1/siren.proto
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,13 @@ message DeleteNamespaceResponse {}
message ReceiverMetadata {
uint64 id = 1;
google.protobuf.Struct configuration = 2;
map<string, string> subscription_receiver_labels = 3;

}

message Subscription {
uint64 id = 1;
string urn = 2 [(validate.rules).string.pattern = "^[A-Za-z0-9_-]+$"];
uint64 namespace = 3;
repeated ReceiverMetadata receivers = 4;
repeated SubscriptionReceiverRelation receivers = 4;
map<string, string> match = 5;
google.protobuf.Timestamp created_at = 6;
google.protobuf.Timestamp updated_at = 7;
Expand All @@ -676,7 +674,6 @@ message ListSubscriptionsRequest {
map<string, string> subscription_receiver_labels = 7 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "query result based on subscription_receiver_labels matchers. the subscription_receiver_labels key is written as map. eg, \" subscription_receiver_labels[key1]=value1\""
}];
bool with_subscription_receiver = 8;
}

message ListSubscriptionsResponse {
Expand Down

0 comments on commit 2e812e5

Please sign in to comment.