adcp 2.9.0__py3-none-any.whl → 2.11.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.
Files changed (72) hide show
  1. adcp/__init__.py +57 -53
  2. adcp/client.py +9 -11
  3. adcp/simple.py +105 -1
  4. adcp/types/__init__.py +330 -300
  5. adcp/types/_generated.py +99 -65
  6. adcp/types/generated_poc/adcp_domain.py +12 -0
  7. adcp/types/generated_poc/auth_scheme.py +12 -0
  8. adcp/types/generated_poc/available_metric.py +19 -0
  9. adcp/types/generated_poc/co_branding_requirement.py +13 -0
  10. adcp/types/generated_poc/creative_action.py +15 -0
  11. adcp/types/generated_poc/creative_agent_capability.py +14 -0
  12. adcp/types/generated_poc/creative_filters.py +77 -0
  13. adcp/types/generated_poc/creative_policy.py +9 -15
  14. adcp/types/generated_poc/creative_sort_field.py +16 -0
  15. adcp/types/generated_poc/daast_asset.py +9 -24
  16. adcp/types/generated_poc/daast_tracking_event.py +21 -0
  17. adcp/types/generated_poc/daast_version.py +12 -0
  18. adcp/types/generated_poc/dimension_unit.py +14 -0
  19. adcp/types/generated_poc/feed_format.py +13 -0
  20. adcp/types/generated_poc/feedback_source.py +14 -0
  21. adcp/types/generated_poc/format.py +5 -11
  22. adcp/types/generated_poc/get_media_buy_delivery_request.py +3 -19
  23. adcp/types/generated_poc/get_products_request.py +3 -36
  24. adcp/types/generated_poc/get_signals_request.py +3 -26
  25. adcp/types/generated_poc/get_signals_response.py +5 -10
  26. adcp/types/generated_poc/history_entry_type.py +12 -0
  27. adcp/types/generated_poc/http_method.py +12 -0
  28. adcp/types/generated_poc/javascript_asset.py +6 -8
  29. adcp/types/generated_poc/javascript_module_type.py +13 -0
  30. adcp/types/generated_poc/landing_page_requirement.py +13 -0
  31. adcp/types/generated_poc/list_creative_formats_response.py +4 -11
  32. adcp/types/generated_poc/list_creatives_request.py +10 -87
  33. adcp/types/generated_poc/list_creatives_response.py +13 -17
  34. adcp/types/generated_poc/markdown_asset.py +4 -8
  35. adcp/types/generated_poc/markdown_flavor.py +12 -0
  36. adcp/types/generated_poc/metric_type.py +18 -0
  37. adcp/types/generated_poc/notification_type.py +14 -0
  38. adcp/types/generated_poc/performance_feedback.py +9 -20
  39. adcp/types/generated_poc/preview_creative_request.py +8 -13
  40. adcp/types/generated_poc/preview_output_format.py +12 -0
  41. adcp/types/generated_poc/product_filters.py +36 -0
  42. adcp/types/generated_poc/property.py +5 -13
  43. adcp/types/generated_poc/property_type.py +17 -0
  44. adcp/types/generated_poc/provide_performance_feedback_request.py +71 -25
  45. adcp/types/generated_poc/push_notification_config.py +3 -7
  46. adcp/types/generated_poc/reporting_capabilities.py +4 -21
  47. adcp/types/generated_poc/reporting_frequency.py +13 -0
  48. adcp/types/generated_poc/signal_catalog_type.py +13 -0
  49. adcp/types/generated_poc/signal_filters.py +29 -0
  50. adcp/types/generated_poc/sort_direction.py +12 -0
  51. adcp/types/generated_poc/sync_creatives_request.py +4 -9
  52. adcp/types/generated_poc/sync_creatives_response.py +5 -12
  53. adcp/types/generated_poc/tasks_list_request.py +9 -15
  54. adcp/types/generated_poc/update_frequency.py +14 -0
  55. adcp/types/generated_poc/url_asset.py +3 -8
  56. adcp/types/generated_poc/url_asset_type.py +13 -0
  57. adcp/types/generated_poc/validation_mode.py +12 -0
  58. adcp/types/generated_poc/vast_asset.py +13 -36
  59. adcp/types/generated_poc/vast_tracking_event.py +26 -0
  60. adcp/types/generated_poc/vast_version.py +15 -0
  61. adcp/types/generated_poc/webhook_asset.py +10 -22
  62. adcp/types/generated_poc/webhook_payload.py +3 -9
  63. adcp/types/generated_poc/webhook_response_type.py +14 -0
  64. adcp/types/generated_poc/webhook_security_method.py +13 -0
  65. adcp/utils/preview_cache.py +5 -5
  66. {adcp-2.9.0.dist-info → adcp-2.11.0.dist-info}/METADATA +1 -1
  67. {adcp-2.9.0.dist-info → adcp-2.11.0.dist-info}/RECORD +71 -38
  68. adcp/types/stable.py +0 -449
  69. {adcp-2.9.0.dist-info → adcp-2.11.0.dist-info}/WHEEL +0 -0
  70. {adcp-2.9.0.dist-info → adcp-2.11.0.dist-info}/entry_points.txt +0 -0
  71. {adcp-2.9.0.dist-info → adcp-2.11.0.dist-info}/licenses/LICENSE +0 -0
  72. {adcp-2.9.0.dist-info → adcp-2.11.0.dist-info}/top_level.txt +0 -0
adcp/types/stable.py DELETED
@@ -1,449 +0,0 @@
1
- """Stable public API for AdCP types.
2
-
3
- This module provides a stable, versioned API that shields users from internal
4
- implementation details and schema evolution. All types exported here are
5
- guaranteed to be stable within a major version.
6
-
7
- Internal Implementation:
8
- - Types are generated from JSON schemas into adcp.types.generated_poc
9
- - The generator may create numbered variants (e.g., BrandManifest1, BrandManifest2)
10
- when schema evolution creates multiple valid structures
11
- - This module provides clean, unnumbered aliases pointing to the canonical version
12
-
13
- **IMPORTANT**: Never import directly from adcp.types.generated_poc or adcp.types.generated.
14
- Always import from adcp.types or adcp.types.stable.
15
-
16
- Schema Evolution:
17
- - When schemas change, we update the alias targets here
18
- - Users see stable names (BrandManifest, Product, etc.)
19
- - Breaking changes require major version bumps
20
- """
21
-
22
- from __future__ import annotations
23
-
24
- from adcp.types._generated import (
25
- Action,
26
- # Core request/response types
27
- ActivateSignalRequest,
28
- ActivateSignalResponse,
29
- AggregatedTotals,
30
- # Assets
31
- Asset,
32
- AssetContentType, # New from PR #222: consolidated asset content types
33
- AssetSelectors,
34
- AssetsRequired,
35
- AssignedPackage,
36
- Assignments,
37
- AudioAsset,
38
- Authentication,
39
- AuthorizedAgents,
40
- AuthorizedSalesAgents,
41
- AvailableMetric,
42
- AvailableReportingFrequency,
43
- # Core domain types
44
- BrandManifest, # Clean single type after upstream schema fix
45
- BuildCreativeRequest,
46
- BuildCreativeResponse,
47
- ByPackageItem,
48
- Capability,
49
- CatalogType,
50
- CoBranding,
51
- Colors,
52
- Contact,
53
- Country,
54
- # Pricing options
55
- CpcPricingOption,
56
- CpcvPricingOption,
57
- CpmAuctionPricingOption,
58
- CpmFixedRatePricingOption,
59
- CppPricingOption,
60
- CpvPricingOption,
61
- CreateMediaBuyRequest,
62
- CreateMediaBuyResponse,
63
- Creative,
64
- CreativeAgent,
65
- CreativeAsset,
66
- CreativeAssignment,
67
- CreativeManifest,
68
- CreativePolicy,
69
- # Enums and constants
70
- CreativeStatus,
71
- CssAsset,
72
- DaastVersion,
73
- DailyBreakdownItem,
74
- DeliverTo,
75
- DeliveryMeasurement,
76
- DeliveryMetrics,
77
- DeliveryType,
78
- Details,
79
- Direction,
80
- Disclaimer,
81
- Domain,
82
- DomainBreakdown,
83
- DoohMetrics,
84
- Embedding,
85
- Error,
86
- FeedbackSource,
87
- FeedFormat,
88
- FieldModel,
89
- Filters,
90
- FlatRatePricingOption,
91
- Fonts,
92
- Format,
93
- FormatCard,
94
- FormatCardDetailed,
95
- FormatCategory, # New from PR #222: format categories (display, video, native, etc.)
96
- FormatId,
97
- FormatType,
98
- FrequencyCap,
99
- FrequencyCapScope,
100
- GeoCountryAnyOfItem,
101
- GetMediaBuyDeliveryRequest,
102
- GetMediaBuyDeliveryResponse,
103
- GetProductsRequest,
104
- GetProductsResponse,
105
- GetSignalsRequest,
106
- GetSignalsResponse,
107
- HistoryItem,
108
- HtmlAsset,
109
- Identifier,
110
- ImageAsset,
111
- Input,
112
- JavascriptAsset,
113
- LandingPage,
114
- ListAuthorizedPropertiesRequest,
115
- ListAuthorizedPropertiesResponse,
116
- ListCreativeFormatsRequest,
117
- ListCreativeFormatsResponse,
118
- ListCreativesRequest,
119
- ListCreativesResponse,
120
- Logo,
121
- MarkdownAsset,
122
- MarkdownFlavor,
123
- Measurement,
124
- MeasurementPeriod,
125
- MediaBuy,
126
- MediaBuyDelivery,
127
- MediaBuyStatus,
128
- Metadata,
129
- Method,
130
- MetricType,
131
- ModuleType,
132
- NotificationType,
133
- Offering,
134
- OutputFormat,
135
- Pacing,
136
- PackageRequest,
137
- Packages,
138
- PackageStatus,
139
- Pagination,
140
- Parameters,
141
- Performance,
142
- PerformanceFeedback,
143
- Placement,
144
- Preview,
145
- PreviewCreativeRequest,
146
- PreviewCreativeResponse,
147
- PreviewRender,
148
- PriceGuidance,
149
- Pricing,
150
- PricingModel,
151
- PrimaryCountry,
152
- Product,
153
- ProductCard,
154
- ProductCardDetailed,
155
- ProductCatalog,
156
- Progress,
157
- PromotedOfferings,
158
- PromotedProducts,
159
- Property,
160
- PropertyIdentifierTypes,
161
- PropertyType,
162
- ProtocolEnvelope,
163
- ProtocolResponse,
164
- ProvidePerformanceFeedbackRequest,
165
- ProvidePerformanceFeedbackResponse,
166
- PublisherDomain,
167
- PublisherIdentifierTypes,
168
- PushNotificationConfig,
169
- QuartileData,
170
- QuerySummary,
171
- Render,
172
- ReportingCapabilities,
173
- ReportingFrequency,
174
- ReportingPeriod,
175
- ReportingWebhook,
176
- Request,
177
- RequestedMetric,
178
- Response,
179
- ResponseType,
180
- Responsive,
181
- Results,
182
- Scheme,
183
- Security,
184
- Signal,
185
- SignalType,
186
- Sort,
187
- SortApplied,
188
- StandardFormatIds,
189
- Status,
190
- StatusFilter,
191
- StatusFilterEnum,
192
- StatusSummary,
193
- SyncCreativesRequest,
194
- SyncCreativesResponse,
195
- Tag,
196
- Tags,
197
- TargetingOverlay,
198
- Task,
199
- TasksGetRequest,
200
- TasksGetResponse,
201
- TasksListRequest,
202
- TasksListResponse,
203
- TaskStatus,
204
- TaskType,
205
- TextAsset,
206
- Totals,
207
- TrackingEvent,
208
- Type,
209
- Unit,
210
- UpdateFrequency,
211
- UpdateMediaBuyRequest,
212
- UpdateMediaBuyResponse,
213
- UrlAsset,
214
- UrlType,
215
- ValidationMode,
216
- VastVersion,
217
- VcpmAuctionPricingOption,
218
- VcpmFixedRatePricingOption,
219
- VenueBreakdownItem,
220
- VideoAsset,
221
- ViewThreshold,
222
- WebhookAsset,
223
- WebhookPayload,
224
- )
225
- from adcp.types._generated import (
226
- # PR #223 unified responses, no more collision
227
- _PackageFromPackage as Package,
228
- )
229
-
230
- # Note: BrandManifest is currently split into BrandManifest1/2 due to upstream schema
231
- # using anyOf incorrectly. This will be fixed upstream to create a single BrandManifest type.
232
- # For now, users should use BrandManifest1 (url required) which is most common.
233
-
234
- # Note: BrandManifest is now a single clean type
235
- # Re-export BrandManifest directly (no alias needed)
236
-
237
- # Backward compatibility notes:
238
- # - AssetType is maintained as an alias to AssetContentType for backward compatibility
239
- # - Will be removed in 3.0.0
240
- # - Package collision resolved by PR #223 (unified responses)
241
-
242
- # Re-export all stable types
243
- __all__ = [
244
- # Request/Response types
245
- "ActivateSignalRequest",
246
- "ActivateSignalResponse",
247
- "Action",
248
- "AggregatedTotals",
249
- "BuildCreativeRequest",
250
- "BuildCreativeResponse",
251
- "ByPackageItem",
252
- "CreateMediaBuyRequest",
253
- "CreateMediaBuyResponse",
254
- "DailyBreakdownItem",
255
- "Details",
256
- "Domain",
257
- "DomainBreakdown",
258
- "GetMediaBuyDeliveryRequest",
259
- "GetMediaBuyDeliveryResponse",
260
- "GetProductsRequest",
261
- "GetProductsResponse",
262
- "GetSignalsRequest",
263
- "GetSignalsResponse",
264
- "HistoryItem",
265
- "ListAuthorizedPropertiesRequest",
266
- "ListAuthorizedPropertiesResponse",
267
- "ListCreativeFormatsRequest",
268
- "ListCreativeFormatsResponse",
269
- "ListCreativesRequest",
270
- "ListCreativesResponse",
271
- "MediaBuyDelivery",
272
- "PreviewCreativeRequest",
273
- "PreviewCreativeResponse",
274
- "Progress",
275
- "ProtocolEnvelope",
276
- "ProtocolResponse",
277
- "ProvidePerformanceFeedbackRequest",
278
- "ProvidePerformanceFeedbackResponse",
279
- "QuerySummary",
280
- "SortApplied",
281
- "StatusSummary",
282
- "SyncCreativesRequest",
283
- "SyncCreativesResponse",
284
- "Task",
285
- "TasksGetRequest",
286
- "TasksGetResponse",
287
- "TasksListRequest",
288
- "TasksListResponse",
289
- "Totals",
290
- "UpdateMediaBuyRequest",
291
- "UpdateMediaBuyResponse",
292
- # Domain types
293
- "Asset",
294
- "AssetSelectors",
295
- "AssetContentType", # New canonical name from PR #222
296
- "AssetType", # Deprecated alias for AssetContentType
297
- "FormatCategory", # New from PR #222
298
- "AssetsRequired",
299
- "AssignedPackage",
300
- "Assignments",
301
- "BrandManifest",
302
- "Capability",
303
- "CoBranding",
304
- "Colors",
305
- "Contact",
306
- "Creative",
307
- "CreativeAgent",
308
- "CreativeAsset",
309
- "CreativeAssignment",
310
- "CreativeManifest",
311
- "CreativePolicy",
312
- "DeliveryMeasurement",
313
- "DeliveryMetrics",
314
- "Disclaimer",
315
- "DoohMetrics",
316
- "Embedding",
317
- "Error",
318
- "FeedFormat",
319
- "Filters",
320
- "Fonts",
321
- "Format",
322
- "FormatCard",
323
- "FormatCardDetailed",
324
- "FormatId",
325
- "Identifier",
326
- "Input",
327
- "LandingPage",
328
- "Logo",
329
- "MediaBuy",
330
- "Metadata",
331
- "Offering",
332
- "Package",
333
- "PackageRequest",
334
- "Packages",
335
- "Parameters",
336
- "Performance",
337
- "PerformanceFeedback",
338
- "Placement",
339
- "Preview",
340
- "PreviewRender",
341
- "Pricing",
342
- "Product",
343
- "ProductCard",
344
- "ProductCardDetailed",
345
- "ProductCatalog",
346
- "PromotedOfferings",
347
- "PromotedProducts",
348
- "Property",
349
- "QuartileData",
350
- "Render",
351
- "Request",
352
- "Response",
353
- "Results",
354
- "Signal",
355
- "Tag",
356
- "Tags",
357
- "TargetingOverlay",
358
- "VenueBreakdownItem",
359
- # Pricing-related types
360
- "CpcPricingOption",
361
- "CpcvPricingOption",
362
- "CpmAuctionPricingOption",
363
- "CpmFixedRatePricingOption",
364
- "CppPricingOption",
365
- "CpvPricingOption",
366
- "FlatRatePricingOption",
367
- "PriceGuidance",
368
- "VcpmAuctionPricingOption",
369
- "VcpmFixedRatePricingOption",
370
- # Status enums & simple types
371
- "CatalogType",
372
- "Country",
373
- "CreativeStatus",
374
- "DaastVersion",
375
- "DeliverTo",
376
- "DeliveryType",
377
- "Direction",
378
- "FeedbackSource",
379
- "FieldModel",
380
- "FormatType",
381
- "FrequencyCap",
382
- "FrequencyCapScope",
383
- "GeoCountryAnyOfItem",
384
- "MarkdownFlavor",
385
- "Measurement",
386
- "MeasurementPeriod",
387
- "MediaBuyStatus",
388
- "Method",
389
- "MetricType",
390
- "ModuleType",
391
- "NotificationType",
392
- "OutputFormat",
393
- "Pacing",
394
- "PackageStatus",
395
- "Pagination",
396
- "PricingModel",
397
- "PrimaryCountry",
398
- "PropertyIdentifierTypes",
399
- "PropertyType",
400
- "PublisherDomain",
401
- "PublisherIdentifierTypes",
402
- "ResponseType",
403
- "Responsive",
404
- "SignalType",
405
- "Sort",
406
- "StandardFormatIds",
407
- "Status",
408
- "StatusFilter",
409
- "StatusFilterEnum",
410
- "TaskStatus",
411
- "TaskType",
412
- "TrackingEvent",
413
- "Type",
414
- "Unit",
415
- "UpdateFrequency",
416
- "UrlType",
417
- "ValidationMode",
418
- "VastVersion",
419
- "ViewThreshold",
420
- # Configuration & infrastructure types
421
- "Authentication",
422
- "AuthorizedAgents",
423
- "AuthorizedSalesAgents",
424
- "AvailableMetric",
425
- "AvailableReportingFrequency",
426
- "PushNotificationConfig",
427
- "ReportingCapabilities",
428
- "ReportingFrequency",
429
- "ReportingPeriod",
430
- "ReportingWebhook",
431
- "RequestedMetric",
432
- "Scheme",
433
- "Security",
434
- # Assets
435
- "AudioAsset",
436
- "CssAsset",
437
- "HtmlAsset",
438
- "ImageAsset",
439
- "JavascriptAsset",
440
- "MarkdownAsset",
441
- "TextAsset",
442
- "UrlAsset",
443
- "VideoAsset",
444
- "WebhookAsset",
445
- "WebhookPayload",
446
- ]
447
-
448
- # Deprecated aliases for backward compatibility - will be removed in 3.0.0
449
- AssetType = AssetContentType # Use AssetContentType instead
File without changes