Conversation
Replace the typed unions in CreateSourceConnectorConfig, CreateDestinationConnectorConfig, etc. with Dict[str, Any] and delete the generated per-connector config models. New connector fields work without an SDK upgrade. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
|
||
| | Field | Type | Required | Description | | ||
| | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | ||
| | `config` | [shared.UpdateSourceConnectorConfig](../../models/shared/updatesourceconnectorconfig.md) | :heavy_check_mark: | N/A | No newline at end of file |
There was a problem hiding this comment.
why are most of these getting deleted but some staying? guessing the connector-specific ones are being deleted but not all?
There was a problem hiding this comment.
Yep, just the generic classes should stay, and they'll just wrap a dict. So we may be able to clean those up too longer term.
| @@ -1,83 +0,0 @@ | |||
| """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" | |||
There was a problem hiding this comment.
are all of these deletes a breaking change in any way? Is there a chance that customers are using these files on their side that will now break if they upgrade the package?
There was a problem hiding this comment.
Totally! We've had a deprecation notice since like September. So none of our live examples use these classes. If someone has a real old client, hopefully they'll find that migration guide. I'll make a docs pr to note that they're fully removed once this goes out.
Summary
CreateSourceConnectorConfig,CreateDestinationConnectorConfig,UpdateSourceConnectorConfig,UpdateDestinationConnectorConfig, and the*ConnectorInformationconfigs withDict[str, Any].S3SourceConnectorConfig,AzureDestinationConnectorConfig,OpenSearchConnectorConfig, …).This decouples the SDK from backend connector schemas — adding/removing fields on a connector no longer requires an SDK release.
These were deprecated in our docs last year. None of our SDK snippets use them.
Test plan
Note
Medium Risk
This is a breaking change to the SDK surface area: connector
configfields switch from typed models/unions toDict[str, Any], and many generated connector config classes/docs are removed, which may break downstream type checks and runtime imports.Overview
Decouples connector configuration from generated SDK models. Connector
configfields for create/update and*ConnectorInformationresponses now useDict[str, Any]instead of per-connector typed unions/models.Removes the generated connector config model classes and their documentation, updates contract tests to assert
configis adict, and bumps the SDK version to0.44.0with a breaking-change entry inCHANGELOG.md(plus release metadata inRELEASES.md).Reviewed by Cursor Bugbot for commit eb0ae92. Bugbot is set up for automated code reviews on this repo. Configure here.