Skip to content

Commit 245a7d3

Browse files
authored
Merge pull request #112 from adcontextprotocol/adcp_2_6_support
feat: upgrade to AdCP protocol 2.6.0
2 parents 136eaac + 7a2e30e commit 245a7d3

File tree

209 files changed

+1892
-655
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+1892
-655
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ regenerate-schemas: ## Download latest schemas and regenerate models
4747
@echo "Fixing schema references..."
4848
$(PYTHON) scripts/fix_schema_refs.py
4949
@echo "Generating Pydantic models..."
50-
$(PYTHON) scripts/generate_models_simple.py
50+
$(PYTHON) scripts/generate_types.py
5151
@echo "✓ Schemas regenerated successfully"
5252

5353
validate-generated: ## Validate generated code (syntax and imports)
@@ -99,7 +99,7 @@ check-schema-drift: ## Check if schemas are out of sync with upstream
9999
@echo "Checking for schema drift..."
100100
@$(PYTHON) scripts/sync_schemas.py
101101
@$(PYTHON) scripts/fix_schema_refs.py
102-
@$(PYTHON) scripts/generate_models_simple.py
102+
@$(PYTHON) scripts/generate_types.py
103103
@if git diff --exit-code src/adcp/types/generated.py schemas/cache/; then \
104104
echo "✓ Schemas are up-to-date"; \
105105
else \

schemas/cache/.hashes.json

Lines changed: 153 additions & 153 deletions
Large diffs are not rendered by default.

schemas/cache/adagents.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"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.",
44
"examples": [
55
{
6-
"$schema": "/schemas/latest/adagents.json",
6+
"$schema": "/schemas/2.6.0/adagents.json",
77
"authoritative_location": "https://cdn.example.com/adagents/v2/adagents.json",
88
"last_updated": "2025-01-15T10:00:00Z"
99
},
1010
{
11-
"$schema": "/schemas/latest/adagents.json",
11+
"$schema": "/schemas/2.6.0/adagents.json",
1212
"authorized_agents": [
1313
{
1414
"authorization_type": "property_tags",
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
{
44-
"$schema": "/schemas/latest/adagents.json",
44+
"$schema": "/schemas/2.6.0/adagents.json",
4545
"authorized_agents": [
4646
{
4747
"authorization_type": "property_tags",
@@ -135,7 +135,7 @@
135135
}
136136
},
137137
{
138-
"$schema": "/schemas/latest/adagents.json",
138+
"$schema": "/schemas/2.6.0/adagents.json",
139139
"authorized_agents": [
140140
{
141141
"authorization_type": "property_tags",
@@ -174,7 +174,7 @@
174174
}
175175
},
176176
{
177-
"$schema": "/schemas/latest/adagents.json",
177+
"$schema": "/schemas/2.6.0/adagents.json",
178178
"authorized_agents": [
179179
{
180180
"authorization_type": "publisher_properties",
@@ -222,7 +222,7 @@
222222
],
223223
"oneOf": [
224224
{
225-
"additionalProperties": false,
225+
"additionalProperties": true,
226226
"description": "URL reference variant - points to the authoritative location of the adagents.json file",
227227
"properties": {
228228
"$schema": {
@@ -247,7 +247,7 @@
247247
"type": "object"
248248
},
249249
{
250-
"additionalProperties": false,
250+
"additionalProperties": true,
251251
"description": "Inline structure variant - contains full agent authorization data",
252252
"properties": {
253253
"$schema": {
@@ -259,7 +259,7 @@
259259
"items": {
260260
"oneOf": [
261261
{
262-
"additionalProperties": false,
262+
"additionalProperties": true,
263263
"properties": {
264264
"authorization_type": {
265265
"const": "property_ids",
@@ -295,7 +295,7 @@
295295
"type": "object"
296296
},
297297
{
298-
"additionalProperties": false,
298+
"additionalProperties": true,
299299
"properties": {
300300
"authorization_type": {
301301
"const": "property_tags",
@@ -331,7 +331,7 @@
331331
"type": "object"
332332
},
333333
{
334-
"additionalProperties": false,
334+
"additionalProperties": true,
335335
"properties": {
336336
"authorization_type": {
337337
"const": "inline_properties",
@@ -367,7 +367,7 @@
367367
"type": "object"
368368
},
369369
{
370-
"additionalProperties": false,
370+
"additionalProperties": true,
371371
"properties": {
372372
"authorization_type": {
373373
"const": "publisher_properties",
@@ -408,7 +408,7 @@
408408
"type": "array"
409409
},
410410
"contact": {
411-
"additionalProperties": false,
411+
"additionalProperties": true,
412412
"description": "Contact information for the entity managing this adagents.json file (may be publisher or third-party operator)",
413413
"properties": {
414414
"domain": {
@@ -462,7 +462,7 @@
462462
},
463463
"tags": {
464464
"additionalProperties": {
465-
"additionalProperties": false,
465+
"additionalProperties": true,
466466
"properties": {
467467
"description": {
468468
"description": "Description of what this tag represents",

schemas/cache/core/activation-key.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Universal identifier for using a signal on a destination platform. Can be either a segment ID or a key-value pair depending on the platform's targeting mechanism.",
44
"oneOf": [
55
{
6-
"additionalProperties": false,
6+
"additionalProperties": true,
77
"properties": {
88
"segment_id": {
99
"description": "The platform-specific segment identifier to use in campaign targeting",
@@ -21,7 +21,7 @@
2121
]
2222
},
2323
{
24-
"additionalProperties": false,
24+
"additionalProperties": true,
2525
"properties": {
2626
"key": {
2727
"description": "The targeting parameter key",

schemas/cache/core/assets/audio-asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"additionalProperties": false,
3+
"additionalProperties": true,
44
"description": "Audio asset with URL and specifications",
55
"properties": {
66
"bitrate_kbps": {

schemas/cache/core/assets/css-asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"additionalProperties": false,
3+
"additionalProperties": true,
44
"description": "CSS stylesheet asset",
55
"properties": {
66
"content": {

schemas/cache/core/assets/daast-asset.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "DAAST (Digital Audio Ad Serving Template) tag for third-party audio ad serving",
44
"oneOf": [
55
{
6-
"additionalProperties": false,
6+
"additionalProperties": true,
77
"properties": {
88
"companion_ads": {
99
"description": "Whether companion display ads are included",
@@ -43,7 +43,7 @@
4343
"type": "object"
4444
},
4545
{
46-
"additionalProperties": false,
46+
"additionalProperties": true,
4747
"properties": {
4848
"companion_ads": {
4949
"description": "Whether companion display ads are included",

schemas/cache/core/assets/html-asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"additionalProperties": false,
3+
"additionalProperties": true,
44
"description": "HTML content asset",
55
"properties": {
66
"content": {

schemas/cache/core/assets/image-asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"additionalProperties": false,
3+
"additionalProperties": true,
44
"description": "Image asset with URL and dimensions",
55
"properties": {
66
"alt_text": {

schemas/cache/core/assets/javascript-asset.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"additionalProperties": false,
3+
"additionalProperties": true,
44
"description": "JavaScript code asset",
55
"properties": {
66
"content": {

0 commit comments

Comments
 (0)