Repository navigation
Commit 6c38580
Refactor API structure: consolidate billing/analytics endpoints (#30)
## Summary
This PR implements a comprehensive refactoring of the robosystems client
API structure, consolidating fragmented billing, analytics, and
subscription endpoints into a more cohesive and maintainable
architecture.
## Key Accomplishments
### API Structure Reorganization
- **Consolidated credits management**: Moved all credit-related
operations from `graph_credits` to unified `credits_` module
- **Streamlined subscriptions**: Merged billing and user subscription
functionality into a single `subscriptions` module
- **Unified analytics**: Consolidated graph analytics and usage tracking
into dedicated `usage` module
- **Simplified user operations**: Moved user limits functionality
directly into the `user` module
### Endpoint Modernization
- Removed 15+ deprecated billing and analytics endpoints that were
redundant or obsolete
- Added new streamlined endpoints:
- `create_repository_subscription.py`
- `get_graph_subscription.py`
- `get_graph_usage_analytics.py`
- Updated subscription management with more intuitive
`cancel_subscription` and `upgrade_subscription` operations
### Data Model Improvements
- Eliminated 20+ redundant response models and consolidated similar
functionality
- Added new models: `GraphSubscriptionResponse`, `PerformanceInsights`,
`StorageSummary`
- Simplified credit summary structure and operation breakdowns
- Enhanced graph usage response with better recent events tracking
## Breaking Changes
70 files changed
Lines changed: 1589 additions & 5239 deletions
File tree
- robosystems_client
- api
- credits_
- graph_analytics
- graph_billing
- subscriptions
- usage
- user_analytics
- user_limits
- user_subscriptions
- user
- models
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.
This file was deleted.
0 commit comments