Commit 6cb2b6c
feat: sync upstream schemas from PR 1252 (#139)
* feat: sync upstream schemas and expose new API types
- Synced 315 schemas from adcontextprotocol.org (61 updated, 10 new)
- Regenerated Pydantic models from updated schemas
- Added backward compat stubs for removed types: DeliverTo, DeliverTo1, Pricing
- Exposed new public types: GetAccountFinancialsRequest/Response,
ReportUsageRequest/Response, SyncAudiencesRequest/Response,
GetCreativeFeaturesRequest/Response, CpaPricingOption,
TimeBasedPricingOption, TimeUnit, SignalPricing, SignalPricingOption,
OptimizationGoal, CreativeVariant, ArtifactWebhookPayload
- Added aliases for new discriminated union responses
- Updated tests for schema breaking changes (account/buying_mode now required)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat: export missing public API types and clarify compat stubs
Add AccountReference, Overlay, CatalogFieldMapping, CatalogFieldBinding,
and Transform to the public API - all were used as field types in exported
request/response types but were not directly importable.
Add AccountReferenceById / AccountReferenceByNaturalKey aliases for the
two identification methods (by seller-assigned ID vs. brand+operator
natural key).
Clarify DeliverTo/Pricing compat stub comments: the GetSignalsRequest
wire format changed (deliver_to.deployments+countries → top-level
destinations+countries), so the stubs preserve import compatibility only
and cannot restore the old request behavior.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat: address expert review findings - complete public API surface
From code and ad tech expert reviews:
1. Add CpaPricingOption + TimeBasedPricingOption to PricingOption union
(they were exported individually but omitted from the union alias)
2. Add SignalPricingOption variant aliases: CpmSignalPricingOption,
PercentOfMediaSignalPricingOption, FlatFeeSignalPricingOption
(consistent with other discriminated union pattern in aliases.py)
3. Export SyncAudiencesAudience + ConsentBasis for SyncAudiencesRequest
construction (same pattern as SyncCreativeResult, SyncCatalogResult)
4. Expose all new/missing types from adcp top-level package:
AccountReference, CpaPricingOption, TimeBasedPricingOption, TimeUnit,
SignalPricing, SignalPricingOption, GetAccountFinancialsRequest/Response,
ReportUsageRequest/Response, SyncAudiencesRequest/Response,
GetCreativeFeaturesRequest/Response, CreativeVariant, ArtifactWebhookPayload,
OptimizationGoal, CatalogFieldMapping, CatalogFieldBinding, Overlay,
Transform, ConsentBasis, SyncCreativeResult
5. Fix __init__.py docstring: correct module reference (_ergonomic not
coercion), restore "never import from generated_poc" architectural note
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat: sync upstream schemas (PR 1252), add backward compat, address review
Sync 315 upstream schemas (61 updated, 10 new) from adcontextprotocol/adcp
PR 1252 which fixed 17 schema gaps and 7 consistency issues.
Key changes:
- Regenerate all types from updated schemas
- Add backward compat aliases for pricing renames (CpmAuction/Fixed -> Cpm)
- Add backward compat aliases for activation key renames (PropertyId -> SegmentId)
- Add backward compat aliases for preview request renames (Format -> Single)
- Add compat stubs for removed types (ListAuthorizedProperties, PackageStatus)
- Fix SyncAudiencesAudience pointing at wrong Audience type (name collision)
- Add new semantic aliases (GetProductsBriefRequest, GetSignalsDiscoveryRequest, etc.)
- Export new enums (BuyingMode, MediaChannel, DeviceType, etc.)
- Export new models (PaginationRequest, BrandReference, Proposal, etc.)
- Re-export DeliverTo, Pricing, Measurement from top-level adcp package
- Fix stale stable.py reference in consolidate_exports template
- Fix lint violations in consolidate_exports.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: address critical review findings for PR #139
- Fix silent Status type shadowing: override with MediaBuyDeliveryStatus
(delivery status was silently swapped to invoice status due to
alphabetical module sort order in _generated.py)
- Add CatalogGroupBinding semantic alias for CatalogFieldBinding1
- Add 19 missing types to adcp.__all__ (AccountScope, BuyingMode,
AudienceSource, CreativeApprovalStatus, DevicePlatform, DeviceType,
EventType, MediaChannel, WcagLevel, ContextObject, ExtensionObject,
PaginationRequest, Proposal, BrandReference, DateRange, DatetimeRange,
Duration, ErrorCode, Refine)
- Remove duplicate PercentOfMediaSignalPricingOption from adcp.__all__
- Move Measurement, DeliverTo, Pricing to backward-compat section
- Add 31 backward-compat alias tests covering all 13+ deprecated names
- Strengthen weak assertion in test_str_returns_pydantic_default
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: resolve mypy error for Status type override
Import Status directly from delivery response module instead of
reassigning, which mypy rejects as incompatible type assignment.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a08805d commit 6cb2b6c
269 files changed
Lines changed: 10550 additions & 1874 deletions
File tree
- schemas/cache
- account
- content-standards
- core
- assets
- requirements
- creative
- asset-types
- enums
- extensions
- media-buy
- pricing-options
- property
- protocol
- signals
- scripts
- src/adcp
- types
- generated_poc
- account
- content_standards
- core
- assets
- requirements
- creative
- enums
- media_buy
- property
- protocol
- signals
- utils
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
Lines changed: 63 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
Lines changed: 319 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments