Conversation
Migrate DataSetClient and AsyncDataSetClient from returning raw dicts to returning typed Pydantic models (DataSet, QueryResult, Policy, DataSetPermission, DataVersion, Schema, Index, Partition). Add new endpoints: - set_tags: tag management via Product API - share / revoke_access: granular permission sharing - list_partitions / delete_partition: partition management - create_upload_session / upload_part / commit_upload: multi-part uploads - set_properties: dataset property updates - data_import_from_file / data_export_to_file: file-based I/O (async) Fix mutable default fields in models (list/dict → Field(default_factory=...)). Add UploadSession and SharePermission models. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Migrate StreamClient and AsyncStreamClient to return typed models (Stream, StreamExecution). Add search() and get_execution() endpoints. Add sync and async test suites (21 tests). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Migrate GroupClient, UserClient, PageClient (sync + async) from raw dicts to typed Pydantic models (Group, User, Page, PageCollection). Fix mutable default fields in Page model. Add test suites for all three clients (23 new tests). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Migrate all four clients (sync + async) to return typed Pydantic models instead of raw dicts. Fix mutable default fields across all model files. Add comprehensive sync and async test suites (43 new tests). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Migrate activity_log, connectors, dataflows, embed, files, projects, s3_export, and workflows clients (sync + async) to return typed Pydantic models. Fix mutable defaults in embed, files, projects, and workflows model files. Create S3Export model. Add 50 new tests across all clients. 249 tests pass, lint clean. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…h models
Replace remaining = [] and = {} defaults with Field(default_factory=...)
in ai.py (9 fields) and search.py (5 fields). Zero mutable defaults now
remain across all model files in the SDK.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
60ee6c9 to
ad0fe05
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Systematic deepening of every API client in the SDK:
dict/list= []and= {}replaced withField(default_factory=...)search(),get_execution()Clients deepened
search(),get_execution()addedTesting
🤖 Generated with Claude Code