Repository navigation
Commit 23d391e
authored
chore(sdk)!: regenerate — RoboLedger operations regrouped by tag (#216)
## Summary
Regenerates the SDK after the API split its single `Extensions:
RoboLedger` tag into eight workflow-stage tags and dropped the
`Extensions: ` prefix from `RoboInvestor`
(RoboFinSystems/robosystems#1451). `openapi-python-client` names
`api/<package>/` after the tag, so 63 generated operation modules move —
a break for anyone importing them directly, which is why this ships as
**2.0.0** rather than as a minor.
## Changes
**Regenerated (`robosystems_client/api/`)**
```
api/extensions_robo_ledger/ (57) -> api/robo_ledger_setup/ (4)
api/robo_ledger_taxonomy_mapping/ (7)
api/robo_ledger_information_blocks/ (8)
api/robo_ledger_ledger_events/ (12)
api/robo_ledger_fiscal_close/ (7)
api/robo_ledger_reports/ (5)
api/robo_ledger_report_distribution/ (9)
api/robo_ledger_analytical_views/ (5)
api/extensions_robo_investor/ (6) -> api/robo_investor/ (6)
```
Function names, signatures, request models and return types are
unchanged — only the package a function is imported from. No model was
added, removed or altered, and `models/` is untouched: the server's
OpenAPI document differs from the previous one **only in `tags`** (same
181 paths, same 463 component schemas, verified operation-by-operation
on the API side).
**Hand-written (`robosystems_client/clients/`)**
- `ledger_client.py` — 47 imports repointed at the new packages, plus
the module docstring, which named the old directory.
- `investor_client.py` — 6 imports repointed.
The facade surface is untouched: `LedgerClient` still exposes 93 methods
and `InvestorClient` 13, with the same names. **Consumers that go
through the facades need no change at all.** Both sync and async paths
are covered — the facades import the operation modules, not individual
`sync`/`asyncio` entry points, so both move together.
## Compatibility
**BREAKING.** `robosystems_client.api.extensions_robo_ledger` and
`robosystems_client.api.extensions_robo_investor` no longer exist.
What a consumer has to change: repoint the import, keep the symbol.
```python
- from robosystems_client.api.extensions_robo_ledger import create_event_block
+ from robosystems_client.api.robo_ledger_ledger_events import create_event_block
```
This reaches the stable tier — `create_event_block`, `assert_metrics`
and `create_taxonomy_block` are three of the six emit operations the
integration template imports — so it forces a major. Two known consumers
import the old paths and will be updated in a sweep after publish,
together with their `>=1,<2` pins:
- `robosystems-integration-template` — `emit/events.py`,
`emit/metrics.py`
- `robosystems-demo-integration` — same two files
Shipping as 2.0.0 rather than 1.18.0 is the point: anyone pinning
`>=1,<2`, known or not, simply never resolves into this release, so the
break cannot land silently. That is also why there is no
deprecation-shim release in front of it — `bin/generate-sdk.sh` does
`rmtree` on `api/` every regeneration, so an alias package would have to
become a permanent post-generation patch, and a `<2` pin already gives
unknown consumers stronger protection than a `DeprecationWarning` would.
The TypeScript client regenerates from the same spec change with **no**
surface change (identical 1,661 exported symbols; the diff is ordering)
and takes the same 2.0.0 to keep the two clients on the shared version
they have tracked since 1.15.0.
## Testing
`just test-all` — **591 passed, 17 skipped**; ruff check, ruff format
and basedpyright (0 errors, 0 warnings) all clean.
The stable-tier surface was additionally imported directly to confirm it
resolves from the new packages: the six emit operations, their request
models, `AuthenticatedClient`, `UNSET`, and both facades.
No distribution was built (`just build-package` not run) — packaging is
unchanged by this PR.
🤖 Generated with [Claude Code](https://claude.com/claude-code)74 files changed
Lines changed: 79 additions & 66 deletions
File tree
- robosystems_client
- api
- robo_investor
- robo_ledger_analytical_views
- robo_ledger_fiscal_close
- robo_ledger_information_blocks
- robo_ledger_ledger_events
- robo_ledger_report_distribution
- robo_ledger_reports
- robo_ledger_setup
- robo_ledger_taxonomy_mapping
- clients
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
0 commit comments