syntax = "proto3";

package nominal.internal.servicemetadata.v1;

import "google/api/annotations.proto";

option java_multiple_files = true;
option java_package = "io.nominal.internal.servicemetadata.v1";

message GetServiceMetadataRequest {}

message GetServiceMetadataResponse {
  string version = 1;
  int32 min_supported_schema_version_inclusive = 2;
  int32 max_supported_schema_version_inclusive = 3;
  int32 current_schema_version = 4;
}

// A service that returns metadata about the service.
service ServiceMetadataService {
  // AuthHeader is not required
  rpc GetServiceMetadata(GetServiceMetadataRequest) returns (GetServiceMetadataResponse) {
    option (google.api.http) = {get: "/internal/servicemetadata/v1"};
  }
}
