@adcp/client 4.20.0 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/AGENTS.md +278 -0
  2. package/README.md +96 -61
  3. package/bin/adcp.js +342 -4
  4. package/dist/lib/agents/index.generated.d.ts +9 -1
  5. package/dist/lib/agents/index.generated.d.ts.map +1 -1
  6. package/dist/lib/agents/index.generated.js +12 -0
  7. package/dist/lib/agents/index.generated.js.map +1 -1
  8. package/dist/lib/core/AgentClient.d.ts.map +1 -1
  9. package/dist/lib/core/SingleAgentClient.d.ts +2 -1
  10. package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
  11. package/dist/lib/core/SingleAgentClient.js +10 -1
  12. package/dist/lib/core/SingleAgentClient.js.map +1 -1
  13. package/dist/lib/discovery/property-crawler.d.ts +4 -0
  14. package/dist/lib/discovery/property-crawler.d.ts.map +1 -1
  15. package/dist/lib/discovery/property-crawler.js +10 -2
  16. package/dist/lib/discovery/property-crawler.js.map +1 -1
  17. package/dist/lib/index.d.ts +9 -9
  18. package/dist/lib/index.d.ts.map +1 -1
  19. package/dist/lib/index.js +13 -5
  20. package/dist/lib/index.js.map +1 -1
  21. package/dist/lib/protocols/index.d.ts.map +1 -1
  22. package/dist/lib/protocols/index.js +8 -6
  23. package/dist/lib/protocols/index.js.map +1 -1
  24. package/dist/lib/protocols/mcp.d.ts.map +1 -1
  25. package/dist/lib/protocols/mcp.js +24 -11
  26. package/dist/lib/protocols/mcp.js.map +1 -1
  27. package/dist/lib/registry/cursor-store.d.ts +19 -0
  28. package/dist/lib/registry/cursor-store.d.ts.map +1 -0
  29. package/dist/lib/registry/cursor-store.js +44 -0
  30. package/dist/lib/registry/cursor-store.js.map +1 -0
  31. package/dist/lib/registry/index.d.ts +21 -3
  32. package/dist/lib/registry/index.d.ts.map +1 -1
  33. package/dist/lib/registry/index.js +94 -1
  34. package/dist/lib/registry/index.js.map +1 -1
  35. package/dist/lib/registry/property-registry.d.ts +57 -0
  36. package/dist/lib/registry/property-registry.d.ts.map +1 -0
  37. package/dist/lib/registry/property-registry.js +92 -0
  38. package/dist/lib/registry/property-registry.js.map +1 -0
  39. package/dist/lib/registry/sync.d.ts +4 -0
  40. package/dist/lib/registry/sync.d.ts.map +1 -1
  41. package/dist/lib/registry/sync.js +14 -0
  42. package/dist/lib/registry/sync.js.map +1 -1
  43. package/dist/lib/registry/types.d.ts +35 -2
  44. package/dist/lib/registry/types.d.ts.map +1 -1
  45. package/dist/lib/registry/types.generated.d.ts +349 -321
  46. package/dist/lib/registry/types.generated.d.ts.map +1 -1
  47. package/dist/lib/registry/types.generated.js +1 -1
  48. package/dist/lib/server/index.d.ts +2 -0
  49. package/dist/lib/server/index.d.ts.map +1 -1
  50. package/dist/lib/server/index.js +3 -1
  51. package/dist/lib/server/index.js.map +1 -1
  52. package/dist/lib/server/serve.d.ts +45 -0
  53. package/dist/lib/server/serve.d.ts.map +1 -0
  54. package/dist/lib/server/serve.js +86 -0
  55. package/dist/lib/server/serve.js.map +1 -0
  56. package/dist/lib/testing/agent-tester.d.ts +1 -1
  57. package/dist/lib/testing/agent-tester.d.ts.map +1 -1
  58. package/dist/lib/testing/agent-tester.js +10 -1
  59. package/dist/lib/testing/agent-tester.js.map +1 -1
  60. package/dist/lib/testing/client.d.ts.map +1 -1
  61. package/dist/lib/testing/client.js +3 -0
  62. package/dist/lib/testing/client.js.map +1 -1
  63. package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
  64. package/dist/lib/testing/compliance/comply.js +158 -203
  65. package/dist/lib/testing/compliance/comply.js.map +1 -1
  66. package/dist/lib/testing/compliance/storyboard-tracks.d.ts +24 -0
  67. package/dist/lib/testing/compliance/storyboard-tracks.d.ts.map +1 -0
  68. package/dist/lib/testing/compliance/storyboard-tracks.js +157 -0
  69. package/dist/lib/testing/compliance/storyboard-tracks.js.map +1 -0
  70. package/dist/lib/testing/compliance/types.d.ts +1 -1
  71. package/dist/lib/testing/compliance/types.d.ts.map +1 -1
  72. package/dist/lib/testing/index.d.ts +2 -1
  73. package/dist/lib/testing/index.d.ts.map +1 -1
  74. package/dist/lib/testing/index.js +26 -1
  75. package/dist/lib/testing/index.js.map +1 -1
  76. package/dist/lib/testing/orchestrator.d.ts +8 -0
  77. package/dist/lib/testing/orchestrator.d.ts.map +1 -1
  78. package/dist/lib/testing/orchestrator.js +11 -0
  79. package/dist/lib/testing/orchestrator.js.map +1 -1
  80. package/dist/lib/testing/scenarios/brand-rights.d.ts +23 -0
  81. package/dist/lib/testing/scenarios/brand-rights.d.ts.map +1 -0
  82. package/dist/lib/testing/scenarios/brand-rights.js +144 -0
  83. package/dist/lib/testing/scenarios/brand-rights.js.map +1 -0
  84. package/dist/lib/testing/scenarios/capabilities.d.ts.map +1 -1
  85. package/dist/lib/testing/scenarios/capabilities.js +11 -2
  86. package/dist/lib/testing/scenarios/capabilities.js.map +1 -1
  87. package/dist/lib/testing/scenarios/governance.d.ts.map +1 -1
  88. package/dist/lib/testing/scenarios/governance.js +5 -0
  89. package/dist/lib/testing/scenarios/governance.js.map +1 -1
  90. package/dist/lib/testing/scenarios/index.d.ts +2 -0
  91. package/dist/lib/testing/scenarios/index.d.ts.map +1 -1
  92. package/dist/lib/testing/scenarios/index.js +10 -2
  93. package/dist/lib/testing/scenarios/index.js.map +1 -1
  94. package/dist/lib/testing/scenarios/media-buy.d.ts.map +1 -1
  95. package/dist/lib/testing/scenarios/media-buy.js +22 -3
  96. package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
  97. package/dist/lib/testing/scenarios/trusted-match.d.ts +22 -0
  98. package/dist/lib/testing/scenarios/trusted-match.d.ts.map +1 -0
  99. package/dist/lib/testing/scenarios/trusted-match.js +128 -0
  100. package/dist/lib/testing/scenarios/trusted-match.js.map +1 -0
  101. package/dist/lib/testing/storyboard/context.d.ts +34 -0
  102. package/dist/lib/testing/storyboard/context.d.ts.map +1 -0
  103. package/dist/lib/testing/storyboard/context.js +257 -0
  104. package/dist/lib/testing/storyboard/context.js.map +1 -0
  105. package/dist/lib/testing/storyboard/index.d.ts +15 -0
  106. package/dist/lib/testing/storyboard/index.d.ts.map +1 -0
  107. package/dist/lib/testing/storyboard/index.js +48 -0
  108. package/dist/lib/testing/storyboard/index.js.map +1 -0
  109. package/dist/lib/testing/storyboard/loader.d.ts +53 -0
  110. package/dist/lib/testing/storyboard/loader.d.ts.map +1 -0
  111. package/dist/lib/testing/storyboard/loader.js +114 -0
  112. package/dist/lib/testing/storyboard/loader.js.map +1 -0
  113. package/dist/lib/testing/storyboard/path.d.ts +29 -0
  114. package/dist/lib/testing/storyboard/path.d.ts.map +1 -0
  115. package/dist/lib/testing/storyboard/path.js +121 -0
  116. package/dist/lib/testing/storyboard/path.js.map +1 -0
  117. package/dist/lib/testing/storyboard/request-builder.d.ts +28 -0
  118. package/dist/lib/testing/storyboard/request-builder.d.ts.map +1 -0
  119. package/dist/lib/testing/storyboard/request-builder.js +410 -0
  120. package/dist/lib/testing/storyboard/request-builder.js.map +1 -0
  121. package/dist/lib/testing/storyboard/runner.d.ts +24 -0
  122. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -0
  123. package/dist/lib/testing/storyboard/runner.js +280 -0
  124. package/dist/lib/testing/storyboard/runner.js.map +1 -0
  125. package/dist/lib/testing/storyboard/task-map.d.ts +21 -0
  126. package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -0
  127. package/dist/lib/testing/storyboard/task-map.js +84 -0
  128. package/dist/lib/testing/storyboard/task-map.js.map +1 -0
  129. package/dist/lib/testing/storyboard/types.d.ts +156 -0
  130. package/dist/lib/testing/storyboard/types.d.ts.map +1 -0
  131. package/dist/lib/testing/storyboard/types.js +10 -0
  132. package/dist/lib/testing/storyboard/types.js.map +1 -0
  133. package/dist/lib/testing/storyboard/validations.d.ts +17 -0
  134. package/dist/lib/testing/storyboard/validations.d.ts.map +1 -0
  135. package/dist/lib/testing/storyboard/validations.js +166 -0
  136. package/dist/lib/testing/storyboard/validations.js.map +1 -0
  137. package/dist/lib/testing/types.d.ts +4 -1
  138. package/dist/lib/testing/types.d.ts.map +1 -1
  139. package/dist/lib/types/core.generated.d.ts +36 -23
  140. package/dist/lib/types/core.generated.d.ts.map +1 -1
  141. package/dist/lib/types/core.generated.js +1 -1
  142. package/dist/lib/types/schemas.generated.d.ts +1098 -770
  143. package/dist/lib/types/schemas.generated.d.ts.map +1 -1
  144. package/dist/lib/types/schemas.generated.js +163 -76
  145. package/dist/lib/types/schemas.generated.js.map +1 -1
  146. package/dist/lib/types/tools.generated.d.ts +314 -24
  147. package/dist/lib/types/tools.generated.d.ts.map +1 -1
  148. package/dist/lib/utils/capabilities.d.ts +4 -1
  149. package/dist/lib/utils/capabilities.d.ts.map +1 -1
  150. package/dist/lib/utils/capabilities.js +25 -1
  151. package/dist/lib/utils/capabilities.js.map +1 -1
  152. package/dist/lib/utils/response-schemas.d.ts.map +1 -1
  153. package/dist/lib/utils/response-schemas.js +34 -3
  154. package/dist/lib/utils/response-schemas.js.map +1 -1
  155. package/dist/lib/utils/validate-user-agent.d.ts +8 -0
  156. package/dist/lib/utils/validate-user-agent.d.ts.map +1 -0
  157. package/dist/lib/utils/validate-user-agent.js +15 -0
  158. package/dist/lib/utils/validate-user-agent.js.map +1 -0
  159. package/dist/lib/version.d.ts +9 -3
  160. package/dist/lib/version.d.ts.map +1 -1
  161. package/dist/lib/version.js +10 -4
  162. package/dist/lib/version.js.map +1 -1
  163. package/docs/README.md +42 -0
  164. package/docs/guides/BUILD-AN-AGENT.md +292 -0
  165. package/docs/llms.txt +634 -0
  166. package/examples/README.md +106 -0
  167. package/examples/adcp.config.json +30 -0
  168. package/examples/basic-a2a.ts +76 -0
  169. package/examples/basic-mcp.ts +50 -0
  170. package/examples/batch-preview-test.ts +266 -0
  171. package/examples/conversation-client.ts +291 -0
  172. package/examples/debug-preview-response.ts +73 -0
  173. package/examples/debug-preview-with-logging.ts +50 -0
  174. package/examples/easy-config-demo.ts +242 -0
  175. package/examples/env-config.ts +51 -0
  176. package/examples/error-compliant-server.ts +237 -0
  177. package/examples/generative-creative-demo.ts +205 -0
  178. package/examples/inspect-card-formats.ts +161 -0
  179. package/examples/logger-usage.ts +165 -0
  180. package/examples/oauth-cli-example.ts +154 -0
  181. package/examples/pr78-async-patterns-demo.ts +247 -0
  182. package/examples/signals-agent.ts +162 -0
  183. package/examples/simple-getting-started.ts +225 -0
  184. package/examples/simple-protocol-demo.ts +75 -0
  185. package/examples/test-helpers-demo.ts +239 -0
  186. package/examples/zod-validation-example.ts +126 -0
  187. package/package.json +12 -2
  188. package/skills/adcp/SKILL.md +13 -2
  189. package/storyboards/audience_sync.yaml +199 -0
  190. package/storyboards/behavioral_analysis.yaml +244 -0
  191. package/storyboards/brand_rights.yaml +131 -0
  192. package/storyboards/creative_ad_server.yaml +171 -0
  193. package/storyboards/creative_sales_agent.yaml +169 -0
  194. package/storyboards/creative_template.yaml +306 -0
  195. package/storyboards/deterministic_testing.yaml +925 -0
  196. package/storyboards/error_compliance.yaml +231 -0
  197. package/storyboards/governance_content_standards.yaml +213 -0
  198. package/storyboards/governance_property_lists.yaml +372 -0
  199. package/storyboards/media_buy_catalog_creative.yaml +457 -0
  200. package/storyboards/media_buy_governance_escalation.yaml +467 -0
  201. package/storyboards/media_buy_guaranteed_approval.yaml +396 -0
  202. package/storyboards/media_buy_non_guaranteed.yaml +288 -0
  203. package/storyboards/media_buy_proposal_mode.yaml +369 -0
  204. package/storyboards/media_buy_seller.yaml +560 -0
  205. package/storyboards/media_buy_state_machine.yaml +254 -0
  206. package/storyboards/schema.yaml +65 -0
  207. package/storyboards/schema_validation.yaml +166 -0
  208. package/storyboards/si_session.yaml +384 -0
  209. package/storyboards/signal_marketplace.yaml +283 -0
  210. package/storyboards/signal_owned.yaml +211 -0
@@ -141,6 +141,10 @@ export type PostalCodeSystem = 'us_zip' | 'us_zip_plus_four' | 'gb_outward' | 'g
141
141
  * Request parameters for discovering or refining advertising products. buying_mode declares the buyer's intent: 'brief' for curated discovery, 'wholesale' for raw catalog access, or 'refine' to iterate on known products and proposals.
142
142
  */
143
143
  export interface GetProductsRequest {
144
+ /**
145
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
146
+ */
147
+ adcp_major_version?: number;
144
148
  /**
145
149
  * Declares buyer intent for this request. 'brief': publisher curates product recommendations from the provided brief. 'wholesale': buyer requests raw inventory to apply their own audiences — brief must not be provided, and proposals are omitted. 'refine': iterate on products and proposals from a previous get_products response using the refine array of change requests. v3 clients MUST include buying_mode. Sellers receiving requests from pre-v3 clients without buying_mode SHOULD default to 'brief'.
146
150
  */
@@ -636,9 +640,28 @@ export type PriceAdjustmentKind = 'fee' | 'discount' | 'commission' | 'settlemen
636
640
  */
637
641
  export type DemographicSystem = 'nielsen' | 'barb' | 'agf' | 'oztam' | 'mediametrie' | 'custom';
638
642
  /**
639
- * How to interpret the points array. 'spend' (default when omitted): points at ascending budget levels. 'availability': total available inventory, budget omitted. 'reach_freq': points at ascending reach/frequency targets. 'weekly'/'daily': metrics are per-period values. 'clicks'/'conversions': points at ascending outcome targets.
643
+ * A forecast value with optional confidence bounds. Either mid (point estimate) or both low and high (range) must be provided. mid represents the most likely outcome. low and high represent conservative and optimistic estimates. All three can be provided together.
644
+ */
645
+ export type ForecastRange = {
646
+ [k: string]: unknown | undefined;
647
+ } & {
648
+ /**
649
+ * Conservative (low-end) forecast value
650
+ */
651
+ low?: number;
652
+ /**
653
+ * Expected (most likely) forecast value
654
+ */
655
+ mid?: number;
656
+ /**
657
+ * Optimistic (high-end) forecast value
658
+ */
659
+ high?: number;
660
+ };
661
+ /**
662
+ * How to interpret the points array. 'spend' (default when omitted): points at ascending budget levels. 'availability': total available inventory, budget omitted. 'reach_freq': points at ascending reach/frequency targets. 'weekly'/'daily': metrics are per-period values. 'clicks'/'conversions': points at ascending outcome targets. 'package': each point is a distinct inventory package.
640
663
  */
641
- export type ForecastRangeUnit = 'spend' | 'availability' | 'reach_freq' | 'weekly' | 'daily' | 'clicks' | 'conversions';
664
+ export type ForecastRangeUnit = 'spend' | 'availability' | 'reach_freq' | 'weekly' | 'daily' | 'clicks' | 'conversions' | 'package';
642
665
  /**
643
666
  * Method used to produce this forecast
644
667
  */
@@ -1551,6 +1574,10 @@ export interface DeliveryForecast {
1551
1574
  * Target demographic code within the specified demographic_system. For Nielsen: P18-49, M25-54, W35+. For BARB: ABC1 Adults, 16-34. For AGF: E 14-49.
1552
1575
  */
1553
1576
  demographic?: string;
1577
+ /**
1578
+ * Third-party measurement provider whose data was used to produce this forecast. Distinct from demographic_system, which specifies demographic notation — measurement_source identifies whose data produced the forecast numbers. Should be present when measured_impressions is used. Lowercase slug format.
1579
+ */
1580
+ measurement_source?: string;
1554
1581
  reach_unit?: ReachUnit;
1555
1582
  /**
1556
1583
  * When this forecast was computed
@@ -1566,6 +1593,10 @@ export interface DeliveryForecast {
1566
1593
  * A forecast data point. When budget is present, the point pairs a spend level with expected delivery — multiple points at ascending budgets form a curve. When budget is omitted, the point represents total available inventory for the requested targeting and dates, independent of spend.
1567
1594
  */
1568
1595
  export interface ForecastPoint {
1596
+ /**
1597
+ * Human-readable name for this forecast point. Required when forecast_range_unit is 'package' so buyer agents can identify and reference individual packages. Optional for other forecast types.
1598
+ */
1599
+ label?: string;
1569
1600
  /**
1570
1601
  * Budget amount for this forecast point. Required for spend curves; omit for availability forecasts where the metrics represent total available inventory. For allocation-level forecasts, this is the absolute budget for that allocation (not the percentage). For proposal-level forecasts, this is the total proposal budget. When omitted, use metrics.spend to express the estimated cost of the available inventory.
1571
1602
  */
@@ -1587,26 +1618,12 @@ export interface ForecastPoint {
1587
1618
  follows?: ForecastRange;
1588
1619
  saves?: ForecastRange;
1589
1620
  profile_visits?: ForecastRange;
1621
+ measured_impressions?: ForecastRange;
1622
+ downloads?: ForecastRange;
1623
+ plays?: ForecastRange;
1590
1624
  [k: string]: ForecastRange | undefined;
1591
1625
  };
1592
1626
  }
1593
- /**
1594
- * A forecast value with optional low/high bounds. The mid value represents the most likely outcome. When low and high are provided, they represent conservative and optimistic estimates respectively.
1595
- */
1596
- export interface ForecastRange {
1597
- /**
1598
- * Conservative (low-end) forecast value
1599
- */
1600
- low?: number;
1601
- /**
1602
- * Expected (most likely) forecast value
1603
- */
1604
- mid: number;
1605
- /**
1606
- * Optimistic (high-end) forecast value
1607
- */
1608
- high?: number;
1609
- }
1610
1627
  /**
1611
1628
  * Business outcome measurement capabilities included with a product (e.g., incremental sales lift, brand lift, foot traffic). Distinct from delivery_measurement, which declares who counts ad impressions.
1612
1629
  */
@@ -2180,6 +2197,10 @@ export type DisclosurePersistence = 'continuous' | 'initial' | 'flexible';
2180
2197
  * Request parameters for discovering supported creative formats
2181
2198
  */
2182
2199
  export interface ListCreativeFormatsRequest {
2200
+ /**
2201
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
2202
+ */
2203
+ adcp_major_version?: number;
2183
2204
  /**
2184
2205
  * Return only these specific format IDs (e.g., from get_products response)
2185
2206
  */
@@ -2567,7 +2588,7 @@ export type OptimizationGoal = {
2567
2588
  */
2568
2589
  custom_event_name?: string;
2569
2590
  /**
2570
- * Which field in the event's custom_data carries the monetary value. The seller must use this field for value extraction and aggregation when computing ROAS and conversion value metrics. Required on at least one entry when target.kind is 'per_ad_spend' or 'maximize_value'. Common values: 'value', 'order_total', 'profit_margin'. This is not passed as a parameter to underlying platform APIs — the seller maps it to their platform's value ingestion mechanism.
2591
+ * Which field in the event's custom_data carries the monetary value. The seller must use this field for value extraction and aggregation when computing ROAS and conversion value metrics. Required on at least one entry when target.kind is 'per_ad_spend' or 'maximize_value' — sellers must reject these target kinds when no event source entry includes value_field. When present without a value-oriented target, the seller may use it for delivery reporting (conversion_value, roas) but must not change the optimization objective. Common values: 'value', 'order_total', 'profit_margin'. This is not passed as a parameter to underlying platform APIs — the seller maps it to their platform's value ingestion mechanism.
2571
2592
  */
2572
2593
  value_field?: string;
2573
2594
  /**
@@ -2576,7 +2597,7 @@ export type OptimizationGoal = {
2576
2597
  value_factor?: number;
2577
2598
  }[];
2578
2599
  /**
2579
- * Target cost or return for this event goal. When omitted, the seller optimizes for maximum conversions within budget.
2600
+ * Target cost or return for this event goal. When omitted, the seller optimizes for maximum conversion count within budget — regardless of whether value_field is present on event sources. The presence of value_field alone does not change the optimization objective; it only makes value available for reporting. An explicit target of maximize_value or per_ad_spend is required to steer toward value.
2580
2601
  */
2581
2602
  target?: {
2582
2603
  kind: 'cost_per';
@@ -2846,6 +2867,10 @@ export type AuthenticationScheme = 'Bearer' | 'HMAC-SHA256';
2846
2867
  * Request parameters for creating a media buy. Supports two modes: (1) Manual mode - provide packages array with explicit line item configurations, or (2) Proposal mode - provide proposal_id and total_budget to execute a proposal from get_products. One of packages or proposal_id must be provided.
2847
2868
  */
2848
2869
  export interface CreateMediaBuyRequest {
2870
+ /**
2871
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
2872
+ */
2873
+ adcp_major_version?: number;
2849
2874
  /**
2850
2875
  * Client-generated unique key for this request. If a request with the same idempotency_key and account has already been processed, the seller returns the existing media buy rather than creating a duplicate. MUST be unique per (seller, request) pair to prevent cross-seller correlation. Use a fresh UUID v4 for each request.
2851
2876
  */
@@ -2956,6 +2981,10 @@ export interface CreateMediaBuyRequest {
2956
2981
  * Package configuration for media buy creation
2957
2982
  */
2958
2983
  export interface PackageRequest {
2984
+ /**
2985
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
2986
+ */
2987
+ adcp_major_version?: number;
2959
2988
  /**
2960
2989
  * Product ID for this package
2961
2990
  */
@@ -4361,6 +4390,10 @@ export interface CreateMediaBuyError {
4361
4390
  * Request parameters for updating campaign and package settings
4362
4391
  */
4363
4392
  export interface UpdateMediaBuyRequest {
4393
+ /**
4394
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
4395
+ */
4396
+ adcp_major_version?: number;
4364
4397
  /**
4365
4398
  * Seller's ID of the media buy to update
4366
4399
  */
@@ -4573,6 +4606,10 @@ export interface UpdateMediaBuyError {
4573
4606
  * Request parameters for retrieving media buy status, creative approval state, and optional delivery snapshots
4574
4607
  */
4575
4608
  export interface GetMediaBuysRequest {
4609
+ /**
4610
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
4611
+ */
4612
+ adcp_major_version?: number;
4576
4613
  account?: AccountReference;
4577
4614
  /**
4578
4615
  * Array of media buy IDs to retrieve. When omitted, returns a paginated set of accessible media buys matching status_filter.
@@ -4851,6 +4888,10 @@ export type SortMetric = 'impressions' | 'spend' | 'clicks' | 'ctr' | 'views' |
4851
4888
  * Request parameters for retrieving comprehensive delivery metrics
4852
4889
  */
4853
4890
  export interface GetMediaBuyDeliveryRequest {
4891
+ /**
4892
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
4893
+ */
4894
+ adcp_major_version?: number;
4854
4895
  account?: AccountReference;
4855
4896
  /**
4856
4897
  * Array of media buy IDs to get delivery data for
@@ -5567,6 +5608,10 @@ export type FeedbackSource = 'buyer_attribution' | 'third_party_measurement' | '
5567
5608
  * Request payload for provide_performance_feedback task
5568
5609
  */
5569
5610
  export interface ProvidePerformanceFeedbackRequest {
5611
+ /**
5612
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
5613
+ */
5614
+ adcp_major_version?: number;
5570
5615
  /**
5571
5616
  * Seller's media buy identifier
5572
5617
  */
@@ -5640,6 +5685,10 @@ export interface ProvidePerformanceFeedbackError {
5640
5685
  * Request parameters for configuring event sources on an account with upsert semantics. Existing event sources matched by event_source_id are updated, new ones are created. When delete_missing is true, buyer-managed event sources on the account not in this request are removed. When event_sources is omitted, the call is discovery-only: it returns all event sources on the account without modification. The response always includes both synced and seller-managed event sources for full visibility.
5641
5686
  */
5642
5687
  export interface SyncEventSourcesRequest {
5688
+ /**
5689
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
5690
+ */
5691
+ adcp_major_version?: number;
5643
5692
  account: AccountReference;
5644
5693
  /**
5645
5694
  * Event sources to sync (create or update). When omitted, the call is discovery-only and returns all existing event sources on the account without modification.
@@ -5840,6 +5889,10 @@ export type UIDType = 'rampid' | 'id5' | 'uid2' | 'euid' | 'pairid' | 'maid' | '
5840
5889
  * Request parameters for logging marketing events
5841
5890
  */
5842
5891
  export interface LogEventRequest {
5892
+ /**
5893
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
5894
+ */
5895
+ adcp_major_version?: number;
5843
5896
  /**
5844
5897
  * Event source configured on the account via sync_event_sources
5845
5898
  */
@@ -6045,6 +6098,10 @@ export type ConsentBasis = 'consent' | 'legitimate_interest' | 'contract' | 'leg
6045
6098
  * Request parameters for managing CRM-based audiences on an account with upsert semantics. Existing audiences matched by audience_id are updated, new ones are created. Members are specified as delta operations: add appends new members, remove drops existing ones. Recommend no more than 100,000 members per call; for larger lists, chunk and call incrementally using add/remove deltas. When delete_missing is true, buyer-managed audiences on the account not in this request are removed — do not combine with omitted audiences or all buyer-managed audiences will be deleted. When audiences is omitted, the call is discovery-only: it returns all audiences on the account without modification.
6046
6099
  */
6047
6100
  export interface SyncAudiencesRequest {
6101
+ /**
6102
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
6103
+ */
6104
+ adcp_major_version?: number;
6048
6105
  account: AccountReference;
6049
6106
  /**
6050
6107
  * Audiences to sync (create or update). When omitted, the call is discovery-only and returns all existing audiences on the account without modification.
@@ -6200,6 +6257,10 @@ export type ValidationMode = 'strict' | 'lenient';
6200
6257
  * Request parameters for syncing catalog feeds with upsert semantics. Supports bulk operations across multiple catalog types (products, inventory, stores, promotions, offerings). Existing catalogs matched by catalog_id are updated, new ones are created. When catalogs is omitted, the call is discovery-only: returns all catalogs on the account without modification.
6201
6258
  */
6202
6259
  export interface SyncCatalogsRequest {
6260
+ /**
6261
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
6262
+ */
6263
+ adcp_major_version?: number;
6203
6264
  account: AccountReference;
6204
6265
  /**
6205
6266
  * Array of catalog feeds to sync (create or update). When omitted, the call is discovery-only and returns all existing catalogs on the account without modification.
@@ -6344,6 +6405,10 @@ export type PreviewOutputFormat = 'url' | 'html';
6344
6405
  * Request to transform, generate, or retrieve a creative manifest. Supports three modes: (1) generation from a brief or seed assets, (2) transformation of an existing manifest, (3) retrieval from a creative library by creative_id. Produces target manifest(s) in the specified format(s). Provide either target_format_id for a single format or target_format_ids for multiple formats.
6345
6406
  */
6346
6407
  export interface BuildCreativeRequest {
6408
+ /**
6409
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
6410
+ */
6411
+ adcp_major_version?: number;
6347
6412
  /**
6348
6413
  * Natural language instructions for the transformation or generation. For pure generation, this is the creative brief. For transformation, this provides guidance on how to adapt the creative. For refinement, this describes the desired changes.
6349
6414
  */
@@ -6784,6 +6849,10 @@ export interface BuildCreativeError {
6784
6849
  * Request to generate previews of one or more creative manifests. Accepts either a single creative request or an array of requests for batch processing.
6785
6850
  */
6786
6851
  export type PreviewCreativeRequest = {
6852
+ /**
6853
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
6854
+ */
6855
+ adcp_major_version?: number;
6787
6856
  /**
6788
6857
  * Discriminator indicating this is a single preview request
6789
6858
  */
@@ -6822,6 +6891,10 @@ export type PreviewCreativeRequest = {
6822
6891
  context?: ContextObject;
6823
6892
  ext?: ExtensionObject;
6824
6893
  } | {
6894
+ /**
6895
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
6896
+ */
6897
+ adcp_major_version?: number;
6825
6898
  /**
6826
6899
  * Discriminator indicating this is a batch preview request
6827
6900
  */
@@ -6867,6 +6940,10 @@ export type PreviewCreativeRequest = {
6867
6940
  context?: ContextObject;
6868
6941
  ext?: ExtensionObject;
6869
6942
  } | {
6943
+ /**
6944
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
6945
+ */
6946
+ adcp_major_version?: number;
6870
6947
  /**
6871
6948
  * Discriminator indicating this is a variant preview request
6872
6949
  */
@@ -7008,6 +7085,10 @@ export interface PreviewCreativeVariantResponse {
7008
7085
  export type GetCreativeDeliveryRequest = {
7009
7086
  [k: string]: unknown | undefined;
7010
7087
  } & {
7088
+ /**
7089
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
7090
+ */
7091
+ adcp_major_version?: number;
7011
7092
  account?: AccountReference;
7012
7093
  /**
7013
7094
  * Filter to specific media buys by publisher ID. If omitted, returns creative delivery across all matching media buys.
@@ -7066,7 +7147,7 @@ export type CreativeVariant = DeliveryMetrics & {
7066
7147
  /**
7067
7148
  * Type of identifier
7068
7149
  */
7069
- export type PropertyIdentifierTypes = 'domain' | 'subdomain' | 'network_id' | 'ios_bundle' | 'android_package' | 'apple_app_store_id' | 'google_play_id' | 'roku_store_id' | 'fire_tv_asin' | 'samsung_app_id' | 'apple_tv_bundle' | 'bundle_id' | 'venue_id' | 'screen_id' | 'openooh_venue_type' | 'rss_url' | 'apple_podcast_id' | 'spotify_collection_id' | 'podcast_guid';
7150
+ export type PropertyIdentifierTypes = 'domain' | 'subdomain' | 'network_id' | 'ios_bundle' | 'android_package' | 'apple_app_store_id' | 'google_play_id' | 'roku_store_id' | 'fire_tv_asin' | 'samsung_app_id' | 'apple_tv_bundle' | 'bundle_id' | 'venue_id' | 'screen_id' | 'openooh_venue_type' | 'rss_url' | 'apple_podcast_id' | 'spotify_collection_id' | 'podcast_guid' | 'station_id' | 'facility_id';
7070
7151
  /**
7071
7152
  * Response payload for get_creative_delivery task. Returns creative delivery data with variant-level breakdowns including manifests and metrics.
7072
7153
  */
@@ -7173,6 +7254,10 @@ export type SortDirection = 'asc' | 'desc';
7173
7254
  * Request parameters for querying creative assets from a creative library with filtering, sorting, and pagination. Implemented by any agent that hosts a creative library — creative agents (ad servers, creative platforms) and sales agents that manage creatives.
7174
7255
  */
7175
7256
  export interface ListCreativesRequest {
7257
+ /**
7258
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
7259
+ */
7260
+ adcp_major_version?: number;
7176
7261
  filters?: CreativeFilters;
7177
7262
  /**
7178
7263
  * Sorting parameters
@@ -7523,6 +7608,10 @@ export interface CreativeVariable {
7523
7608
  * Request parameters for syncing creative assets with upsert semantics - supports bulk operations, scoped updates, and assignment management
7524
7609
  */
7525
7610
  export interface SyncCreativesRequest {
7611
+ /**
7612
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
7613
+ */
7614
+ adcp_major_version?: number;
7526
7615
  account: AccountReference;
7527
7616
  /**
7528
7617
  * Array of creative assets to sync (create or update)
@@ -7661,6 +7750,10 @@ export interface SyncCreativesError {
7661
7750
  export type GetSignalsRequest = {
7662
7751
  [k: string]: unknown | undefined;
7663
7752
  } & {
7753
+ /**
7754
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
7755
+ */
7756
+ adcp_major_version?: number;
7664
7757
  account?: AccountReference;
7665
7758
  /**
7666
7759
  * Natural language description of the desired signals. When used alone, enables semantic discovery. When combined with signal_ids, provides context for the agent but signal_ids matches are returned first.
@@ -7971,6 +8064,10 @@ export interface FlatFeePricing {
7971
8064
  * Request parameters for activating or deactivating a signal on deployment targets
7972
8065
  */
7973
8066
  export interface ActivateSignalRequest {
8067
+ /**
8068
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8069
+ */
8070
+ adcp_major_version?: number;
7974
8071
  /**
7975
8072
  * Whether to activate or deactivate the signal. Deactivating removes the segment from downstream platforms, required when campaigns end to comply with data governance policies (GDPR, CCPA). Defaults to 'activate' when omitted.
7976
8073
  */
@@ -8032,11 +8129,15 @@ export type BasePropertySource = PublisherTagsSource | PublisherPropertyIDsSourc
8032
8129
  /**
8033
8130
  * Types of addressable advertising properties with verifiable ownership. Property types are a subset of media channels - they represent inventory surfaces that can be validated via adagents.json.
8034
8131
  */
8035
- export type PropertyType = 'website' | 'mobile_app' | 'ctv_app' | 'desktop_app' | 'dooh' | 'podcast' | 'radio' | 'streaming_audio' | 'ai_assistant';
8132
+ export type PropertyType = 'website' | 'mobile_app' | 'ctv_app' | 'desktop_app' | 'dooh' | 'podcast' | 'radio' | 'linear_tv' | 'streaming_audio' | 'ai_assistant';
8036
8133
  /**
8037
8134
  * Request parameters for creating a new property list
8038
8135
  */
8039
8136
  export interface CreatePropertyListRequest {
8137
+ /**
8138
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8139
+ */
8140
+ adcp_major_version?: number;
8040
8141
  /**
8041
8142
  * Human-readable name for the list
8042
8143
  */
@@ -8217,6 +8318,10 @@ export interface PropertyList {
8217
8318
  * Request parameters for updating an existing property list
8218
8319
  */
8219
8320
  export interface UpdatePropertyListRequest {
8321
+ /**
8322
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8323
+ */
8324
+ adcp_major_version?: number;
8220
8325
  /**
8221
8326
  * ID of the property list to update
8222
8327
  */
@@ -8257,6 +8362,10 @@ export interface UpdatePropertyListResponse {
8257
8362
  * Request parameters for retrieving a property list with resolved identifiers
8258
8363
  */
8259
8364
  export interface GetPropertyListRequest {
8365
+ /**
8366
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8367
+ */
8368
+ adcp_major_version?: number;
8260
8369
  /**
8261
8370
  * ID of the property list to retrieve
8262
8371
  */
@@ -8311,6 +8420,10 @@ export interface GetPropertyListResponse {
8311
8420
  * Request parameters for listing property lists
8312
8421
  */
8313
8422
  export interface ListPropertyListsRequest {
8423
+ /**
8424
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8425
+ */
8426
+ adcp_major_version?: number;
8314
8427
  /**
8315
8428
  * Filter to lists owned by this principal
8316
8429
  */
@@ -8338,6 +8451,10 @@ export interface ListPropertyListsResponse {
8338
8451
  * Request parameters for deleting a property list
8339
8452
  */
8340
8453
  export interface DeletePropertyListRequest {
8454
+ /**
8455
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8456
+ */
8457
+ adcp_major_version?: number;
8341
8458
  /**
8342
8459
  * ID of the property list to delete
8343
8460
  */
@@ -8367,6 +8484,10 @@ export interface DeletePropertyListResponse {
8367
8484
  * Request parameters for listing content standards configurations
8368
8485
  */
8369
8486
  export interface ListContentStandardsRequest {
8487
+ /**
8488
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8489
+ */
8490
+ adcp_major_version?: number;
8370
8491
  /**
8371
8492
  * Filter by channel
8372
8493
  */
@@ -8660,6 +8781,10 @@ export interface Artifact {
8660
8781
  * Request parameters for retrieving content safety policies
8661
8782
  */
8662
8783
  export interface GetContentStandardsRequest {
8784
+ /**
8785
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8786
+ */
8787
+ adcp_major_version?: number;
8663
8788
  /**
8664
8789
  * Identifier for the standards configuration to retrieve
8665
8790
  */
@@ -8679,6 +8804,10 @@ export type GetContentStandardsResponse = ContentStandards | {
8679
8804
  * Request parameters for creating a new content standards configuration
8680
8805
  */
8681
8806
  export interface CreateContentStandardsRequest {
8807
+ /**
8808
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8809
+ */
8810
+ adcp_major_version?: number;
8682
8811
  /**
8683
8812
  * Where this standards configuration applies
8684
8813
  */
@@ -8777,6 +8906,10 @@ export type CreateContentStandardsResponse = {
8777
8906
  * Request parameters for updating an existing content standards configuration. Creates a new version.
8778
8907
  */
8779
8908
  export interface UpdateContentStandardsRequest {
8909
+ /**
8910
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
8911
+ */
8912
+ adcp_major_version?: number;
8780
8913
  /**
8781
8914
  * ID of the standards configuration to update
8782
8915
  */
@@ -8892,6 +9025,10 @@ export interface UpdateContentStandardsError {
8892
9025
  * Request parameters for evaluating content during calibration. Multi-turn dialogue is handled at the protocol layer via contextId.
8893
9026
  */
8894
9027
  export interface CalibrateContentRequest {
9028
+ /**
9029
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9030
+ */
9031
+ adcp_major_version?: number;
8895
9032
  /**
8896
9033
  * Standards configuration to calibrate against
8897
9034
  */
@@ -8946,6 +9083,10 @@ export type CalibrateContentResponse = {
8946
9083
  * Request parameters for batch validating delivery records against content safety policies
8947
9084
  */
8948
9085
  export interface ValidateContentDeliveryRequest {
9086
+ /**
9087
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9088
+ */
9089
+ adcp_major_version?: number;
8949
9090
  /**
8950
9091
  * Standards configuration to validate against
8951
9092
  */
@@ -9049,6 +9190,10 @@ export type ValidateContentDeliveryResponse = {
9049
9190
  * Request parameters for retrieving content artifacts from a media buy for validation
9050
9191
  */
9051
9192
  export interface GetMediaBuyArtifactsRequest {
9193
+ /**
9194
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9195
+ */
9196
+ adcp_major_version?: number;
9052
9197
  account?: AccountReference;
9053
9198
  /**
9054
9199
  * Media buy to get artifacts from
@@ -9175,6 +9320,10 @@ export type GetMediaBuyArtifactsResponse = {
9175
9320
  * Request payload for the get_creative_features task. Submits a creative manifest for evaluation by a governance agent, which analyzes the creative and returns scored feature values (brand safety, content categorization, quality metrics, etc.).
9176
9321
  */
9177
9322
  export interface GetCreativeFeaturesRequest {
9323
+ /**
9324
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9325
+ */
9326
+ adcp_major_version?: number;
9178
9327
  creative_manifest: CreativeManifest;
9179
9328
  /**
9180
9329
  * Optional filter to specific features. If omitted, returns all available features.
@@ -9257,6 +9406,10 @@ export type DelegationAuthority = 'full' | 'execute_only' | 'propose_only';
9257
9406
  * Push campaign plans to the governance agent. A plan defines the authorized parameters for a campaign -- budget limits, channels, flight dates, and authorized markets.
9258
9407
  */
9259
9408
  export interface SyncPlansRequest {
9409
+ /**
9410
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9411
+ */
9412
+ adcp_major_version?: number;
9260
9413
  /**
9261
9414
  * One or more campaign plans to sync.
9262
9415
  */
@@ -9494,6 +9647,10 @@ export type OutcomeType = 'completed' | 'failed' | 'delivery';
9494
9647
  * Report the outcome of an action to the governance agent. Called by the orchestrator (buyer-side agent) after a seller responds. This is the 'after' half of the governance loop. Sellers do not call this task -- they report delivery data via check_governance with phase 'delivery'.
9495
9648
  */
9496
9649
  export interface ReportPlanOutcomeRequest {
9650
+ /**
9651
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9652
+ */
9653
+ adcp_major_version?: number;
9497
9654
  /**
9498
9655
  * The plan this outcome is for.
9499
9656
  */
@@ -9643,6 +9800,10 @@ export interface ReportPlanOutcomeResponse {
9643
9800
  export type GetPlanAuditLogsRequest = {
9644
9801
  [k: string]: unknown | undefined;
9645
9802
  } & {
9803
+ /**
9804
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
9805
+ */
9806
+ adcp_major_version?: number;
9646
9807
  /**
9647
9808
  * Plan IDs to retrieve. For a single plan, pass a one-element array.
9648
9809
  */
@@ -9911,6 +10072,10 @@ export type GovernancePhase = 'purchase' | 'modification' | 'delivery';
9911
10072
  * Universal governance check for campaign actions. The governance agent infers the check type from the fields present: tool+payload (intent check, orchestrator) or media_buy_id+planned_delivery (execution check, seller).
9912
10073
  */
9913
10074
  export interface CheckGovernanceRequest {
10075
+ /**
10076
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
10077
+ */
10078
+ adcp_major_version?: number;
9914
10079
  /**
9915
10080
  * Campaign governance plan identifier.
9916
10081
  */
@@ -10106,6 +10271,10 @@ export interface CheckGovernanceResponse {
10106
10271
  * Get offering details and availability before session handoff. Returns offering information, availability status, and optionally matching products based on context.
10107
10272
  */
10108
10273
  export interface SIGetOfferingRequest {
10274
+ /**
10275
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
10276
+ */
10277
+ adcp_major_version?: number;
10109
10278
  /**
10110
10279
  * Offering identifier from the catalog to get details for
10111
10280
  */
@@ -10236,6 +10405,10 @@ export interface SIGetOfferingResponse {
10236
10405
  * Host initiates a session with a brand agent
10237
10406
  */
10238
10407
  export interface SIInitiateSessionRequest {
10408
+ /**
10409
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
10410
+ */
10411
+ adcp_major_version?: number;
10239
10412
  /**
10240
10413
  * Conversation handoff from the host describing what the user needs
10241
10414
  */
@@ -10479,6 +10652,10 @@ export interface SIInitiateSessionResponse {
10479
10652
  export type SISendMessageRequest = {
10480
10653
  [k: string]: unknown | undefined;
10481
10654
  } & {
10655
+ /**
10656
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
10657
+ */
10658
+ adcp_major_version?: number;
10482
10659
  /**
10483
10660
  * Active session identifier
10484
10661
  */
@@ -10626,6 +10803,10 @@ export interface A2UIComponent {
10626
10803
  * Request to terminate an SI session
10627
10804
  */
10628
10805
  export interface SITerminateSessionRequest {
10806
+ /**
10807
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
10808
+ */
10809
+ adcp_major_version?: number;
10629
10810
  /**
10630
10811
  * Session identifier to terminate
10631
10812
  */
@@ -10710,6 +10891,10 @@ export interface SITerminateSessionResponse {
10710
10891
  * Request payload for get_adcp_capabilities task. Protocol-level capability discovery that works across all AdCP protocols.
10711
10892
  */
10712
10893
  export interface GetAdCPCapabilitiesRequest {
10894
+ /**
10895
+ * The AdCP major version the buyer's payloads conform to. When provided, the seller validates this against its supported major_versions and returns VERSION_UNSUPPORTED if the version is not in range. When omitted, the seller assumes the highest major version it supports.
10896
+ */
10897
+ adcp_major_version?: number;
10713
10898
  /**
10714
10899
  * Specific protocols to query capabilities for. If omitted, returns capabilities for all supported protocols.
10715
10900
  */
@@ -10730,7 +10915,7 @@ export interface GetAdCPCapabilitiesResponse {
10730
10915
  */
10731
10916
  adcp: {
10732
10917
  /**
10733
- * AdCP major versions supported by this seller. Major versions indicate breaking changes. When multiple versions are listed, the buyer declares its version during the capabilities handshake or via the adcp_version field on requests.
10918
+ * AdCP major versions supported by this seller. Major versions indicate breaking changes. When multiple versions are listed, the buyer declares its version via the adcp_major_version field on requests.
10734
10919
  */
10735
10920
  major_versions: number[];
10736
10921
  };
@@ -11306,6 +11491,10 @@ export interface GetAdCPCapabilitiesResponse {
11306
11491
  * Request parameters for listing accounts accessible to the authenticated agent
11307
11492
  */
11308
11493
  export interface ListAccountsRequest {
11494
+ /**
11495
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
11496
+ */
11497
+ adcp_major_version?: number;
11309
11498
  /**
11310
11499
  * Filter accounts by status. Omit to return accounts in all statuses.
11311
11500
  */
@@ -11338,6 +11527,10 @@ export interface ListAccountsResponse {
11338
11527
  * 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.
11339
11528
  */
11340
11529
  export interface SyncAccountsRequest {
11530
+ /**
11531
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
11532
+ */
11533
+ adcp_major_version?: number;
11341
11534
  /**
11342
11535
  * Advertiser accounts to sync
11343
11536
  */
@@ -11475,10 +11668,103 @@ export interface SyncAccountsError {
11475
11668
  context?: ContextObject;
11476
11669
  ext?: ExtensionObject;
11477
11670
  }
11671
+ /**
11672
+ * 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.
11673
+ */
11674
+ export interface SyncGovernanceRequest {
11675
+ /**
11676
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
11677
+ */
11678
+ adcp_major_version?: number;
11679
+ /**
11680
+ * Per-account governance agent configuration. Each entry pairs an account reference with the governance agents for that account.
11681
+ */
11682
+ accounts: {
11683
+ account: AccountReference;
11684
+ /**
11685
+ * Governance agent endpoints for this account. The seller calls these agents via check_governance during media buy lifecycle events.
11686
+ */
11687
+ governance_agents: {
11688
+ /**
11689
+ * Governance agent endpoint URL. Must use HTTPS.
11690
+ */
11691
+ url: string;
11692
+ /**
11693
+ * Authentication the seller presents when calling this governance agent.
11694
+ */
11695
+ authentication: {
11696
+ schemes: AuthenticationScheme[];
11697
+ /**
11698
+ * Authentication credential (e.g., Bearer token).
11699
+ */
11700
+ credentials: string;
11701
+ };
11702
+ /**
11703
+ * Governance categories this agent handles (e.g., ['budget_authority', 'strategic_alignment']). When omitted, the agent handles all categories.
11704
+ */
11705
+ categories?: string[];
11706
+ }[];
11707
+ }[];
11708
+ context?: ContextObject;
11709
+ ext?: ExtensionObject;
11710
+ }
11711
+ /**
11712
+ * Response from governance agent sync. Returns per-account results confirming sync, or operation-level errors on complete failure.
11713
+ */
11714
+ export type SyncGovernanceResponse = SyncGovernanceSuccess | SyncGovernanceError;
11715
+ /**
11716
+ * Sync processed — individual accounts may have errors
11717
+ */
11718
+ export interface SyncGovernanceSuccess {
11719
+ /**
11720
+ * Per-account sync results
11721
+ */
11722
+ accounts: {
11723
+ account: AccountReference;
11724
+ /**
11725
+ * Sync result. synced: governance agents persisted. failed: could not complete (see errors).
11726
+ */
11727
+ status: 'synced' | 'failed';
11728
+ /**
11729
+ * Governance agents now synced on this account. Reflects the persisted state after sync.
11730
+ */
11731
+ governance_agents?: {
11732
+ /**
11733
+ * Governance agent endpoint URL.
11734
+ */
11735
+ url: string;
11736
+ /**
11737
+ * Governance categories this agent handles.
11738
+ */
11739
+ categories?: string[];
11740
+ }[];
11741
+ /**
11742
+ * Per-account errors (only present when status is 'failed')
11743
+ */
11744
+ errors?: Error[];
11745
+ }[];
11746
+ context?: ContextObject;
11747
+ ext?: ExtensionObject;
11748
+ }
11749
+ /**
11750
+ * Operation failed completely, no accounts were processed
11751
+ */
11752
+ export interface SyncGovernanceError {
11753
+ /**
11754
+ * Operation-level errors (e.g., authentication failure, service unavailable)
11755
+ */
11756
+ errors: Error[];
11757
+ context?: ContextObject;
11758
+ ext?: ExtensionObject;
11759
+ }
11478
11760
  /**
11479
11761
  * 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.
11480
11762
  */
11481
11763
  export interface ReportUsageRequest {
11764
+ /**
11765
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
11766
+ */
11767
+ adcp_major_version?: number;
11482
11768
  /**
11483
11769
  * Client-generated unique key for this request. If a request with the same key has already been accepted, the server returns the original response without re-processing. MUST be unique per (seller, request) pair to prevent cross-seller correlation. Use a fresh UUID v4 for each request. Prevents duplicate billing on retries.
11484
11770
  */
@@ -11552,6 +11838,10 @@ export interface ReportUsageResponse {
11552
11838
  * Request financial status for an operator-billed account. Returns spend summary, credit/balance status, and invoice history. Only applicable when the seller declares account_financials capability.
11553
11839
  */
11554
11840
  export interface GetAccountFinancialsRequest {
11841
+ /**
11842
+ * The AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
11843
+ */
11844
+ adcp_major_version?: number;
11555
11845
  account: AccountReference;
11556
11846
  period?: DateRange;
11557
11847
  context?: ContextObject;