Skip to content

Commit 4ab4f53

Browse files
committed
fix: regenerate schemas
1 parent e8da144 commit 4ab4f53

File tree

8 files changed

+36
-49
lines changed

8 files changed

+36
-49
lines changed

src/adcp/types/_generated.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
DO NOT EDIT MANUALLY.
1111
1212
Generated from: https://github.com/adcontextprotocol/adcp/tree/main/schemas
13-
Generation date: 2025-12-11 15:09:38 UTC
13+
Generation date: 2025-12-18 20:00:25 UTC
1414
"""
1515

1616
# ruff: noqa: E501, I001
@@ -72,13 +72,13 @@
7272
)
7373
from adcp.types.generated_poc.core.deployment import Deployment, Deployment1, Deployment2
7474
from adcp.types.generated_poc.core.destination import Destination, Destination1, Destination2
75-
from adcp.types.generated_poc.core.dimensions import Dimensions
7675
from adcp.types.generated_poc.core.error import Error
7776
from adcp.types.generated_poc.core.ext import ExtensionObject
7877
from adcp.types.generated_poc.core.format import (
7978
AssetsRequired,
8079
AssetsRequired1,
81-
Dimensions2,
80+
Dimensions,
81+
Dimensions1,
8282
Format,
8383
FormatCard,
8484
FormatCardDetailed,
@@ -476,7 +476,7 @@
476476
"Destination2",
477477
"DimensionUnit",
478478
"Dimensions",
479-
"Dimensions2",
479+
"Dimensions1",
480480
"Disclaimer",
481481
"DoohMetrics",
482482
"Embedding",

src/adcp/types/generated_poc/adagents.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: adagents.json
3-
# timestamp: 2025-12-11T15:09:37+00:00
3+
# timestamp: 2025-12-18T20:00:24+00:00
44

55
from __future__ import annotations
66

@@ -19,7 +19,7 @@ class AuthorizedSalesAgents1(AdCPBaseModel):
1919
field_schema: Annotated[
2020
str | None,
2121
Field(alias='$schema', description='JSON Schema identifier for this adagents.json file'),
22-
] = 'https://adcontextprotocol.org/schemas/adagents.json'
22+
] = None
2323
authoritative_location: Annotated[
2424
AnyUrl,
2525
Field(
@@ -198,7 +198,7 @@ class AuthorizedSalesAgents2(AdCPBaseModel):
198198
field_schema: Annotated[
199199
str | None,
200200
Field(alias='$schema', description='JSON Schema identifier for this adagents.json file'),
201-
] = 'https://adcontextprotocol.org/schemas/adagents.json'
201+
] = None
202202
authorized_agents: Annotated[
203203
list[AuthorizedAgents | AuthorizedAgents1 | AuthorizedAgents2 | AuthorizedAgents3],
204204
Field(
@@ -238,12 +238,12 @@ class AuthorizedSalesAgents(RootModel[AuthorizedSalesAgents1 | AuthorizedSalesAg
238238
description='Declaration of authorized sales agents for advertising inventory. Hosted at /.well-known/adagents.json on publisher domains. Can either contain the full structure inline or reference an authoritative URL.',
239239
examples=[
240240
{
241-
'$schema': 'https://adcontextprotocol.org/schemas/adagents.json',
241+
'$schema': '/schemas/latest/adagents.json',
242242
'authoritative_location': 'https://cdn.example.com/adagents/v2/adagents.json',
243243
'last_updated': '2025-01-15T10:00:00Z',
244244
},
245245
{
246-
'$schema': 'https://adcontextprotocol.org/schemas/adagents.json',
246+
'$schema': '/schemas/latest/adagents.json',
247247
'authorized_agents': [
248248
{
249249
'authorization_type': 'property_tags',
@@ -269,7 +269,7 @@ class AuthorizedSalesAgents(RootModel[AuthorizedSalesAgents1 | AuthorizedSalesAg
269269
},
270270
},
271271
{
272-
'$schema': 'https://adcontextprotocol.org/schemas/adagents.json',
272+
'$schema': '/schemas/latest/adagents.json',
273273
'authorized_agents': [
274274
{
275275
'authorization_type': 'property_tags',
@@ -334,7 +334,7 @@ class AuthorizedSalesAgents(RootModel[AuthorizedSalesAgents1 | AuthorizedSalesAg
334334
},
335335
},
336336
{
337-
'$schema': 'https://adcontextprotocol.org/schemas/adagents.json',
337+
'$schema': '/schemas/latest/adagents.json',
338338
'authorized_agents': [
339339
{
340340
'authorization_type': 'property_tags',
@@ -362,7 +362,7 @@ class AuthorizedSalesAgents(RootModel[AuthorizedSalesAgents1 | AuthorizedSalesAg
362362
},
363363
},
364364
{
365-
'$schema': 'https://adcontextprotocol.org/schemas/adagents.json',
365+
'$schema': '/schemas/latest/adagents.json',
366366
'authorized_agents': [
367367
{
368368
'authorization_type': 'publisher_properties',
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
# generated by datamodel-codegen:
22
# filename: core/assets/image_asset.json
3-
# timestamp: 2025-11-29T12:00:45+00:00
3+
# timestamp: 2025-12-18T20:00:24+00:00
44

55
from __future__ import annotations
66

77
from typing import Annotated
88

9-
from pydantic import AnyUrl, Field
9+
from adcp.types.base import AdCPBaseModel
10+
from pydantic import AnyUrl, ConfigDict, Field
1011

11-
from ..dimensions import Dimensions
1212

13-
14-
class ImageAsset(Dimensions):
13+
class ImageAsset(AdCPBaseModel):
14+
model_config = ConfigDict(
15+
extra='forbid',
16+
)
1517
alt_text: Annotated[str | None, Field(description='Alternative text for accessibility')] = None
1618
format: Annotated[
1719
str | None, Field(description='Image file format (jpg, png, gif, webp, etc.)')
1820
] = None
21+
height: Annotated[int, Field(description='Height in pixels', ge=1)]
1922
url: Annotated[AnyUrl, Field(description='URL to the image asset')]
23+
width: Annotated[int, Field(description='Width in pixels', ge=1)]
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# generated by datamodel-codegen:
22
# filename: core/assets/video_asset.json
3-
# timestamp: 2025-11-29T12:00:45+00:00
3+
# timestamp: 2025-12-18T20:00:24+00:00
44

55
from __future__ import annotations
66

77
from typing import Annotated
88

9-
from pydantic import AnyUrl, Field
9+
from adcp.types.base import AdCPBaseModel
10+
from pydantic import AnyUrl, ConfigDict, Field
1011

11-
from ..dimensions import Dimensions
1212

13-
14-
class VideoAsset(Dimensions):
13+
class VideoAsset(AdCPBaseModel):
14+
model_config = ConfigDict(
15+
extra='forbid',
16+
)
1517
bitrate_kbps: Annotated[
1618
int | None, Field(description='Video bitrate in kilobits per second', ge=1)
1719
] = None
@@ -21,4 +23,6 @@ class VideoAsset(Dimensions):
2123
format: Annotated[str | None, Field(description='Video file format (mp4, webm, mov, etc.)')] = (
2224
None
2325
)
26+
height: Annotated[int, Field(description='Height in pixels', ge=1)]
2427
url: Annotated[AnyUrl, Field(description='URL to the video asset')]
28+
width: Annotated[int, Field(description='Width in pixels', ge=1)]

src/adcp/types/generated_poc/core/dimensions.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/adcp/types/generated_poc/core/format.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: core/format.json
3-
# timestamp: 2025-11-29T12:00:45+00:00
3+
# timestamp: 2025-12-18T20:00:24+00:00
44

55
from __future__ import annotations
66

@@ -123,12 +123,12 @@ class Renders(AdCPBaseModel):
123123
]
124124

125125

126-
Dimensions2 = Dimensions
126+
Dimensions1 = Dimensions
127127

128128

129129
class Renders1(AdCPBaseModel):
130130
dimensions: Annotated[
131-
Dimensions2 | None, Field(description='Dimensions for this rendered piece (in pixels)')
131+
Dimensions1 | None, Field(description='Dimensions for this rendered piece (in pixels)')
132132
] = None
133133
parameters_from_format_id: Annotated[
134134
Literal[True],

src/adcp/types/generated_poc/core/push_notification_config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: core/push_notification_config.json
3-
# timestamp: 2025-11-29T12:00:45+00:00
3+
# timestamp: 2025-12-18T20:00:24+00:00
44

55
from __future__ import annotations
66

@@ -34,9 +34,6 @@ class Authentication(AdCPBaseModel):
3434

3535

3636
class PushNotificationConfig(AdCPBaseModel):
37-
model_config = ConfigDict(
38-
extra='forbid',
39-
)
4037
authentication: Annotated[
4138
Authentication,
4239
Field(description='Authentication configuration for webhook delivery (A2A-compatible)'),

src/adcp/types/generated_poc/media_buy/sync_creatives_async_response_input_required.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: media_buy/sync_creatives_async_response_input_required.json
3-
# timestamp: 2025-12-11T15:09:37+00:00
3+
# timestamp: 2025-12-18T20:00:24+00:00
44

55
from __future__ import annotations
66

@@ -27,5 +27,5 @@ class SyncCreativesInputRequired(AdCPBaseModel):
2727
context: context_1.ContextObject | None = None
2828
ext: ext_1.ExtensionObject | None = None
2929
reason: Annotated[
30-
Reason | None, Field(description='Reason code indicating why input is needed')
30+
Reason | None, Field(description='Reason code indicating why buyer input is needed')
3131
] = None

0 commit comments

Comments
 (0)