Skip to content

Commit 6cba9ef

Browse files
committed
fix: drop --collapse-root-models option from type gen. Regenerate types
1 parent 3c25822 commit 6cba9ef

File tree

60 files changed

+1349
-494
lines changed

Some content is hidden

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

60 files changed

+1349
-494
lines changed

schemas/cache/.hashes.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"https://adcontextprotocol.org/schemas/2.5.0/index.json": "12ae44f8c5e11b47103074739218f463b7a69b5179ca745944030ae75691d801",
2+
"https://adcontextprotocol.org/schemas/v1/index.json": "f146ca1f791f1096996fb7caf220d2725ce299d72ae47392c3ef6b2e93d61040",
33
"https://adcontextprotocol.org/schemas/2.5.0/adagents.json": "18f8f53206a241f66870c78c188959ff14369976c0395aef80efd9385eef1585",
44
"https://adcontextprotocol.org/schemas/2.5.0/core/activation-key.json": "69d74e59a3bec0747605253f234e83aa9fc056892377207874c0a12e09012215",
55
"https://adcontextprotocol.org/schemas/2.5.0/core/assets/audio-asset.json": "5f1d811e1983a437bb695cc900095cbcf1f18160edd609b48b84bf1c7a1c3b46",
@@ -13,6 +13,7 @@
1313
"https://adcontextprotocol.org/schemas/2.5.0/core/assets/vast-asset.json": "1176e0ac890d6d2b24b1ea1b1b30e5b09af7796e4466f2cc50e24f9ed1cb0b0c",
1414
"https://adcontextprotocol.org/schemas/2.5.0/core/assets/video-asset.json": "af37258569c308b9da7a0cfa5d6da7c74d40842ff3581287303cb97a173294a0",
1515
"https://adcontextprotocol.org/schemas/2.5.0/core/assets/webhook-asset.json": "310a147bb6c287902e916538c127cc3da27e659afd94de8b39cf39628347a281",
16+
"https://adcontextprotocol.org/schemas/2.5.0/core/async-response-data.json": "b3ba07bbef8ee5c3408dc9e3e511c46c2d491dcd7b3299b8d6ebea920d0c1e78",
1617
"https://adcontextprotocol.org/schemas/2.5.0/core/brand-manifest-ref.json": "0ab26106d32afae64a0ef16a912458fce16b500971e1395f1c8c052404cd5481",
1718
"https://adcontextprotocol.org/schemas/2.5.0/core/brand-manifest.json": "a314870c441a3fe81de2d0c03f09acb371ce4f6cd30dca6a2525847943e81139",
1819
"https://adcontextprotocol.org/schemas/2.5.0/core/context.json": "9b015157497c0c130030d0878b203cc6c7c82fa898ddd952612d045808980478",
@@ -30,6 +31,7 @@
3031
"https://adcontextprotocol.org/schemas/2.5.0/core/format-id.json": "b1572630a1c719d68001b61eef9bf987c68e5685cfbdb5f4430cce075ba561b6",
3132
"https://adcontextprotocol.org/schemas/2.5.0/core/format.json": "cc288b1d85a7d2e346f4fd5df71c2359f55fd92de14a6da435f6cf0c35afc842",
3233
"https://adcontextprotocol.org/schemas/2.5.0/core/frequency-cap.json": "b0cb792aae4f68e80a5870b1da54d2d2b9a2c9b5aa13e02d6f7f9ce9524b6e4a",
34+
"https://adcontextprotocol.org/schemas/2.5.0/core/mcp-webhook-payload.json": "1dcd55d1b9c7f2d715b2c10a7033e342ca8c93f5748a4b9444f4c3f52c4a110b",
3335
"https://adcontextprotocol.org/schemas/2.5.0/core/measurement.json": "1d61cf36dad5abdcf9b1cd6ebd16bd9233449868b362d8054dd7d1f4caa938d5",
3436
"https://adcontextprotocol.org/schemas/2.5.0/core/media-buy.json": "8155b8245a763cd4de145faa4942217dc43f2230244ec583d2ba4294fc40e204",
3537
"https://adcontextprotocol.org/schemas/2.5.0/core/package.json": "6d2e4cbfc1869ee0085b8c4d9c5859883e25d52d9a8ce298c8dd962d73e5bc61",
@@ -52,8 +54,7 @@
5254
"https://adcontextprotocol.org/schemas/2.5.0/core/start-timing.json": "f07f12ef82b73dbd30611a537081f54a77017d42421c910baf1d85b3c06f7cc1",
5355
"https://adcontextprotocol.org/schemas/2.5.0/core/sub-asset.json": "6312d9d70971075cfcd52b5d1ad1b29a5a07b66bec29be8406a9d7a4aea9fd30",
5456
"https://adcontextprotocol.org/schemas/2.5.0/core/targeting.json": "261dfdda62f75bdb9f6d38e0adad8bea5d5ca9065db7272eec19807804daa7e0",
55-
"https://adcontextprotocol.org/schemas/2.5.0/core/webhook-payload.json": "38e3a0752e24d3099bbb70a6c1e853fafa18a725722bcf2dd913dbbfdcec35b8",
56-
"https://adcontextprotocol.org/schemas/2.5.0/creative/asset-types/index.json": "b91662cbe3fa133155c71d8afa3db465a9fface137cbdd764fb5ee9d37584908",
57+
"https://adcontextprotocol.org/schemas/2.5.0/creative/asset-types/index.json": "16f57099f0d11474a36656f595d6cf38795741aae5419baa4671758a38386661",
5758
"https://adcontextprotocol.org/schemas/2.5.0/creative/list-creative-formats-request.json": "e0e107969b2134ddc41e4495e6043bbe5169e840f6c1734c7eae0cb37ccf51fa",
5859
"https://adcontextprotocol.org/schemas/2.5.0/creative/list-creative-formats-response.json": "8d7bab833eb91e45d82253a152d4cd60bc6a1b4dcf28e021d6be2da6b73eb15d",
5960
"https://adcontextprotocol.org/schemas/2.5.0/creative/preview-creative-request.json": "29e991e85c5e3c0c78118570c7afbfb15acbd5d8055117f9a067611a53f7039b",
@@ -107,10 +108,16 @@
107108
"https://adcontextprotocol.org/schemas/2.5.0/enums/webhook-security-method.json": "ce663ac84ff144ecee5b836ef408d01c02921a78f36134041a112c6ba108d5d2",
108109
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/build-creative-request.json": "7e74533bf01ed6ccb14aea5965eafc12c2192043d5d6ebe7c0a4ab2bfd19bb9d",
109110
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/build-creative-response.json": "1a8e7976988b4368cfb4bdace6b36b4118cd9df514cdf4735908f407e21b50f8",
111+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/create-media-buy-async-response-input-required.json": "6d9d5bc9d4c41cb100749949cc5c1e429ef4a86240425f14c3d29d6beecdf4d7",
112+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/create-media-buy-async-response-submitted.json": "8524f6cf0c855f8cf47b5036c1c6dd4e1fdf6e9450184be5e9291b07230b780b",
113+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/create-media-buy-async-response-working.json": "7c233d0b7b5ff30d7f143a7364f774589633b41426b102db67c9195052abdd73",
110114
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/create-media-buy-request.json": "c0673c51e201bd4392e80b0ff49ae04da842c6a9fc335d7afe6c5c144dc23e7c",
111115
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/create-media-buy-response.json": "7ad3793035eac16253a9000c1c584fbd76f89b09fd1e441bd6137c431edd370e",
112116
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-media-buy-delivery-request.json": "71c06190ee05faefa77fb5bfa552266c4f08237348e1b5c39dc12a0770ac6c2c",
113117
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-media-buy-delivery-response.json": "13815c7e161e5b0199ebfaa55119e053df5ee828e47c207e51d8b2f8be926e54",
118+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-products-async-response-input-required.json": "d0b4d3b866668772a4298bfb890a680e25ddb55f17ff31aed60cf924d6962ca0",
119+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-products-async-response-submitted.json": "328518d2311e2162ccdb102caf5dc6f28b55e30e77eb5d5e5b4ad7cd5eeafddb",
120+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-products-async-response-working.json": "905379369943b0352858e84a1d07e415c61f4fde1dc91f007c62cef2f0919754",
114121
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-products-request.json": "4b4efe187c13be2f81160b71a0cc740d4eddca36c285102e870f06d4b1913c1a",
115122
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/get-products-response.json": "16012d6009442bf4445a230e6614ebf48c360711cd9403b1616d0b3a6070a501",
116123
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/list-authorized-properties-request.json": "ef5041929b423e40c0741f0350ff53bbfecaf38777facef33eb3f22ae0fbdc7c",
@@ -122,8 +129,14 @@
122129
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/package-request.json": "3f7f3ffa9f1d1518666a48516e5c7a8e9d494176d0dbc7cfa1957a1b4afcb24c",
123130
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/provide-performance-feedback-request.json": "0de965bb23d9ab4bea34d29e1b10cfa56468a55874348e20a043aad26a59e226",
124131
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/provide-performance-feedback-response.json": "24ddc349f50477df23032614fbc1ce086cf45b239efddceba8bbdcc70a04f936",
132+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/sync-creatives-async-response-input-required.json": "92597bdc1976b57b753d816deefe3f846dd3597f1a8d3d0427260e0460eb5bf7",
133+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/sync-creatives-async-response-submitted.json": "d2cb2f4c5caf12c9ada785c932fa6d266e328fa8626be654cb5427ede10774ad",
134+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/sync-creatives-async-response-working.json": "cc2cf38baea399104ef05c6306b11f99ce67ef1b1fd4822115c9d44f0227a7f0",
125135
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/sync-creatives-request.json": "dda5d72f7158ec9314ef5fbefa27c934e98acee8487ca1f4daf987ab1731bf74",
126136
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/sync-creatives-response.json": "5bf401320c932f83744289b300ca00f24769267a7f4e79b1cb573a608f0fb666",
137+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/update-media-buy-async-response-input-required.json": "03f7de2aa861669ee5c89131a59dcfeda824954b9554c08ca094573f99114a02",
138+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/update-media-buy-async-response-submitted.json": "ecf98a45063ba45fe69ad31708fae25d9d2e36f2ad6e43cb8ac9e5a8e837bff7",
139+
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/update-media-buy-async-response-working.json": "b0f5bb5dd81a517b7f5f82bff68630cc5180ba143dd17f5dff1bab24f6e2f6ac",
127140
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/update-media-buy-request.json": "47ef9c59afefed45876604d0d37d3473cce6547047e27763d548c386bb59d72a",
128141
"https://adcontextprotocol.org/schemas/2.5.0/media-buy/update-media-buy-response.json": "c996d67019682c38930fc13b36838c5e30cbf383de34f84c952bee7a5be95f33",
129142
"https://adcontextprotocol.org/schemas/2.5.0/pricing-options/cpc-option.json": "d69d64a757308228b4eed223cb68cd838da41271c7fe0416d1286a2780ac8b17",
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"anyOf": [
4+
{
5+
"$ref": "../media-buy/get-products-response.json",
6+
"description": "Response for completed or failed get_products",
7+
"title": "GetProductsResponse"
8+
},
9+
{
10+
"$ref": "../media-buy/get-products-async-response-working.json",
11+
"description": "Progress data for working get_products",
12+
"title": "GetProductsAsyncWorking"
13+
},
14+
{
15+
"$ref": "../media-buy/get-products-async-response-input-required.json",
16+
"description": "Input requirements for get_products needing clarification",
17+
"title": "GetProductsAsyncInputRequired"
18+
},
19+
{
20+
"$ref": "../media-buy/get-products-async-response-submitted.json",
21+
"description": "Acknowledgment for submitted get_products (custom curation)",
22+
"title": "GetProductsAsyncSubmitted"
23+
},
24+
{
25+
"$ref": "../media-buy/create-media-buy-response.json",
26+
"description": "Response for completed or failed create_media_buy",
27+
"title": "CreateMediaBuyResponse"
28+
},
29+
{
30+
"$ref": "../media-buy/create-media-buy-async-response-working.json",
31+
"description": "Progress data for working create_media_buy",
32+
"title": "CreateMediaBuyAsyncWorking"
33+
},
34+
{
35+
"$ref": "../media-buy/create-media-buy-async-response-input-required.json",
36+
"description": "Input requirements for create_media_buy needing user input",
37+
"title": "CreateMediaBuyAsyncInputRequired"
38+
},
39+
{
40+
"$ref": "../media-buy/create-media-buy-async-response-submitted.json",
41+
"description": "Acknowledgment for submitted create_media_buy",
42+
"title": "CreateMediaBuyAsyncSubmitted"
43+
},
44+
{
45+
"$ref": "../media-buy/update-media-buy-response.json",
46+
"description": "Response for completed or failed update_media_buy",
47+
"title": "UpdateMediaBuyResponse"
48+
},
49+
{
50+
"$ref": "../media-buy/update-media-buy-async-response-working.json",
51+
"description": "Progress data for working update_media_buy",
52+
"title": "UpdateMediaBuyAsyncWorking"
53+
},
54+
{
55+
"$ref": "../media-buy/update-media-buy-async-response-input-required.json",
56+
"description": "Input requirements for update_media_buy needing user input",
57+
"title": "UpdateMediaBuyAsyncInputRequired"
58+
},
59+
{
60+
"$ref": "../media-buy/update-media-buy-async-response-submitted.json",
61+
"description": "Acknowledgment for submitted update_media_buy",
62+
"title": "UpdateMediaBuyAsyncSubmitted"
63+
},
64+
{
65+
"$ref": "../media-buy/sync-creatives-response.json",
66+
"description": "Response for completed or failed sync_creatives",
67+
"title": "SyncCreativesResponse"
68+
},
69+
{
70+
"$ref": "../media-buy/sync-creatives-async-response-working.json",
71+
"description": "Progress data for working sync_creatives",
72+
"title": "SyncCreativesAsyncWorking"
73+
},
74+
{
75+
"$ref": "../media-buy/sync-creatives-async-response-input-required.json",
76+
"description": "Input requirements for sync_creatives needing user input",
77+
"title": "SyncCreativesAsyncInputRequired"
78+
},
79+
{
80+
"$ref": "../media-buy/sync-creatives-async-response-submitted.json",
81+
"description": "Acknowledgment for submitted sync_creatives",
82+
"title": "SyncCreativesAsyncSubmitted"
83+
}
84+
],
85+
"description": "Union of all possible data payloads for async task webhook responses. For completed/failed statuses, use the main task response schema. For working/input-required/submitted, use the status-specific schemas.",
86+
"title": "AdCP Async Response Data"
87+
}
Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"additionalProperties": true,
4+
"description": "Standard envelope for HTTP-based push notifications (MCP). This defines the wire format sent to the URL configured in `pushNotificationConfig`. NOTE: This envelope is NOT used in A2A integration, which uses native Task/TaskStatusUpdateEvent messages with the AdCP payload nested in `status.message.parts[].data`.",
5+
"examples": [
6+
{
7+
"data": {
8+
"context_id": "ctx_abc123",
9+
"domain": "media-buy",
10+
"message": "Campaign budget $150K requires VP approval to proceed",
11+
"operation_id": "op_456",
12+
"result": {
13+
"errors": [
14+
{
15+
"code": "APPROVAL_REQUIRED",
16+
"field": "total_budget",
17+
"message": "Budget exceeds auto-approval threshold"
18+
}
19+
],
20+
"reason": "BUDGET_EXCEEDS_LIMIT"
21+
},
22+
"status": "input-required",
23+
"task_id": "task_456",
24+
"task_type": "create_media_buy",
25+
"timestamp": "2025-01-22T10:15:00Z"
26+
},
27+
"description": "Webhook for input-required status (human approval needed)"
28+
},
29+
{
30+
"data": {
31+
"domain": "media-buy",
32+
"message": "Media buy created successfully with 2 packages ready for creative assignment",
33+
"operation_id": "op_456",
34+
"result": {
35+
"buyer_ref": "nike_q1_campaign_2024",
36+
"creative_deadline": "2024-01-30T23:59:59Z",
37+
"media_buy_id": "mb_12345",
38+
"packages": [
39+
{
40+
"budget": 60000,
41+
"buyer_ref": "nike_ctv_package",
42+
"creative_assignments": [],
43+
"format_ids_to_provide": [
44+
{
45+
"agent_url": "https://creative.adcontextprotocol.org",
46+
"id": "video_standard_30s"
47+
}
48+
],
49+
"pacing": "even",
50+
"package_id": "pkg_12345_001",
51+
"paused": false,
52+
"pricing_option_id": "cpm-fixed-sports",
53+
"product_id": "ctv_sports_premium"
54+
}
55+
]
56+
},
57+
"status": "completed",
58+
"task_id": "task_456",
59+
"task_type": "create_media_buy",
60+
"timestamp": "2025-01-22T10:30:00Z"
61+
},
62+
"description": "Webhook for completed create_media_buy"
63+
},
64+
{
65+
"data": {
66+
"domain": "media-buy",
67+
"message": "Validating inventory availability...",
68+
"operation_id": "op_456",
69+
"result": {
70+
"current_step": "inventory_validation",
71+
"percentage": 50,
72+
"step_number": 2,
73+
"total_steps": 4
74+
},
75+
"status": "working",
76+
"task_id": "task_456",
77+
"task_type": "create_media_buy",
78+
"timestamp": "2025-01-22T10:20:00Z"
79+
},
80+
"description": "Webhook for working status with progress"
81+
},
82+
{
83+
"data": {
84+
"domain": "media-buy",
85+
"message": "Creative sync failed due to invalid asset URLs",
86+
"operation_id": "op_789",
87+
"result": {
88+
"errors": [
89+
{
90+
"code": "INVALID_ASSET_URL",
91+
"field": "creatives[0].asset_url",
92+
"message": "One or more creative assets could not be accessed"
93+
}
94+
]
95+
},
96+
"status": "failed",
97+
"task_id": "task_789",
98+
"task_type": "sync_creatives",
99+
"timestamp": "2025-01-22T10:46:00Z"
100+
},
101+
"description": "Webhook for failed sync_creatives"
102+
}
103+
],
104+
"properties": {
105+
"context_id": {
106+
"description": "Session/conversation identifier. Use this to continue the conversation if input-required status needs clarification or additional parameters.",
107+
"type": "string"
108+
},
109+
"domain": {
110+
"$ref": "../enums/adcp-domain.json",
111+
"description": "AdCP domain this task belongs to. Helps classify the operation type at a high level."
112+
},
113+
"message": {
114+
"description": "Human-readable summary of the current task state. Provides context about what happened and what action may be needed.",
115+
"type": "string"
116+
},
117+
"operation_id": {
118+
"description": "Publisher-defined operation identifier correlating a sequence of task updates across webhooks.",
119+
"type": "string"
120+
},
121+
"result": {
122+
"$ref": "async-response-data.json",
123+
"description": "Task-specific payload matching the status. For completed/failed, contains the full task response. For working/input-required/submitted, contains status-specific data. This is the data layer that AdCP specs - same structure used in A2A status.message.parts[].data."
124+
},
125+
"status": {
126+
"$ref": "../enums/task-status.json",
127+
"description": "Current task status. Webhooks are triggered for status changes after initial submission."
128+
},
129+
"task_id": {
130+
"description": "Unique identifier for this task. Use this to correlate webhook notifications with the original task submission.",
131+
"type": "string"
132+
},
133+
"task_type": {
134+
"$ref": "../enums/task-type.json",
135+
"description": "Type of AdCP operation that triggered this webhook. Enables webhook handlers to route to appropriate processing logic."
136+
},
137+
"timestamp": {
138+
"description": "ISO 8601 timestamp when this webhook was generated.",
139+
"format": "date-time",
140+
"type": "string"
141+
}
142+
},
143+
"required": [
144+
"task_id",
145+
"task_type",
146+
"status",
147+
"timestamp"
148+
],
149+
"title": "MCP Webhook Payload",
150+
"type": "object"
151+
}

0 commit comments

Comments
 (0)