Remove check credit balance API endpoint and related models#81
Merged
Conversation
- Deleted the `check_credit_balance.py` file and the associated `CheckCreditBalanceResponseCheckcreditbalance` model to streamline the API. - Updated `__init__.py` to remove references to the deleted model, ensuring a clean public API. - Adjusted related API endpoints for credit summary and materialization status to maintain consistency. These changes enhance the clarity and maintainability of the `robosystems_client` API.
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
Removes the
check_credit_balanceAPI endpoint and its associated response model from therobosystems_clientpackage, simplifying the credits API surface. Minor adjustments were made to related modules to maintain consistency.Key Accomplishments
check_credit_balanceendpoint: Deleted the full implementation (~290 lines) of the check credit balance API, including sync/async variants and detailed/shorthand client methods.CheckCreditBalanceResponseCheckcreditbalancemodel and cleaned up its references from the models__init__.py.get_credit_summaryandget_materialization_statusto ensure continued consistency after the removal.Breaking Changes
check_credit_balanceAPI function (includingsync,sync_detailed,asyncio, andasyncio_detailedvariants) is no longer available.CheckCreditBalanceResponseCheckcreditbalancemodel has been removed fromrobosystems_client.models.get_credit_summary) or remove their usage.Testing Notes
get_credit_summaryandget_materialization_statuscontinues to work as expected.Infrastructure Considerations
robosystems_clientpackage should be audited for usage of the removed endpoint before upgrading to this version.🤖 Generated with Claude Code
Branch Info:
refactor/simplify-endpointsmainCo-Authored-By: Claude noreply@anthropic.com