@adcp/sdk 12.1.0 → 13.0.0-rc.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 (464) hide show
  1. package/README.md +19 -3
  2. package/bin/adcp-fuzz.js +3 -1
  3. package/dist/lib/adapters/content-standards-adapter.d.mts +9 -9
  4. package/dist/lib/adapters/content-standards-adapter.d.ts +9 -9
  5. package/dist/lib/adapters/content-standards-adapter.d.ts.map +1 -1
  6. package/dist/lib/adapters/content-standards-adapter.js +22 -22
  7. package/dist/lib/adapters/content-standards-adapter.js.map +1 -1
  8. package/dist/lib/adapters/content-standards-adapter.mjs +18 -18
  9. package/dist/lib/adapters/content-standards-adapter.mjs.map +1 -1
  10. package/dist/lib/adapters/index.d.mts +2 -2
  11. package/dist/lib/adapters/index.d.ts +2 -2
  12. package/dist/lib/adapters/index.d.ts.map +1 -1
  13. package/dist/lib/adapters/index.js +10 -10
  14. package/dist/lib/adapters/index.js.map +1 -1
  15. package/dist/lib/adapters/index.mjs +9 -9
  16. package/dist/lib/adapters/index.mjs.map +1 -1
  17. package/dist/lib/auth/oauth/authorization-required.d.mts +3 -0
  18. package/dist/lib/auth/oauth/authorization-required.d.ts +3 -0
  19. package/dist/lib/auth/oauth/authorization-required.d.ts.map +1 -1
  20. package/dist/lib/auth/oauth/authorization-required.js +12 -9
  21. package/dist/lib/auth/oauth/authorization-required.js.map +1 -1
  22. package/dist/lib/auth/oauth/authorization-required.mjs +12 -9
  23. package/dist/lib/auth/oauth/authorization-required.mjs.map +1 -1
  24. package/dist/lib/auth/oauth/provider-cache.d.mts +7 -0
  25. package/dist/lib/auth/oauth/provider-cache.d.ts +8 -0
  26. package/dist/lib/auth/oauth/provider-cache.d.ts.map +1 -0
  27. package/dist/lib/auth/oauth/provider-cache.js +44 -0
  28. package/dist/lib/auth/oauth/provider-cache.js.map +1 -0
  29. package/dist/lib/auth/oauth/provider-cache.mjs +19 -0
  30. package/dist/lib/auth/oauth/provider-cache.mjs.map +1 -0
  31. package/dist/lib/conformance/invariants/uniformError.js +1 -1
  32. package/dist/lib/conformance/invariants/uniformError.js.map +1 -1
  33. package/dist/lib/conformance/invariants/uniformError.mjs +1 -1
  34. package/dist/lib/conformance/invariants/uniformError.mjs.map +1 -1
  35. package/dist/lib/conformance/runners.js +1 -1
  36. package/dist/lib/conformance/runners.js.map +1 -1
  37. package/dist/lib/conformance/runners.mjs +1 -1
  38. package/dist/lib/conformance/runners.mjs.map +1 -1
  39. package/dist/lib/conformance/seeder.js +5 -5
  40. package/dist/lib/conformance/seeder.js.map +1 -1
  41. package/dist/lib/conformance/seeder.mjs +5 -5
  42. package/dist/lib/conformance/seeder.mjs.map +1 -1
  43. package/dist/lib/core/ADCPMultiAgentClient.d.mts +26 -29
  44. package/dist/lib/core/ADCPMultiAgentClient.d.ts +26 -29
  45. package/dist/lib/core/ADCPMultiAgentClient.d.ts.map +1 -1
  46. package/dist/lib/core/ADCPMultiAgentClient.js +27 -19
  47. package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -1
  48. package/dist/lib/core/ADCPMultiAgentClient.mjs +27 -19
  49. package/dist/lib/core/ADCPMultiAgentClient.mjs.map +1 -1
  50. package/dist/lib/core/AgentClient.d.mts +148 -138
  51. package/dist/lib/core/AgentClient.d.ts +148 -138
  52. package/dist/lib/core/AgentClient.d.ts.map +1 -1
  53. package/dist/lib/core/AgentClient.js +174 -85
  54. package/dist/lib/core/AgentClient.js.map +1 -1
  55. package/dist/lib/core/AgentClient.mjs +174 -85
  56. package/dist/lib/core/AgentClient.mjs.map +1 -1
  57. package/dist/lib/core/AsyncHandler.d.mts +18 -16
  58. package/dist/lib/core/AsyncHandler.d.ts +18 -16
  59. package/dist/lib/core/AsyncHandler.d.ts.map +1 -1
  60. package/dist/lib/core/AsyncHandler.js +22 -1
  61. package/dist/lib/core/AsyncHandler.js.map +1 -1
  62. package/dist/lib/core/AsyncHandler.mjs +22 -1
  63. package/dist/lib/core/AsyncHandler.mjs.map +1 -1
  64. package/dist/lib/core/ConversationTypes.d.mts +6 -2
  65. package/dist/lib/core/ConversationTypes.d.ts +6 -2
  66. package/dist/lib/core/ConversationTypes.d.ts.map +1 -1
  67. package/dist/lib/core/ConversationTypes.js.map +1 -1
  68. package/dist/lib/core/CreativeAgentClient.d.mts +41 -17
  69. package/dist/lib/core/CreativeAgentClient.d.ts +41 -17
  70. package/dist/lib/core/CreativeAgentClient.d.ts.map +1 -1
  71. package/dist/lib/core/CreativeAgentClient.js +39 -12
  72. package/dist/lib/core/CreativeAgentClient.js.map +1 -1
  73. package/dist/lib/core/CreativeAgentClient.mjs +39 -12
  74. package/dist/lib/core/CreativeAgentClient.mjs.map +1 -1
  75. package/dist/lib/core/SingleAgentClient.d.mts +129 -52
  76. package/dist/lib/core/SingleAgentClient.d.ts +129 -52
  77. package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
  78. package/dist/lib/core/SingleAgentClient.js +1748 -218
  79. package/dist/lib/core/SingleAgentClient.js.map +1 -1
  80. package/dist/lib/core/SingleAgentClient.mjs +1758 -218
  81. package/dist/lib/core/SingleAgentClient.mjs.map +1 -1
  82. package/dist/lib/core/TaskExecutor.d.mts +9 -0
  83. package/dist/lib/core/TaskExecutor.d.ts +9 -0
  84. package/dist/lib/core/TaskExecutor.d.ts.map +1 -1
  85. package/dist/lib/core/TaskExecutor.js +137 -44
  86. package/dist/lib/core/TaskExecutor.js.map +1 -1
  87. package/dist/lib/core/TaskExecutor.mjs +137 -44
  88. package/dist/lib/core/TaskExecutor.mjs.map +1 -1
  89. package/dist/lib/index.d.mts +111 -17
  90. package/dist/lib/index.d.ts +111 -17
  91. package/dist/lib/index.d.ts.map +1 -1
  92. package/dist/lib/index.js +94 -94
  93. package/dist/lib/index.js.map +1 -1
  94. package/dist/lib/index.mjs +93 -94
  95. package/dist/lib/index.mjs.map +1 -1
  96. package/dist/lib/net/ssrf-fetch.d.mts +13 -1
  97. package/dist/lib/net/ssrf-fetch.d.ts +13 -1
  98. package/dist/lib/net/ssrf-fetch.d.ts.map +1 -1
  99. package/dist/lib/net/ssrf-fetch.js +14 -7
  100. package/dist/lib/net/ssrf-fetch.js.map +1 -1
  101. package/dist/lib/net/ssrf-fetch.mjs +14 -7
  102. package/dist/lib/net/ssrf-fetch.mjs.map +1 -1
  103. package/dist/lib/protocols/a2a.d.mts +2 -2
  104. package/dist/lib/protocols/a2a.d.ts +2 -2
  105. package/dist/lib/protocols/a2a.d.ts.map +1 -1
  106. package/dist/lib/protocols/a2a.js +14 -9
  107. package/dist/lib/protocols/a2a.js.map +1 -1
  108. package/dist/lib/protocols/a2a.mjs +14 -9
  109. package/dist/lib/protocols/a2a.mjs.map +1 -1
  110. package/dist/lib/protocols/index.d.mts +20 -3
  111. package/dist/lib/protocols/index.d.ts +20 -3
  112. package/dist/lib/protocols/index.d.ts.map +1 -1
  113. package/dist/lib/protocols/index.js +44 -31
  114. package/dist/lib/protocols/index.js.map +1 -1
  115. package/dist/lib/protocols/index.mjs +44 -32
  116. package/dist/lib/protocols/index.mjs.map +1 -1
  117. package/dist/lib/protocols/mcp-modern.d.ts.map +1 -1
  118. package/dist/lib/protocols/mcp-modern.js +87 -12
  119. package/dist/lib/protocols/mcp-modern.js.map +1 -1
  120. package/dist/lib/protocols/mcp-modern.mjs +89 -12
  121. package/dist/lib/protocols/mcp-modern.mjs.map +1 -1
  122. package/dist/lib/protocols/mcp-tasks.d.mts +3 -0
  123. package/dist/lib/protocols/mcp-tasks.d.ts +3 -0
  124. package/dist/lib/protocols/mcp-tasks.d.ts.map +1 -1
  125. package/dist/lib/protocols/mcp-tasks.js +21 -11
  126. package/dist/lib/protocols/mcp-tasks.js.map +1 -1
  127. package/dist/lib/protocols/mcp-tasks.mjs +21 -11
  128. package/dist/lib/protocols/mcp-tasks.mjs.map +1 -1
  129. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  130. package/dist/lib/server/create-adcp-server.d.mts +6 -0
  131. package/dist/lib/server/create-adcp-server.d.ts +6 -0
  132. package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
  133. package/dist/lib/server/create-adcp-server.js +295 -48
  134. package/dist/lib/server/create-adcp-server.js.map +1 -1
  135. package/dist/lib/server/create-adcp-server.mjs +301 -50
  136. package/dist/lib/server/create-adcp-server.mjs.map +1 -1
  137. package/dist/lib/server/decisioning/assembly-helpers.d.mts +27 -13
  138. package/dist/lib/server/decisioning/assembly-helpers.d.ts +27 -13
  139. package/dist/lib/server/decisioning/assembly-helpers.d.ts.map +1 -1
  140. package/dist/lib/server/decisioning/assembly-helpers.js +136 -14
  141. package/dist/lib/server/decisioning/assembly-helpers.js.map +1 -1
  142. package/dist/lib/server/decisioning/assembly-helpers.mjs +134 -13
  143. package/dist/lib/server/decisioning/assembly-helpers.mjs.map +1 -1
  144. package/dist/lib/server/decisioning/index.d.mts +13 -12
  145. package/dist/lib/server/decisioning/index.d.ts +13 -12
  146. package/dist/lib/server/decisioning/index.d.ts.map +1 -1
  147. package/dist/lib/server/decisioning/index.js +6 -0
  148. package/dist/lib/server/decisioning/index.js.map +1 -1
  149. package/dist/lib/server/decisioning/index.mjs +9 -3
  150. package/dist/lib/server/decisioning/index.mjs.map +1 -1
  151. package/dist/lib/server/decisioning/list-helpers.d.mts +13 -3
  152. package/dist/lib/server/decisioning/list-helpers.d.ts +13 -3
  153. package/dist/lib/server/decisioning/list-helpers.d.ts.map +1 -1
  154. package/dist/lib/server/decisioning/list-helpers.js +13 -3
  155. package/dist/lib/server/decisioning/list-helpers.js.map +1 -1
  156. package/dist/lib/server/decisioning/list-helpers.mjs +11 -2
  157. package/dist/lib/server/decisioning/list-helpers.mjs.map +1 -1
  158. package/dist/lib/server/decisioning/manifest-helpers.d.mts +5 -3
  159. package/dist/lib/server/decisioning/manifest-helpers.d.ts +5 -3
  160. package/dist/lib/server/decisioning/manifest-helpers.d.ts.map +1 -1
  161. package/dist/lib/server/decisioning/manifest-helpers.js.map +1 -1
  162. package/dist/lib/server/decisioning/manifest-helpers.mjs.map +1 -1
  163. package/dist/lib/server/decisioning/proposal/dispatch.d.mts +2 -2
  164. package/dist/lib/server/decisioning/proposal/dispatch.d.ts +2 -2
  165. package/dist/lib/server/decisioning/proposal/dispatch.d.ts.map +1 -1
  166. package/dist/lib/server/decisioning/proposal/dispatch.js.map +1 -1
  167. package/dist/lib/server/decisioning/proposal/dispatch.mjs.map +1 -1
  168. package/dist/lib/server/decisioning/proposal/index.d.mts +1 -1
  169. package/dist/lib/server/decisioning/proposal/index.d.ts +1 -1
  170. package/dist/lib/server/decisioning/proposal/index.d.ts.map +1 -1
  171. package/dist/lib/server/decisioning/proposal/index.js.map +1 -1
  172. package/dist/lib/server/decisioning/proposal/index.mjs.map +1 -1
  173. package/dist/lib/server/decisioning/proposal/lifecycle.d.mts +3 -2
  174. package/dist/lib/server/decisioning/proposal/lifecycle.d.ts +3 -2
  175. package/dist/lib/server/decisioning/proposal/lifecycle.d.ts.map +1 -1
  176. package/dist/lib/server/decisioning/proposal/lifecycle.js.map +1 -1
  177. package/dist/lib/server/decisioning/proposal/lifecycle.mjs.map +1 -1
  178. package/dist/lib/server/decisioning/proposal/mock-manager.d.mts +3 -3
  179. package/dist/lib/server/decisioning/proposal/mock-manager.d.ts +3 -3
  180. package/dist/lib/server/decisioning/proposal/mock-manager.d.ts.map +1 -1
  181. package/dist/lib/server/decisioning/proposal/mock-manager.js.map +1 -1
  182. package/dist/lib/server/decisioning/proposal/mock-manager.mjs.map +1 -1
  183. package/dist/lib/server/decisioning/proposal/types.d.mts +10 -6
  184. package/dist/lib/server/decisioning/proposal/types.d.ts +10 -6
  185. package/dist/lib/server/decisioning/proposal/types.d.ts.map +1 -1
  186. package/dist/lib/server/decisioning/proposal/types.js.map +1 -1
  187. package/dist/lib/server/decisioning/proposal/types.mjs.map +1 -1
  188. package/dist/lib/server/decisioning/runtime/from-platform.d.mts +21 -2
  189. package/dist/lib/server/decisioning/runtime/from-platform.d.ts +21 -2
  190. package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
  191. package/dist/lib/server/decisioning/runtime/from-platform.js +754 -81
  192. package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
  193. package/dist/lib/server/decisioning/runtime/from-platform.mjs +763 -81
  194. package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
  195. package/dist/lib/server/decisioning/specialisms/brand-rights.d.mts +9 -9
  196. package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts +9 -9
  197. package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts.map +1 -1
  198. package/dist/lib/server/decisioning/specialisms/brand-rights.js.map +1 -1
  199. package/dist/lib/server/decisioning/specialisms/content-standards.d.mts +16 -16
  200. package/dist/lib/server/decisioning/specialisms/content-standards.d.ts +16 -16
  201. package/dist/lib/server/decisioning/specialisms/content-standards.d.ts.map +1 -1
  202. package/dist/lib/server/decisioning/specialisms/content-standards.js.map +1 -1
  203. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.mts +15 -13
  204. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts +15 -13
  205. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts.map +1 -1
  206. package/dist/lib/server/decisioning/specialisms/creative-ad-server.js.map +1 -1
  207. package/dist/lib/server/decisioning/specialisms/creative.d.mts +12 -11
  208. package/dist/lib/server/decisioning/specialisms/creative.d.ts +12 -11
  209. package/dist/lib/server/decisioning/specialisms/creative.d.ts.map +1 -1
  210. package/dist/lib/server/decisioning/specialisms/creative.js.map +1 -1
  211. package/dist/lib/server/decisioning/specialisms/sales.d.mts +25 -15
  212. package/dist/lib/server/decisioning/specialisms/sales.d.ts +25 -15
  213. package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
  214. package/dist/lib/server/decisioning/specialisms/sales.js.map +1 -1
  215. package/dist/lib/server/index.d.mts +3 -3
  216. package/dist/lib/server/index.d.ts +3 -3
  217. package/dist/lib/server/index.d.ts.map +1 -1
  218. package/dist/lib/server/index.js +72 -72
  219. package/dist/lib/server/index.js.map +1 -1
  220. package/dist/lib/server/index.mjs +36 -36
  221. package/dist/lib/server/index.mjs.map +1 -1
  222. package/dist/lib/server/legacy/v5/index.d.mts +1 -0
  223. package/dist/lib/server/legacy/v5/index.d.ts +1 -0
  224. package/dist/lib/server/legacy/v5/index.d.ts.map +1 -1
  225. package/dist/lib/server/legacy/v5/index.js +74 -1
  226. package/dist/lib/server/legacy/v5/index.js.map +1 -1
  227. package/dist/lib/server/legacy/v5/index.mjs +75 -1
  228. package/dist/lib/server/legacy/v5/index.mjs.map +1 -1
  229. package/dist/lib/server/responses.d.mts +2 -2
  230. package/dist/lib/server/responses.d.ts +2 -2
  231. package/dist/lib/server/responses.js.map +1 -1
  232. package/dist/lib/server/responses.mjs.map +1 -1
  233. package/dist/lib/testing/client.d.ts.map +1 -1
  234. package/dist/lib/testing/client.js +13 -5
  235. package/dist/lib/testing/client.js.map +1 -1
  236. package/dist/lib/testing/client.mjs +13 -5
  237. package/dist/lib/testing/client.mjs.map +1 -1
  238. package/dist/lib/testing/compliance/comply.d.mts +1 -1
  239. package/dist/lib/testing/compliance/comply.d.ts +1 -1
  240. package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
  241. package/dist/lib/testing/compliance/comply.js +16 -6
  242. package/dist/lib/testing/compliance/comply.js.map +1 -1
  243. package/dist/lib/testing/compliance/comply.mjs +16 -6
  244. package/dist/lib/testing/compliance/comply.mjs.map +1 -1
  245. package/dist/lib/testing/scenarios/brand-rights.js +6 -6
  246. package/dist/lib/testing/scenarios/brand-rights.js.map +1 -1
  247. package/dist/lib/testing/scenarios/brand-rights.mjs +6 -6
  248. package/dist/lib/testing/scenarios/brand-rights.mjs.map +1 -1
  249. package/dist/lib/testing/scenarios/creative.js +7 -7
  250. package/dist/lib/testing/scenarios/creative.js.map +1 -1
  251. package/dist/lib/testing/scenarios/creative.mjs +7 -7
  252. package/dist/lib/testing/scenarios/creative.mjs.map +1 -1
  253. package/dist/lib/testing/scenarios/discovery.js +2 -2
  254. package/dist/lib/testing/scenarios/discovery.js.map +1 -1
  255. package/dist/lib/testing/scenarios/discovery.mjs +2 -2
  256. package/dist/lib/testing/scenarios/discovery.mjs.map +1 -1
  257. package/dist/lib/testing/scenarios/edge-cases.js +11 -11
  258. package/dist/lib/testing/scenarios/edge-cases.js.map +1 -1
  259. package/dist/lib/testing/scenarios/edge-cases.mjs +11 -11
  260. package/dist/lib/testing/scenarios/edge-cases.mjs.map +1 -1
  261. package/dist/lib/testing/scenarios/governance.d.ts.map +1 -1
  262. package/dist/lib/testing/scenarios/governance.js +16 -22
  263. package/dist/lib/testing/scenarios/governance.js.map +1 -1
  264. package/dist/lib/testing/scenarios/governance.mjs +16 -22
  265. package/dist/lib/testing/scenarios/governance.mjs.map +1 -1
  266. package/dist/lib/testing/scenarios/media-buy.js +5 -5
  267. package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
  268. package/dist/lib/testing/scenarios/media-buy.mjs +5 -5
  269. package/dist/lib/testing/scenarios/media-buy.mjs.map +1 -1
  270. package/dist/lib/testing/scenarios/schema-compliance.js +1 -1
  271. package/dist/lib/testing/scenarios/schema-compliance.js.map +1 -1
  272. package/dist/lib/testing/scenarios/schema-compliance.mjs +1 -1
  273. package/dist/lib/testing/scenarios/schema-compliance.mjs.map +1 -1
  274. package/dist/lib/testing/scenarios/trusted-match.d.ts.map +1 -1
  275. package/dist/lib/testing/scenarios/trusted-match.js +4 -3
  276. package/dist/lib/testing/scenarios/trusted-match.js.map +1 -1
  277. package/dist/lib/testing/scenarios/trusted-match.mjs +4 -3
  278. package/dist/lib/testing/scenarios/trusted-match.mjs.map +1 -1
  279. package/dist/lib/testing/storyboard/probes.d.mts +6 -0
  280. package/dist/lib/testing/storyboard/probes.d.ts +6 -0
  281. package/dist/lib/testing/storyboard/probes.d.ts.map +1 -1
  282. package/dist/lib/testing/storyboard/probes.js +16 -5
  283. package/dist/lib/testing/storyboard/probes.js.map +1 -1
  284. package/dist/lib/testing/storyboard/probes.mjs +16 -5
  285. package/dist/lib/testing/storyboard/probes.mjs.map +1 -1
  286. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
  287. package/dist/lib/testing/storyboard/runner.js +6 -2
  288. package/dist/lib/testing/storyboard/runner.js.map +1 -1
  289. package/dist/lib/testing/storyboard/runner.mjs +6 -2
  290. package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
  291. package/dist/lib/testing/storyboard/shape-drift-hints.d.mts +3 -4
  292. package/dist/lib/testing/storyboard/shape-drift-hints.d.ts +3 -4
  293. package/dist/lib/testing/storyboard/shape-drift-hints.d.ts.map +1 -1
  294. package/dist/lib/testing/storyboard/shape-drift-hints.js +27 -27
  295. package/dist/lib/testing/storyboard/shape-drift-hints.js.map +1 -1
  296. package/dist/lib/testing/storyboard/shape-drift-hints.mjs +27 -27
  297. package/dist/lib/testing/storyboard/shape-drift-hints.mjs.map +1 -1
  298. package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -1
  299. package/dist/lib/testing/storyboard/task-map.js +43 -5
  300. package/dist/lib/testing/storyboard/task-map.js.map +1 -1
  301. package/dist/lib/testing/storyboard/task-map.mjs +43 -5
  302. package/dist/lib/testing/storyboard/task-map.mjs.map +1 -1
  303. package/dist/lib/testing/test-helpers.d.mts +2 -2
  304. package/dist/lib/testing/test-helpers.d.ts +2 -2
  305. package/dist/lib/testing/test-helpers.js.map +1 -1
  306. package/dist/lib/testing/test-helpers.mjs.map +1 -1
  307. package/dist/lib/testing/types.d.mts +7 -1
  308. package/dist/lib/testing/types.d.ts +7 -1
  309. package/dist/lib/testing/types.d.ts.map +1 -1
  310. package/dist/lib/testing/types.js.map +1 -1
  311. package/dist/lib/types/adcp.d.mts +14 -14
  312. package/dist/lib/types/adcp.d.ts +14 -14
  313. package/dist/lib/types/adcp.d.ts.map +1 -1
  314. package/dist/lib/types/adcp.js.map +1 -1
  315. package/dist/lib/types/adcp.mjs.map +1 -1
  316. package/dist/lib/types/index.d.mts +2 -2
  317. package/dist/lib/types/index.d.ts +2 -2
  318. package/dist/lib/types/index.d.ts.map +1 -1
  319. package/dist/lib/types/index.js.map +1 -1
  320. package/dist/lib/types/index.mjs.map +1 -1
  321. package/dist/lib/utils/capabilities.d.mts +6 -0
  322. package/dist/lib/utils/capabilities.d.ts +6 -0
  323. package/dist/lib/utils/capabilities.d.ts.map +1 -1
  324. package/dist/lib/utils/capabilities.js +4 -0
  325. package/dist/lib/utils/capabilities.js.map +1 -1
  326. package/dist/lib/utils/capabilities.mjs +4 -0
  327. package/dist/lib/utils/capabilities.mjs.map +1 -1
  328. package/dist/lib/utils/creative-delivery.d.mts +52 -10
  329. package/dist/lib/utils/creative-delivery.d.ts +52 -10
  330. package/dist/lib/utils/creative-delivery.d.ts.map +1 -1
  331. package/dist/lib/utils/creative-delivery.js +104 -9
  332. package/dist/lib/utils/creative-delivery.js.map +1 -1
  333. package/dist/lib/utils/creative-delivery.mjs +104 -8
  334. package/dist/lib/utils/creative-delivery.mjs.map +1 -1
  335. package/dist/lib/utils/format-assets.d.mts +41 -38
  336. package/dist/lib/utils/format-assets.d.ts +41 -38
  337. package/dist/lib/utils/format-assets.d.ts.map +1 -1
  338. package/dist/lib/utils/format-assets.js +3 -1
  339. package/dist/lib/utils/format-assets.js.map +1 -1
  340. package/dist/lib/utils/format-assets.mjs +3 -1
  341. package/dist/lib/utils/format-assets.mjs.map +1 -1
  342. package/dist/lib/utils/index.d.mts +8 -8
  343. package/dist/lib/utils/index.d.ts +8 -8
  344. package/dist/lib/utils/index.d.ts.map +1 -1
  345. package/dist/lib/utils/index.js +11 -9
  346. package/dist/lib/utils/index.js.map +1 -1
  347. package/dist/lib/utils/index.mjs +9 -8
  348. package/dist/lib/utils/index.mjs.map +1 -1
  349. package/dist/lib/utils/preview-utils.d.mts +11 -8
  350. package/dist/lib/utils/preview-utils.d.ts +11 -8
  351. package/dist/lib/utils/preview-utils.d.ts.map +1 -1
  352. package/dist/lib/utils/preview-utils.js +4 -4
  353. package/dist/lib/utils/preview-utils.js.map +1 -1
  354. package/dist/lib/utils/preview-utils.mjs +3 -3
  355. package/dist/lib/utils/preview-utils.mjs.map +1 -1
  356. package/dist/lib/utils/tool-request-schemas.d.mts +2 -2
  357. package/dist/lib/utils/tool-request-schemas.d.ts +2 -2
  358. package/dist/lib/v2/projection/aao-reference-formats.json +492 -0
  359. package/dist/lib/v2/projection/augment-response.d.mts +31 -11
  360. package/dist/lib/v2/projection/augment-response.d.ts +31 -11
  361. package/dist/lib/v2/projection/augment-response.d.ts.map +1 -1
  362. package/dist/lib/v2/projection/augment-response.js +233 -27
  363. package/dist/lib/v2/projection/augment-response.js.map +1 -1
  364. package/dist/lib/v2/projection/augment-response.mjs +232 -27
  365. package/dist/lib/v2/projection/augment-response.mjs.map +1 -1
  366. package/dist/lib/v2/projection/builders.d.mts +7 -6
  367. package/dist/lib/v2/projection/builders.d.ts +7 -6
  368. package/dist/lib/v2/projection/builders.d.ts.map +1 -1
  369. package/dist/lib/v2/projection/builders.js +11 -8
  370. package/dist/lib/v2/projection/builders.js.map +1 -1
  371. package/dist/lib/v2/projection/builders.mjs +9 -6
  372. package/dist/lib/v2/projection/builders.mjs.map +1 -1
  373. package/dist/lib/v2/projection/catalog-snapshot.d.mts +47 -0
  374. package/dist/lib/v2/projection/catalog-snapshot.d.ts +48 -0
  375. package/dist/lib/v2/projection/catalog-snapshot.d.ts.map +1 -0
  376. package/dist/lib/v2/projection/catalog-snapshot.js +291 -0
  377. package/dist/lib/v2/projection/catalog-snapshot.js.map +1 -0
  378. package/dist/lib/v2/projection/catalog-snapshot.mjs +265 -0
  379. package/dist/lib/v2/projection/catalog-snapshot.mjs.map +1 -0
  380. package/dist/lib/v2/projection/catalog.d.mts +23 -2
  381. package/dist/lib/v2/projection/catalog.d.ts +23 -2
  382. package/dist/lib/v2/projection/catalog.d.ts.map +1 -1
  383. package/dist/lib/v2/projection/catalog.js +34 -10
  384. package/dist/lib/v2/projection/catalog.js.map +1 -1
  385. package/dist/lib/v2/projection/catalog.mjs +33 -10
  386. package/dist/lib/v2/projection/catalog.mjs.map +1 -1
  387. package/dist/lib/v2/projection/creative-delivery.d.mts +157 -0
  388. package/dist/lib/v2/projection/creative-delivery.d.ts +158 -0
  389. package/dist/lib/v2/projection/creative-delivery.d.ts.map +1 -0
  390. package/dist/lib/v2/projection/creative-delivery.js +967 -0
  391. package/dist/lib/v2/projection/creative-delivery.js.map +1 -0
  392. package/dist/lib/v2/projection/creative-delivery.mjs +941 -0
  393. package/dist/lib/v2/projection/creative-delivery.mjs.map +1 -0
  394. package/dist/lib/v2/projection/index.d.mts +8 -6
  395. package/dist/lib/v2/projection/index.d.ts +8 -6
  396. package/dist/lib/v2/projection/index.d.ts.map +1 -1
  397. package/dist/lib/v2/projection/index.js +26 -4
  398. package/dist/lib/v2/projection/index.js.map +1 -1
  399. package/dist/lib/v2/projection/index.mjs +28 -4
  400. package/dist/lib/v2/projection/index.mjs.map +1 -1
  401. package/dist/lib/v2/projection/legacy-metadata.d.mts +21 -0
  402. package/dist/lib/v2/projection/legacy-metadata.d.ts +22 -0
  403. package/dist/lib/v2/projection/legacy-metadata.d.ts.map +1 -0
  404. package/dist/lib/v2/projection/legacy-metadata.js +73 -0
  405. package/dist/lib/v2/projection/legacy-metadata.js.map +1 -0
  406. package/dist/lib/v2/projection/legacy-metadata.mjs +45 -0
  407. package/dist/lib/v2/projection/legacy-metadata.mjs.map +1 -0
  408. package/dist/lib/v2/projection/types.d.mts +29 -23
  409. package/dist/lib/v2/projection/types.d.ts +29 -23
  410. package/dist/lib/v2/projection/types.d.ts.map +1 -1
  411. package/dist/lib/v2/projection/types.js.map +1 -1
  412. package/dist/lib/v2/projection/v1-to-v2.d.mts +29 -6
  413. package/dist/lib/v2/projection/v1-to-v2.d.ts +29 -6
  414. package/dist/lib/v2/projection/v1-to-v2.d.ts.map +1 -1
  415. package/dist/lib/v2/projection/v1-to-v2.js +218 -9
  416. package/dist/lib/v2/projection/v1-to-v2.js.map +1 -1
  417. package/dist/lib/v2/projection/v1-to-v2.mjs +219 -10
  418. package/dist/lib/v2/projection/v1-to-v2.mjs.map +1 -1
  419. package/dist/lib/v2/projection/v2-to-v1.d.mts +31 -2
  420. package/dist/lib/v2/projection/v2-to-v1.d.ts +31 -2
  421. package/dist/lib/v2/projection/v2-to-v1.d.ts.map +1 -1
  422. package/dist/lib/v2/projection/v2-to-v1.js +138 -7
  423. package/dist/lib/v2/projection/v2-to-v1.js.map +1 -1
  424. package/dist/lib/v2/projection/v2-to-v1.mjs +135 -6
  425. package/dist/lib/v2/projection/v2-to-v1.mjs.map +1 -1
  426. package/dist/lib/v2/projection/write-side.d.mts +12 -13
  427. package/dist/lib/v2/projection/write-side.d.ts +12 -13
  428. package/dist/lib/v2/projection/write-side.d.ts.map +1 -1
  429. package/dist/lib/v2/projection/write-side.js +16 -12
  430. package/dist/lib/v2/projection/write-side.js.map +1 -1
  431. package/dist/lib/v2/projection/write-side.mjs +16 -12
  432. package/dist/lib/v2/projection/write-side.mjs.map +1 -1
  433. package/dist/lib/version.d.mts +3 -3
  434. package/dist/lib/version.d.ts +3 -3
  435. package/dist/lib/version.d.ts.map +1 -1
  436. package/dist/lib/version.js +3 -3
  437. package/dist/lib/version.js.map +1 -1
  438. package/dist/lib/version.mjs +3 -3
  439. package/dist/lib/version.mjs.map +1 -1
  440. package/docs/guides/BUILD-AN-AGENT.md +7 -2
  441. package/docs/guides/PREVIEW-ASSET-DURABILITY.md +6 -2
  442. package/docs/llms.txt +1 -0
  443. package/examples/README.md +1 -1
  444. package/examples/batch-preview-test.ts +3 -3
  445. package/examples/conversation-client.ts +2 -2
  446. package/examples/debug-preview-response.ts +1 -1
  447. package/examples/decisioning-platform-broadcast-tv.ts +10 -4
  448. package/examples/decisioning-platform-mock-seller.ts +16 -9
  449. package/examples/decisioning-platform-programmatic.ts +18 -7
  450. package/examples/error-compliant-server.ts +26 -16
  451. package/examples/generative-creative-demo.ts +7 -19
  452. package/examples/hello_creative_adapter_ad_server.ts +37 -16
  453. package/examples/hello_creative_adapter_template.ts +12 -10
  454. package/examples/hello_seller_adapter_guaranteed.ts +52 -23
  455. package/examples/hello_seller_adapter_multi_tenant.ts +6 -3
  456. package/examples/hello_seller_adapter_non_guaranteed.ts +54 -26
  457. package/examples/hello_seller_adapter_proposal_mode.ts +40 -14
  458. package/examples/hello_seller_adapter_social.ts +2 -7
  459. package/examples/inspect-card-formats.ts +1 -1
  460. package/examples/simple-getting-started.ts +1 -1
  461. package/examples/test-helpers-demo.ts +1 -1
  462. package/package.json +2 -2
  463. package/skills/build-decisioning-creative-template/SKILL.md +11 -11
  464. package/skills/build-decisioning-platform/advanced/REFERENCE.md +8 -2
@@ -23,7 +23,6 @@ __export(AgentClient_exports, {
23
23
  module.exports = __toCommonJS(AgentClient_exports);
24
24
  var import_node_crypto = require("node:crypto");
25
25
  var import_SingleAgentClient = require('./SingleAgentClient.js');
26
- var import_augment_response = require('../v2/projection/augment-response.js');
27
26
  const NON_TERMINAL_STATES = /* @__PURE__ */ new Set([
28
27
  "working",
29
28
  "input-required",
@@ -223,90 +222,91 @@ class AgentClient {
223
222
  verifyWebhookSignature(rawBodyOrPayload, signature, timestamp) {
224
223
  return this.client.verifyWebhookSignature(rawBodyOrPayload, signature, timestamp);
225
224
  }
225
+ // ====== MEDIA BUY TASKS ======
226
+ /**
227
+ * Discover available advertising products.
228
+ *
229
+ * Response products expose only canonical `format_options[]`, regardless of
230
+ * the seller's negotiated wire version. The SDK performs any required legacy
231
+ * translation below this public boundary.
232
+ *
233
+ * Projection failures surface portably on `result.data.errors[]` and are
234
+ * also mirrored on `result.data.projection.diagnostics` (structured
235
+ * `source: 'sdk'` markers; codes mirror the spec's error-code
236
+ * vocabulary plus three SDK-local codes — see the projection
237
+ * module's `ProjectionDiagnostic` type for the full set).
238
+ *
239
+ * Protocol tooling that must inspect raw seller emission uses the explicit
240
+ * deprecated `getProductsLegacy()` method.
241
+ */
226
242
  async getProducts(params, inputHandler, options) {
227
- const { project, ...sessionOptions } = options ?? {};
228
243
  const result = await this.client.getProducts(params, inputHandler, {
229
- ...this.withSession("get_products", sessionOptions)
244
+ ...options,
245
+ ...this.withSession("get_products", options)
230
246
  });
231
247
  this.retainSession(result);
232
- if (project === false) {
233
- return result;
234
- }
235
- if (result.success && result.status === "completed" && result.data) {
236
- const { response, diagnostics } = (0, import_augment_response.withFormatOptions)(result.data);
237
- const augmented = {
238
- ...response,
239
- projection: { diagnostics }
240
- };
241
- return {
242
- ...result,
243
- data: augmented
244
- };
245
- }
246
248
  return result;
247
249
  }
248
- /**
249
- * List available creative formats
250
- */
251
- async listCreativeFormats(params, inputHandler, options) {
252
- const result = await this.client.listCreativeFormats(params, inputHandler, {
250
+ /** @deprecated Explicit raw-wire escape hatch for migration tooling. */
251
+ async getProductsLegacy(params, inputHandler, options) {
252
+ const result = await this.client.getProductsLegacy(params, inputHandler, {
253
+ ...this.withSession("get_products", options)
254
+ });
255
+ this.retainSession(result);
256
+ return result;
257
+ }
258
+ /** @deprecated Migration-only access to a legacy named-format catalog. */
259
+ async listCreativeFormatsLegacy(params, inputHandler, options) {
260
+ const result = await this.client.listCreativeFormatsLegacy(params, inputHandler, {
253
261
  ...this.withSession("list_creative_formats", options)
254
262
  });
255
263
  this.retainSession(result);
256
264
  return result;
257
265
  }
266
+ /** @deprecated Migration-only access to legacy creative transformer declarations. */
267
+ async listTransformersLegacy(params, inputHandler, options) {
268
+ const result = await this.client.listTransformersLegacy(params, inputHandler, {
269
+ ...this.withSession("list_transformers", options)
270
+ });
271
+ this.retainSession(result);
272
+ return result;
273
+ }
258
274
  /**
259
275
  * Create a new media buy.
260
276
  *
261
- * **3.1+ format-option write flow (preferred at 3.1.0-beta.5+).** After
262
- * `getProducts()` returns the V2-augmented response (`format_options[]`
263
- * auto-populated), pick declarations by `format_option_id` and use
264
- * `packageRefsForFormatOptions` to author the package. The helper emits
265
- * BOTH `format_option_refs[]` (the 3.1+ path) AND `format_ids[]`
266
- * (legacy named-format dual emission) so a single request works against
267
- * both format-option-aware and legacy sellers.
277
+ * Discover canonical `format_options[]` with `getProducts()`, select a
278
+ * `format_option_id`, and send only canonical package and creative fields.
279
+ * Compatibility translation for an older seller happens below this method.
268
280
  *
269
281
  * ```ts
270
- * import { packageRefsForFormatOptions } from '@adcp/sdk/v2/projection';
271
- *
272
282
  * const { data: { products } } = await agent.getProducts({ brief: '...' });
273
283
  * const product = products[0];
284
+ * const format = product.format_options[0];
274
285
  *
275
286
  * await agent.createMediaBuy({
276
287
  * packages: [{
277
288
  * package_id: 'pkg-1',
278
289
  * product_id: product.product_id,
279
290
  * pricing_option_id: product.pricing_options[0].pricing_option_id,
280
- * ...packageRefsForFormatOptions(product, ['nytimes_mrec', 'nytimes_video_30s']),
281
- * // ↑ spreads `{ format_option_refs, format_ids? }`
291
+ * format_option_refs: [{
292
+ * scope: 'product',
293
+ * format_option_id: format.format_option_id
294
+ * }],
295
+ * creatives: [{
296
+ * creative_id: 'hero',
297
+ * format_kind: format.format_kind,
298
+ * format_option_ref: {
299
+ * scope: 'product',
300
+ * format_option_id: format.format_option_id
301
+ * },
302
+ * assets: { image: { url: 'https://cdn.example/hero.png' } }
303
+ * }],
282
304
  * budget: { currency: 'USD', total: 5000 },
283
305
  * }],
284
306
  * // ...
285
307
  * });
286
308
  * ```
287
309
  *
288
- * The resulting wire payload for the package looks like:
289
- *
290
- * ```json
291
- * {
292
- * "package_id": "pkg-1",
293
- * "product_id": "...",
294
- * "pricing_option_id": "...",
295
- * "format_option_refs": [
296
- * {"scope": "product", "format_option_id": "nytimes_mrec"},
297
- * {"scope": "product", "format_option_id": "nytimes_video_30s"}
298
- * ],
299
- * "format_ids": [
300
- * {"agent_url": "https://creative.adcontextprotocol.org/", "id": "display_300x250_image"},
301
- * {"agent_url": "https://creative.adcontextprotocol.org/", "id": "video_standard_30s"}
302
- * ],
303
- * "budget": {"currency": "USD", "total": 5000}
304
- * }
305
- * ```
306
- *
307
- * `format_ids` is omitted entirely when every chosen format option is V2-only
308
- * (the spec's "neither present" fallback fires for v1 sellers in that case).
309
- *
310
310
  * **Inline creative fallback.** Sellers that do not advertise a creative
311
311
  * library (`supportsSyncCreatives(await agent.getCapabilities()) === false`)
312
312
  * can still accept package-scoped creative uploads when they advertise
@@ -317,17 +317,8 @@ class AgentClient {
317
317
  * assignments for create payloads, give each package a stable key such as
318
318
  * `context.buyer_ref`, or pass a custom `packageId` resolver.
319
319
  *
320
- * For adopters writing strictly to v1 sellers or for products whose
321
- * `format_options[]` entries don't publish `format_option_id` — see the
322
- * `legacyFormatIdsFromOptions` / `tryLegacyFormatIdsFromOptions` /
323
- * `legacyFormatIdsForFormatOption` helpers in `@adcp/sdk/v2/projection`.
324
- *
325
- * `packageRefsForFormatOptions` throws `FormatOptionRefsLookupError`
326
- * with a normalized `.code` in `{ 'unknown_format_option_id' |
327
- * 'format_option_refs_not_published' | 'empty_input' | 'invalid_product' }`
328
- * — branch on `.code` to fall back to the `legacy*` helpers when the
329
- * product is V1-shape only. See the helper JSDoc for the full
330
- * recovery example.
320
+ * Existing applications that still hold old named-format payloads must opt
321
+ * into `createMediaBuyLegacy()` explicitly.
331
322
  */
332
323
  async createMediaBuy(params, inputHandler, options) {
333
324
  const result = await this.client.createMediaBuy(params, inputHandler, {
@@ -336,6 +327,14 @@ class AgentClient {
336
327
  this.retainSession(result);
337
328
  return result;
338
329
  }
330
+ /** @deprecated Use `createMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
331
+ async createMediaBuyLegacy(params, inputHandler, options) {
332
+ const result = await this.client.createMediaBuyLegacy(params, inputHandler, {
333
+ ...this.withSession("create_media_buy", options)
334
+ });
335
+ this.retainSession(result);
336
+ return result;
337
+ }
339
338
  /**
340
339
  * Update an existing media buy.
341
340
  *
@@ -345,6 +344,8 @@ class AgentClient {
345
344
  * request. Build the package patch with `inlineCreativesForPackages()` and
346
345
  * preflight it with `preflightUpdateMediaBuy(currentBuy, patch)` so
347
346
  * `available_actions[]` allows `replace_creative` before dispatch.
347
+ * Use `format_kind` and `format_option_ref` for every creative in the patch;
348
+ * the SDK handles any negotiated compatibility conversion.
348
349
  */
349
350
  async updateMediaBuy(params, inputHandler, options) {
350
351
  const result = await this.client.updateMediaBuy(params, inputHandler, {
@@ -353,6 +354,14 @@ class AgentClient {
353
354
  this.retainSession(result);
354
355
  return result;
355
356
  }
357
+ /** @deprecated Use `updateMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
358
+ async updateMediaBuyLegacy(params, inputHandler, options) {
359
+ const result = await this.client.updateMediaBuyLegacy(params, inputHandler, {
360
+ ...this.withSession("update_media_buy", options)
361
+ });
362
+ this.retainSession(result);
363
+ return result;
364
+ }
356
365
  /**
357
366
  * Sync creative assets into the seller's reusable creative library.
358
367
  *
@@ -365,6 +374,11 @@ class AgentClient {
365
374
  * send a separate `create_media_buy` or `update_media_buy` request with its
366
375
  * own idempotency key. If neither capability is advertised, creative upload
367
376
  * is not available through this SDK helper surface.
377
+ *
378
+ * A sync request does not carry product declarations. When compatibility
379
+ * translation needs seller selection metadata, pass
380
+ * `options.creativeFormatProjection.selectorContainers` with the routed
381
+ * package/product selectors. Assignments scope each creative to its package.
368
382
  */
369
383
  async syncCreatives(params, inputHandler, options) {
370
384
  const result = await this.client.syncCreatives(params, inputHandler, {
@@ -373,11 +387,32 @@ class AgentClient {
373
387
  this.retainSession(result);
374
388
  return result;
375
389
  }
390
+ /** @deprecated Use `syncCreatives`; this explicit compatibility surface accepts legacy creative `format_id`. */
391
+ async syncCreativesLegacy(params, inputHandler, options) {
392
+ const result = await this.client.syncCreativesLegacy(params, inputHandler, {
393
+ ...this.withSession("sync_creatives", options)
394
+ });
395
+ this.retainSession(result);
396
+ return result;
397
+ }
376
398
  /**
377
399
  * List creative assets
378
400
  */
379
401
  async listCreatives(params, inputHandler, options) {
380
402
  const result = await this.client.listCreatives(params, inputHandler, {
403
+ ...options,
404
+ ...this.withSession("list_creatives", options)
405
+ });
406
+ this.retainSession(result);
407
+ return result;
408
+ }
409
+ /**
410
+ * Return the unprojected `list_creatives` wire response.
411
+ *
412
+ * @deprecated Compatibility-only escape hatch for migration and protocol tooling.
413
+ */
414
+ async listCreativesLegacy(params, inputHandler, options) {
415
+ const result = await this.client.listCreativesLegacy(params, inputHandler, {
381
416
  ...this.withSession("list_creatives", options)
382
417
  });
383
418
  this.retainSession(result);
@@ -403,6 +438,15 @@ class AgentClient {
403
438
  this.retainSession(result);
404
439
  return result;
405
440
  }
441
+ /** Retrieve canonical creative-level and variant-level delivery metrics. */
442
+ async getCreativeDelivery(params, inputHandler, options) {
443
+ const result = await this.client.getCreativeDelivery(params, inputHandler, {
444
+ ...options,
445
+ ...this.withSession("get_creative_delivery", options)
446
+ });
447
+ this.retainSession(result);
448
+ return result;
449
+ }
406
450
  /**
407
451
  * Provide performance feedback
408
452
  */
@@ -476,21 +520,17 @@ class AgentClient {
476
520
  async requireV3(taskType = "request") {
477
521
  return this.client.requireSupportedMajor(taskType);
478
522
  }
479
- /**
480
- * Preview a creative
481
- */
482
- async previewCreative(params, inputHandler, options) {
483
- const result = await this.client.previewCreative(params, inputHandler, {
523
+ /** @deprecated Migration-only access to legacy `format_id`-based creative preview. */
524
+ async previewCreativeLegacy(params, inputHandler, options) {
525
+ const result = await this.client.previewCreativeLegacy(params, inputHandler, {
484
526
  ...this.withSession("preview_creative", options)
485
527
  });
486
528
  this.retainSession(result);
487
529
  return result;
488
530
  }
489
- /**
490
- * Build a creative from format and brand context
491
- */
492
- async buildCreative(params, inputHandler, options) {
493
- const result = await this.client.buildCreative(params, inputHandler, {
531
+ /** @deprecated Migration-only access to legacy `target_format_id`-based creative building. */
532
+ async buildCreativeLegacy(params, inputHandler, options) {
533
+ const result = await this.client.buildCreativeLegacy(params, inputHandler, {
494
534
  ...this.withSession("build_creative", options)
495
535
  });
496
536
  this.retainSession(result);
@@ -581,8 +621,8 @@ class AgentClient {
581
621
  /**
582
622
  * List content standards
583
623
  */
584
- async listContentStandards(params, inputHandler, options) {
585
- const result = await this.client.listContentStandards(params, inputHandler, {
624
+ async listContentStandardsLegacy(params, inputHandler, options) {
625
+ const result = await this.client.listContentStandardsLegacy(params, inputHandler, {
586
626
  ...this.withSession("list_content_standards", options)
587
627
  });
588
628
  this.retainSession(result);
@@ -591,8 +631,8 @@ class AgentClient {
591
631
  /**
592
632
  * Get content standards
593
633
  */
594
- async getContentStandards(params, inputHandler, options) {
595
- const result = await this.client.getContentStandards(params, inputHandler, {
634
+ async getContentStandardsLegacy(params, inputHandler, options) {
635
+ const result = await this.client.getContentStandardsLegacy(params, inputHandler, {
596
636
  ...this.withSession("get_content_standards", options)
597
637
  });
598
638
  this.retainSession(result);
@@ -601,8 +641,8 @@ class AgentClient {
601
641
  /**
602
642
  * Calibrate content against standards
603
643
  */
604
- async calibrateContent(params, inputHandler, options) {
605
- const result = await this.client.calibrateContent(params, inputHandler, {
644
+ async calibrateContentLegacy(params, inputHandler, options) {
645
+ const result = await this.client.calibrateContentLegacy(params, inputHandler, {
606
646
  ...this.withSession("calibrate_content", options)
607
647
  });
608
648
  this.retainSession(result);
@@ -611,8 +651,8 @@ class AgentClient {
611
651
  /**
612
652
  * Validate content delivery
613
653
  */
614
- async validateContentDelivery(params, inputHandler, options) {
615
- const result = await this.client.validateContentDelivery(params, inputHandler, {
654
+ async validateContentDeliveryLegacy(params, inputHandler, options) {
655
+ const result = await this.client.validateContentDeliveryLegacy(params, inputHandler, {
616
656
  ...this.withSession("validate_content_delivery", options)
617
657
  });
618
658
  this.retainSession(result);
@@ -845,7 +885,56 @@ class AgentClient {
845
885
  return this.client.getActiveTasks();
846
886
  }
847
887
  async executeTask(taskName, params, inputHandler, options) {
848
- const result = await this.client.executeTask(taskName, params, inputHandler, {
888
+ switch (taskName) {
889
+ case "get_products":
890
+ return this.getProducts(params, inputHandler, options);
891
+ case "create_media_buy":
892
+ return await this.createMediaBuy(
893
+ params,
894
+ inputHandler,
895
+ options
896
+ );
897
+ case "update_media_buy":
898
+ return await this.updateMediaBuy(
899
+ params,
900
+ inputHandler,
901
+ options
902
+ );
903
+ case "sync_creatives":
904
+ return await this.syncCreatives(
905
+ params,
906
+ inputHandler,
907
+ options
908
+ );
909
+ case "list_creatives":
910
+ return this.listCreatives(params, inputHandler, options);
911
+ case "get_media_buys":
912
+ return this.getMediaBuys(params, inputHandler, options);
913
+ case "get_media_buy_delivery":
914
+ return this.getMediaBuyDelivery(params, inputHandler, options);
915
+ case "get_creative_delivery":
916
+ return this.getCreativeDelivery(params, inputHandler, options);
917
+ }
918
+ const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
919
+ ...this.withSession(taskName, options)
920
+ });
921
+ this.retainSession(result);
922
+ return result;
923
+ }
924
+ /** Execute an extension task that is not part of the standard AdCP task set. */
925
+ async executeCustomTask(taskName, params, inputHandler, options) {
926
+ const result = await this.client.executeCustomTask(taskName, params, inputHandler, {
927
+ ...this.withSession(taskName, options)
928
+ });
929
+ this.retainSession(result);
930
+ return result;
931
+ }
932
+ /**
933
+ * Explicit raw-task compatibility escape hatch for conformance and migration tooling.
934
+ * @deprecated Application code should use typed primary methods or `executeTask()`.
935
+ */
936
+ async executeTaskLegacy(taskName, params, inputHandler, options) {
937
+ const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
849
938
  ...this.withSession(taskName, options)
850
939
  });
851
940
  this.retainSession(result);