syntax = "proto3";

package worldmonitor.economic.v1;

import "sebuf/http/annotations.proto";

message GetEnergyCapacityRequest {
  // Energy source codes to query (e.g., "SUN", "WND", "COL").
  // Empty returns all tracked sources (SUN, WND, COL).
  repeated string energy_sources = 1 [(sebuf.http.query) = { name: "energy_sources" }];
  // Number of years of historical data. Default 20 if not set.
  // Accepted but currently ignored; no-op until this handler supports the parameter.
  int32 years = 2 [(sebuf.http.query) = { name: "years" }, (sebuf.http.unimplemented) = true];
}

message EnergyCapacityYear {
  int32 year = 1;
  double capacity_mw = 2;
}

message EnergyCapacitySeries {
  string energy_source = 1;
  string name = 2;
  repeated EnergyCapacityYear data = 3;
}

message GetEnergyCapacityResponse {
  repeated EnergyCapacitySeries series = 1;
}
