Skip to content

feat: Statistics Center API + generated clients + v0.2.0#11

Merged
mad4ms merged 2 commits into
mainfrom
feat/statistics-center-api
May 14, 2026
Merged

feat: Statistics Center API + generated clients + v0.2.0#11
mad4ms merged 2 commits into
mainfrom
feat/statistics-center-api

Conversation

@mad4ms

@mad4ms mad4ms commented Mar 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • New: Vendor statistics_center_client generated from openapi/statistics_center.json — typed models (Games, LoginSuccess) now used in StatisticsCenterAPI
  • Breaking: get_games() and get_games_via_websocket() return list[Games] instead of list[dict] → version bump to 0.2.0
  • Updated: Regenerate kinexon_client from new sports_app spec v1.1 (adds diagnostics_sprint event, slims PlayerStatistic to _avg_per_minute fields only)
  • Fixed: WebSocket URL now correctly uses ws:// instead of wss:// for port 5002 (plain WS server)
  • Improved: codegen.sh fully integrated — downloads both specs, runs rename_operation_ids.py, fixes self-referential allOf schemas in Statistics Center spec, generates both clients
  • Docs: Updated AGENTS.md, README, architecture, codegen, and api-reference docs

Breaking Changes

StatisticsCenterAPI.get_games() and get_games_via_websocket() now return list[Games] (attrs model) instead of list[dict[str, Any]]. Dict-style access via [] still works (via additional_properties), but type annotations expecting dict will break.

Test plan

  • All 23 tests pass (unit + integration)
  • Pre-commit clean (ruff, mypy, pytest)
  • CI green on branch

🤖 Generated with Claude Code

mad4ms and others added 2 commits March 21, 2026 10:26
…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>
@mad4ms mad4ms changed the title Add Statistics Center API documentation and streaming support feat: Statistics Center API + generated clients + v0.2.0 May 14, 2026
@mad4ms mad4ms merged commit 0f43663 into main May 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant