Skip to content

Commit 1975ca9

Browse files
authored
Merge pull request #97 from adcontextprotocol/feat/update-types-for-latest-schemas
2 parents 3c25822 + cecc2dc commit 1975ca9

File tree

86 files changed

+3569
-870
lines changed

Some content is hidden

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

86 files changed

+3569
-870
lines changed

schemas/cache/.hashes.json

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

schemas/cache/adagents.json

Lines changed: 5 additions & 7 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": "https://adcontextprotocol.org/schemas/adagents.json",
6+
"$schema": "/schemas/latest/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": "https://adcontextprotocol.org/schemas/adagents.json",
11+
"$schema": "/schemas/latest/adagents.json",
1212
"authorized_agents": [
1313
{
1414
"authorization_type": "property_tags",
@@ -41,7 +41,7 @@
4141
}
4242
},
4343
{
44-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
44+
"$schema": "/schemas/latest/adagents.json",
4545
"authorized_agents": [
4646
{
4747
"authorization_type": "property_tags",
@@ -135,7 +135,7 @@
135135
}
136136
},
137137
{
138-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
138+
"$schema": "/schemas/latest/adagents.json",
139139
"authorized_agents": [
140140
{
141141
"authorization_type": "property_tags",
@@ -174,7 +174,7 @@
174174
}
175175
},
176176
{
177-
"$schema": "https://adcontextprotocol.org/schemas/adagents.json",
177+
"$schema": "/schemas/latest/adagents.json",
178178
"authorized_agents": [
179179
{
180180
"authorization_type": "publisher_properties",
@@ -226,7 +226,6 @@
226226
"description": "URL reference variant - points to the authoritative location of the adagents.json file",
227227
"properties": {
228228
"$schema": {
229-
"default": "https://adcontextprotocol.org/schemas/adagents.json",
230229
"description": "JSON Schema identifier for this adagents.json file",
231230
"type": "string"
232231
},
@@ -252,7 +251,6 @@
252251
"description": "Inline structure variant - contains full agent authorization data",
253252
"properties": {
254253
"$schema": {
255-
"default": "https://adcontextprotocol.org/schemas/adagents.json",
256254
"description": "JSON Schema identifier for this adagents.json file",
257255
"type": "string"
258256
},
Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"allOf": [
4-
{
5-
"$ref": "../../core/dimensions.json"
3+
"additionalProperties": false,
4+
"description": "Image asset with URL and dimensions",
5+
"properties": {
6+
"alt_text": {
7+
"description": "Alternative text for accessibility",
8+
"type": "string"
9+
},
10+
"format": {
11+
"description": "Image file format (jpg, png, gif, webp, etc.)",
12+
"type": "string"
13+
},
14+
"height": {
15+
"description": "Height in pixels",
16+
"minimum": 1,
17+
"type": "integer"
618
},
7-
{
8-
"additionalProperties": false,
9-
"properties": {
10-
"alt_text": {
11-
"description": "Alternative text for accessibility",
12-
"type": "string"
13-
},
14-
"format": {
15-
"description": "Image file format (jpg, png, gif, webp, etc.)",
16-
"type": "string"
17-
},
18-
"url": {
19-
"description": "URL to the image asset",
20-
"format": "uri",
21-
"type": "string"
22-
}
23-
},
24-
"required": [
25-
"url"
26-
],
27-
"type": "object"
19+
"url": {
20+
"description": "URL to the image asset",
21+
"format": "uri",
22+
"type": "string"
23+
},
24+
"width": {
25+
"description": "Width in pixels",
26+
"minimum": 1,
27+
"type": "integer"
2828
}
29+
},
30+
"required": [
31+
"url",
32+
"width",
33+
"height"
2934
],
30-
"description": "Image asset with URL and dimensions",
31-
"title": "Image Asset"
35+
"title": "Image Asset",
36+
"type": "object"
3237
}
Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"allOf": [
4-
{
5-
"$ref": "../../core/dimensions.json"
3+
"additionalProperties": false,
4+
"description": "Video asset with URL and specifications",
5+
"properties": {
6+
"bitrate_kbps": {
7+
"description": "Video bitrate in kilobits per second",
8+
"minimum": 1,
9+
"type": "integer"
10+
},
11+
"duration_ms": {
12+
"description": "Video duration in milliseconds",
13+
"minimum": 1,
14+
"type": "integer"
15+
},
16+
"format": {
17+
"description": "Video file format (mp4, webm, mov, etc.)",
18+
"type": "string"
619
},
7-
{
8-
"additionalProperties": false,
9-
"properties": {
10-
"bitrate_kbps": {
11-
"description": "Video bitrate in kilobits per second",
12-
"minimum": 1,
13-
"type": "integer"
14-
},
15-
"duration_ms": {
16-
"description": "Video duration in milliseconds",
17-
"minimum": 1,
18-
"type": "integer"
19-
},
20-
"format": {
21-
"description": "Video file format (mp4, webm, mov, etc.)",
22-
"type": "string"
23-
},
24-
"url": {
25-
"description": "URL to the video asset",
26-
"format": "uri",
27-
"type": "string"
28-
}
29-
},
30-
"required": [
31-
"url"
32-
],
33-
"type": "object"
20+
"height": {
21+
"description": "Height in pixels",
22+
"minimum": 1,
23+
"type": "integer"
24+
},
25+
"url": {
26+
"description": "URL to the video asset",
27+
"format": "uri",
28+
"type": "string"
29+
},
30+
"width": {
31+
"description": "Width in pixels",
32+
"minimum": 1,
33+
"type": "integer"
3434
}
35+
},
36+
"required": [
37+
"url",
38+
"width",
39+
"height"
3540
],
36-
"description": "Video asset with URL and specifications",
37-
"title": "Video Asset"
41+
"title": "Video Asset",
42+
"type": "object"
3843
}
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+
}

schemas/cache/core/dimensions.json

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

0 commit comments

Comments
 (0)