Skip to content

Commit 38600f2

Browse files
authored
Merge pull request #38 from adcontextprotocol/feat/type-adcp-context-type
feat: generate type adcp context field
2 parents 7947a94 + 92e90c9 commit 38600f2

33 files changed

+245
-2
lines changed

schemas/cache/1.0.0/activate-signal-request.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"$ref": "destination.json"
1717
},
1818
"minItems": 1
19+
},
20+
"context": {
21+
"type": "object",
22+
"description": "Initiator-provided context included in the request payload. Agents must echo this value back unchanged in responses and webhooks. Use for UI/session hints, correlation tokens, or tracking metadata.",
23+
"additionalProperties": true
1924
}
2025
},
2126
"required": [

schemas/cache/1.0.0/activate-signal-response.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
"items": {
1616
"$ref": "deployment.json"
1717
}
18+
},
19+
"context": {
20+
"type": "object",
21+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
22+
"additionalProperties": true
1823
}
1924
},
2025
"required": [
@@ -38,6 +43,11 @@
3843
"$ref": "error.json"
3944
},
4045
"minItems": 1
46+
},
47+
"context": {
48+
"type": "object",
49+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
50+
"additionalProperties": true
4151
}
4252
},
4353
"required": [

schemas/cache/1.0.0/build-creative-request.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"target_format_id": {
1717
"$ref": "format-id.json",
1818
"description": "Format ID to generate. The format definition specifies required input assets and output structure."
19+
},
20+
"context": {
21+
"type": "object",
22+
"description": "Initiator-provided context included in the request payload. Agentsmust echo this value back unchanged in responses and webhooks. Use for UI/session hints, correlation tokens, or tracking metadata.",
23+
"additionalProperties": true
1924
}
2025
},
2126
"required": [

schemas/cache/1.0.0/build-creative-response.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"creative_manifest": {
1313
"$ref": "creative-manifest.json",
1414
"description": "The generated or transformed creative manifest"
15+
},
16+
"context": {
17+
"type": "object",
18+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
19+
"additionalProperties": true
1520
}
1621
},
1722
"required": [
@@ -35,6 +40,11 @@
3540
"$ref": "error.json"
3641
},
3742
"minItems": 1
43+
},
44+
"context": {
45+
"type": "object",
46+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
47+
"additionalProperties": true
3848
}
3949
},
4050
"required": [

schemas/cache/1.0.0/create-media-buy-request.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
]
7676
}
7777
]
78+
},
79+
"context": {
80+
"type": "object",
81+
"description": "Initiator-provided context included in the request payload. Agentsmust echo this value back unchanged in responses and webhooks. Use for UI/session hints, correlation tokens, or tracking metadata.",
82+
"additionalProperties": true
7883
}
7984
},
8085
"required": [

schemas/cache/1.0.0/create-media-buy-response.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
],
4444
"additionalProperties": false
4545
}
46+
},
47+
"context": {
48+
"type": "object",
49+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
50+
"additionalProperties": true
4651
}
4752
},
4853
"required": [
@@ -68,6 +73,11 @@
6873
"$ref": "error.json"
6974
},
7075
"minItems": 1
76+
},
77+
"context": {
78+
"type": "object",
79+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
80+
"additionalProperties": true
7181
}
7282
},
7383
"required": [

schemas/cache/1.0.0/get-media-buy-delivery-request.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
"type": "string",
5858
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
5959
"description": "End date for reporting period (YYYY-MM-DD)"
60+
},
61+
"context": {
62+
"type": "object",
63+
"description": "Initiator-provided context included in the request payload. Agentsmust echo this value back unchanged in responses and webhooks. Use for UI/session hints, correlation tokens, or tracking metadata.",
64+
"additionalProperties": true
6065
}
6166
},
6267
"additionalProperties": false

schemas/cache/1.0.0/get-media-buy-delivery-response.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,28 @@
180180
"type": "number",
181181
"description": "Delivery pace (1.0 = on track, <1.0 = behind, >1.0 = ahead)",
182182
"minimum": 0
183+
},
184+
"pricing_model": {
185+
"$ref": "pricing-model.json",
186+
"description": "The pricing model used for this package (e.g., cpm, cpcv, cpp). Indicates how the package is billed and which metrics are most relevant for optimization."
187+
},
188+
"rate": {
189+
"type": "number",
190+
"description": "The pricing rate for this package in the specified currency. For fixed-rate pricing, this is the agreed rate (e.g., CPM rate of 12.50 means $12.50 per 1,000 impressions). For auction-based pricing, this represents the effective rate based on actual delivery.",
191+
"minimum": 0
192+
},
193+
"currency": {
194+
"type": "string",
195+
"description": "ISO 4217 currency code (e.g., USD, EUR, GBP) for this package's pricing. Indicates the currency in which the rate and spend values are denominated. Different packages can use different currencies when supported by the publisher.",
196+
"pattern": "^[A-Z]{3}$"
183197
}
184198
},
185199
"required": [
186200
"package_id",
187-
"spend"
201+
"spend",
202+
"pricing_model",
203+
"rate",
204+
"currency"
188205
]
189206
}
190207
]
@@ -236,6 +253,11 @@
236253
"items": {
237254
"$ref": "error.json"
238255
}
256+
},
257+
"context": {
258+
"type": "object",
259+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
260+
"additionalProperties": true
239261
}
240262
},
241263
"required": [

schemas/cache/1.0.0/get-products-request.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
}
5555
},
5656
"additionalProperties": false
57+
},
58+
"context": {
59+
"type": "object",
60+
"description": "Initiator-provided context included in the request payload. Agentsmust echo this value back unchanged in responses and webhooks. Use for UI/session hints, correlation tokens, or tracking metadata.",
61+
"additionalProperties": true
5762
}
5863
},
5964
"required": [],

schemas/cache/1.0.0/get-products-response.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
"items": {
1919
"$ref": "error.json"
2020
}
21+
},
22+
"context": {
23+
"type": "object",
24+
"description": "Initiator-provided context echoed inside the task payload. Opaque metadata such as UI/session hints, correlation tokens, or tracking identifiers.",
25+
"additionalProperties": true
2126
}
2227
},
2328
"required": [

0 commit comments

Comments
 (0)