Skip to content

Conversation

@jfrench9
Copy link
Member

@jfrench9 jfrench9 commented Nov 5, 2025

Summary

This PR significantly enhances the robosystems client by introducing comprehensive data models for graph tiers and service offerings, along with improved response handling for related API endpoints.

Key Accomplishments

New Data Models (22 new model classes)

  • Graph Tier Models: Complete model hierarchy for graph subscription tiers, including tier info, limits, backup configurations, copy operations, and instance management
  • Service Offering Models: Comprehensive models for service offerings, repository plans, and rate limiting configurations
  • Pricing & Operations: Detailed models for operation costs, token pricing, AI operations, and storage pricing structures
  • Response Containers: Structured response models for available graph tiers and service offerings endpoints

API Enhancements

  • Updated get_available_graph_tiers endpoint to use new structured response models
  • Enhanced get_service_offerings endpoint with improved response handling
  • All new models properly registered in the models module for seamless integration

Model Features

  • Full support for graph subscription management and tier-based limitations
  • Comprehensive pricing model support including overage pricing and included quotas
  • Detailed repository plan configurations with rate limiting capabilities
  • Storage information models with tier-based allocations

Breaking Changes

⚠️ Potential Breaking Changes: The response structure for graph tiers and service offerings endpoints has been enhanced with new model classes. Existing code that directly accesses raw response data may need updates to use the new structured models.

Testing Notes

  • Verify that existing API calls to graph tiers and service offerings endpoints continue to work
  • Test model serialization/deserialization with real API responses
  • Validate that all new model relationships and nested structures function correctly
  • Confirm backward compatibility for existing client usage patterns

Infrastructure Considerations

  • This change significantly expands the client's model layer (+2000 lines of new model code)
  • Enhanced type safety and IDE support through structured models
  • Improved maintainability through organized model hierarchy
  • Models follow established patterns for consistency with existing codebase

🤖 Generated with Claude Code

Branch Info:

  • Source: refactor/api-models-improve-2
  • Target: main
  • Type: feature

Co-Authored-By: Claude noreply@anthropic.com

…ings

This commit updates the response parsing in the `get_available_graph_tiers.py` and `get_service_offerings.py` files to utilize new response models, `AvailableGraphTiersResponse` and `ServiceOfferingsResponse`, respectively. The changes improve type safety and clarity in response handling across both endpoints.

Key Changes:
- Updated `_parse_response` and `_build_response` functions to return the new response models.
- Adjusted function signatures to reflect the new response types for better type checking and documentation.

These enhancements aim to streamline the API's response handling and improve overall maintainability.
@jfrench9 jfrench9 merged commit 0d88eef into main Nov 5, 2025
1 check passed
@jfrench9 jfrench9 deleted the refactor/api-models-improve-2 branch November 12, 2025 03:28
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.

2 participants