feat: Statistics Center API + generated clients + v0.2.0#11
Merged
Conversation
…ump to 0.2.0 - Vendor statistics_center_client generated from openapi/statistics_center.json - StatisticsCenterAPI.get_games() and get_games_via_websocket() now return list[Games] - StatisticsCenterAPI.login() parses response via LoginSuccess model - Regenerate kinexon_client from updated sports_app spec (adds diagnostics_sprint event, reduces PlayerStatistic to avg_per_minute fields only) - Fix WebSocket URL: use ws:// instead of wss:// for port 5002 (plain WS server) - codegen.sh: integrate rename_operation_ids.py and statistics_center generation - rename_operation_ids.py: add missing events operationId mappings, fix in-place write - Bump version to 0.2.0 (breaking: get_games return type changed to list[Games]) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
statistics_center_clientgenerated fromopenapi/statistics_center.json— typed models (Games,LoginSuccess) now used inStatisticsCenterAPIget_games()andget_games_via_websocket()returnlist[Games]instead oflist[dict]→ version bump to 0.2.0kinexon_clientfrom new sports_app spec v1.1 (addsdiagnostics_sprintevent, slimsPlayerStatisticto_avg_per_minutefields only)ws://instead ofwss://for port 5002 (plain WS server)codegen.shfully integrated — downloads both specs, runsrename_operation_ids.py, fixes self-referentialallOfschemas in Statistics Center spec, generates both clientsBreaking Changes
StatisticsCenterAPI.get_games()andget_games_via_websocket()now returnlist[Games](attrs model) instead oflist[dict[str, Any]]. Dict-style access via[]still works (viaadditional_properties), but type annotations expectingdictwill break.Test plan
🤖 Generated with Claude Code