adcp 2.18.0__py3-none-any.whl → 3.0.0__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/ADCP_VERSION +1 -1
- adcp/__init__.py +6 -14
- adcp/__main__.py +94 -51
- adcp/adagents.py +91 -19
- adcp/client.py +865 -0
- adcp/protocols/a2a.py +84 -0
- adcp/protocols/base.py +101 -0
- adcp/protocols/mcp.py +87 -1
- adcp/server/__init__.py +49 -0
- adcp/server/base.py +368 -0
- adcp/server/content_standards.py +561 -0
- adcp/server/governance.py +491 -0
- adcp/server/mcp_tools.py +471 -0
- adcp/server/proposal.py +334 -0
- adcp/server/sponsored_intelligence.py +444 -0
- adcp/types/__init__.py +111 -23
- adcp/types/_ergonomic.py +35 -18
- adcp/types/_generated.py +419 -44
- adcp/types/aliases.py +13 -20
- adcp/types/base.py +1 -1
- adcp/types/generated_poc/adagents.py +103 -6
- adcp/types/generated_poc/content_standards/__init__.py +3 -0
- adcp/types/generated_poc/content_standards/artifact.py +208 -0
- adcp/types/generated_poc/content_standards/artifact_webhook_payload.py +64 -0
- adcp/types/generated_poc/content_standards/calibrate_content_request.py +17 -0
- adcp/types/generated_poc/content_standards/calibrate_content_response.py +74 -0
- adcp/types/generated_poc/content_standards/content_standards.py +66 -0
- adcp/types/generated_poc/content_standards/create_content_standards_request.py +97 -0
- adcp/types/generated_poc/content_standards/create_content_standards_response.py +52 -0
- adcp/types/generated_poc/content_standards/get_content_standards_request.py +21 -0
- adcp/types/generated_poc/content_standards/get_content_standards_response.py +43 -0
- adcp/types/generated_poc/content_standards/get_media_buy_artifacts_request.py +64 -0
- adcp/types/generated_poc/content_standards/get_media_buy_artifacts_response.py +117 -0
- adcp/types/generated_poc/content_standards/list_content_standards_request.py +31 -0
- adcp/types/generated_poc/content_standards/list_content_standards_response.py +48 -0
- adcp/types/generated_poc/content_standards/update_content_standards_request.py +101 -0
- adcp/types/generated_poc/content_standards/update_content_standards_response.py +34 -0
- adcp/types/generated_poc/content_standards/validate_content_delivery_request.py +59 -0
- adcp/types/generated_poc/content_standards/validate_content_delivery_response.py +85 -0
- adcp/types/generated_poc/core/activation_key.py +1 -1
- adcp/types/generated_poc/core/assets/audio_asset.py +1 -1
- adcp/types/generated_poc/core/assets/css_asset.py +1 -1
- adcp/types/generated_poc/core/assets/daast_asset.py +1 -1
- adcp/types/generated_poc/core/assets/html_asset.py +1 -1
- adcp/types/generated_poc/core/assets/image_asset.py +1 -1
- adcp/types/generated_poc/core/assets/javascript_asset.py +1 -1
- adcp/types/generated_poc/core/assets/text_asset.py +1 -1
- adcp/types/generated_poc/core/assets/url_asset.py +1 -1
- adcp/types/generated_poc/core/assets/vast_asset.py +1 -1
- adcp/types/generated_poc/core/assets/video_asset.py +1 -1
- adcp/types/generated_poc/core/assets/webhook_asset.py +1 -1
- adcp/types/generated_poc/core/async_response_data.py +1 -1
- adcp/types/generated_poc/core/brand_manifest.py +68 -5
- adcp/types/generated_poc/core/brand_manifest_ref.py +1 -1
- adcp/types/generated_poc/core/context.py +1 -1
- adcp/types/generated_poc/core/creative_asset.py +8 -7
- adcp/types/generated_poc/core/creative_assignment.py +1 -1
- adcp/types/generated_poc/core/creative_filters.py +4 -14
- adcp/types/generated_poc/core/creative_manifest.py +1 -1
- adcp/types/generated_poc/core/creative_policy.py +1 -1
- adcp/types/generated_poc/core/delivery_metrics.py +1 -1
- adcp/types/generated_poc/core/deployment.py +1 -1
- adcp/types/generated_poc/core/destination.py +1 -1
- adcp/types/generated_poc/core/error.py +1 -1
- adcp/types/generated_poc/core/ext.py +1 -1
- adcp/types/generated_poc/core/format.py +6 -5
- adcp/types/generated_poc/core/format_id.py +1 -1
- adcp/types/generated_poc/core/frequency_cap.py +1 -1
- adcp/types/generated_poc/core/identifier.py +27 -0
- adcp/types/generated_poc/core/mcp_webhook_payload.py +1 -1
- adcp/types/generated_poc/core/measurement.py +1 -1
- adcp/types/generated_poc/core/media_buy.py +1 -1
- adcp/types/generated_poc/core/media_buy_features.py +29 -0
- adcp/types/generated_poc/core/offering.py +80 -0
- adcp/types/generated_poc/core/package.py +1 -1
- adcp/types/generated_poc/core/performance_feedback.py +1 -1
- adcp/types/generated_poc/core/placement.py +1 -1
- adcp/types/generated_poc/core/pricing_option.py +8 -14
- adcp/types/generated_poc/core/product.py +1 -1
- adcp/types/generated_poc/core/product_allocation.py +48 -0
- adcp/types/generated_poc/core/product_filters.py +72 -7
- adcp/types/generated_poc/core/promoted_offerings.py +12 -21
- adcp/types/generated_poc/core/promoted_products.py +1 -1
- adcp/types/generated_poc/core/property.py +1 -1
- adcp/types/generated_poc/core/property_id.py +1 -1
- adcp/types/generated_poc/core/property_list_ref.py +26 -0
- adcp/types/generated_poc/core/property_tag.py +1 -1
- adcp/types/generated_poc/core/proposal.py +64 -0
- adcp/types/generated_poc/core/protocol_envelope.py +1 -1
- adcp/types/generated_poc/core/publisher_property_selector.py +1 -1
- adcp/types/generated_poc/core/push_notification_config.py +1 -1
- adcp/types/generated_poc/core/reporting_capabilities.py +1 -1
- adcp/types/generated_poc/core/reporting_webhook.py +70 -0
- adcp/types/generated_poc/core/response.py +1 -1
- adcp/types/generated_poc/core/signal_filters.py +1 -1
- adcp/types/generated_poc/core/start_timing.py +4 -4
- adcp/types/generated_poc/core/sub_asset.py +1 -1
- adcp/types/generated_poc/core/targeting.py +55 -14
- adcp/types/generated_poc/creative/list_creative_formats_request.py +1 -1
- adcp/types/generated_poc/creative/list_creative_formats_response.py +1 -1
- adcp/types/generated_poc/creative/preview_creative_request.py +1 -1
- adcp/types/generated_poc/creative/preview_creative_response.py +3 -2
- adcp/types/generated_poc/creative/preview_render.py +1 -1
- adcp/types/generated_poc/enums/adcp_domain.py +3 -1
- adcp/types/generated_poc/enums/asset_content_type.py +1 -1
- adcp/types/generated_poc/enums/auth_scheme.py +1 -1
- adcp/types/generated_poc/enums/available_metric.py +1 -1
- adcp/types/generated_poc/enums/channels.py +18 -8
- adcp/types/generated_poc/enums/co_branding_requirement.py +1 -1
- adcp/types/generated_poc/enums/creative_action.py +1 -1
- adcp/types/generated_poc/enums/creative_agent_capability.py +1 -1
- adcp/types/generated_poc/enums/creative_sort_field.py +1 -1
- adcp/types/generated_poc/enums/creative_status.py +2 -1
- adcp/types/generated_poc/enums/daast_tracking_event.py +1 -1
- adcp/types/generated_poc/enums/daast_version.py +1 -1
- adcp/types/generated_poc/enums/delivery_type.py +1 -1
- adcp/types/generated_poc/enums/dimension_unit.py +1 -1
- adcp/types/generated_poc/enums/feed_format.py +1 -1
- adcp/types/generated_poc/enums/feedback_source.py +1 -1
- adcp/types/generated_poc/enums/format_category.py +1 -1
- adcp/types/generated_poc/enums/format_id_parameter.py +1 -1
- adcp/types/generated_poc/enums/frequency_cap_scope.py +1 -1
- adcp/types/generated_poc/enums/geo_level.py +14 -0
- adcp/types/generated_poc/enums/history_entry_type.py +1 -1
- adcp/types/generated_poc/enums/http_method.py +1 -1
- adcp/types/generated_poc/enums/identifier_types.py +1 -1
- adcp/types/generated_poc/enums/javascript_module_type.py +1 -1
- adcp/types/generated_poc/enums/landing_page_requirement.py +1 -1
- adcp/types/generated_poc/enums/markdown_flavor.py +1 -1
- adcp/types/generated_poc/enums/media_buy_status.py +1 -1
- adcp/types/generated_poc/enums/metric_type.py +1 -1
- adcp/types/generated_poc/enums/metro_system.py +15 -0
- adcp/types/generated_poc/enums/notification_type.py +1 -1
- adcp/types/generated_poc/enums/pacing.py +1 -1
- adcp/types/generated_poc/enums/postal_system.py +19 -0
- adcp/types/generated_poc/enums/preview_output_format.py +1 -1
- adcp/types/generated_poc/enums/pricing_model.py +1 -1
- adcp/types/generated_poc/enums/property_type.py +2 -1
- adcp/types/generated_poc/enums/publisher_identifier_types.py +1 -1
- adcp/types/generated_poc/enums/reporting_frequency.py +1 -1
- adcp/types/generated_poc/enums/signal_catalog_type.py +1 -1
- adcp/types/generated_poc/enums/sort_direction.py +1 -1
- adcp/types/generated_poc/enums/task_status.py +1 -1
- adcp/types/generated_poc/enums/task_type.py +7 -1
- adcp/types/generated_poc/enums/update_frequency.py +1 -1
- adcp/types/generated_poc/enums/url_asset_type.py +1 -1
- adcp/types/generated_poc/enums/validation_mode.py +1 -1
- adcp/types/generated_poc/enums/vast_tracking_event.py +1 -1
- adcp/types/generated_poc/enums/vast_version.py +1 -1
- adcp/types/generated_poc/enums/webhook_response_type.py +1 -1
- adcp/types/generated_poc/enums/webhook_security_method.py +1 -1
- adcp/types/generated_poc/extensions/__init__.py +3 -0
- adcp/types/generated_poc/extensions/extension_meta.py +58 -0
- adcp/types/generated_poc/media_buy/build_creative_request.py +1 -1
- adcp/types/generated_poc/media_buy/build_creative_response.py +1 -1
- adcp/types/generated_poc/media_buy/create_media_buy_async_response_input_required.py +1 -1
- adcp/types/generated_poc/media_buy/create_media_buy_async_response_submitted.py +1 -1
- adcp/types/generated_poc/media_buy/create_media_buy_async_response_working.py +1 -1
- adcp/types/generated_poc/media_buy/create_media_buy_request.py +54 -26
- adcp/types/generated_poc/media_buy/create_media_buy_response.py +1 -1
- adcp/types/generated_poc/media_buy/get_media_buy_delivery_request.py +1 -1
- adcp/types/generated_poc/media_buy/get_media_buy_delivery_response.py +1 -1
- adcp/types/generated_poc/media_buy/get_products_async_response_input_required.py +1 -1
- adcp/types/generated_poc/media_buy/get_products_async_response_submitted.py +1 -1
- adcp/types/generated_poc/media_buy/get_products_async_response_working.py +1 -1
- adcp/types/generated_poc/media_buy/get_products_request.py +18 -3
- adcp/types/generated_poc/media_buy/get_products_response.py +14 -2
- adcp/types/generated_poc/media_buy/list_authorized_properties_request.py +1 -1
- adcp/types/generated_poc/media_buy/list_authorized_properties_response.py +2 -2
- adcp/types/generated_poc/media_buy/list_creative_formats_request.py +1 -1
- adcp/types/generated_poc/media_buy/list_creative_formats_response.py +1 -1
- adcp/types/generated_poc/media_buy/list_creatives_request.py +2 -2
- adcp/types/generated_poc/media_buy/list_creatives_response.py +7 -10
- adcp/types/generated_poc/media_buy/package_request.py +15 -6
- adcp/types/generated_poc/media_buy/package_update.py +119 -0
- adcp/types/generated_poc/media_buy/provide_performance_feedback_request.py +1 -1
- adcp/types/generated_poc/media_buy/provide_performance_feedback_response.py +1 -1
- adcp/types/generated_poc/media_buy/sync_creatives_async_response_input_required.py +1 -1
- adcp/types/generated_poc/media_buy/sync_creatives_async_response_submitted.py +1 -1
- adcp/types/generated_poc/media_buy/sync_creatives_async_response_working.py +1 -1
- adcp/types/generated_poc/media_buy/sync_creatives_request.py +1 -1
- adcp/types/generated_poc/media_buy/sync_creatives_response.py +1 -1
- adcp/types/generated_poc/media_buy/update_media_buy_async_response_input_required.py +1 -1
- adcp/types/generated_poc/media_buy/update_media_buy_async_response_submitted.py +1 -1
- adcp/types/generated_poc/media_buy/update_media_buy_async_response_working.py +1 -1
- adcp/types/generated_poc/media_buy/update_media_buy_request.py +20 -108
- adcp/types/generated_poc/media_buy/update_media_buy_response.py +1 -1
- adcp/types/generated_poc/pricing_options/cpc_option.py +35 -10
- adcp/types/generated_poc/pricing_options/cpcv_option.py +35 -10
- adcp/types/generated_poc/pricing_options/{cpm_auction_option.py → cpm_option.py} +23 -19
- adcp/types/generated_poc/pricing_options/cpp_option.py +39 -16
- adcp/types/generated_poc/pricing_options/cpv_option.py +37 -18
- adcp/types/generated_poc/pricing_options/flat_rate_option.py +45 -39
- adcp/types/generated_poc/pricing_options/{vcpm_auction_option.py → vcpm_option.py} +23 -14
- adcp/types/generated_poc/property/__init__.py +3 -0
- adcp/types/generated_poc/property/base_property_source.py +86 -0
- adcp/types/generated_poc/property/create_property_list_request.py +43 -0
- adcp/types/generated_poc/property/create_property_list_response.py +27 -0
- adcp/types/generated_poc/property/delete_property_list_request.py +22 -0
- adcp/types/generated_poc/property/delete_property_list_response.py +21 -0
- adcp/types/generated_poc/property/feature_requirement.py +42 -0
- adcp/types/generated_poc/property/get_property_list_request.py +34 -0
- adcp/types/generated_poc/property/get_property_list_response.py +61 -0
- adcp/types/generated_poc/property/list_property_lists_request.py +29 -0
- adcp/types/generated_poc/property/list_property_lists_response.py +39 -0
- adcp/types/generated_poc/property/property_error.py +33 -0
- adcp/types/generated_poc/property/property_feature.py +22 -0
- adcp/types/generated_poc/property/property_feature_definition.py +80 -0
- adcp/types/generated_poc/property/property_list.py +62 -0
- adcp/types/generated_poc/property/property_list_changed_webhook.py +51 -0
- adcp/types/generated_poc/property/property_list_filters.py +47 -0
- adcp/types/generated_poc/property/update_property_list_request.py +46 -0
- adcp/types/generated_poc/property/update_property_list_response.py +21 -0
- adcp/types/generated_poc/protocol/__init__.py +3 -0
- adcp/types/generated_poc/protocol/get_adcp_capabilities_request.py +34 -0
- adcp/types/generated_poc/protocol/get_adcp_capabilities_response.py +353 -0
- adcp/types/generated_poc/protocols/adcp_extension.py +18 -5
- adcp/types/generated_poc/signals/activate_signal_request.py +1 -1
- adcp/types/generated_poc/signals/activate_signal_response.py +1 -1
- adcp/types/generated_poc/signals/get_signals_request.py +1 -1
- adcp/types/generated_poc/signals/get_signals_response.py +1 -1
- adcp/types/generated_poc/sponsored_intelligence/__init__.py +3 -0
- adcp/types/generated_poc/sponsored_intelligence/si_capabilities.py +102 -0
- adcp/types/generated_poc/sponsored_intelligence/si_get_offering_request.py +34 -0
- adcp/types/generated_poc/sponsored_intelligence/si_get_offering_response.py +100 -0
- adcp/types/generated_poc/sponsored_intelligence/si_identity.py +78 -0
- adcp/types/generated_poc/sponsored_intelligence/si_initiate_session_request.py +46 -0
- adcp/types/generated_poc/sponsored_intelligence/si_initiate_session_response.py +44 -0
- adcp/types/generated_poc/sponsored_intelligence/si_send_message_request.py +58 -0
- adcp/types/generated_poc/sponsored_intelligence/si_send_message_response.py +101 -0
- adcp/types/generated_poc/sponsored_intelligence/si_terminate_session_request.py +60 -0
- adcp/types/generated_poc/sponsored_intelligence/si_terminate_session_response.py +54 -0
- adcp/types/generated_poc/sponsored_intelligence/si_ui_element.py +30 -0
- adcp/utils/format_assets.py +5 -5
- adcp/utils/preview_cache.py +2 -2
- {adcp-2.18.0.dist-info → adcp-3.0.0.dist-info}/METADATA +1 -1
- adcp-3.0.0.dist-info/RECORD +264 -0
- {adcp-2.18.0.dist-info → adcp-3.0.0.dist-info}/WHEEL +1 -1
- adcp/types/generated_poc/enums/standard_format_ids.py +0 -45
- adcp/types/generated_poc/pricing_options/cpm_fixed_option.py +0 -43
- adcp/types/generated_poc/pricing_options/vcpm_fixed_option.py +0 -47
- adcp-2.18.0.dist-info/RECORD +0 -195
- {adcp-2.18.0.dist-info → adcp-3.0.0.dist-info}/entry_points.txt +0 -0
- {adcp-2.18.0.dist-info → adcp-3.0.0.dist-info}/licenses/LICENSE +0 -0
- {adcp-2.18.0.dist-info → adcp-3.0.0.dist-info}/top_level.txt +0 -0
adcp/types/__init__.py
CHANGED
|
@@ -35,10 +35,15 @@ from adcp.types import (
|
|
|
35
35
|
from adcp.types import _generated as generated # noqa: F401
|
|
36
36
|
|
|
37
37
|
# Import all types from generated code
|
|
38
|
+
# V3 Protocol Discovery types
|
|
39
|
+
# V3 Content Standards types
|
|
40
|
+
# V3 Sponsored Intelligence types
|
|
41
|
+
# V3 Governance (Property Lists) types
|
|
38
42
|
from adcp.types._generated import (
|
|
39
43
|
ActivateSignalRequest,
|
|
40
44
|
ActivateSignalResponse,
|
|
41
45
|
AggregatedTotals,
|
|
46
|
+
Artifact,
|
|
42
47
|
Asset,
|
|
43
48
|
AssetContentType,
|
|
44
49
|
AssetSelectors,
|
|
@@ -55,18 +60,24 @@ from adcp.types._generated import (
|
|
|
55
60
|
BuildCreativeRequest,
|
|
56
61
|
BuildCreativeResponse,
|
|
57
62
|
ByPackageItem,
|
|
63
|
+
CalibrateContentRequest,
|
|
64
|
+
CalibrateContentResponse,
|
|
58
65
|
CoBrandingRequirement,
|
|
59
66
|
Colors,
|
|
60
67
|
Contact,
|
|
68
|
+
ContentStandards,
|
|
61
69
|
Country,
|
|
62
70
|
CpcPricingOption,
|
|
63
71
|
CpcvPricingOption,
|
|
64
|
-
|
|
65
|
-
CpmFixedRatePricingOption,
|
|
72
|
+
CpmPricingOption,
|
|
66
73
|
CppPricingOption,
|
|
67
74
|
CpvPricingOption,
|
|
75
|
+
CreateContentStandardsRequest,
|
|
76
|
+
CreateContentStandardsResponse,
|
|
68
77
|
CreateMediaBuyRequest,
|
|
69
78
|
CreateMediaBuyResponse,
|
|
79
|
+
CreatePropertyListRequest,
|
|
80
|
+
CreatePropertyListResponse,
|
|
70
81
|
Creative,
|
|
71
82
|
CreativeAction,
|
|
72
83
|
CreativeAgent,
|
|
@@ -81,6 +92,8 @@ from adcp.types._generated import (
|
|
|
81
92
|
DaastTrackingEvent,
|
|
82
93
|
DaastVersion,
|
|
83
94
|
DailyBreakdownItem,
|
|
95
|
+
DeletePropertyListRequest,
|
|
96
|
+
DeletePropertyListResponse,
|
|
84
97
|
DeliverTo,
|
|
85
98
|
DeliveryMeasurement,
|
|
86
99
|
DeliveryMetrics,
|
|
@@ -88,9 +101,9 @@ from adcp.types._generated import (
|
|
|
88
101
|
DimensionUnit,
|
|
89
102
|
Disclaimer,
|
|
90
103
|
DoohMetrics,
|
|
91
|
-
Embedding,
|
|
92
104
|
Error,
|
|
93
105
|
FeedbackSource,
|
|
106
|
+
FeedFormat,
|
|
94
107
|
FieldModel,
|
|
95
108
|
FlatRatePricingOption,
|
|
96
109
|
Fonts,
|
|
@@ -102,11 +115,22 @@ from adcp.types._generated import (
|
|
|
102
115
|
FormatIdParameter,
|
|
103
116
|
FrequencyCap,
|
|
104
117
|
FrequencyCapScope,
|
|
105
|
-
|
|
118
|
+
GeoCountry,
|
|
119
|
+
GeoMetro,
|
|
120
|
+
GeoPostalArea,
|
|
121
|
+
GeoRegion,
|
|
122
|
+
GetAdcpCapabilitiesRequest,
|
|
123
|
+
GetAdcpCapabilitiesResponse,
|
|
124
|
+
GetContentStandardsRequest,
|
|
125
|
+
GetContentStandardsResponse,
|
|
126
|
+
GetMediaBuyArtifactsRequest,
|
|
127
|
+
GetMediaBuyArtifactsResponse,
|
|
106
128
|
GetMediaBuyDeliveryRequest,
|
|
107
129
|
GetMediaBuyDeliveryResponse,
|
|
108
130
|
GetProductsRequest,
|
|
109
131
|
GetProductsResponse,
|
|
132
|
+
GetPropertyListRequest,
|
|
133
|
+
GetPropertyListResponse,
|
|
110
134
|
GetSignalsRequest,
|
|
111
135
|
GetSignalsResponse,
|
|
112
136
|
HtmlAsset,
|
|
@@ -119,10 +143,14 @@ from adcp.types._generated import (
|
|
|
119
143
|
LandingPageRequirement,
|
|
120
144
|
ListAuthorizedPropertiesRequest,
|
|
121
145
|
ListAuthorizedPropertiesResponse,
|
|
146
|
+
ListContentStandardsRequest,
|
|
147
|
+
ListContentStandardsResponse,
|
|
122
148
|
ListCreativeFormatsRequest,
|
|
123
149
|
ListCreativeFormatsResponse,
|
|
124
150
|
ListCreativesRequest,
|
|
125
151
|
ListCreativesResponse,
|
|
152
|
+
ListPropertyListsRequest,
|
|
153
|
+
ListPropertyListsResponse,
|
|
126
154
|
Logo,
|
|
127
155
|
MarkdownFlavor,
|
|
128
156
|
Measurement,
|
|
@@ -136,7 +164,7 @@ from adcp.types._generated import (
|
|
|
136
164
|
Offering,
|
|
137
165
|
Pacing,
|
|
138
166
|
PackageRequest,
|
|
139
|
-
|
|
167
|
+
PackageUpdate,
|
|
140
168
|
Pagination,
|
|
141
169
|
Parameters,
|
|
142
170
|
Performance,
|
|
@@ -160,6 +188,10 @@ from adcp.types._generated import (
|
|
|
160
188
|
PromotedProducts,
|
|
161
189
|
Property,
|
|
162
190
|
PropertyIdentifierTypes,
|
|
191
|
+
PropertyList,
|
|
192
|
+
PropertyListChangedWebhook,
|
|
193
|
+
PropertyListFilters,
|
|
194
|
+
PropertyListReference,
|
|
163
195
|
PropertyType,
|
|
164
196
|
ProtocolEnvelope,
|
|
165
197
|
ProtocolResponse,
|
|
@@ -175,17 +207,27 @@ from adcp.types._generated import (
|
|
|
175
207
|
ReportingPeriod,
|
|
176
208
|
ReportingWebhook,
|
|
177
209
|
Request,
|
|
178
|
-
RequestedMetric,
|
|
179
210
|
Response,
|
|
180
211
|
Responsive,
|
|
181
212
|
Results,
|
|
182
213
|
Security,
|
|
214
|
+
SiCapabilities,
|
|
215
|
+
SiGetOfferingRequest,
|
|
216
|
+
SiGetOfferingResponse,
|
|
183
217
|
Signal,
|
|
184
218
|
SignalCatalogType,
|
|
185
219
|
SignalFilters,
|
|
220
|
+
SiIdentity,
|
|
221
|
+
SiInitiateSessionRequest,
|
|
222
|
+
SiInitiateSessionResponse,
|
|
223
|
+
SiSendMessageRequest,
|
|
224
|
+
SiSendMessageResponse,
|
|
225
|
+
SiTerminateSessionRequest,
|
|
226
|
+
SiTerminateSessionResponse,
|
|
227
|
+
SiUiElement,
|
|
186
228
|
Sort,
|
|
187
229
|
SortApplied,
|
|
188
|
-
|
|
230
|
+
SortDirection,
|
|
189
231
|
Status,
|
|
190
232
|
StatusSummary,
|
|
191
233
|
SyncCreativesRequest,
|
|
@@ -195,16 +237,21 @@ from adcp.types._generated import (
|
|
|
195
237
|
TaskType,
|
|
196
238
|
TextAsset,
|
|
197
239
|
Totals,
|
|
240
|
+
UpdateContentStandardsRequest,
|
|
241
|
+
UpdateContentStandardsResponse,
|
|
198
242
|
UpdateFrequency,
|
|
199
243
|
UpdateMediaBuyRequest,
|
|
200
244
|
UpdateMediaBuyResponse,
|
|
245
|
+
UpdatePropertyListRequest,
|
|
246
|
+
UpdatePropertyListResponse,
|
|
201
247
|
UrlAsset,
|
|
202
248
|
UrlAssetType,
|
|
249
|
+
ValidateContentDeliveryRequest,
|
|
250
|
+
ValidateContentDeliveryResponse,
|
|
203
251
|
ValidationMode,
|
|
204
252
|
VastTrackingEvent,
|
|
205
253
|
VastVersion,
|
|
206
|
-
|
|
207
|
-
VcpmFixedRatePricingOption,
|
|
254
|
+
VcpmPricingOption,
|
|
208
255
|
VenueBreakdownItem,
|
|
209
256
|
VideoAsset,
|
|
210
257
|
ViewThreshold,
|
|
@@ -243,9 +290,7 @@ from adcp.types.aliases import (
|
|
|
243
290
|
PreviewCreativeManifestRequest,
|
|
244
291
|
PreviewCreativeStaticResponse,
|
|
245
292
|
PropertyId,
|
|
246
|
-
PropertyIdActivationKey,
|
|
247
293
|
PropertyTag,
|
|
248
|
-
PropertyTagActivationKey,
|
|
249
294
|
ProvidePerformanceFeedbackErrorResponse,
|
|
250
295
|
ProvidePerformanceFeedbackSuccessResponse,
|
|
251
296
|
PublisherPropertiesAll,
|
|
@@ -332,6 +377,53 @@ __all__ = [
|
|
|
332
377
|
"Totals",
|
|
333
378
|
"UpdateMediaBuyRequest",
|
|
334
379
|
"UpdateMediaBuyResponse",
|
|
380
|
+
# V3 Protocol Discovery
|
|
381
|
+
"GetAdcpCapabilitiesRequest",
|
|
382
|
+
"GetAdcpCapabilitiesResponse",
|
|
383
|
+
# V3 Content Standards
|
|
384
|
+
"Artifact",
|
|
385
|
+
"CalibrateContentRequest",
|
|
386
|
+
"CalibrateContentResponse",
|
|
387
|
+
"ContentStandards",
|
|
388
|
+
"CreateContentStandardsRequest",
|
|
389
|
+
"CreateContentStandardsResponse",
|
|
390
|
+
"GetContentStandardsRequest",
|
|
391
|
+
"GetContentStandardsResponse",
|
|
392
|
+
"GetMediaBuyArtifactsRequest",
|
|
393
|
+
"GetMediaBuyArtifactsResponse",
|
|
394
|
+
"ListContentStandardsRequest",
|
|
395
|
+
"ListContentStandardsResponse",
|
|
396
|
+
"UpdateContentStandardsRequest",
|
|
397
|
+
"UpdateContentStandardsResponse",
|
|
398
|
+
"ValidateContentDeliveryRequest",
|
|
399
|
+
"ValidateContentDeliveryResponse",
|
|
400
|
+
# V3 Sponsored Intelligence
|
|
401
|
+
"SiCapabilities",
|
|
402
|
+
"SiGetOfferingRequest",
|
|
403
|
+
"SiGetOfferingResponse",
|
|
404
|
+
"SiIdentity",
|
|
405
|
+
"SiInitiateSessionRequest",
|
|
406
|
+
"SiInitiateSessionResponse",
|
|
407
|
+
"SiSendMessageRequest",
|
|
408
|
+
"SiSendMessageResponse",
|
|
409
|
+
"SiTerminateSessionRequest",
|
|
410
|
+
"SiTerminateSessionResponse",
|
|
411
|
+
"SiUiElement",
|
|
412
|
+
# V3 Governance (Property Lists)
|
|
413
|
+
"CreatePropertyListRequest",
|
|
414
|
+
"CreatePropertyListResponse",
|
|
415
|
+
"DeletePropertyListRequest",
|
|
416
|
+
"DeletePropertyListResponse",
|
|
417
|
+
"GetPropertyListRequest",
|
|
418
|
+
"GetPropertyListResponse",
|
|
419
|
+
"ListPropertyListsRequest",
|
|
420
|
+
"ListPropertyListsResponse",
|
|
421
|
+
"PropertyList",
|
|
422
|
+
"PropertyListChangedWebhook",
|
|
423
|
+
"PropertyListFilters",
|
|
424
|
+
"PropertyListReference",
|
|
425
|
+
"UpdatePropertyListRequest",
|
|
426
|
+
"UpdatePropertyListResponse",
|
|
335
427
|
# Domain types
|
|
336
428
|
"Asset",
|
|
337
429
|
"AssetSelectors",
|
|
@@ -357,7 +449,6 @@ __all__ = [
|
|
|
357
449
|
"DeliveryMetrics",
|
|
358
450
|
"Disclaimer",
|
|
359
451
|
"DoohMetrics",
|
|
360
|
-
"Embedding",
|
|
361
452
|
"Error",
|
|
362
453
|
"FeedFormat",
|
|
363
454
|
"Fonts",
|
|
@@ -375,7 +466,7 @@ __all__ = [
|
|
|
375
466
|
"Offering",
|
|
376
467
|
"Package",
|
|
377
468
|
"PackageRequest",
|
|
378
|
-
"
|
|
469
|
+
"PackageUpdate",
|
|
379
470
|
"Parameters",
|
|
380
471
|
"Performance",
|
|
381
472
|
"PerformanceFeedback",
|
|
@@ -403,14 +494,12 @@ __all__ = [
|
|
|
403
494
|
# Pricing types
|
|
404
495
|
"CpcPricingOption",
|
|
405
496
|
"CpcvPricingOption",
|
|
406
|
-
"
|
|
407
|
-
"CpmFixedRatePricingOption",
|
|
497
|
+
"CpmPricingOption",
|
|
408
498
|
"CppPricingOption",
|
|
409
499
|
"CpvPricingOption",
|
|
410
500
|
"FlatRatePricingOption",
|
|
411
501
|
"PriceGuidance",
|
|
412
|
-
"
|
|
413
|
-
"VcpmFixedRatePricingOption",
|
|
502
|
+
"VcpmPricingOption",
|
|
414
503
|
# Status enums & simple types
|
|
415
504
|
"SignalCatalogType",
|
|
416
505
|
"Country",
|
|
@@ -418,12 +507,15 @@ __all__ = [
|
|
|
418
507
|
"DaastVersion",
|
|
419
508
|
"DeliverTo",
|
|
420
509
|
"DeliveryType",
|
|
421
|
-
"
|
|
510
|
+
"SortDirection",
|
|
422
511
|
"FeedbackSource",
|
|
423
512
|
"FieldModel",
|
|
424
513
|
"FrequencyCap",
|
|
425
514
|
"FrequencyCapScope",
|
|
426
|
-
"
|
|
515
|
+
"GeoCountry",
|
|
516
|
+
"GeoMetro",
|
|
517
|
+
"GeoPostalArea",
|
|
518
|
+
"GeoRegion",
|
|
427
519
|
"MarkdownFlavor",
|
|
428
520
|
"Measurement",
|
|
429
521
|
"MeasurementPeriod",
|
|
@@ -444,7 +536,6 @@ __all__ = [
|
|
|
444
536
|
"WebhookResponseType",
|
|
445
537
|
"Responsive",
|
|
446
538
|
"Sort",
|
|
447
|
-
"StandardFormatIds",
|
|
448
539
|
"Status",
|
|
449
540
|
"TaskType",
|
|
450
541
|
"DaastTrackingEvent",
|
|
@@ -465,7 +556,6 @@ __all__ = [
|
|
|
465
556
|
"ReportingFrequency",
|
|
466
557
|
"ReportingPeriod",
|
|
467
558
|
"ReportingWebhook",
|
|
468
|
-
"RequestedMetric",
|
|
469
559
|
"AuthenticationScheme",
|
|
470
560
|
"Security",
|
|
471
561
|
# Assets
|
|
@@ -513,9 +603,7 @@ __all__ = [
|
|
|
513
603
|
"PreviewCreativeManifestRequest",
|
|
514
604
|
"PreviewCreativeStaticResponse",
|
|
515
605
|
"PropertyId",
|
|
516
|
-
"PropertyIdActivationKey",
|
|
517
606
|
"PropertyTag",
|
|
518
|
-
"PropertyTagActivationKey",
|
|
519
607
|
"ProvidePerformanceFeedbackErrorResponse",
|
|
520
608
|
"ProvidePerformanceFeedbackSuccessResponse",
|
|
521
609
|
"PublisherPropertiesAll",
|
adcp/types/_ergonomic.py
CHANGED
|
@@ -39,8 +39,6 @@ from adcp.types.coercion import (
|
|
|
39
39
|
coerce_to_enum_list,
|
|
40
40
|
coerce_to_model,
|
|
41
41
|
)
|
|
42
|
-
|
|
43
|
-
# Import types that need coercion
|
|
44
42
|
from adcp.types.generated_poc.core.context import ContextObject
|
|
45
43
|
from adcp.types.generated_poc.core.creative_asset import CreativeAsset
|
|
46
44
|
from adcp.types.generated_poc.core.creative_assignment import CreativeAssignment
|
|
@@ -57,8 +55,6 @@ from adcp.types.generated_poc.enums.sort_direction import SortDirection
|
|
|
57
55
|
from adcp.types.generated_poc.media_buy.create_media_buy_request import (
|
|
58
56
|
CreateMediaBuyRequest,
|
|
59
57
|
)
|
|
60
|
-
|
|
61
|
-
# Response types
|
|
62
58
|
from adcp.types.generated_poc.media_buy.create_media_buy_response import (
|
|
63
59
|
CreateMediaBuyResponse1,
|
|
64
60
|
)
|
|
@@ -86,9 +82,9 @@ from adcp.types.generated_poc.media_buy.list_creatives_response import (
|
|
|
86
82
|
ListCreativesResponse,
|
|
87
83
|
)
|
|
88
84
|
from adcp.types.generated_poc.media_buy.package_request import PackageRequest
|
|
89
|
-
from adcp.types.generated_poc.media_buy.
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
from adcp.types.generated_poc.media_buy.package_update import (
|
|
86
|
+
PackageUpdate1,
|
|
87
|
+
PackageUpdate2,
|
|
92
88
|
)
|
|
93
89
|
|
|
94
90
|
|
|
@@ -183,9 +179,18 @@ def _apply_coercion() -> None:
|
|
|
183
179
|
GetProductsRequest.model_rebuild(force=True)
|
|
184
180
|
|
|
185
181
|
# Apply coercion to PackageRequest
|
|
182
|
+
# - creative_assignments: list[CreativeAssignment] (accepts subclass instances)
|
|
186
183
|
# - creatives: list[CreativeAsset] (accepts subclass instances)
|
|
187
184
|
# - ext: ExtensionObject | dict | None
|
|
188
185
|
# - pacing: Pacing | str | None
|
|
186
|
+
_patch_field_annotation(
|
|
187
|
+
PackageRequest,
|
|
188
|
+
"creative_assignments",
|
|
189
|
+
Annotated[
|
|
190
|
+
list[CreativeAssignment] | None,
|
|
191
|
+
BeforeValidator(coerce_subclass_list(CreativeAssignment)),
|
|
192
|
+
],
|
|
193
|
+
)
|
|
189
194
|
_patch_field_annotation(
|
|
190
195
|
PackageRequest,
|
|
191
196
|
"creatives",
|
|
@@ -224,18 +229,19 @@ def _apply_coercion() -> None:
|
|
|
224
229
|
CreateMediaBuyRequest,
|
|
225
230
|
"packages",
|
|
226
231
|
Annotated[
|
|
227
|
-
list[PackageRequest],
|
|
232
|
+
list[PackageRequest] | None,
|
|
228
233
|
BeforeValidator(coerce_subclass_list(PackageRequest)),
|
|
229
234
|
],
|
|
230
235
|
)
|
|
231
236
|
CreateMediaBuyRequest.model_rebuild(force=True)
|
|
232
237
|
|
|
233
|
-
# Apply coercion to
|
|
238
|
+
# Apply coercion to PackageUpdate1
|
|
234
239
|
# - creative_assignments: list[CreativeAssignment] (accepts subclass instances)
|
|
235
240
|
# - creatives: list[CreativeAsset] (accepts subclass instances)
|
|
241
|
+
# - ext: ExtensionObject | dict | None
|
|
236
242
|
# - pacing: Pacing | str | None
|
|
237
243
|
_patch_field_annotation(
|
|
238
|
-
|
|
244
|
+
PackageUpdate1,
|
|
239
245
|
"creative_assignments",
|
|
240
246
|
Annotated[
|
|
241
247
|
list[CreativeAssignment] | None,
|
|
@@ -243,7 +249,7 @@ def _apply_coercion() -> None:
|
|
|
243
249
|
],
|
|
244
250
|
)
|
|
245
251
|
_patch_field_annotation(
|
|
246
|
-
|
|
252
|
+
PackageUpdate1,
|
|
247
253
|
"creatives",
|
|
248
254
|
Annotated[
|
|
249
255
|
list[CreativeAsset] | None,
|
|
@@ -251,18 +257,24 @@ def _apply_coercion() -> None:
|
|
|
251
257
|
],
|
|
252
258
|
)
|
|
253
259
|
_patch_field_annotation(
|
|
254
|
-
|
|
260
|
+
PackageUpdate1,
|
|
261
|
+
"ext",
|
|
262
|
+
Annotated[ExtensionObject | None, BeforeValidator(coerce_to_model(ExtensionObject))],
|
|
263
|
+
)
|
|
264
|
+
_patch_field_annotation(
|
|
265
|
+
PackageUpdate1,
|
|
255
266
|
"pacing",
|
|
256
267
|
Annotated[Pacing | None, BeforeValidator(coerce_to_enum(Pacing))],
|
|
257
268
|
)
|
|
258
|
-
|
|
269
|
+
PackageUpdate1.model_rebuild(force=True)
|
|
259
270
|
|
|
260
|
-
# Apply coercion to
|
|
271
|
+
# Apply coercion to PackageUpdate2
|
|
261
272
|
# - creative_assignments: list[CreativeAssignment] (accepts subclass instances)
|
|
262
273
|
# - creatives: list[CreativeAsset] (accepts subclass instances)
|
|
274
|
+
# - ext: ExtensionObject | dict | None
|
|
263
275
|
# - pacing: Pacing | str | None
|
|
264
276
|
_patch_field_annotation(
|
|
265
|
-
|
|
277
|
+
PackageUpdate2,
|
|
266
278
|
"creative_assignments",
|
|
267
279
|
Annotated[
|
|
268
280
|
list[CreativeAssignment] | None,
|
|
@@ -270,7 +282,7 @@ def _apply_coercion() -> None:
|
|
|
270
282
|
],
|
|
271
283
|
)
|
|
272
284
|
_patch_field_annotation(
|
|
273
|
-
|
|
285
|
+
PackageUpdate2,
|
|
274
286
|
"creatives",
|
|
275
287
|
Annotated[
|
|
276
288
|
list[CreativeAsset] | None,
|
|
@@ -278,11 +290,16 @@ def _apply_coercion() -> None:
|
|
|
278
290
|
],
|
|
279
291
|
)
|
|
280
292
|
_patch_field_annotation(
|
|
281
|
-
|
|
293
|
+
PackageUpdate2,
|
|
294
|
+
"ext",
|
|
295
|
+
Annotated[ExtensionObject | None, BeforeValidator(coerce_to_model(ExtensionObject))],
|
|
296
|
+
)
|
|
297
|
+
_patch_field_annotation(
|
|
298
|
+
PackageUpdate2,
|
|
282
299
|
"pacing",
|
|
283
300
|
Annotated[Pacing | None, BeforeValidator(coerce_to_enum(Pacing))],
|
|
284
301
|
)
|
|
285
|
-
|
|
302
|
+
PackageUpdate2.model_rebuild(force=True)
|
|
286
303
|
|
|
287
304
|
# Apply coercion to GetProductsResponse
|
|
288
305
|
# - context: ContextObject | dict | None
|