adcp 2.4.0__py3-none-any.whl → 2.4.1__py3-none-any.whl
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/__init__.py +88 -39
- adcp/__main__.py +1 -1
- adcp/client.py +9 -9
- adcp/simple.py +1 -1
- adcp/testing/test_helpers.py +1 -1
- adcp/types/__init__.py +66 -2
- adcp/types/{generated.py → _generated.py} +67 -11
- adcp/types/aliases.py +1 -1
- adcp/types/generated_poc/__init__.py +1 -1
- adcp/types/generated_poc/activate_signal_request.py +1 -1
- adcp/types/generated_poc/activate_signal_response.py +1 -1
- adcp/types/generated_poc/activation_key.py +1 -1
- adcp/types/generated_poc/adagents.py +1 -1
- adcp/types/generated_poc/asset_type.py +1 -1
- adcp/types/generated_poc/audio_asset.py +1 -1
- adcp/types/generated_poc/brand_manifest.py +3 -62
- adcp/types/generated_poc/build_creative_request.py +1 -1
- adcp/types/generated_poc/build_creative_response.py +1 -1
- adcp/types/generated_poc/channels.py +1 -1
- adcp/types/generated_poc/cpc_option.py +1 -1
- adcp/types/generated_poc/cpcv_option.py +1 -1
- adcp/types/generated_poc/cpm_auction_option.py +1 -1
- adcp/types/generated_poc/cpm_fixed_option.py +1 -1
- adcp/types/generated_poc/cpp_option.py +1 -1
- adcp/types/generated_poc/cpv_option.py +1 -1
- adcp/types/generated_poc/create_media_buy_request.py +2 -2
- adcp/types/generated_poc/create_media_buy_response.py +1 -1
- adcp/types/generated_poc/creative_asset.py +1 -1
- adcp/types/generated_poc/creative_assignment.py +1 -1
- adcp/types/generated_poc/creative_manifest.py +1 -1
- adcp/types/generated_poc/creative_policy.py +1 -1
- adcp/types/generated_poc/creative_status.py +1 -1
- adcp/types/generated_poc/css_asset.py +1 -1
- adcp/types/generated_poc/daast_asset.py +1 -1
- adcp/types/generated_poc/delivery_metrics.py +1 -1
- adcp/types/generated_poc/delivery_type.py +1 -1
- adcp/types/generated_poc/deployment.py +1 -1
- adcp/types/generated_poc/destination.py +1 -1
- adcp/types/generated_poc/error.py +1 -1
- adcp/types/generated_poc/flat_rate_option.py +1 -1
- adcp/types/generated_poc/format.py +1 -1
- adcp/types/generated_poc/format_id.py +1 -1
- adcp/types/generated_poc/frequency_cap.py +1 -1
- adcp/types/generated_poc/frequency_cap_scope.py +1 -1
- adcp/types/generated_poc/get_media_buy_delivery_request.py +1 -1
- adcp/types/generated_poc/get_media_buy_delivery_response.py +1 -1
- adcp/types/generated_poc/get_products_request.py +2 -2
- adcp/types/generated_poc/get_products_response.py +1 -1
- adcp/types/generated_poc/get_signals_request.py +1 -1
- adcp/types/generated_poc/get_signals_response.py +1 -1
- adcp/types/generated_poc/html_asset.py +1 -1
- adcp/types/generated_poc/identifier_types.py +1 -1
- adcp/types/generated_poc/image_asset.py +1 -1
- adcp/types/generated_poc/javascript_asset.py +1 -1
- adcp/types/generated_poc/list_authorized_properties_request.py +1 -1
- adcp/types/generated_poc/list_authorized_properties_response.py +1 -1
- adcp/types/generated_poc/list_creative_formats_request.py +1 -1
- adcp/types/generated_poc/list_creative_formats_response.py +1 -1
- adcp/types/generated_poc/list_creatives_request.py +1 -1
- adcp/types/generated_poc/list_creatives_response.py +2 -17
- adcp/types/generated_poc/markdown_asset.py +1 -1
- adcp/types/generated_poc/measurement.py +1 -1
- adcp/types/generated_poc/media_buy.py +1 -1
- adcp/types/generated_poc/media_buy_status.py +1 -1
- adcp/types/generated_poc/pacing.py +1 -1
- adcp/types/generated_poc/package.py +1 -1
- adcp/types/generated_poc/package_request.py +1 -1
- adcp/types/generated_poc/package_status.py +1 -1
- adcp/types/generated_poc/performance_feedback.py +1 -1
- adcp/types/generated_poc/placement.py +1 -1
- adcp/types/generated_poc/preview_creative_request.py +1 -1
- adcp/types/generated_poc/preview_creative_response.py +1 -1
- adcp/types/generated_poc/preview_render.py +1 -1
- adcp/types/generated_poc/pricing_model.py +1 -1
- adcp/types/generated_poc/product.py +25 -16
- adcp/types/generated_poc/promoted_offerings.py +2 -2
- adcp/types/generated_poc/promoted_products.py +1 -1
- adcp/types/generated_poc/property.py +1 -1
- adcp/types/generated_poc/protocol_envelope.py +1 -1
- adcp/types/generated_poc/provide_performance_feedback_request.py +1 -1
- adcp/types/generated_poc/provide_performance_feedback_response.py +1 -1
- adcp/types/generated_poc/publisher_identifier_types.py +1 -1
- adcp/types/generated_poc/push_notification_config.py +1 -1
- adcp/types/generated_poc/reporting_capabilities.py +1 -1
- adcp/types/generated_poc/response.py +1 -1
- adcp/types/generated_poc/standard_format_ids.py +1 -1
- adcp/types/generated_poc/sub_asset.py +1 -1
- adcp/types/generated_poc/sync_creatives_request.py +1 -1
- adcp/types/generated_poc/sync_creatives_response.py +1 -1
- adcp/types/generated_poc/targeting.py +1 -1
- adcp/types/generated_poc/task_status.py +1 -1
- adcp/types/generated_poc/task_type.py +1 -1
- adcp/types/generated_poc/tasks_get_request.py +1 -1
- adcp/types/generated_poc/tasks_get_response.py +1 -1
- adcp/types/generated_poc/tasks_list_request.py +1 -1
- adcp/types/generated_poc/tasks_list_response.py +1 -1
- adcp/types/generated_poc/text_asset.py +1 -1
- adcp/types/generated_poc/update_media_buy_request.py +1 -1
- adcp/types/generated_poc/update_media_buy_response.py +1 -1
- adcp/types/generated_poc/url_asset.py +1 -1
- adcp/types/generated_poc/vast_asset.py +1 -1
- adcp/types/generated_poc/vcpm_auction_option.py +1 -1
- adcp/types/generated_poc/vcpm_fixed_option.py +1 -1
- adcp/types/generated_poc/video_asset.py +1 -1
- adcp/types/generated_poc/webhook_asset.py +1 -1
- adcp/types/generated_poc/webhook_payload.py +1 -1
- adcp/types/stable.py +175 -0
- adcp/utils/preview_cache.py +6 -6
- {adcp-2.4.0.dist-info → adcp-2.4.1.dist-info}/METADATA +29 -4
- adcp-2.4.1.dist-info/RECORD +129 -0
- adcp/types/generated_poc/brand_manifest_ref.py +0 -361
- adcp/types/generated_poc/index.py +0 -17
- adcp/types/generated_poc/pricing_option.py +0 -365
- adcp/types/generated_poc/start_timing.py +0 -13
- adcp-2.4.0.dist-info/RECORD +0 -132
- {adcp-2.4.0.dist-info → adcp-2.4.1.dist-info}/WHEEL +0 -0
- {adcp-2.4.0.dist-info → adcp-2.4.1.dist-info}/entry_points.txt +0 -0
- {adcp-2.4.0.dist-info → adcp-2.4.1.dist-info}/licenses/LICENSE +0 -0
- {adcp-2.4.0.dist-info → adcp-2.4.1.dist-info}/top_level.txt +0 -0
adcp/__init__.py
CHANGED
|
@@ -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",
|
adcp/__main__.py
CHANGED
|
@@ -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)
|
adcp/client.py
CHANGED
|
@@ -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
|
|
adcp/simple.py
CHANGED
|
@@ -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,
|
adcp/testing/test_helpers.py
CHANGED
|
@@ -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(
|
adcp/types/__init__.py
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
-
"""Type definitions for AdCP client.
|
|
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
|
+
"""
|
|
4
12
|
|
|
5
13
|
from adcp.types.aliases import (
|
|
6
14
|
BothPreviewRender,
|
|
@@ -21,11 +29,44 @@ from adcp.types.core import (
|
|
|
21
29
|
DebugInfo,
|
|
22
30
|
Protocol,
|
|
23
31
|
TaskResult,
|
|
24
|
-
TaskStatus,
|
|
25
32
|
WebhookMetadata,
|
|
26
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
|
|
27
67
|
|
|
28
68
|
__all__ = [
|
|
69
|
+
# Base types
|
|
29
70
|
"AdCPBaseModel",
|
|
30
71
|
"AgentConfig",
|
|
31
72
|
"Protocol",
|
|
@@ -45,4 +86,27 @@ __all__ = [
|
|
|
45
86
|
"UrlDaastAsset",
|
|
46
87
|
"UrlPreviewRender",
|
|
47
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",
|
|
48
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
|
+
]
|
adcp/types/aliases.py
CHANGED
|
@@ -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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: brand-manifest.json
|
|
3
|
-
# timestamp: 2025-11-
|
|
3
|
+
# timestamp: 2025-11-18T04:34:42+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
@@ -148,7 +148,7 @@ class ProductCatalog(AdCPBaseModel):
|
|
|
148
148
|
] = None
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
class
|
|
151
|
+
class BrandManifest(AdCPBaseModel):
|
|
152
152
|
model_config = ConfigDict(
|
|
153
153
|
extra='forbid',
|
|
154
154
|
)
|
|
@@ -176,68 +176,9 @@ class BrandManifest1(AdCPBaseModel):
|
|
|
176
176
|
Field(description='Brand logo assets with semantic tags for different use cases'),
|
|
177
177
|
] = None
|
|
178
178
|
metadata: Annotated[Metadata | None, Field(description='Additional brand metadata')] = None
|
|
179
|
-
name: Annotated[str | None, Field(description='Brand or business name')] = None
|
|
180
|
-
product_catalog: Annotated[
|
|
181
|
-
ProductCatalog | None,
|
|
182
|
-
Field(
|
|
183
|
-
description='Product catalog information for e-commerce advertisers. Enables SKU-level creative generation and product selection.'
|
|
184
|
-
),
|
|
185
|
-
] = None
|
|
186
|
-
tagline: Annotated[str | None, Field(description='Brand tagline or slogan')] = None
|
|
187
|
-
target_audience: Annotated[
|
|
188
|
-
str | None, Field(description='Primary target audience description')
|
|
189
|
-
] = None
|
|
190
|
-
tone: Annotated[
|
|
191
|
-
str | None,
|
|
192
|
-
Field(
|
|
193
|
-
description="Brand voice and messaging tone (e.g., 'professional', 'casual', 'humorous', 'trustworthy', 'innovative')"
|
|
194
|
-
),
|
|
195
|
-
] = None
|
|
196
|
-
url: Annotated[
|
|
197
|
-
AnyUrl,
|
|
198
|
-
Field(
|
|
199
|
-
description='Primary brand URL for context and asset discovery. Creative agents can infer brand information from this URL.'
|
|
200
|
-
),
|
|
201
|
-
]
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
Asset1 = Asset
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
ProductCatalog1 = ProductCatalog
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
class BrandManifest2(AdCPBaseModel):
|
|
211
|
-
model_config = ConfigDict(
|
|
212
|
-
extra='forbid',
|
|
213
|
-
)
|
|
214
|
-
assets: Annotated[
|
|
215
|
-
list[Asset1] | None,
|
|
216
|
-
Field(
|
|
217
|
-
description='Brand asset library with explicit assets and tags. Assets are referenced inline with URLs pointing to CDN-hosted files.'
|
|
218
|
-
),
|
|
219
|
-
] = None
|
|
220
|
-
colors: Annotated[Colors | None, Field(description='Brand color palette')] = None
|
|
221
|
-
contact: Annotated[Contact | None, Field(description='Brand contact information')] = None
|
|
222
|
-
disclaimers: Annotated[
|
|
223
|
-
list[Disclaimer] | None,
|
|
224
|
-
Field(description='Legal disclaimers or required text that must appear in creatives'),
|
|
225
|
-
] = None
|
|
226
|
-
fonts: Annotated[Fonts | None, Field(description='Brand typography guidelines')] = None
|
|
227
|
-
industry: Annotated[
|
|
228
|
-
str | None,
|
|
229
|
-
Field(
|
|
230
|
-
description="Industry or vertical (e.g., 'retail', 'automotive', 'finance', 'healthcare')"
|
|
231
|
-
),
|
|
232
|
-
] = None
|
|
233
|
-
logos: Annotated[
|
|
234
|
-
list[Logo] | None,
|
|
235
|
-
Field(description='Brand logo assets with semantic tags for different use cases'),
|
|
236
|
-
] = None
|
|
237
|
-
metadata: Annotated[Metadata | None, Field(description='Additional brand metadata')] = None
|
|
238
179
|
name: Annotated[str, Field(description='Brand or business name')]
|
|
239
180
|
product_catalog: Annotated[
|
|
240
|
-
|
|
181
|
+
ProductCatalog | None,
|
|
241
182
|
Field(
|
|
242
183
|
description='Product catalog information for e-commerce advertisers. Enables SKU-level creative generation and product selection.'
|
|
243
184
|
),
|