Skip to content

Commit 3dcd8c1

Browse files
authored
chore(sdk): regenerate — passkeys, MFA and SSO carve out of api/auth (#217)
## Summary Regenerates the SDK after the API carved its three self-contained auth mechanisms out of the `Auth` tag (RoboFinSystems/robosystems#1454). Module directories follow the tag, so fourteen operations move into three new packages. **Depends on robosystems#1454** — merge that first, or this repo describes a grouping `main` does not yet serve. ## Changes ``` api/auth/ (29) -> api/auth/ (15) unchanged home api/auth_passkeys/ (7) new api/auth_mfa/ (4) new api/auth_sso/ (3) new ``` Function names, signatures, request models and return types are unchanged. Git records the change as **fourteen renames plus three new package inits** — no file was rewritten, and the server's OpenAPI document differs from the previous one only in `tags`. `robosystems_client/clients/` is untouched: the facades never reached into `api/auth`, unlike the RoboLedger round where all 53 imports had to be repointed. ## Compatibility **ADDITIVE.** Three importable packages appear where there were none; nothing a consumer uses moved. That is the whole point of the carve-out, and it was designed for rather than lucky. `api/auth/` keeps `login_user` and `register_user` — the only two symbols anything imports from that package, verified across every repo that depends on this client. Nothing anywhere imports passkeys, MFA or SSO from the SDK. Renaming the parent tag instead would have relocated those two and owed a major. So this is a **minor, not a patch**: new importable surface is additive, not an absence of change. Per the two-tier contract the relocated modules are generated tier and should be named in the release notes, even though no consumer has to act on them. Consumers on `>=2,<3` take it with no change. The three frontends need nothing — and the TypeScript client has **no diff at all** this time, since hey-api names from `operationId` and the path order did not move either. If the two clients are to stay on their shared version, that one takes an empty minor alongside this. ## Testing `just test-all` — **591 passed, 17 skipped**; ruff check, ruff format and basedpyright (0 errors) all clean. Verified by import rather than by reading the diff: `login_user` and `register_user` still resolve from `robosystems_client.api.auth`, and the carved-out operations resolve from `auth_passkeys`, `auth_mfa` and `auth_sso`. Module counts per package are 15 / 7 / 4 / 3, totalling the same 29. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
2 parents dc2f30d + 1654fb9 commit 3dcd8c1

17 files changed

Lines changed: 3 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Contains endpoint functions for accessing the API"""
File renamed without changes.
File renamed without changes.

robosystems_client/api/auth/regenerate_mfa_recovery_codes.py renamed to robosystems_client/api/auth_mfa/regenerate_mfa_recovery_codes.py

File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Contains endpoint functions for accessing the API"""

robosystems_client/api/auth/delete_user_passkey.py renamed to robosystems_client/api/auth_passkeys/delete_user_passkey.py

File renamed without changes.

robosystems_client/api/auth/get_passkey_login_options.py renamed to robosystems_client/api/auth_passkeys/get_passkey_login_options.py

File renamed without changes.

robosystems_client/api/auth/get_passkey_reauth_options.py renamed to robosystems_client/api/auth_passkeys/get_passkey_reauth_options.py

File renamed without changes.

robosystems_client/api/auth/get_passkey_registration_options.py renamed to robosystems_client/api/auth_passkeys/get_passkey_registration_options.py

File renamed without changes.

0 commit comments

Comments
 (0)