You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0e993fd
Browse filesBrowse the repository at this point in the historyBrowse files
Refactor connections, remove Plaid, add view creation API (#66)
## Summary
This PR refactors the connection subsystem by removing Plaid
integration, streamlining the element mapping architecture, and
introducing a new View creation API with supporting models. The changes
simplify the SDK surface area while adding new view-building
capabilities.
## Key Accomplishments
### Plaid Integration Removal
- Removed `PlaidConnectionConfig` model and all Plaid-specific
references from connection-related files
- Cleaned up Plaid provider references from
`ConnectionProviderInfoProvider`, `CreateConnectionRequestProvider`, and
`ListConnectionsProviderType0`
- Simplified `ConnectionResponse` and `CreateConnectionRequest` models
by removing Plaid-specific configuration branches
- Streamlined `SecConnectionConfig` model
### Connection API Cleanup
- Removed unused functionality from `create_connection`,
`get_connection_options`, and `sync_connection` API endpoints
- Simplified `list_connections` API
### New View Creation API
- Added `api/views/` module with a `create_view` endpoint
- Introduced new models: `CreateViewRequest`, `ViewConfig`,
`ViewAxisConfig`, `ViewAxisConfigElementLabelsType0`, and
`ViewAxisConfigMemberLabelsType0`
- Repurposed renamed Plaid model files into view axis config label types
(leveraging similar structure)
### Element Mapping Client Removal & View Builder Refactor
- Deleted `element_mapping_client.py` (585 lines removed) and removed
its export from the extensions module
- Streamlined `ViewBuilderClient` by removing element mapping
references, enhancing clarity of the view builder's responsibilities
- Updated SDK aliases in `__init__.py` to reflect the new module
structure
## Breaking Changes
⚠️ **Breaking:** The following removals will affect consumers of this
SDK:
- **`PlaidConnectionConfig`** model has been removed — any code
referencing Plaid connections will break
- **`ElementMappingClient`** extension has been deleted — consumers must
migrate away from this client
- **`ViewBuilderClient`** API surface has changed — element mapping
methods are no longer available through this client
- **Connection API endpoints** (`create_connection`,
`get_connection_options`, `sync_connection`) have reduced functionality
— callers passing Plaid-specific parameters will need to be updated
- **SDK aliases** in `__init__.py` have been refactored — import paths
may need updating
## Testing Notes
- Verify that existing connection workflows (non-Plaid providers)
continue to function correctly with the simplified models
- Test the new `create_view` endpoint with various `ViewConfig` and
`ViewAxisConfig` combinations
- Confirm that the `ViewBuilderClient` operates correctly without
element mapping dependencies
- Validate that `SecConnectionConfig` changes are backward-compatible
for existing SEC-based connections
- Check that all model serialization/deserialization works correctly for
the new view-related models
## Infrastructure Considerations
- Downstream services and consumers of this SDK should be updated to
remove any Plaid-related references before adopting this version
- The new views API module requires corresponding backend endpoint
availability — ensure the API server supports the `create_view` route
before deployment
- Consider a coordinated release if other services depend on the removed
`ElementMappingClient` functionality
---
🤖 Generated with [Claude Code](https://claude.ai/code)
**Branch Info:**
- Source: `feature/connection-improvements`
- Target: `main`
- Type: feature
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments