Skip to content

Commit 26dff44

Browse files
jfrench9claude
andauthored
Remove check credit balance API endpoint and related models (#81)
## Summary Removes the `check_credit_balance` API endpoint and its associated response model from the `robosystems_client` package, simplifying the credits API surface. Minor adjustments were made to related modules to maintain consistency. ## Key Accomplishments - **Removed `check_credit_balance` endpoint**: Deleted the full implementation (~290 lines) of the check credit balance API, including sync/async variants and detailed/shorthand client methods. - **Removed associated response model**: Deleted the `CheckCreditBalanceResponseCheckcreditbalance` model and cleaned up its references from the models `__init__.py`. - **Updated adjacent modules**: Minor adjustments to `get_credit_summary` and `get_materialization_status` to ensure continued consistency after the removal. ## Breaking Changes ⚠️ **This is a breaking change.** - The `check_credit_balance` API function (including `sync`, `sync_detailed`, `asyncio`, and `asyncio_detailed` variants) is no longer available. - The `CheckCreditBalanceResponseCheckcreditbalance` model has been removed from `robosystems_client.models`. - Any consumers relying on these endpoints or models will need to migrate to an alternative (e.g., `get_credit_summary`) or remove their usage. ## Testing Notes - Verify that existing functionality around `get_credit_summary` and `get_materialization_status` continues to work as expected. - Confirm no remaining internal references to the removed endpoint or model exist across dependent services or client integrations. - Ensure any SDK documentation or generated API references are regenerated to reflect the removal. ## Infrastructure Considerations - Downstream services and consumers of the `robosystems_client` package should be audited for usage of the removed endpoint before upgrading to this version. - Consider coordinating this release with a version bump to signal the breaking change (e.g., a major or minor version increment depending on semver policy). - If the corresponding server-side endpoint is also being deprecated, ensure the rollout is sequenced appropriately (clients updated before or alongside server changes). --- 🤖 Generated with [Claude Code](https://claude.ai/code) **Branch Info:** - Source: `refactor/simplify-endpoints` - Target: `main` - Type: feature Co-Authored-By: Claude <noreply@anthropic.com>
2 parents 2bff9fd + 73b9061 commit 26dff44

5 files changed

Lines changed: 2 additions & 342 deletions

File tree

‎robosystems_client/api/credits_/check_credit_balance.py‎

Lines changed: 0 additions & 290 deletions
This file was deleted.

‎robosystems_client/api/credits_/get_credit_summary.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _get_kwargs(
1717
) -> dict[str, Any]:
1818
_kwargs: dict[str, Any] = {
1919
"method": "get",
20-
"url": "/v1/graphs/{graph_id}/credits/summary".format(
20+
"url": "/v1/graphs/{graph_id}/credits".format(
2121
graph_id=quote(str(graph_id), safe=""),
2222
),
2323
}

‎robosystems_client/api/materialize/get_materialization_status.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _get_kwargs(
1717
) -> dict[str, Any]:
1818
_kwargs: dict[str, Any] = {
1919
"method": "get",
20-
"url": "/v1/graphs/{graph_id}/materialize/status".format(
20+
"url": "/v1/graphs/{graph_id}/materialize".format(
2121
graph_id=quote(str(graph_id), safe=""),
2222
),
2323
}

‎robosystems_client/models/__init__.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
from .cancel_operation_response_canceloperation import (
5555
CancelOperationResponseCanceloperation,
5656
)
57-
from .check_credit_balance_response_checkcreditbalance import (
58-
CheckCreditBalanceResponseCheckcreditbalance,
59-
)
6057
from .checkout_response import CheckoutResponse
6158
from .checkout_status_response import CheckoutStatusResponse
6259
from .closing_entry_response import ClosingEntryResponse
@@ -428,7 +425,6 @@
428425
"BulkDocumentUploadResponse",
429426
"BulkDocumentUploadResponseErrorsType0Item",
430427
"CancelOperationResponseCanceloperation",
431-
"CheckCreditBalanceResponseCheckcreditbalance",
432428
"CheckoutResponse",
433429
"CheckoutStatusResponse",
434430
"ClosingEntryResponse",

‎robosystems_client/models/check_credit_balance_response_checkcreditbalance.py‎

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)