Commit 3577cd6
feat(PLU-354): remove connector config models from the SDK (#341)
## Summary
- Replace the typed unions in `CreateSourceConnectorConfig`,
`CreateDestinationConnectorConfig`, `UpdateSourceConnectorConfig`,
`UpdateDestinationConnectorConfig`, and the `*ConnectorInformation`
configs with `Dict[str, Any]`.
- Delete the per-connector config models and their docs (e.g.
`S3SourceConnectorConfig`, `AzureDestinationConnectorConfig`,
`OpenSearchConnectorConfig`, …).
- Bump version to 0.44.0 and add a breaking-change changelog entry.
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
- [ ] CI green
- [ ] Smoke: create a source connector with a plain dict config against
SND and confirm the request goes through
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> This is a breaking change to the SDK surface area: connector `config`
fields switch from typed models/unions to `Dict[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 `config` fields for create/update and `*ConnectorInformation`
responses now use `Dict[str, Any]` instead of per-connector typed
unions/models.
>
> Removes the generated connector config model classes and their
documentation, updates contract tests to assert `config` is a `dict`,
and bumps the SDK version to `0.44.0` with a breaking-change entry in
`CHANGELOG.md` (plus release metadata in `RELEASES.md`).
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
eb0ae92. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 68facfd commit 3577cd6
185 files changed
Lines changed: 49 additions & 7816 deletions
File tree
- _test_contract/platform_api
- src/unstructured_client
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 12 deletions
This file was deleted.
0 commit comments