feat: POWER-4980 - Apparent power and Icing forecast update#124
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the generated Grid Insights and Capacity Monitoring SDKs to match recent API changes, notably adding apparent power and icing forecast support and expanding capacity monitoring “quantity” support (current vs apparent power).
Changes:
- Added new Grid Insights Python models + endpoints for apparent power, icing forecast, currents, conductor temperatures, and sag/clearance (including new response wrappers and enums).
- Updated Grid Insights latest icing (Python) to use the shared
UnitSystemmodel and added explicit parsing for HTTP 400 responses across several “latest” endpoints. - Extended .NET client surface area and URL builder to support icing forecast + apparent power endpoints, and added
quantityquery support to Capacity Monitoring endpoints (plus new list/time-range response models).
Reviewed changes
Copilot reviewed 115 out of 118 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| python/heimdall_api_client/grid_insights_api_client/models/span_phase_icing_forecast.py | Adds span-phase icing forecast model. |
| python/heimdall_api_client/grid_insights_api_client/models/span_icing_forecast.py | Adds span icing forecast model. |
| python/heimdall_api_client/grid_insights_api_client/models/max_icing_forecast.py | Adds “max icing forecast” model wrapper. |
| python/heimdall_api_client/grid_insights_api_client/models/max_icing_forecast_ice_weight.py | Adds max ice weight measurement model for forecast. |
| python/heimdall_api_client/grid_insights_api_client/models/line_sag_and_clearances.py | Adds sag/clearance line response model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_sag_and_clearances_sag_and_clearance.py | Adds sag/clearance payload model (with optional min clearance). |
| python/heimdall_api_client/grid_insights_api_client/models/line_sag_and_clearances_sag_and_clearance_min_clearance_type_1.py | Adds min-clearance measurement model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_sag_and_clearances_sag_and_clearance_max_sag.py | Adds max-sag measurement model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_icings.py | Adds line icing response model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_icings_icing.py | Adds icing payload model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_icing_forecast.py | Adds line icing forecast response model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_icing_forecast_icing.py | Adds icing forecast payload model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_currents.py | Adds currents response model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_conductor_temperatures.py | Adds conductor temperatures response model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_apparent_powers.py | Adds apparent powers response model. |
| python/heimdall_api_client/grid_insights_api_client/models/line_apparent_power.py | Adds apparent power measurement model. |
| python/heimdall_api_client/grid_insights_api_client/models/latest_line_icing_icing.py | Makes max required in latest icing payload model. |
| python/heimdall_api_client/grid_insights_api_client/models/latest_line_apparent_power.py | Adds latest apparent power response model. |
| python/heimdall_api_client/grid_insights_api_client/models/icing_forecast_data_point.py | Adds icing forecast time-series data point model. |
| python/heimdall_api_client/grid_insights_api_client/models/icing_forecast_data_point_ice_weight.py | Adds icing forecast ice weight model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_sag_and_clearance_x_region.py | Adds x-region enum for sag/clearance endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_sag_and_clearance_response_200.py | Adds sag/clearance response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_latest_icing_unit_system.py | Removes now-redundant latest-icing unit system enum (replaced by shared UnitSystem). |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_latest_apparent_power_x_region.py | Adds x-region enum for latest apparent power endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_latest_apparent_power_response_200.py | Adds latest apparent power response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_icing_x_region.py | Adds x-region enum for icing endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_icing_response_200.py | Adds icing response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_icing_forecast_x_region.py | Adds x-region enum for icing forecast endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_icing_forecast_response_200.py | Adds icing forecast response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_currents_x_region.py | Adds x-region enum for currents endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_currents_response_200.py | Adds currents response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_conductor_temperatures_x_region.py | Adds x-region enum for conductor temperatures endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_conductor_temperatures_response_200.py | Adds conductor temperatures response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_apparent_power_x_region.py | Adds x-region enum for apparent power endpoint. |
| python/heimdall_api_client/grid_insights_api_client/models/grid_insights_v1_lines_get_apparent_power_response_200.py | Adds apparent power response wrapper model. |
| python/heimdall_api_client/grid_insights_api_client/models/init.py | Exports newly added Grid Insights models and removes deprecated unit-system enum export. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_latest_sag_and_clearance.py | Adds HTTP 400 parsing to ProblemDetails for latest sag/clearance. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_latest_icing.py | Switches to shared UnitSystem type + adds HTTP 400 parsing. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_latest_current.py | Adds HTTP 400 parsing to ProblemDetails for latest current. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_latest_conductor_temperature.py | Adds HTTP 400 parsing to ProblemDetails for latest conductor temperature. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_latest_apparent_power.py | Adds new “latest apparent power” endpoint client. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_currents.py | Adds new currents time-range endpoint client. |
| python/heimdall_api_client/grid_insights_api_client/api/line/grid_insights_v1_lines_get_apparent_power.py | Adds new apparent power time-range endpoint client. |
| python/heimdall_api_client/capacity_monitoring_api_client/types.py | Formatting/import cleanup in shared types. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/quantity.py | Adds capacity-monitoring quantity enum (current vs apparent power). |
| python/heimdall_api_client/capacity_monitoring_api_client/models/problem_details.py | Formatting cleanup in ProblemDetails model. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/probabilistic_line_ampacity.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/probabilistic_circuit_rating_ampacity.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/predicted_forecast.py | Formatting/import cleanup for predicted forecast model. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/predicted_circuit_rating_forecast.py | Formatting/import cleanup for predicted circuit rating forecast model. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/latest_heimdall_dlr.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/latest_heimdall_aar.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/latest_circuit_rating.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/heimdall_dlrs.py | Adds Heimdall DLR time-range response model. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/heimdall_dlr.py | Adds at_span_id and updates docs for quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/heimdall_dlr_forecasts.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/heimdall_aars.py | Adds Heimdall AAR time-range response model. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/heimdall_aar.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/heimdall_aar_forecasts.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/circuit_ratings.py | Adds circuit ratings time-range response model. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/circuit_rating.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/circuit_rating_forecasts.py | Updates docs to reflect quantity-dependent units. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_dlr_x_region.py | Formatting tweak (blank line) in enum file. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_dlr_response_200.py | Formatting cleanup for response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_dlr_forecasts_x_region.py | Formatting tweak (blank line) in enum file. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_dlr_forecasts_response_200.py | Formatting cleanup for response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_aar_x_region.py | Formatting tweak (blank line) in enum file. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_aar_response_200.py | Formatting cleanup for response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_aar_forecasts_x_region.py | Formatting tweak (blank line) in enum file. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_latest_heimdall_aar_forecasts_response_200.py | Formatting cleanup for response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_heimdall_dlrs_x_region.py | Adds x-region enum for Heimdall DLRs time-range endpoint. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_heimdall_dlrs_response_200.py | Adds Heimdall DLRs time-range response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_heimdall_aars_x_region.py | Adds x-region enum for Heimdall AARs time-range endpoint. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_lines_get_heimdall_aars_response_200.py | Adds Heimdall AARs time-range response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_facilities_get_latest_circuit_rating_x_region.py | Formatting tweak (blank line) in enum file. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_facilities_get_latest_circuit_rating_response_200.py | Formatting cleanup for response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_facilities_get_latest_circuit_rating_forecasts_x_region.py | Formatting tweak (blank line) in enum file. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_facilities_get_latest_circuit_rating_forecasts_response_200.py | Formatting cleanup for response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_facilities_get_circuit_ratings_x_region.py | Adds x-region enum for circuit ratings time-range endpoint. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/capacity_monitoring_v1_facilities_get_circuit_ratings_response_200.py | Adds circuit ratings time-range response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/api_response.py | Formatting cleanup for generic API response wrapper. |
| python/heimdall_api_client/capacity_monitoring_api_client/models/init.py | Exports new capacity monitoring models (quantity + list responses). |
| python/heimdall_api_client/capacity_monitoring_api_client/errors.py | Formatting cleanup for shared error type. |
| python/heimdall_api_client/capacity_monitoring_api_client/client.py | Minor import/formatting cleanup. |
| python/heimdall_api_client/capacity_monitoring_api_client/api/line/init.py | Docstring formatting cleanup. |
| python/heimdall_api_client/capacity_monitoring_api_client/api/facility/init.py | Docstring formatting cleanup. |
| python/heimdall_api_client/capacity_monitoring_api_client/api/init.py | Docstring formatting cleanup. |
| python/heimdall_api_client/capacity_monitoring_api_client/init.py | Docstring formatting cleanup. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/UrlBuilder.Extensions.cs | Trailing newline formatting. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/UrlBuilder.cs | Adds new endpoints + quantity query support + icing forecast/apparent power URLs. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/IHeimdallApiClient.cs | Extends interface with new methods + quantity parameters. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/HeimdallApiClient.cs | Implements new methods + quantity parameters + new endpoints. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/LatestApparentPowerResponse.cs | Adds response model for latest apparent power. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/IcingForecastResponse.cs | Adds response model for icing forecast. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/Dtos/SpanPhaseIcingForecastDto.cs | Adds span-phase icing forecast DTO. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/Dtos/SpanIcingForecastDto.cs | Adds span icing forecast DTO. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/Dtos/MaxIcingForecastDto.cs | Adds “max icing forecast” DTO. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/Dtos/IcingForecastDto.cs | Adds icing forecast payload DTO. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/Dtos/IcingForecastDataPointDto.cs | Adds icing forecast datapoint DTO. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/Dtos/ApparentPowerDto.cs | Adds apparent power DTO. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/GridInsights/Lines/ApparentPowersResponse.cs | Adds apparent powers time-range response model. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/CapacityMonitoring/Quantity.cs | Adds quantity enum + query mapping helper. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/CapacityMonitoring/Lines/HeimdallDlrsResponse.cs | Adds Heimdall DLRs time-range response model. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/CapacityMonitoring/Lines/HeimdallAarsResponse.cs | Adds Heimdall AARs time-range response model. |
| dotnet/HeimdallPower.Api.Client/HeimdallPower.Api.Client/CapacityMonitoring/Facilities/CircuitRatingsResponse.cs | Adds circuit ratings time-range response model. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
joakimia
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apparent power and Icing forecast
Update grid insights module with the latest changes from mimir.
These includes
apparent powerandicing forecast.Jira ticket: Icing forecast, Apparent power