diff --git a/proto/lekko/bff/v1beta1/bff.proto b/proto/lekko/bff/v1beta1/bff.proto index a8ec1f89..ac2203e2 100644 --- a/proto/lekko/bff/v1beta1/bff.proto +++ b/proto/lekko/bff/v1beta1/bff.proto @@ -432,6 +432,10 @@ message ContextKey { ContextKeyType type = 2; } +// The configs will have metadata fields populated based on the latest rolled +// out version of the repo. +// If a config was newly created since, created_at will not be set. +// If a config existed already but was updated, last_updated_at will not be set. message GetRepositoryContentsResponse { Branch branch = 1; NamespaceContents namespace_contents = 2; @@ -468,6 +472,11 @@ message GetFeatureHistoryResponse { repeated FeatureHistoryItem history = 1; } +message ConfigMetadata { + google.protobuf.Timestamp created_at = 1; + google.protobuf.Timestamp last_updated_at = 2; +} + message Feature { string name = 1; string namespace_name = 2; @@ -479,6 +488,7 @@ message Feature { // the blob sha of the proto bin file according to git string sha = 6; lekko.feature.v1beta1.StaticFeature static_feature_new = 7; + ConfigMetadata metadata = 8; } message FeatureHistoryItem {