Skip to content

Commit a8a0f06

Browse files
authored
Merge pull request #252 from adcontextprotocol/bokelley/regen-schemas-2026-04-21
chore(types): regenerate schemas from upstream spec
2 parents 0564635 + 97af2a3 commit a8a0f06

769 files changed

Lines changed: 20311 additions & 16367 deletions

File tree

Some content is hidden

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

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,13 @@ adcp = ["py.typed", "ADCP_VERSION", "signing/pg/*.sql"]
102102
[tool.black]
103103
line-length = 100
104104
target-version = ["py310", "py311", "py312"]
105-
extend-exclude = "/(tasks)\\.py$"
105+
# Skip auto-generated files. Running black on generated_poc/ during
106+
# pre-commit after `make regenerate-schemas` causes a stash conflict
107+
# (hook reformats, tries to re-apply over seller's already-modified
108+
# files, rolls back). The regen script already runs black on the
109+
# consolidated _generated.py; individual generated_poc/ files don't
110+
# need formatting at commit time. Mirrors the ruff extend-exclude.
111+
extend-exclude = "/(tasks|_generated|registry)\\.py$|/types/generated_poc/"
106112

107113
[tool.ruff]
108114
line-length = 100

schemas/cache/account/report-usage-request.json

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Report Usage Request",
44
"description": "Reports how a vendor's service was consumed after campaign delivery. Used by orchestrators (DSPs, storefronts) to inform vendor agents (signals, governance, creative) what was used so the vendor can track earned revenue and verify billing. Records can span multiple accounts and campaigns in a single request.",
5+
"x-mutates-state": true,
56
"type": "object",
67
"properties": {
78
"adcp_major_version": {
@@ -31,7 +32,8 @@
3132
},
3233
"media_buy_id": {
3334
"type": "string",
34-
"description": "Seller-assigned media buy identifier. Links this usage record to a specific media buy."
35+
"description": "Seller-assigned media buy identifier. Links this usage record to a specific media buy.",
36+
"x-entity": "media_buy"
3537
},
3638
"vendor_cost": {
3739
"type": "number",
@@ -45,7 +47,8 @@
4547
},
4648
"pricing_option_id": {
4749
"type": "string",
48-
"description": "Pricing option identifier from the vendor's discovery response (e.g., get_signals, list_content_standards). The vendor uses this to verify the correct rate was applied."
50+
"description": "Pricing option identifier from the vendor's discovery response (e.g., get_signals, list_content_standards). The vendor uses this to verify the correct rate was applied.",
51+
"x-entity": "vendor_pricing_option"
4952
},
5053
"impressions": {
5154
"type": "integer",
@@ -59,23 +62,28 @@
5962
},
6063
"signal_agent_segment_id": {
6164
"type": "string",
62-
"description": "Signal identifier from get_signals. Required for signals agents."
65+
"description": "Signal identifier from get_signals. Required for signals agents.",
66+
"x-entity": "signal_activation_id"
6367
},
6468
"standards_id": {
6569
"type": "string",
66-
"description": "Content standards configuration identifier. Required for governance agents."
70+
"description": "Content standards configuration identifier. Required for governance agents.",
71+
"x-entity": "content_standards"
6772
},
6873
"rights_id": {
6974
"type": "string",
70-
"description": "Rights grant identifier from acquire_rights. Required for brand/rights agents. Links usage records to specific rights grants for cap tracking, billing verification, and overage calculation."
75+
"description": "Rights grant identifier from acquire_rights. Required for brand/rights agents. Links usage records to specific rights grants for cap tracking, billing verification, and overage calculation.",
76+
"x-entity": "rights_grant"
7177
},
7278
"creative_id": {
7379
"type": "string",
74-
"description": "Creative identifier from build_creative or list_creatives. Required for creative agents. Links usage records to specific creatives for billing verification."
80+
"description": "Creative identifier from build_creative or list_creatives. Required for creative agents. Links usage records to specific creatives for billing verification.",
81+
"x-entity": "creative"
7582
},
7683
"property_list_id": {
7784
"type": "string",
78-
"description": "Property list identifier from list_property_lists. Required for property list agents. Links usage records to specific property lists for billing verification."
85+
"description": "Property list identifier from list_property_lists. Required for property list agents. Links usage records to specific property lists for billing verification.",
86+
"x-entity": "property_list"
7987
}
8088
},
8189
"required": [

schemas/cache/account/sync-accounts-request.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Sync Accounts Request",
44
"description": "Sync advertiser accounts with a seller using upsert semantics. The agent declares which brands it represents, who operates on each brand's behalf, and the billing model. The seller provisions or links accounts accordingly, returning per-account status.",
5+
"x-mutates-state": true,
56
"type": "object",
67
"properties": {
78
"adcp_major_version": {

schemas/cache/account/sync-accounts-response.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"properties": {
2222
"account_id": {
2323
"type": "string",
24-
"description": "Seller-assigned account identifier. Use this in subsequent create_media_buy and other account-scoped operations."
24+
"description": "Seller-assigned account identifier. Use this in subsequent create_media_buy and other account-scoped operations.",
25+
"x-entity": "account"
2526
},
2627
"brand": {
2728
"$ref": "../core/brand-ref.json",

schemas/cache/account/sync-governance-request.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Sync Governance Request",
44
"description": "Sync governance agent endpoints against specific accounts. The seller persists these governance agents and calls them for approval during media buy lifecycle events via check_governance. Uses replace semantics: each call replaces any previously synced agents on the specified accounts. The seller MUST verify that the authenticated agent has authority over each referenced account before persisting governance agents.",
5+
"x-mutates-state": true,
56
"type": "object",
67
"properties": {
78
"adcp_major_version": {

schemas/cache/brand/acquire-rights-request.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"title": "Acquire Rights Request",
44
"description": "Binding contractual request to acquire rights from a brand agent. Parallels create_media_buy \u2014 the buyer selects a pricing_option_id from a get_rights response and provides campaign details. The agent clears against existing contracts and returns terms, generation credentials, and disclosure requirements.",
55
"x-status": "experimental",
6+
"x-mutates-state": true,
67
"type": "object",
78
"properties": {
89
"adcp_major_version": {
@@ -13,11 +14,13 @@
1314
},
1415
"rights_id": {
1516
"type": "string",
16-
"description": "Rights offering identifier from get_rights response"
17+
"description": "Rights offering identifier from get_rights response",
18+
"x-entity": "rights_grant"
1719
},
1820
"pricing_option_id": {
1921
"type": "string",
20-
"description": "Selected pricing option from the rights offering"
22+
"description": "Selected pricing option from the rights offering",
23+
"x-entity": "vendor_pricing_option"
2124
},
2225
"buyer": {
2326
"$ref": "../core/brand-ref.json",

schemas/cache/brand/acquire-rights-response.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"properties": {
1111
"rights_id": {
1212
"type": "string",
13-
"description": "Rights grant identifier"
13+
"description": "Rights grant identifier",
14+
"x-entity": "rights_grant"
1415
},
1516
"status": {
1617
"type": "string",
@@ -19,7 +20,8 @@
1920
},
2021
"brand_id": {
2122
"type": "string",
22-
"description": "Brand identifier of the rights subject"
23+
"description": "Brand identifier of the rights subject",
24+
"x-entity": "rights_holder_brand"
2325
},
2426
"terms": {
2527
"$ref": "rights-terms.json",
@@ -96,15 +98,17 @@
9698
"title": "AcquireRightsPendingApproval",
9799
"properties": {
98100
"rights_id": {
99-
"type": "string"
101+
"type": "string",
102+
"x-entity": "rights_grant"
100103
},
101104
"status": {
102105
"type": "string",
103106
"const": "pending_approval",
104107
"description": "Rights require approval from the rights holder"
105108
},
106109
"brand_id": {
107-
"type": "string"
110+
"type": "string",
111+
"x-entity": "rights_holder_brand"
108112
},
109113
"detail": {
110114
"type": "string",
@@ -137,15 +141,17 @@
137141
"title": "AcquireRightsRejected",
138142
"properties": {
139143
"rights_id": {
140-
"type": "string"
144+
"type": "string",
145+
"x-entity": "rights_grant"
141146
},
142147
"status": {
143148
"type": "string",
144149
"const": "rejected",
145150
"description": "Rights request was rejected"
146151
},
147152
"brand_id": {
148-
"type": "string"
153+
"type": "string",
154+
"x-entity": "rights_holder_brand"
149155
},
150156
"reason": {
151157
"type": "string",

schemas/cache/brand/creative-approval-request.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"title": "Creative Approval Request",
44
"description": "Payload submitted by the buyer to the approval_webhook URL from acquire_rights. Contains the creative for rights holder review before distribution.",
5+
"x-mutates-state": true,
56
"type": "object",
67
"properties": {
78
"adcp_major_version": {
@@ -12,11 +13,13 @@
1213
},
1314
"rights_id": {
1415
"type": "string",
15-
"description": "Rights grant this creative was produced under"
16+
"description": "Rights grant this creative was produced under",
17+
"x-entity": "rights_grant"
1618
},
1719
"creative_id": {
1820
"type": "string",
19-
"description": "Buyer-assigned creative identifier. Equivalent to OpenRTB crid. Used to track approval status across resubmissions."
21+
"description": "Buyer-assigned creative identifier. Equivalent to OpenRTB crid. Used to track approval status across resubmissions.",
22+
"x-entity": "creative"
2023
},
2124
"creative_url": {
2225
"type": "string",

schemas/cache/brand/creative-approval-response.json

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
"description": "Creative has been approved for distribution"
1414
},
1515
"rights_id": {
16-
"type": "string"
16+
"type": "string",
17+
"x-entity": "rights_grant"
1718
},
1819
"creative_id": {
1920
"type": "string",
20-
"description": "Echo of the buyer's creative identifier"
21+
"description": "Echo of the buyer's creative identifier",
22+
"x-entity": "creative"
2123
},
2224
"creative_url": {
2325
"type": "string",
@@ -61,11 +63,13 @@
6163
"description": "Creative was rejected"
6264
},
6365
"rights_id": {
64-
"type": "string"
66+
"type": "string",
67+
"x-entity": "rights_grant"
6568
},
6669
"creative_id": {
6770
"type": "string",
68-
"description": "Echo of the buyer's creative identifier"
71+
"description": "Echo of the buyer's creative identifier",
72+
"x-entity": "creative"
6973
},
7074
"creative_url": {
7175
"type": "string",
@@ -110,11 +114,13 @@
110114
"description": "Creative is queued for review"
111115
},
112116
"rights_id": {
113-
"type": "string"
117+
"type": "string",
118+
"x-entity": "rights_grant"
114119
},
115120
"creative_id": {
116121
"type": "string",
117-
"description": "Echo of the buyer's creative identifier"
122+
"description": "Echo of the buyer's creative identifier",
123+
"x-entity": "creative"
118124
},
119125
"creative_url": {
120126
"type": "string",

schemas/cache/brand/get-brand-identity-request.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
},
1313
"brand_id": {
1414
"type": "string",
15-
"description": "Brand identifier from brand.json brands array"
15+
"description": "Brand identifier from brand.json brands array",
16+
"x-entity": "advertiser_brand"
1617
},
1718
"fields": {
1819
"type": "array",

0 commit comments

Comments
 (0)