feat: complete semantic alias coverage for discriminated unions #63
+671
−2
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
Adds semantic aliases for all remaining user-facing discriminated union types, ensuring downstream users never need to import from
generated_pocor use numbered types.Changes
New Semantic Aliases (10 types)
PublisherProperties variants (selection_type discriminator):
PublisherPropertiesAll→PublisherProperties(selection_type='all')PublisherPropertiesById→PublisherProperties4(selection_type='by_id')PublisherPropertiesByTag→PublisherProperties5(selection_type='by_tag')PropertyId,PropertyTag(constraint types)Deployment variants (type discriminator):
PlatformDeployment→Deployment1(type='platform')AgentDeployment→Deployment2(type='agent')Destination variants (type discriminator):
PlatformDestination→Destination1(type='platform')AgentDestination→Destination2(type='agent')Documentation
Added comprehensive prevention strategy in
CLAUDE.md:Testing
test_type_aliases.pypassingImpact
Before (users had to do this):
After (clean, semantic API):
Coverage Status
✅ 100% of user-facing discriminated unions now have semantic aliases (30 types)
✓ 15 internal helper types correctly left unaliased (Input2, Packages1, etc.)
Breaking Changes
None - only adds new exports, doesn't change existing API.
Checklist
aliases.py,types/__init__.py, and main__init__.pyRelated Issues
Resolves the need for users to import from
generated_pocwhen working with publisher properties and signal deployments/destinations.