adcp 2.4.0__tar.gz → 2.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adcp-2.4.0/src/adcp.egg-info → adcp-2.4.1}/PKG-INFO +29 -4
- {adcp-2.4.0 → adcp-2.4.1}/README.md +28 -3
- {adcp-2.4.0 → adcp-2.4.1}/pyproject.toml +3 -3
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/__init__.py +88 -39
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/__main__.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/client.py +9 -9
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/simple.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/testing/test_helpers.py +1 -1
- adcp-2.4.1/src/adcp/types/__init__.py +112 -0
- adcp-2.4.0/src/adcp/types/generated.py → adcp-2.4.1/src/adcp/types/_generated.py +67 -11
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/aliases.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/__init__.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/activate_signal_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/activate_signal_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/activation_key.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/adagents.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/asset_type.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/audio_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/brand_manifest.py +3 -62
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/build_creative_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/build_creative_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/channels.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/cpc_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/cpcv_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/cpm_auction_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/cpm_fixed_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/cpp_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/cpv_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/create_media_buy_request.py +2 -2
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/create_media_buy_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/creative_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/creative_assignment.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/creative_manifest.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/creative_policy.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/creative_status.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/css_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/daast_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/delivery_metrics.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/delivery_type.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/deployment.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/destination.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/error.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/flat_rate_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/format.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/format_id.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/frequency_cap.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/frequency_cap_scope.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/get_media_buy_delivery_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/get_media_buy_delivery_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/get_products_request.py +2 -2
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/get_products_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/get_signals_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/get_signals_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/html_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/identifier_types.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/image_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/javascript_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/list_authorized_properties_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/list_authorized_properties_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/list_creative_formats_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/list_creative_formats_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/list_creatives_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/list_creatives_response.py +2 -17
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/markdown_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/measurement.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/media_buy.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/media_buy_status.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/pacing.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/package.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/package_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/package_status.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/performance_feedback.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/placement.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/preview_creative_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/preview_creative_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/preview_render.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/pricing_model.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/product.py +25 -16
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/promoted_offerings.py +2 -2
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/promoted_products.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/property.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/protocol_envelope.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/provide_performance_feedback_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/provide_performance_feedback_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/publisher_identifier_types.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/push_notification_config.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/reporting_capabilities.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/standard_format_ids.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/sub_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/sync_creatives_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/sync_creatives_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/targeting.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/task_status.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/task_type.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/tasks_get_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/tasks_get_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/tasks_list_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/tasks_list_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/text_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/update_media_buy_request.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/update_media_buy_response.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/url_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/vast_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/vcpm_auction_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/vcpm_fixed_option.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/video_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/webhook_asset.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/generated_poc/webhook_payload.py +1 -1
- adcp-2.4.1/src/adcp/types/stable.py +175 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/utils/preview_cache.py +6 -6
- {adcp-2.4.0 → adcp-2.4.1/src/adcp.egg-info}/PKG-INFO +29 -4
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp.egg-info/SOURCES.txt +3 -5
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_cli.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_client.py +6 -6
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_code_generation.py +4 -4
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_discriminated_unions.py +77 -18
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_format_id_validation.py +1 -1
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_preview_html.py +3 -3
- adcp-2.4.1/tests/test_public_api.py +281 -0
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_simple_api.py +3 -3
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_type_aliases.py +2 -2
- adcp-2.4.0/src/adcp/types/__init__.py +0 -48
- adcp-2.4.0/src/adcp/types/generated_poc/brand_manifest_ref.py +0 -361
- adcp-2.4.0/src/adcp/types/generated_poc/index.py +0 -17
- adcp-2.4.0/src/adcp/types/generated_poc/pricing_option.py +0 -365
- adcp-2.4.0/src/adcp/types/generated_poc/start_timing.py +0 -13
- {adcp-2.4.0 → adcp-2.4.1}/LICENSE +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/setup.cfg +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/adagents.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/config.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/exceptions.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/protocols/__init__.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/protocols/a2a.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/protocols/base.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/protocols/mcp.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/py.typed +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/testing/__init__.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/base.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/types/core.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/utils/__init__.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/utils/operation_id.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/utils/response_parser.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp/validation.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp.egg-info/dependency_links.txt +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp.egg-info/entry_points.txt +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp.egg-info/requires.txt +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/src/adcp.egg-info/top_level.txt +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_adagents.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_helpers.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_protocols.py +0 -0
- {adcp-2.4.0 → adcp-2.4.1}/tests/test_response_parser.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: adcp
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.1
|
|
4
4
|
Summary: Official Python client for the Ad Context Protocol (AdCP)
|
|
5
5
|
Author-email: AdCP Community <maintainers@adcontextprotocol.org>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -246,10 +246,16 @@ client = ADCPClient(config)
|
|
|
246
246
|
|
|
247
247
|
### Type Safety
|
|
248
248
|
|
|
249
|
-
Full type hints with Pydantic validation and auto-generated types from the AdCP spec:
|
|
249
|
+
Full type hints with Pydantic validation and auto-generated types from the AdCP spec. All commonly-used types are exported from the main `adcp` package for convenience:
|
|
250
250
|
|
|
251
251
|
```python
|
|
252
|
-
from adcp import
|
|
252
|
+
from adcp import (
|
|
253
|
+
GetProductsRequest,
|
|
254
|
+
BrandManifest,
|
|
255
|
+
Package,
|
|
256
|
+
CpmFixedRatePricingOption,
|
|
257
|
+
MediaBuyStatus,
|
|
258
|
+
)
|
|
253
259
|
|
|
254
260
|
# All methods require typed request objects
|
|
255
261
|
request = GetProductsRequest(brief="Coffee brands", max_results=10)
|
|
@@ -259,8 +265,27 @@ result = await agent.get_products(request)
|
|
|
259
265
|
if result.success:
|
|
260
266
|
for product in result.data.products:
|
|
261
267
|
print(product.name, product.pricing_options) # Full IDE autocomplete!
|
|
268
|
+
|
|
269
|
+
# Type-safe pricing with discriminators
|
|
270
|
+
pricing = CpmFixedRatePricingOption(
|
|
271
|
+
pricing_option_id="cpm_usd",
|
|
272
|
+
pricing_model="cpm",
|
|
273
|
+
is_fixed=True, # Literal[True] - type checked!
|
|
274
|
+
currency="USD",
|
|
275
|
+
rate=5.0
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
# Type-safe status enums
|
|
279
|
+
if media_buy.status == MediaBuyStatus.active:
|
|
280
|
+
print("Media buy is active")
|
|
262
281
|
```
|
|
263
282
|
|
|
283
|
+
**Exported from main package:**
|
|
284
|
+
- **Core domain types**: `BrandManifest`, `Creative`, `CreativeManifest`, `MediaBuy`, `Package`
|
|
285
|
+
- **Status enums**: `CreativeStatus`, `MediaBuyStatus`, `PackageStatus`, `PricingModel`
|
|
286
|
+
- **All 9 pricing options**: `CpcPricingOption`, `CpmFixedRatePricingOption`, `VcpmAuctionPricingOption`, etc.
|
|
287
|
+
- **Request/Response types**: All 16 operations with full request/response types
|
|
288
|
+
|
|
264
289
|
#### Semantic Type Aliases
|
|
265
290
|
|
|
266
291
|
For discriminated union types (success/error responses), use semantic aliases for clearer code:
|
|
@@ -291,7 +316,7 @@ See `examples/type_aliases_demo.py` for more examples.
|
|
|
291
316
|
**Import guidelines:**
|
|
292
317
|
- ✅ **DO**: Import from main package: `from adcp import GetProductsRequest`
|
|
293
318
|
- ✅ **DO**: Use semantic aliases: `from adcp import CreateMediaBuySuccessResponse`
|
|
294
|
-
- ⚠️ **AVOID**: Import from internal modules: `from adcp.types.
|
|
319
|
+
- ⚠️ **AVOID**: Import from internal modules: `from adcp.types._generated import CreateMediaBuyResponse1`
|
|
295
320
|
|
|
296
321
|
The main package exports provide a stable API while internal generated types may change.
|
|
297
322
|
|
|
@@ -207,10 +207,16 @@ client = ADCPClient(config)
|
|
|
207
207
|
|
|
208
208
|
### Type Safety
|
|
209
209
|
|
|
210
|
-
Full type hints with Pydantic validation and auto-generated types from the AdCP spec:
|
|
210
|
+
Full type hints with Pydantic validation and auto-generated types from the AdCP spec. All commonly-used types are exported from the main `adcp` package for convenience:
|
|
211
211
|
|
|
212
212
|
```python
|
|
213
|
-
from adcp import
|
|
213
|
+
from adcp import (
|
|
214
|
+
GetProductsRequest,
|
|
215
|
+
BrandManifest,
|
|
216
|
+
Package,
|
|
217
|
+
CpmFixedRatePricingOption,
|
|
218
|
+
MediaBuyStatus,
|
|
219
|
+
)
|
|
214
220
|
|
|
215
221
|
# All methods require typed request objects
|
|
216
222
|
request = GetProductsRequest(brief="Coffee brands", max_results=10)
|
|
@@ -220,8 +226,27 @@ result = await agent.get_products(request)
|
|
|
220
226
|
if result.success:
|
|
221
227
|
for product in result.data.products:
|
|
222
228
|
print(product.name, product.pricing_options) # Full IDE autocomplete!
|
|
229
|
+
|
|
230
|
+
# Type-safe pricing with discriminators
|
|
231
|
+
pricing = CpmFixedRatePricingOption(
|
|
232
|
+
pricing_option_id="cpm_usd",
|
|
233
|
+
pricing_model="cpm",
|
|
234
|
+
is_fixed=True, # Literal[True] - type checked!
|
|
235
|
+
currency="USD",
|
|
236
|
+
rate=5.0
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
# Type-safe status enums
|
|
240
|
+
if media_buy.status == MediaBuyStatus.active:
|
|
241
|
+
print("Media buy is active")
|
|
223
242
|
```
|
|
224
243
|
|
|
244
|
+
**Exported from main package:**
|
|
245
|
+
- **Core domain types**: `BrandManifest`, `Creative`, `CreativeManifest`, `MediaBuy`, `Package`
|
|
246
|
+
- **Status enums**: `CreativeStatus`, `MediaBuyStatus`, `PackageStatus`, `PricingModel`
|
|
247
|
+
- **All 9 pricing options**: `CpcPricingOption`, `CpmFixedRatePricingOption`, `VcpmAuctionPricingOption`, etc.
|
|
248
|
+
- **Request/Response types**: All 16 operations with full request/response types
|
|
249
|
+
|
|
225
250
|
#### Semantic Type Aliases
|
|
226
251
|
|
|
227
252
|
For discriminated union types (success/error responses), use semantic aliases for clearer code:
|
|
@@ -252,7 +277,7 @@ See `examples/type_aliases_demo.py` for more examples.
|
|
|
252
277
|
**Import guidelines:**
|
|
253
278
|
- ✅ **DO**: Import from main package: `from adcp import GetProductsRequest`
|
|
254
279
|
- ✅ **DO**: Use semantic aliases: `from adcp import CreateMediaBuySuccessResponse`
|
|
255
|
-
- ⚠️ **AVOID**: Import from internal modules: `from adcp.types.
|
|
280
|
+
- ⚠️ **AVOID**: Import from internal modules: `from adcp.types._generated import CreateMediaBuyResponse1`
|
|
256
281
|
|
|
257
282
|
The main package exports provide a stable API while internal generated types may change.
|
|
258
283
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "adcp"
|
|
7
|
-
version = "2.4.
|
|
7
|
+
version = "2.4.1"
|
|
8
8
|
description = "Official Python client for the Ad Context Protocol (AdCP)"
|
|
9
9
|
authors = [
|
|
10
10
|
{name = "AdCP Community", email = "maintainers@adcontextprotocol.org"}
|
|
@@ -63,13 +63,13 @@ adcp = ["py.typed"]
|
|
|
63
63
|
[tool.black]
|
|
64
64
|
line-length = 100
|
|
65
65
|
target-version = ["py310", "py311", "py312"]
|
|
66
|
-
extend-exclude = "/(
|
|
66
|
+
extend-exclude = "/(_generated|tasks)\\.py$"
|
|
67
67
|
|
|
68
68
|
[tool.ruff]
|
|
69
69
|
line-length = 100
|
|
70
70
|
target-version = "py310"
|
|
71
71
|
extend-exclude = [
|
|
72
|
-
"src/adcp/types/
|
|
72
|
+
"src/adcp/types/_generated.py",
|
|
73
73
|
"src/adcp/types/tasks.py",
|
|
74
74
|
"src/adcp/types/generated_poc/",
|
|
75
75
|
]
|
|
@@ -51,47 +51,15 @@ from adcp.testing import (
|
|
|
51
51
|
test_agent_no_auth,
|
|
52
52
|
)
|
|
53
53
|
|
|
54
|
-
# Import
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
from adcp.types.aliases import (
|
|
59
|
-
ActivateSignalErrorResponse,
|
|
60
|
-
ActivateSignalSuccessResponse,
|
|
61
|
-
BothPreviewRender,
|
|
62
|
-
BuildCreativeErrorResponse,
|
|
63
|
-
BuildCreativeSuccessResponse,
|
|
64
|
-
CreateMediaBuyErrorResponse,
|
|
65
|
-
CreateMediaBuySuccessResponse,
|
|
66
|
-
HtmlPreviewRender,
|
|
67
|
-
InlineDaastAsset,
|
|
68
|
-
InlineVastAsset,
|
|
69
|
-
MediaSubAsset,
|
|
70
|
-
PreviewCreativeFormatRequest,
|
|
71
|
-
PreviewCreativeInteractiveResponse,
|
|
72
|
-
PreviewCreativeManifestRequest,
|
|
73
|
-
PreviewCreativeStaticResponse,
|
|
74
|
-
PropertyIdActivationKey,
|
|
75
|
-
PropertyTagActivationKey,
|
|
76
|
-
ProvidePerformanceFeedbackErrorResponse,
|
|
77
|
-
ProvidePerformanceFeedbackSuccessResponse,
|
|
78
|
-
SyncCreativesErrorResponse,
|
|
79
|
-
SyncCreativesSuccessResponse,
|
|
80
|
-
TextSubAsset,
|
|
81
|
-
UpdateMediaBuyErrorResponse,
|
|
82
|
-
UpdateMediaBuyPackagesRequest,
|
|
83
|
-
UpdateMediaBuyPropertiesRequest,
|
|
84
|
-
UpdateMediaBuySuccessResponse,
|
|
85
|
-
UrlDaastAsset,
|
|
86
|
-
UrlPreviewRender,
|
|
87
|
-
UrlVastAsset,
|
|
88
|
-
)
|
|
89
|
-
from adcp.types.core import AgentConfig, Protocol, TaskResult, TaskStatus, WebhookMetadata
|
|
54
|
+
# Import generated types modules - for internal use
|
|
55
|
+
# Note: Users should import specific types, not the whole module
|
|
56
|
+
from adcp.types import _generated as generated
|
|
57
|
+
from adcp.types import aliases
|
|
90
58
|
|
|
91
59
|
# Re-export commonly-used request/response types for convenience
|
|
92
60
|
# Users should import from main package (e.g., `from adcp import GetProductsRequest`)
|
|
93
61
|
# rather than internal modules for better API stability
|
|
94
|
-
from adcp.types.
|
|
62
|
+
from adcp.types._generated import (
|
|
95
63
|
# Audience & Targeting
|
|
96
64
|
ActivateSignalRequest,
|
|
97
65
|
ActivateSignalResponse,
|
|
@@ -127,7 +95,67 @@ from adcp.types.generated import (
|
|
|
127
95
|
UpdateMediaBuyRequest,
|
|
128
96
|
UpdateMediaBuyResponse,
|
|
129
97
|
)
|
|
130
|
-
from adcp.types.
|
|
98
|
+
from adcp.types._generated import TaskStatus as GeneratedTaskStatus
|
|
99
|
+
|
|
100
|
+
# Re-export semantic type aliases for better ergonomics
|
|
101
|
+
from adcp.types.aliases import (
|
|
102
|
+
ActivateSignalErrorResponse,
|
|
103
|
+
ActivateSignalSuccessResponse,
|
|
104
|
+
BothPreviewRender,
|
|
105
|
+
BuildCreativeErrorResponse,
|
|
106
|
+
BuildCreativeSuccessResponse,
|
|
107
|
+
CreateMediaBuyErrorResponse,
|
|
108
|
+
CreateMediaBuySuccessResponse,
|
|
109
|
+
HtmlPreviewRender,
|
|
110
|
+
InlineDaastAsset,
|
|
111
|
+
InlineVastAsset,
|
|
112
|
+
MediaSubAsset,
|
|
113
|
+
PreviewCreativeFormatRequest,
|
|
114
|
+
PreviewCreativeInteractiveResponse,
|
|
115
|
+
PreviewCreativeManifestRequest,
|
|
116
|
+
PreviewCreativeStaticResponse,
|
|
117
|
+
PropertyIdActivationKey,
|
|
118
|
+
PropertyTagActivationKey,
|
|
119
|
+
ProvidePerformanceFeedbackErrorResponse,
|
|
120
|
+
ProvidePerformanceFeedbackSuccessResponse,
|
|
121
|
+
SyncCreativesErrorResponse,
|
|
122
|
+
SyncCreativesSuccessResponse,
|
|
123
|
+
TextSubAsset,
|
|
124
|
+
UpdateMediaBuyErrorResponse,
|
|
125
|
+
UpdateMediaBuyPackagesRequest,
|
|
126
|
+
UpdateMediaBuyPropertiesRequest,
|
|
127
|
+
UpdateMediaBuySuccessResponse,
|
|
128
|
+
UrlDaastAsset,
|
|
129
|
+
UrlPreviewRender,
|
|
130
|
+
UrlVastAsset,
|
|
131
|
+
)
|
|
132
|
+
from adcp.types.core import AgentConfig, Protocol, TaskResult, TaskStatus, WebhookMetadata
|
|
133
|
+
|
|
134
|
+
# Re-export core domain types and pricing options from stable API
|
|
135
|
+
# These are commonly used in typical workflows
|
|
136
|
+
from adcp.types.stable import (
|
|
137
|
+
# Core domain types
|
|
138
|
+
BrandManifest,
|
|
139
|
+
# Pricing options (all 9 types for product creation)
|
|
140
|
+
CpcPricingOption,
|
|
141
|
+
CpcvPricingOption,
|
|
142
|
+
CpmAuctionPricingOption,
|
|
143
|
+
CpmFixedRatePricingOption,
|
|
144
|
+
CppPricingOption,
|
|
145
|
+
CpvPricingOption,
|
|
146
|
+
Creative,
|
|
147
|
+
CreativeManifest,
|
|
148
|
+
# Status enums (for control flow)
|
|
149
|
+
CreativeStatus,
|
|
150
|
+
FlatRatePricingOption,
|
|
151
|
+
MediaBuy,
|
|
152
|
+
MediaBuyStatus,
|
|
153
|
+
Package,
|
|
154
|
+
PackageStatus,
|
|
155
|
+
PricingModel,
|
|
156
|
+
VcpmAuctionPricingOption,
|
|
157
|
+
VcpmFixedRatePricingOption,
|
|
158
|
+
)
|
|
131
159
|
from adcp.validation import (
|
|
132
160
|
ValidationError,
|
|
133
161
|
validate_adagents,
|
|
@@ -136,7 +164,7 @@ from adcp.validation import (
|
|
|
136
164
|
validate_publisher_properties_item,
|
|
137
165
|
)
|
|
138
166
|
|
|
139
|
-
__version__ = "2.4.
|
|
167
|
+
__version__ = "2.4.1"
|
|
140
168
|
|
|
141
169
|
__all__ = [
|
|
142
170
|
# Client classes
|
|
@@ -179,6 +207,27 @@ __all__ = [
|
|
|
179
207
|
"Format",
|
|
180
208
|
"Product",
|
|
181
209
|
"Property",
|
|
210
|
+
# Core domain types (from stable API)
|
|
211
|
+
"BrandManifest",
|
|
212
|
+
"Creative",
|
|
213
|
+
"CreativeManifest",
|
|
214
|
+
"MediaBuy",
|
|
215
|
+
"Package",
|
|
216
|
+
# Status enums (for control flow)
|
|
217
|
+
"CreativeStatus",
|
|
218
|
+
"MediaBuyStatus",
|
|
219
|
+
"PackageStatus",
|
|
220
|
+
"PricingModel",
|
|
221
|
+
# Pricing options (all 9 types)
|
|
222
|
+
"CpcPricingOption",
|
|
223
|
+
"CpcvPricingOption",
|
|
224
|
+
"CpmAuctionPricingOption",
|
|
225
|
+
"CpmFixedRatePricingOption",
|
|
226
|
+
"CppPricingOption",
|
|
227
|
+
"CpvPricingOption",
|
|
228
|
+
"FlatRatePricingOption",
|
|
229
|
+
"VcpmAuctionPricingOption",
|
|
230
|
+
"VcpmFixedRatePricingOption",
|
|
182
231
|
# Adagents validation
|
|
183
232
|
"AuthorizationContext",
|
|
184
233
|
"fetch_adagents",
|
|
@@ -112,7 +112,7 @@ async def _dispatch_tool(client: ADCPClient, tool_name: str, payload: dict[str,
|
|
|
112
112
|
"""
|
|
113
113
|
from pydantic import ValidationError
|
|
114
114
|
|
|
115
|
-
from adcp.types import
|
|
115
|
+
from adcp.types import _generated as gen
|
|
116
116
|
from adcp.types.core import TaskResult, TaskStatus
|
|
117
117
|
|
|
118
118
|
# Lazy initialization of request types (avoid circular imports)
|
|
@@ -17,15 +17,7 @@ from adcp.exceptions import ADCPWebhookSignatureError
|
|
|
17
17
|
from adcp.protocols.a2a import A2AAdapter
|
|
18
18
|
from adcp.protocols.base import ProtocolAdapter
|
|
19
19
|
from adcp.protocols.mcp import MCPAdapter
|
|
20
|
-
from adcp.types.
|
|
21
|
-
Activity,
|
|
22
|
-
ActivityType,
|
|
23
|
-
AgentConfig,
|
|
24
|
-
Protocol,
|
|
25
|
-
TaskResult,
|
|
26
|
-
TaskStatus,
|
|
27
|
-
)
|
|
28
|
-
from adcp.types.generated import (
|
|
20
|
+
from adcp.types._generated import (
|
|
29
21
|
ActivateSignalRequest,
|
|
30
22
|
ActivateSignalResponse,
|
|
31
23
|
GetMediaBuyDeliveryRequest,
|
|
@@ -48,6 +40,14 @@ from adcp.types.generated import (
|
|
|
48
40
|
SyncCreativesResponse,
|
|
49
41
|
WebhookPayload,
|
|
50
42
|
)
|
|
43
|
+
from adcp.types.core import (
|
|
44
|
+
Activity,
|
|
45
|
+
ActivityType,
|
|
46
|
+
AgentConfig,
|
|
47
|
+
Protocol,
|
|
48
|
+
TaskResult,
|
|
49
|
+
TaskStatus,
|
|
50
|
+
)
|
|
51
51
|
from adcp.types.generated_poc.task_status import TaskStatus as GeneratedTaskStatus
|
|
52
52
|
from adcp.utils.operation_id import create_operation_id
|
|
53
53
|
|
|
@@ -23,7 +23,7 @@ from __future__ import annotations
|
|
|
23
23
|
from typing import TYPE_CHECKING, Any
|
|
24
24
|
|
|
25
25
|
from adcp.exceptions import ADCPSimpleAPIError
|
|
26
|
-
from adcp.types.
|
|
26
|
+
from adcp.types._generated import (
|
|
27
27
|
ActivateSignalRequest,
|
|
28
28
|
ActivateSignalResponse,
|
|
29
29
|
GetMediaBuyDeliveryRequest,
|
|
@@ -231,7 +231,7 @@ test_agent_a2a_no_auth: ADCPClient = _create_test_agent_a2a_no_auth_client()
|
|
|
231
231
|
# Example:
|
|
232
232
|
# ```python
|
|
233
233
|
# from adcp.testing import creative_agent
|
|
234
|
-
# from adcp.types.
|
|
234
|
+
# from adcp.types._generated import PreviewCreativeRequest
|
|
235
235
|
#
|
|
236
236
|
# result = await creative_agent.preview_creative(
|
|
237
237
|
# PreviewCreativeRequest(
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
"""Type definitions for AdCP client.
|
|
4
|
+
|
|
5
|
+
This module provides the public API for AdCP types. All types are imported from
|
|
6
|
+
the stable API layer which provides consistent naming regardless of internal
|
|
7
|
+
schema evolution.
|
|
8
|
+
|
|
9
|
+
**IMPORTANT**: Never import directly from adcp.types.generated_poc. Always use
|
|
10
|
+
adcp.types or adcp.types.stable for stable, versioned types.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from adcp.types.aliases import (
|
|
14
|
+
BothPreviewRender,
|
|
15
|
+
HtmlPreviewRender,
|
|
16
|
+
InlineDaastAsset,
|
|
17
|
+
InlineVastAsset,
|
|
18
|
+
MediaSubAsset,
|
|
19
|
+
TextSubAsset,
|
|
20
|
+
UrlDaastAsset,
|
|
21
|
+
UrlPreviewRender,
|
|
22
|
+
UrlVastAsset,
|
|
23
|
+
)
|
|
24
|
+
from adcp.types.base import AdCPBaseModel
|
|
25
|
+
from adcp.types.core import (
|
|
26
|
+
Activity,
|
|
27
|
+
ActivityType,
|
|
28
|
+
AgentConfig,
|
|
29
|
+
DebugInfo,
|
|
30
|
+
Protocol,
|
|
31
|
+
TaskResult,
|
|
32
|
+
WebhookMetadata,
|
|
33
|
+
)
|
|
34
|
+
from adcp.types.core import (
|
|
35
|
+
TaskStatus as CoreTaskStatus,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
# Import stable public API types
|
|
39
|
+
from adcp.types.stable import (
|
|
40
|
+
BrandManifest,
|
|
41
|
+
# Pricing options
|
|
42
|
+
CpcPricingOption,
|
|
43
|
+
CpcvPricingOption,
|
|
44
|
+
CpmAuctionPricingOption,
|
|
45
|
+
CpmFixedRatePricingOption,
|
|
46
|
+
CppPricingOption,
|
|
47
|
+
CpvPricingOption,
|
|
48
|
+
Creative,
|
|
49
|
+
CreativeStatus,
|
|
50
|
+
Error,
|
|
51
|
+
FlatRatePricingOption,
|
|
52
|
+
Format,
|
|
53
|
+
MediaBuy,
|
|
54
|
+
MediaBuyStatus,
|
|
55
|
+
Package,
|
|
56
|
+
PackageStatus,
|
|
57
|
+
PricingModel,
|
|
58
|
+
Product,
|
|
59
|
+
Property,
|
|
60
|
+
VcpmAuctionPricingOption,
|
|
61
|
+
VcpmFixedRatePricingOption,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
# Note: CoreTaskStatus is for internal task tracking
|
|
65
|
+
# Generated TaskStatus from AdCP schema is available via adcp.types.stable
|
|
66
|
+
TaskStatus = CoreTaskStatus
|
|
67
|
+
|
|
68
|
+
__all__ = [
|
|
69
|
+
# Base types
|
|
70
|
+
"AdCPBaseModel",
|
|
71
|
+
"AgentConfig",
|
|
72
|
+
"Protocol",
|
|
73
|
+
"TaskResult",
|
|
74
|
+
"TaskStatus",
|
|
75
|
+
"WebhookMetadata",
|
|
76
|
+
"Activity",
|
|
77
|
+
"ActivityType",
|
|
78
|
+
"DebugInfo",
|
|
79
|
+
# Semantic aliases for discriminated unions
|
|
80
|
+
"BothPreviewRender",
|
|
81
|
+
"HtmlPreviewRender",
|
|
82
|
+
"InlineDaastAsset",
|
|
83
|
+
"InlineVastAsset",
|
|
84
|
+
"MediaSubAsset",
|
|
85
|
+
"TextSubAsset",
|
|
86
|
+
"UrlDaastAsset",
|
|
87
|
+
"UrlPreviewRender",
|
|
88
|
+
"UrlVastAsset",
|
|
89
|
+
# Stable API types (commonly used)
|
|
90
|
+
"BrandManifest",
|
|
91
|
+
"Creative",
|
|
92
|
+
"CreativeStatus",
|
|
93
|
+
"Error",
|
|
94
|
+
"Format",
|
|
95
|
+
"MediaBuy",
|
|
96
|
+
"MediaBuyStatus",
|
|
97
|
+
"Package",
|
|
98
|
+
"PackageStatus",
|
|
99
|
+
"PricingModel",
|
|
100
|
+
"Product",
|
|
101
|
+
"Property",
|
|
102
|
+
# Pricing options
|
|
103
|
+
"CpcPricingOption",
|
|
104
|
+
"CpcvPricingOption",
|
|
105
|
+
"CpmAuctionPricingOption",
|
|
106
|
+
"CpmFixedRatePricingOption",
|
|
107
|
+
"CppPricingOption",
|
|
108
|
+
"CpvPricingOption",
|
|
109
|
+
"FlatRatePricingOption",
|
|
110
|
+
"VcpmAuctionPricingOption",
|
|
111
|
+
"VcpmFixedRatePricingOption",
|
|
112
|
+
]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
"""
|
|
1
|
+
"""INTERNAL: Consolidated generated types.
|
|
2
|
+
|
|
3
|
+
DO NOT import from this module directly.
|
|
4
|
+
Use 'from adcp import Type' or 'from adcp.types.stable import Type' instead.
|
|
5
|
+
|
|
6
|
+
This module consolidates all generated types from generated_poc/ into a single
|
|
7
|
+
namespace for convenience. The leading underscore signals this is private API.
|
|
2
8
|
|
|
3
9
|
Auto-generated by datamodel-code-generator from JSON schemas.
|
|
4
10
|
DO NOT EDIT MANUALLY.
|
|
5
11
|
|
|
6
12
|
Generated from: https://github.com/adcontextprotocol/adcp/tree/main/schemas
|
|
7
|
-
Generation date: 2025-11-18
|
|
13
|
+
Generation date: 2025-11-18 12:11:55 UTC
|
|
8
14
|
"""
|
|
9
|
-
|
|
15
|
+
# ruff: noqa: E501, I001
|
|
10
16
|
from __future__ import annotations
|
|
11
17
|
|
|
12
18
|
# Import all types from generated_poc modules
|
|
@@ -16,8 +22,7 @@ from adcp.types.generated_poc.activation_key import ActivationKey1, ActivationKe
|
|
|
16
22
|
from adcp.types.generated_poc.adagents import AuthorizedAgents, AuthorizedAgents1, AuthorizedAgents2, AuthorizedAgents3, AuthorizedSalesAgents, Contact, PropertyId, PropertyTag, PublisherProperties, PublisherProperties1, Tags
|
|
17
23
|
from adcp.types.generated_poc.asset_type import AssetTypeSchema, ContentLength, Dimensions, Duration, FileSize, Quality, Requirements, Type
|
|
18
24
|
from adcp.types.generated_poc.audio_asset import AudioAsset
|
|
19
|
-
from adcp.types.generated_poc.brand_manifest import Asset,
|
|
20
|
-
from adcp.types.generated_poc.brand_manifest_ref import BrandManifest, BrandManifestReference
|
|
25
|
+
from adcp.types.generated_poc.brand_manifest import Asset, AssetType, BrandManifest, Colors, Disclaimer, FeedFormat, Fonts, Logo, Metadata, ProductCatalog, UpdateFrequency
|
|
21
26
|
from adcp.types.generated_poc.build_creative_request import BuildCreativeRequest
|
|
22
27
|
from adcp.types.generated_poc.build_creative_response import BuildCreativeResponse, BuildCreativeResponse1, BuildCreativeResponse2
|
|
23
28
|
from adcp.types.generated_poc.channels import AdvertisingChannels
|
|
@@ -55,7 +60,6 @@ from adcp.types.generated_poc.get_signals_response import GetSignalsResponse, Pr
|
|
|
55
60
|
from adcp.types.generated_poc.html_asset import HtmlAsset
|
|
56
61
|
from adcp.types.generated_poc.identifier_types import PropertyIdentifierTypes
|
|
57
62
|
from adcp.types.generated_poc.image_asset import ImageAsset
|
|
58
|
-
from adcp.types.generated_poc.index import AdcpAssetTypeRegistry
|
|
59
63
|
from adcp.types.generated_poc.javascript_asset import JavascriptAsset, ModuleType
|
|
60
64
|
from adcp.types.generated_poc.list_authorized_properties_request import ListAuthorizedPropertiesRequest, PublisherDomain
|
|
61
65
|
from adcp.types.generated_poc.list_authorized_properties_response import ListAuthorizedPropertiesResponse, PrimaryCountry
|
|
@@ -76,8 +80,7 @@ from adcp.types.generated_poc.preview_creative_request import Input2, OutputForm
|
|
|
76
80
|
from adcp.types.generated_poc.preview_creative_response import Input4, Preview, Preview1, Preview2, PreviewCreativeResponse, PreviewCreativeResponse1, PreviewCreativeResponse2, Response, Response1, Results, Results1
|
|
77
81
|
from adcp.types.generated_poc.preview_render import Embedding, PreviewRender, PreviewRender1, PreviewRender2, PreviewRender3
|
|
78
82
|
from adcp.types.generated_poc.pricing_model import PricingModel
|
|
79
|
-
from adcp.types.generated_poc.
|
|
80
|
-
from adcp.types.generated_poc.product import DeliveryMeasurement, Product, ProductCard, ProductCardDetailed, PublisherProperties3
|
|
83
|
+
from adcp.types.generated_poc.product import DeliveryMeasurement, Product, ProductCard, ProductCardDetailed, PublisherProperties4, PublisherProperties5
|
|
81
84
|
from adcp.types.generated_poc.promoted_offerings import AssetSelectors, Offering, PromotedOfferings
|
|
82
85
|
from adcp.types.generated_poc.promoted_products import PromotedProducts
|
|
83
86
|
from adcp.types.generated_poc.property import Identifier, Property, PropertyType, Tag
|
|
@@ -89,7 +92,6 @@ from adcp.types.generated_poc.push_notification_config import Authentication, Pu
|
|
|
89
92
|
from adcp.types.generated_poc.reporting_capabilities import AvailableMetric, AvailableReportingFrequency, ReportingCapabilities
|
|
90
93
|
from adcp.types.generated_poc.response import ProtocolResponse
|
|
91
94
|
from adcp.types.generated_poc.standard_format_ids import StandardFormatIds
|
|
92
|
-
from adcp.types.generated_poc.start_timing import StartTiming
|
|
93
95
|
from adcp.types.generated_poc.sub_asset import SubAsset1, SubAsset2
|
|
94
96
|
from adcp.types.generated_poc.sync_creatives_request import SyncCreativesRequest, ValidationMode
|
|
95
97
|
from adcp.types.generated_poc.sync_creatives_response import Action, SyncCreativesResponse, SyncCreativesResponse1, SyncCreativesResponse2
|
|
@@ -112,8 +114,62 @@ from adcp.types.generated_poc.webhook_asset import Method, Method1, ResponseType
|
|
|
112
114
|
from adcp.types.generated_poc.webhook_payload import WebhookPayload
|
|
113
115
|
|
|
114
116
|
# Backward compatibility aliases for renamed types
|
|
115
|
-
BrandManifestRef = BrandManifestReference
|
|
116
117
|
Channels = AdvertisingChannels
|
|
117
118
|
|
|
118
119
|
# Explicit exports
|
|
119
|
-
__all__ = [
|
|
120
|
+
__all__ = [
|
|
121
|
+
"Action", "ActivateSignalRequest", "ActivateSignalResponse", "ActivateSignalResponse1",
|
|
122
|
+
"ActivateSignalResponse2", "ActivationKey1", "ActivationKey2", "AdvertisingChannels",
|
|
123
|
+
"AffectedPackage", "AggregatedTotals", "Asset", "AssetSelectors", "AssetType",
|
|
124
|
+
"AssetTypeSchema", "AssetsRequired", "AssetsRequired1", "AssignedPackage", "Assignments",
|
|
125
|
+
"AudioAsset", "Authentication", "AuthorizedAgents", "AuthorizedAgents1", "AuthorizedAgents2",
|
|
126
|
+
"AuthorizedAgents3", "AuthorizedSalesAgents", "AvailableMetric", "AvailableReportingFrequency",
|
|
127
|
+
"BrandManifest", "BuildCreativeRequest", "BuildCreativeResponse", "BuildCreativeResponse1",
|
|
128
|
+
"BuildCreativeResponse2", "ByPackageItem", "Capability", "CatalogType", "Channels",
|
|
129
|
+
"CoBranding", "Colors", "Contact", "ContentLength", "Country", "CpcPricingOption",
|
|
130
|
+
"CpcvPricingOption", "CpmAuctionPricingOption", "CpmFixedRatePricingOption",
|
|
131
|
+
"CppPricingOption", "CpvPricingOption", "CreateMediaBuyRequest", "CreateMediaBuyResponse",
|
|
132
|
+
"CreateMediaBuyResponse1", "CreateMediaBuyResponse2", "Creative", "CreativeAgent",
|
|
133
|
+
"CreativeAsset", "CreativeAssignment", "CreativeManifest", "CreativePolicy", "CreativeStatus",
|
|
134
|
+
"CssAsset", "DaastAsset1", "DaastAsset2", "DaastVersion", "DailyBreakdownItem", "DeliverTo",
|
|
135
|
+
"DeliveryMeasurement", "DeliveryMetrics", "DeliveryType", "Deployment1", "Deployment2",
|
|
136
|
+
"Destination1", "Destination2", "Details", "Dimensions", "Direction", "Disclaimer", "Domain",
|
|
137
|
+
"DomainBreakdown", "DoohMetrics", "Duration", "Embedding", "Error", "FeedFormat",
|
|
138
|
+
"FeedbackSource", "Field1", "FieldModel", "FileSize", "Filters", "FlatRatePricingOption",
|
|
139
|
+
"Fonts", "Format", "FormatCard", "FormatCardDetailed", "FormatId", "FormatType",
|
|
140
|
+
"FrequencyCap", "FrequencyCapScope", "GeoCountryAnyOfItem", "GetMediaBuyDeliveryRequest",
|
|
141
|
+
"GetMediaBuyDeliveryResponse", "GetProductsRequest", "GetProductsResponse",
|
|
142
|
+
"GetSignalsRequest", "GetSignalsResponse", "HistoryItem", "HtmlAsset", "Identifier",
|
|
143
|
+
"ImageAsset", "Input", "Input2", "Input4", "JavascriptAsset", "LandingPage",
|
|
144
|
+
"ListAuthorizedPropertiesRequest", "ListAuthorizedPropertiesResponse",
|
|
145
|
+
"ListCreativeFormatsRequest", "ListCreativeFormatsResponse", "ListCreativesRequest",
|
|
146
|
+
"ListCreativesResponse", "Logo", "MarkdownAsset", "MarkdownFlavor", "Measurement",
|
|
147
|
+
"MeasurementPeriod", "MediaBuy", "MediaBuyDelivery", "MediaBuyStatus", "Metadata", "Method",
|
|
148
|
+
"Method1", "MetricType", "ModuleType", "NotificationType", "Offering", "OutputFormat",
|
|
149
|
+
"Pacing", "Package", "PackageRequest", "PackageStatus", "Packages", "Packages1", "Packages2",
|
|
150
|
+
"Packages3", "Pagination", "Parameters", "Performance", "PerformanceFeedback", "Placement",
|
|
151
|
+
"Preview", "Preview1", "Preview2", "PreviewCreativeRequest", "PreviewCreativeRequest1",
|
|
152
|
+
"PreviewCreativeRequest2", "PreviewCreativeResponse", "PreviewCreativeResponse1",
|
|
153
|
+
"PreviewCreativeResponse2", "PreviewRender", "PreviewRender1", "PreviewRender2",
|
|
154
|
+
"PreviewRender3", "PriceGuidance", "Pricing", "PricingModel", "PrimaryCountry", "Product",
|
|
155
|
+
"ProductCard", "ProductCardDetailed", "ProductCatalog", "Progress", "PromotedOfferings",
|
|
156
|
+
"PromotedProducts", "Property", "PropertyId", "PropertyIdentifierTypes", "PropertyTag",
|
|
157
|
+
"PropertyType", "ProtocolEnvelope", "ProtocolResponse", "ProvidePerformanceFeedbackRequest",
|
|
158
|
+
"ProvidePerformanceFeedbackResponse", "ProvidePerformanceFeedbackResponse1",
|
|
159
|
+
"ProvidePerformanceFeedbackResponse2", "PublisherDomain", "PublisherIdentifierTypes",
|
|
160
|
+
"PublisherProperties", "PublisherProperties1", "PublisherProperties4", "PublisherProperties5",
|
|
161
|
+
"PushNotificationConfig", "Quality", "QuartileData", "QuerySummary", "Render",
|
|
162
|
+
"ReportingCapabilities", "ReportingFrequency", "ReportingPeriod", "ReportingWebhook",
|
|
163
|
+
"Request", "RequestedMetric", "Requirements", "Response", "Response1", "ResponseType",
|
|
164
|
+
"Responsive", "Results", "Results1", "Scheme", "Security", "Signal", "SignalType", "Sort",
|
|
165
|
+
"SortApplied", "StandardFormatIds", "Status", "StatusFilter", "StatusFilterEnum",
|
|
166
|
+
"StatusSummary", "SubAsset1", "SubAsset2", "SyncCreativesRequest", "SyncCreativesResponse",
|
|
167
|
+
"SyncCreativesResponse1", "SyncCreativesResponse2", "Tag", "Tags", "TargetingOverlay", "Task",
|
|
168
|
+
"TaskStatus", "TaskType", "TasksGetRequest", "TasksGetResponse", "TasksListRequest",
|
|
169
|
+
"TasksListResponse", "TextAsset", "Totals", "TrackingEvent", "Type", "Unit", "UpdateFrequency",
|
|
170
|
+
"UpdateMediaBuyRequest", "UpdateMediaBuyRequest1", "UpdateMediaBuyRequest2",
|
|
171
|
+
"UpdateMediaBuyResponse", "UpdateMediaBuyResponse1", "UpdateMediaBuyResponse2", "UrlAsset",
|
|
172
|
+
"UrlType", "ValidationMode", "VastAsset1", "VastAsset2", "VastVersion",
|
|
173
|
+
"VcpmAuctionPricingOption", "VcpmFixedRatePricingOption", "VenueBreakdownItem", "VideoAsset",
|
|
174
|
+
"ViewThreshold", "ViewThreshold1", "WebhookAsset", "WebhookPayload"
|
|
175
|
+
]
|
|
@@ -32,7 +32,7 @@ immediately rather than at runtime when users try to use the aliases.
|
|
|
32
32
|
from __future__ import annotations
|
|
33
33
|
|
|
34
34
|
# Import all generated types that need semantic aliases
|
|
35
|
-
from adcp.types.
|
|
35
|
+
from adcp.types._generated import (
|
|
36
36
|
# Activation responses
|
|
37
37
|
ActivateSignalResponse1,
|
|
38
38
|
ActivateSignalResponse2,
|