adcp 1.6.0__py3-none-any.whl → 1.6.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 CHANGED
@@ -163,7 +163,7 @@ from adcp.types.generated import (
163
163
  TaskStatus as GeneratedTaskStatus,
164
164
  )
165
165
 
166
- __version__ = "1.6.0"
166
+ __version__ = "1.6.1"
167
167
 
168
168
  __all__ = [
169
169
  # Client classes
adcp/types/generated.py CHANGED
@@ -981,7 +981,7 @@ class PreviewCreativeRequest(BaseModel):
981
981
 
982
982
  # Output format (applies to both modes)
983
983
  output_format: Literal["url", "html"] | None = Field(default="url", description="Output format: 'url' for iframe URLs, 'html' for direct embedding")
984
-
984
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
985
985
 
986
986
  class PreviewCreativeResponse(BaseModel):
987
987
  """Response containing preview links for one or more creatives. Format matches the request: single preview response for single requests, batch results for batch requests."""
@@ -993,6 +993,7 @@ class PreviewCreativeResponse(BaseModel):
993
993
 
994
994
  # Batch mode field
995
995
  results: list[dict[str, Any]] | None = Field(default=None, description="Array of preview results for batch processing")
996
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
996
997
 
997
998
 
998
999
  # ============================================================================
@@ -1010,13 +1011,13 @@ class ActivateSignalSuccess(BaseModel):
1010
1011
  )
1011
1012
  estimated_activation_duration_minutes: float | None = None
1012
1013
  deployed_at: str | None = None
1013
-
1014
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1014
1015
 
1015
1016
  class ActivateSignalError(BaseModel):
1016
1017
  """Failed signal activation response"""
1017
1018
 
1018
1019
  errors: list[Error] = Field(description="Task-specific errors and warnings")
1019
-
1020
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1020
1021
 
1021
1022
  # Override the generated ActivateSignalResponse type alias
1022
1023
  ActivateSignalResponse = ActivateSignalSuccess | ActivateSignalError
@@ -1034,12 +1035,14 @@ class CreateMediaBuySuccess(BaseModel):
1034
1035
  None,
1035
1036
  description="ISO 8601 date when creatives must be provided for launch",
1036
1037
  )
1038
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1037
1039
 
1038
1040
 
1039
1041
  class CreateMediaBuyError(BaseModel):
1040
1042
  """Failed media buy creation response"""
1041
1043
 
1042
1044
  errors: list[Error] = Field(description="Task-specific errors and warnings")
1045
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1043
1046
 
1044
1047
 
1045
1048
  # Override the generated CreateMediaBuyResponse type alias
@@ -1054,13 +1057,14 @@ class UpdateMediaBuySuccess(BaseModel):
1054
1057
  packages: list[Package] = Field(
1055
1058
  description="Array of updated packages reflecting the changes"
1056
1059
  )
1060
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1057
1061
 
1058
1062
 
1059
1063
  class UpdateMediaBuyError(BaseModel):
1060
1064
  """Failed media buy update response"""
1061
1065
 
1062
1066
  errors: list[Error] = Field(description="Task-specific errors and warnings")
1063
-
1067
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1064
1068
 
1065
1069
  # Override the generated UpdateMediaBuyResponse type alias
1066
1070
  UpdateMediaBuyResponse = UpdateMediaBuySuccess | UpdateMediaBuyError
@@ -1072,13 +1076,14 @@ class SyncCreativesSuccess(BaseModel):
1072
1076
  assignments: list[CreativeAssignment] = Field(
1073
1077
  description="Array of creative assignments with updated status"
1074
1078
  )
1079
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1075
1080
 
1076
1081
 
1077
1082
  class SyncCreativesError(BaseModel):
1078
1083
  """Failed creative sync response"""
1079
1084
 
1080
1085
  errors: list[Error] = Field(description="Task-specific errors and warnings")
1081
-
1086
+ context: dict[str, Any] | None = Field(None, description="Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.")
1082
1087
 
1083
1088
  # Override the generated SyncCreativesResponse type alias
1084
1089
  SyncCreativesResponse = SyncCreativesSuccess | SyncCreativesError
@@ -74,7 +74,11 @@ class PreviewURLGenerator:
74
74
 
75
75
  try:
76
76
  request = PreviewCreativeRequest(
77
- format_id=format_id, creative_manifest=manifest, inputs=None, template_id=None
77
+ format_id=format_id,
78
+ creative_manifest=manifest,
79
+ inputs=None,
80
+ template_id=None,
81
+ context=None
78
82
  )
79
83
  result = await self.creative_agent_client.preview_creative(request)
80
84
 
@@ -164,6 +168,7 @@ class PreviewURLGenerator:
164
168
  batch_request = PreviewCreativeRequest(
165
169
  requests=chunk_requests,
166
170
  output_format=output_format, # type: ignore[arg-type]
171
+ context=None,
167
172
  )
168
173
  result = await self.creative_agent_client.preview_creative(batch_request)
169
174
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adcp
3
- Version: 1.6.0
3
+ Version: 1.6.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
@@ -1,4 +1,4 @@
1
- adcp/__init__.py,sha256=AssQu9RgVTit-LqDxtQ-pgKuxjoDQr67HhiIxKMmSFA,7612
1
+ adcp/__init__.py,sha256=g3x4xqEGJgRcHZB6Oso3XAxs8uwNtEhk8l9TGFVcN1c,7612
2
2
  adcp/__main__.py,sha256=Avy_C71rruh2lOuojvuXDj09tkFOaek74nJ-dbx25Sw,12838
3
3
  adcp/adagents.py,sha256=thq6qZScRHLWrRR4DjGlZzHpC1ZssQqhc5l0pbKSa-Q,17483
4
4
  adcp/client.py,sha256=4qoFNDT5swzi4w5bnWJ5nVTG5JIL0xnLJOJMGeMyci4,28412
@@ -14,15 +14,15 @@ adcp/testing/test_helpers.py,sha256=4n8fZYy1cVpjZpFW2SxBzpC8fmY-MBFrzY4tIPqe4rQ,
14
14
  adcp/types/__init__.py,sha256=FXm4210pkzOIQQEgpe-EeLLd7mxofzEgKLGl1r8fj4o,465
15
15
  adcp/types/base.py,sha256=QoEuVfI4yzefup0dc2KN11AcJTbcGxRep7xOw5hXfs8,837
16
16
  adcp/types/core.py,sha256=RXkKCWCXS9BVJTNpe3Opm5O1I_LaQPMUuVwa-ipvS1Q,4839
17
- adcp/types/generated.py,sha256=NY6A6eBw8wscSqJlLhW4OFvhTaZegcNR1hQ5VU51IFM,81526
17
+ adcp/types/generated.py,sha256=os26c6yVrCzfSJXJkMsNUODRgp4UrozMkc19OPYcxls,83621
18
18
  adcp/types/tasks.py,sha256=Ae9TSwG2F7oWXTcl4TvLhAzinbQkHNGF1Pc0q8RMNNM,23424
19
19
  adcp/utils/__init__.py,sha256=uetvSJB19CjQbtwEYZiTnumJG11GsafQmXm5eR3hL7E,153
20
20
  adcp/utils/operation_id.py,sha256=wQX9Bb5epXzRq23xoeYPTqzu5yLuhshg7lKJZihcM2k,294
21
- adcp/utils/preview_cache.py,sha256=8_2qs5CgrHv1_WOnD4bs43VWueu-rcZRu5PZMQ_lyuE,17573
21
+ adcp/utils/preview_cache.py,sha256=8BqbGtilEWD-2ZIIcXCxVar6hs1uMLqTs9DND05RMh8,17685
22
22
  adcp/utils/response_parser.py,sha256=uPk2vIH-RYZmq7y3i8lC4HTMQ3FfKdlgXKTjgJ1955M,6253
23
- adcp-1.6.0.dist-info/licenses/LICENSE,sha256=PF39NR3Ae8PLgBhg3Uxw6ju7iGVIf8hfv9LRWQdii_U,629
24
- adcp-1.6.0.dist-info/METADATA,sha256=9p6HjEycLX_f45n5H1l_gsDlLU67EpDJM3jBWZhLcqk,21345
25
- adcp-1.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- adcp-1.6.0.dist-info/entry_points.txt,sha256=DQKpcGsJX8DtVI_SGApQ7tNvqUB4zkTLaTAEpFgmi3U,44
27
- adcp-1.6.0.dist-info/top_level.txt,sha256=T1_NF0GefncFU9v_k56oDwKSJREyCqIM8lAwNZf0EOs,5
28
- adcp-1.6.0.dist-info/RECORD,,
23
+ adcp-1.6.1.dist-info/licenses/LICENSE,sha256=PF39NR3Ae8PLgBhg3Uxw6ju7iGVIf8hfv9LRWQdii_U,629
24
+ adcp-1.6.1.dist-info/METADATA,sha256=OgqXYiJzf7oW6Hta0L_sH3VJq2EYWMypqJzu9wBx_Qs,21345
25
+ adcp-1.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ adcp-1.6.1.dist-info/entry_points.txt,sha256=DQKpcGsJX8DtVI_SGApQ7tNvqUB4zkTLaTAEpFgmi3U,44
27
+ adcp-1.6.1.dist-info/top_level.txt,sha256=T1_NF0GefncFU9v_k56oDwKSJREyCqIM8lAwNZf0EOs,5
28
+ adcp-1.6.1.dist-info/RECORD,,
File without changes