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
feat: sync AdCP schema updates and simplify type architecture (#78)
* feat: sync AdCP schema updates and simplify type architecture
- Sync 140 schemas from upstream (61 updated) including filter ref splits
- Regenerate all Pydantic types with new schema structure
- Add backward compatibility aliases for renamed types (e.g., Action → CreativeAction)
- Export filter types (CreativeFilters, ProductFilters, SignalFilters)
- Consolidate stable.py into types/__init__.py (eliminate redundant layer)
- Update all imports from adcp.types.stable → adcp.types
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* chore: sync provide-performance-feedback-request schema from upstream
Schema updated with latest changes from adcontextprotocol.org
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: resolve ruff linter issues
- Fix import ordering in adcp/__init__.py
- Remove duplicate ReportingFrequency import
- Add GeneratedTaskStatus to __all__ exports
- Organize imports according to ruff standards
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: resolve TaskStatus import shadowing issue for mypy
The core TaskStatus enum was shadowing GeneratedTaskStatus, causing mypy
to see the wrong type when client.py tried to access GeneratedTaskStatus
enum members.
Changes:
- Remove TaskStatus from adcp.types exports to avoid shadowing
- Import GeneratedTaskStatus directly instead of aliasing
- Update imports in client.py and __init__.py
- Fix import ordering per ruff standards
This resolves mypy errors about TaskStatus not having .completed, .submitted, etc.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CLAUDE.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ PackageRequest = dict[str, Any]
19
19
20
20
**Stable Public API Layer - Import Architecture**
21
21
22
-
**CRITICAL**: Both `generated_poc/` and `_generated.py` are internal implementation. Source code must ONLY import from `stable.py` or `aliases.py`.
22
+
**CRITICAL**: Both `generated_poc/` and `_generated.py` are internal implementation. Source code must ONLY import from `types/__init__.py` or `aliases.py`.
23
23
24
24
### Import Architecture
25
25
@@ -30,17 +30,17 @@ generated_poc/*.py (internal, auto-generated from schemas)
30
30
↓
31
31
_generated.py (internal consolidation, handles name collisions)
32
32
↓
33
-
stable.py (public API for base types) + aliases.py (public API for discriminated unions)
33
+
types/__init__.py (public API for base types) + aliases.py (public API for discriminated unions)
0 commit comments