@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
@@ -2,7 +2,6 @@ import { randomUUID } from "node:crypto";
2
2
  import {
3
3
  SingleAgentClient
4
4
  } from "./SingleAgentClient.mjs";
5
- import { withFormatOptions } from "../v2/projection/augment-response.mjs";
6
5
  const NON_TERMINAL_STATES = /* @__PURE__ */ new Set([
7
6
  "working",
8
7
  "input-required",
@@ -202,90 +201,91 @@ class AgentClient {
202
201
  verifyWebhookSignature(rawBodyOrPayload, signature, timestamp) {
203
202
  return this.client.verifyWebhookSignature(rawBodyOrPayload, signature, timestamp);
204
203
  }
204
+ // ====== MEDIA BUY TASKS ======
205
+ /**
206
+ * Discover available advertising products.
207
+ *
208
+ * Response products expose only canonical `format_options[]`, regardless of
209
+ * the seller's negotiated wire version. The SDK performs any required legacy
210
+ * translation below this public boundary.
211
+ *
212
+ * Projection failures surface portably on `result.data.errors[]` and are
213
+ * also mirrored on `result.data.projection.diagnostics` (structured
214
+ * `source: 'sdk'` markers; codes mirror the spec's error-code
215
+ * vocabulary plus three SDK-local codes — see the projection
216
+ * module's `ProjectionDiagnostic` type for the full set).
217
+ *
218
+ * Protocol tooling that must inspect raw seller emission uses the explicit
219
+ * deprecated `getProductsLegacy()` method.
220
+ */
205
221
  async getProducts(params, inputHandler, options) {
206
- const { project, ...sessionOptions } = options ?? {};
207
222
  const result = await this.client.getProducts(params, inputHandler, {
208
- ...this.withSession("get_products", sessionOptions)
223
+ ...options,
224
+ ...this.withSession("get_products", options)
209
225
  });
210
226
  this.retainSession(result);
211
- if (project === false) {
212
- return result;
213
- }
214
- if (result.success && result.status === "completed" && result.data) {
215
- const { response, diagnostics } = withFormatOptions(result.data);
216
- const augmented = {
217
- ...response,
218
- projection: { diagnostics }
219
- };
220
- return {
221
- ...result,
222
- data: augmented
223
- };
224
- }
225
227
  return result;
226
228
  }
227
- /**
228
- * List available creative formats
229
- */
230
- async listCreativeFormats(params, inputHandler, options) {
231
- const result = await this.client.listCreativeFormats(params, inputHandler, {
229
+ /** @deprecated Explicit raw-wire escape hatch for migration tooling. */
230
+ async getProductsLegacy(params, inputHandler, options) {
231
+ const result = await this.client.getProductsLegacy(params, inputHandler, {
232
+ ...this.withSession("get_products", options)
233
+ });
234
+ this.retainSession(result);
235
+ return result;
236
+ }
237
+ /** @deprecated Migration-only access to a legacy named-format catalog. */
238
+ async listCreativeFormatsLegacy(params, inputHandler, options) {
239
+ const result = await this.client.listCreativeFormatsLegacy(params, inputHandler, {
232
240
  ...this.withSession("list_creative_formats", options)
233
241
  });
234
242
  this.retainSession(result);
235
243
  return result;
236
244
  }
245
+ /** @deprecated Migration-only access to legacy creative transformer declarations. */
246
+ async listTransformersLegacy(params, inputHandler, options) {
247
+ const result = await this.client.listTransformersLegacy(params, inputHandler, {
248
+ ...this.withSession("list_transformers", options)
249
+ });
250
+ this.retainSession(result);
251
+ return result;
252
+ }
237
253
  /**
238
254
  * Create a new media buy.
239
255
  *
240
- * **3.1+ format-option write flow (preferred at 3.1.0-beta.5+).** After
241
- * `getProducts()` returns the V2-augmented response (`format_options[]`
242
- * auto-populated), pick declarations by `format_option_id` and use
243
- * `packageRefsForFormatOptions` to author the package. The helper emits
244
- * BOTH `format_option_refs[]` (the 3.1+ path) AND `format_ids[]`
245
- * (legacy named-format dual emission) so a single request works against
246
- * both format-option-aware and legacy sellers.
256
+ * Discover canonical `format_options[]` with `getProducts()`, select a
257
+ * `format_option_id`, and send only canonical package and creative fields.
258
+ * Compatibility translation for an older seller happens below this method.
247
259
  *
248
260
  * ```ts
249
- * import { packageRefsForFormatOptions } from '@adcp/sdk/v2/projection';
250
- *
251
261
  * const { data: { products } } = await agent.getProducts({ brief: '...' });
252
262
  * const product = products[0];
263
+ * const format = product.format_options[0];
253
264
  *
254
265
  * await agent.createMediaBuy({
255
266
  * packages: [{
256
267
  * package_id: 'pkg-1',
257
268
  * product_id: product.product_id,
258
269
  * pricing_option_id: product.pricing_options[0].pricing_option_id,
259
- * ...packageRefsForFormatOptions(product, ['nytimes_mrec', 'nytimes_video_30s']),
260
- * // ↑ spreads `{ format_option_refs, format_ids? }`
270
+ * format_option_refs: [{
271
+ * scope: 'product',
272
+ * format_option_id: format.format_option_id
273
+ * }],
274
+ * creatives: [{
275
+ * creative_id: 'hero',
276
+ * format_kind: format.format_kind,
277
+ * format_option_ref: {
278
+ * scope: 'product',
279
+ * format_option_id: format.format_option_id
280
+ * },
281
+ * assets: { image: { url: 'https://cdn.example/hero.png' } }
282
+ * }],
261
283
  * budget: { currency: 'USD', total: 5000 },
262
284
  * }],
263
285
  * // ...
264
286
  * });
265
287
  * ```
266
288
  *
267
- * The resulting wire payload for the package looks like:
268
- *
269
- * ```json
270
- * {
271
- * "package_id": "pkg-1",
272
- * "product_id": "...",
273
- * "pricing_option_id": "...",
274
- * "format_option_refs": [
275
- * {"scope": "product", "format_option_id": "nytimes_mrec"},
276
- * {"scope": "product", "format_option_id": "nytimes_video_30s"}
277
- * ],
278
- * "format_ids": [
279
- * {"agent_url": "https://creative.adcontextprotocol.org/", "id": "display_300x250_image"},
280
- * {"agent_url": "https://creative.adcontextprotocol.org/", "id": "video_standard_30s"}
281
- * ],
282
- * "budget": {"currency": "USD", "total": 5000}
283
- * }
284
- * ```
285
- *
286
- * `format_ids` is omitted entirely when every chosen format option is V2-only
287
- * (the spec's "neither present" fallback fires for v1 sellers in that case).
288
- *
289
289
  * **Inline creative fallback.** Sellers that do not advertise a creative
290
290
  * library (`supportsSyncCreatives(await agent.getCapabilities()) === false`)
291
291
  * can still accept package-scoped creative uploads when they advertise
@@ -296,17 +296,8 @@ class AgentClient {
296
296
  * assignments for create payloads, give each package a stable key such as
297
297
  * `context.buyer_ref`, or pass a custom `packageId` resolver.
298
298
  *
299
- * For adopters writing strictly to v1 sellers or for products whose
300
- * `format_options[]` entries don't publish `format_option_id` — see the
301
- * `legacyFormatIdsFromOptions` / `tryLegacyFormatIdsFromOptions` /
302
- * `legacyFormatIdsForFormatOption` helpers in `@adcp/sdk/v2/projection`.
303
- *
304
- * `packageRefsForFormatOptions` throws `FormatOptionRefsLookupError`
305
- * with a normalized `.code` in `{ 'unknown_format_option_id' |
306
- * 'format_option_refs_not_published' | 'empty_input' | 'invalid_product' }`
307
- * — branch on `.code` to fall back to the `legacy*` helpers when the
308
- * product is V1-shape only. See the helper JSDoc for the full
309
- * recovery example.
299
+ * Existing applications that still hold old named-format payloads must opt
300
+ * into `createMediaBuyLegacy()` explicitly.
310
301
  */
311
302
  async createMediaBuy(params, inputHandler, options) {
312
303
  const result = await this.client.createMediaBuy(params, inputHandler, {
@@ -315,6 +306,14 @@ class AgentClient {
315
306
  this.retainSession(result);
316
307
  return result;
317
308
  }
309
+ /** @deprecated Use `createMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
310
+ async createMediaBuyLegacy(params, inputHandler, options) {
311
+ const result = await this.client.createMediaBuyLegacy(params, inputHandler, {
312
+ ...this.withSession("create_media_buy", options)
313
+ });
314
+ this.retainSession(result);
315
+ return result;
316
+ }
318
317
  /**
319
318
  * Update an existing media buy.
320
319
  *
@@ -324,6 +323,8 @@ class AgentClient {
324
323
  * request. Build the package patch with `inlineCreativesForPackages()` and
325
324
  * preflight it with `preflightUpdateMediaBuy(currentBuy, patch)` so
326
325
  * `available_actions[]` allows `replace_creative` before dispatch.
326
+ * Use `format_kind` and `format_option_ref` for every creative in the patch;
327
+ * the SDK handles any negotiated compatibility conversion.
327
328
  */
328
329
  async updateMediaBuy(params, inputHandler, options) {
329
330
  const result = await this.client.updateMediaBuy(params, inputHandler, {
@@ -332,6 +333,14 @@ class AgentClient {
332
333
  this.retainSession(result);
333
334
  return result;
334
335
  }
336
+ /** @deprecated Use `updateMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
337
+ async updateMediaBuyLegacy(params, inputHandler, options) {
338
+ const result = await this.client.updateMediaBuyLegacy(params, inputHandler, {
339
+ ...this.withSession("update_media_buy", options)
340
+ });
341
+ this.retainSession(result);
342
+ return result;
343
+ }
335
344
  /**
336
345
  * Sync creative assets into the seller's reusable creative library.
337
346
  *
@@ -344,6 +353,11 @@ class AgentClient {
344
353
  * send a separate `create_media_buy` or `update_media_buy` request with its
345
354
  * own idempotency key. If neither capability is advertised, creative upload
346
355
  * is not available through this SDK helper surface.
356
+ *
357
+ * A sync request does not carry product declarations. When compatibility
358
+ * translation needs seller selection metadata, pass
359
+ * `options.creativeFormatProjection.selectorContainers` with the routed
360
+ * package/product selectors. Assignments scope each creative to its package.
347
361
  */
348
362
  async syncCreatives(params, inputHandler, options) {
349
363
  const result = await this.client.syncCreatives(params, inputHandler, {
@@ -352,11 +366,32 @@ class AgentClient {
352
366
  this.retainSession(result);
353
367
  return result;
354
368
  }
369
+ /** @deprecated Use `syncCreatives`; this explicit compatibility surface accepts legacy creative `format_id`. */
370
+ async syncCreativesLegacy(params, inputHandler, options) {
371
+ const result = await this.client.syncCreativesLegacy(params, inputHandler, {
372
+ ...this.withSession("sync_creatives", options)
373
+ });
374
+ this.retainSession(result);
375
+ return result;
376
+ }
355
377
  /**
356
378
  * List creative assets
357
379
  */
358
380
  async listCreatives(params, inputHandler, options) {
359
381
  const result = await this.client.listCreatives(params, inputHandler, {
382
+ ...options,
383
+ ...this.withSession("list_creatives", options)
384
+ });
385
+ this.retainSession(result);
386
+ return result;
387
+ }
388
+ /**
389
+ * Return the unprojected `list_creatives` wire response.
390
+ *
391
+ * @deprecated Compatibility-only escape hatch for migration and protocol tooling.
392
+ */
393
+ async listCreativesLegacy(params, inputHandler, options) {
394
+ const result = await this.client.listCreativesLegacy(params, inputHandler, {
360
395
  ...this.withSession("list_creatives", options)
361
396
  });
362
397
  this.retainSession(result);
@@ -382,6 +417,15 @@ class AgentClient {
382
417
  this.retainSession(result);
383
418
  return result;
384
419
  }
420
+ /** Retrieve canonical creative-level and variant-level delivery metrics. */
421
+ async getCreativeDelivery(params, inputHandler, options) {
422
+ const result = await this.client.getCreativeDelivery(params, inputHandler, {
423
+ ...options,
424
+ ...this.withSession("get_creative_delivery", options)
425
+ });
426
+ this.retainSession(result);
427
+ return result;
428
+ }
385
429
  /**
386
430
  * Provide performance feedback
387
431
  */
@@ -455,21 +499,17 @@ class AgentClient {
455
499
  async requireV3(taskType = "request") {
456
500
  return this.client.requireSupportedMajor(taskType);
457
501
  }
458
- /**
459
- * Preview a creative
460
- */
461
- async previewCreative(params, inputHandler, options) {
462
- const result = await this.client.previewCreative(params, inputHandler, {
502
+ /** @deprecated Migration-only access to legacy `format_id`-based creative preview. */
503
+ async previewCreativeLegacy(params, inputHandler, options) {
504
+ const result = await this.client.previewCreativeLegacy(params, inputHandler, {
463
505
  ...this.withSession("preview_creative", options)
464
506
  });
465
507
  this.retainSession(result);
466
508
  return result;
467
509
  }
468
- /**
469
- * Build a creative from format and brand context
470
- */
471
- async buildCreative(params, inputHandler, options) {
472
- const result = await this.client.buildCreative(params, inputHandler, {
510
+ /** @deprecated Migration-only access to legacy `target_format_id`-based creative building. */
511
+ async buildCreativeLegacy(params, inputHandler, options) {
512
+ const result = await this.client.buildCreativeLegacy(params, inputHandler, {
473
513
  ...this.withSession("build_creative", options)
474
514
  });
475
515
  this.retainSession(result);
@@ -560,8 +600,8 @@ class AgentClient {
560
600
  /**
561
601
  * List content standards
562
602
  */
563
- async listContentStandards(params, inputHandler, options) {
564
- const result = await this.client.listContentStandards(params, inputHandler, {
603
+ async listContentStandardsLegacy(params, inputHandler, options) {
604
+ const result = await this.client.listContentStandardsLegacy(params, inputHandler, {
565
605
  ...this.withSession("list_content_standards", options)
566
606
  });
567
607
  this.retainSession(result);
@@ -570,8 +610,8 @@ class AgentClient {
570
610
  /**
571
611
  * Get content standards
572
612
  */
573
- async getContentStandards(params, inputHandler, options) {
574
- const result = await this.client.getContentStandards(params, inputHandler, {
613
+ async getContentStandardsLegacy(params, inputHandler, options) {
614
+ const result = await this.client.getContentStandardsLegacy(params, inputHandler, {
575
615
  ...this.withSession("get_content_standards", options)
576
616
  });
577
617
  this.retainSession(result);
@@ -580,8 +620,8 @@ class AgentClient {
580
620
  /**
581
621
  * Calibrate content against standards
582
622
  */
583
- async calibrateContent(params, inputHandler, options) {
584
- const result = await this.client.calibrateContent(params, inputHandler, {
623
+ async calibrateContentLegacy(params, inputHandler, options) {
624
+ const result = await this.client.calibrateContentLegacy(params, inputHandler, {
585
625
  ...this.withSession("calibrate_content", options)
586
626
  });
587
627
  this.retainSession(result);
@@ -590,8 +630,8 @@ class AgentClient {
590
630
  /**
591
631
  * Validate content delivery
592
632
  */
593
- async validateContentDelivery(params, inputHandler, options) {
594
- const result = await this.client.validateContentDelivery(params, inputHandler, {
633
+ async validateContentDeliveryLegacy(params, inputHandler, options) {
634
+ const result = await this.client.validateContentDeliveryLegacy(params, inputHandler, {
595
635
  ...this.withSession("validate_content_delivery", options)
596
636
  });
597
637
  this.retainSession(result);
@@ -824,7 +864,56 @@ class AgentClient {
824
864
  return this.client.getActiveTasks();
825
865
  }
826
866
  async executeTask(taskName, params, inputHandler, options) {
827
- const result = await this.client.executeTask(taskName, params, inputHandler, {
867
+ switch (taskName) {
868
+ case "get_products":
869
+ return this.getProducts(params, inputHandler, options);
870
+ case "create_media_buy":
871
+ return await this.createMediaBuy(
872
+ params,
873
+ inputHandler,
874
+ options
875
+ );
876
+ case "update_media_buy":
877
+ return await this.updateMediaBuy(
878
+ params,
879
+ inputHandler,
880
+ options
881
+ );
882
+ case "sync_creatives":
883
+ return await this.syncCreatives(
884
+ params,
885
+ inputHandler,
886
+ options
887
+ );
888
+ case "list_creatives":
889
+ return this.listCreatives(params, inputHandler, options);
890
+ case "get_media_buys":
891
+ return this.getMediaBuys(params, inputHandler, options);
892
+ case "get_media_buy_delivery":
893
+ return this.getMediaBuyDelivery(params, inputHandler, options);
894
+ case "get_creative_delivery":
895
+ return this.getCreativeDelivery(params, inputHandler, options);
896
+ }
897
+ const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
898
+ ...this.withSession(taskName, options)
899
+ });
900
+ this.retainSession(result);
901
+ return result;
902
+ }
903
+ /** Execute an extension task that is not part of the standard AdCP task set. */
904
+ async executeCustomTask(taskName, params, inputHandler, options) {
905
+ const result = await this.client.executeCustomTask(taskName, params, inputHandler, {
906
+ ...this.withSession(taskName, options)
907
+ });
908
+ this.retainSession(result);
909
+ return result;
910
+ }
911
+ /**
912
+ * Explicit raw-task compatibility escape hatch for conformance and migration tooling.
913
+ * @deprecated Application code should use typed primary methods or `executeTask()`.
914
+ */
915
+ async executeTaskLegacy(taskName, params, inputHandler, options) {
916
+ const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
828
917
  ...this.withSession(taskName, options)
829
918
  });
830
919
  this.retainSession(result);