@adcp/sdk 12.1.1 → 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 (410) 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/provider-cache.d.mts +7 -0
  18. package/dist/lib/auth/oauth/provider-cache.d.ts +8 -0
  19. package/dist/lib/auth/oauth/provider-cache.d.ts.map +1 -0
  20. package/dist/lib/auth/oauth/provider-cache.js +44 -0
  21. package/dist/lib/auth/oauth/provider-cache.js.map +1 -0
  22. package/dist/lib/auth/oauth/provider-cache.mjs +19 -0
  23. package/dist/lib/auth/oauth/provider-cache.mjs.map +1 -0
  24. package/dist/lib/conformance/invariants/uniformError.js +1 -1
  25. package/dist/lib/conformance/invariants/uniformError.js.map +1 -1
  26. package/dist/lib/conformance/invariants/uniformError.mjs +1 -1
  27. package/dist/lib/conformance/invariants/uniformError.mjs.map +1 -1
  28. package/dist/lib/conformance/runners.js +1 -1
  29. package/dist/lib/conformance/runners.js.map +1 -1
  30. package/dist/lib/conformance/runners.mjs +1 -1
  31. package/dist/lib/conformance/runners.mjs.map +1 -1
  32. package/dist/lib/conformance/seeder.js +5 -5
  33. package/dist/lib/conformance/seeder.js.map +1 -1
  34. package/dist/lib/conformance/seeder.mjs +5 -5
  35. package/dist/lib/conformance/seeder.mjs.map +1 -1
  36. package/dist/lib/core/ADCPMultiAgentClient.d.mts +26 -29
  37. package/dist/lib/core/ADCPMultiAgentClient.d.ts +26 -29
  38. package/dist/lib/core/ADCPMultiAgentClient.d.ts.map +1 -1
  39. package/dist/lib/core/ADCPMultiAgentClient.js +27 -19
  40. package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -1
  41. package/dist/lib/core/ADCPMultiAgentClient.mjs +27 -19
  42. package/dist/lib/core/ADCPMultiAgentClient.mjs.map +1 -1
  43. package/dist/lib/core/AgentClient.d.mts +148 -138
  44. package/dist/lib/core/AgentClient.d.ts +148 -138
  45. package/dist/lib/core/AgentClient.d.ts.map +1 -1
  46. package/dist/lib/core/AgentClient.js +174 -85
  47. package/dist/lib/core/AgentClient.js.map +1 -1
  48. package/dist/lib/core/AgentClient.mjs +174 -85
  49. package/dist/lib/core/AgentClient.mjs.map +1 -1
  50. package/dist/lib/core/AsyncHandler.d.mts +18 -16
  51. package/dist/lib/core/AsyncHandler.d.ts +18 -16
  52. package/dist/lib/core/AsyncHandler.d.ts.map +1 -1
  53. package/dist/lib/core/AsyncHandler.js +22 -1
  54. package/dist/lib/core/AsyncHandler.js.map +1 -1
  55. package/dist/lib/core/AsyncHandler.mjs +22 -1
  56. package/dist/lib/core/AsyncHandler.mjs.map +1 -1
  57. package/dist/lib/core/ConversationTypes.d.mts +6 -2
  58. package/dist/lib/core/ConversationTypes.d.ts +6 -2
  59. package/dist/lib/core/ConversationTypes.d.ts.map +1 -1
  60. package/dist/lib/core/ConversationTypes.js.map +1 -1
  61. package/dist/lib/core/CreativeAgentClient.d.mts +41 -17
  62. package/dist/lib/core/CreativeAgentClient.d.ts +41 -17
  63. package/dist/lib/core/CreativeAgentClient.d.ts.map +1 -1
  64. package/dist/lib/core/CreativeAgentClient.js +39 -12
  65. package/dist/lib/core/CreativeAgentClient.js.map +1 -1
  66. package/dist/lib/core/CreativeAgentClient.mjs +39 -12
  67. package/dist/lib/core/CreativeAgentClient.mjs.map +1 -1
  68. package/dist/lib/core/SingleAgentClient.d.mts +127 -50
  69. package/dist/lib/core/SingleAgentClient.d.ts +127 -50
  70. package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
  71. package/dist/lib/core/SingleAgentClient.js +1617 -177
  72. package/dist/lib/core/SingleAgentClient.js.map +1 -1
  73. package/dist/lib/core/SingleAgentClient.mjs +1627 -177
  74. package/dist/lib/core/SingleAgentClient.mjs.map +1 -1
  75. package/dist/lib/core/TaskExecutor.d.mts +9 -0
  76. package/dist/lib/core/TaskExecutor.d.ts +9 -0
  77. package/dist/lib/core/TaskExecutor.d.ts.map +1 -1
  78. package/dist/lib/core/TaskExecutor.js +136 -43
  79. package/dist/lib/core/TaskExecutor.js.map +1 -1
  80. package/dist/lib/core/TaskExecutor.mjs +136 -43
  81. package/dist/lib/core/TaskExecutor.mjs.map +1 -1
  82. package/dist/lib/index.d.mts +111 -17
  83. package/dist/lib/index.d.ts +111 -17
  84. package/dist/lib/index.d.ts.map +1 -1
  85. package/dist/lib/index.js +94 -94
  86. package/dist/lib/index.js.map +1 -1
  87. package/dist/lib/index.mjs +93 -94
  88. package/dist/lib/index.mjs.map +1 -1
  89. package/dist/lib/protocols/index.d.ts.map +1 -1
  90. package/dist/lib/protocols/index.js +6 -15
  91. package/dist/lib/protocols/index.js.map +1 -1
  92. package/dist/lib/protocols/index.mjs +6 -16
  93. package/dist/lib/protocols/index.mjs.map +1 -1
  94. package/dist/lib/protocols/mcp-modern.d.ts.map +1 -1
  95. package/dist/lib/protocols/mcp-modern.js +87 -12
  96. package/dist/lib/protocols/mcp-modern.js.map +1 -1
  97. package/dist/lib/protocols/mcp-modern.mjs +89 -12
  98. package/dist/lib/protocols/mcp-modern.mjs.map +1 -1
  99. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  100. package/dist/lib/server/create-adcp-server.d.mts +6 -0
  101. package/dist/lib/server/create-adcp-server.d.ts +6 -0
  102. package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
  103. package/dist/lib/server/create-adcp-server.js +295 -48
  104. package/dist/lib/server/create-adcp-server.js.map +1 -1
  105. package/dist/lib/server/create-adcp-server.mjs +301 -50
  106. package/dist/lib/server/create-adcp-server.mjs.map +1 -1
  107. package/dist/lib/server/decisioning/assembly-helpers.d.mts +27 -13
  108. package/dist/lib/server/decisioning/assembly-helpers.d.ts +27 -13
  109. package/dist/lib/server/decisioning/assembly-helpers.d.ts.map +1 -1
  110. package/dist/lib/server/decisioning/assembly-helpers.js +136 -14
  111. package/dist/lib/server/decisioning/assembly-helpers.js.map +1 -1
  112. package/dist/lib/server/decisioning/assembly-helpers.mjs +134 -13
  113. package/dist/lib/server/decisioning/assembly-helpers.mjs.map +1 -1
  114. package/dist/lib/server/decisioning/index.d.mts +13 -12
  115. package/dist/lib/server/decisioning/index.d.ts +13 -12
  116. package/dist/lib/server/decisioning/index.d.ts.map +1 -1
  117. package/dist/lib/server/decisioning/index.js +6 -0
  118. package/dist/lib/server/decisioning/index.js.map +1 -1
  119. package/dist/lib/server/decisioning/index.mjs +9 -3
  120. package/dist/lib/server/decisioning/index.mjs.map +1 -1
  121. package/dist/lib/server/decisioning/list-helpers.d.mts +13 -3
  122. package/dist/lib/server/decisioning/list-helpers.d.ts +13 -3
  123. package/dist/lib/server/decisioning/list-helpers.d.ts.map +1 -1
  124. package/dist/lib/server/decisioning/list-helpers.js +13 -3
  125. package/dist/lib/server/decisioning/list-helpers.js.map +1 -1
  126. package/dist/lib/server/decisioning/list-helpers.mjs +11 -2
  127. package/dist/lib/server/decisioning/list-helpers.mjs.map +1 -1
  128. package/dist/lib/server/decisioning/manifest-helpers.d.mts +5 -3
  129. package/dist/lib/server/decisioning/manifest-helpers.d.ts +5 -3
  130. package/dist/lib/server/decisioning/manifest-helpers.d.ts.map +1 -1
  131. package/dist/lib/server/decisioning/manifest-helpers.js.map +1 -1
  132. package/dist/lib/server/decisioning/manifest-helpers.mjs.map +1 -1
  133. package/dist/lib/server/decisioning/proposal/dispatch.d.mts +2 -2
  134. package/dist/lib/server/decisioning/proposal/dispatch.d.ts +2 -2
  135. package/dist/lib/server/decisioning/proposal/dispatch.d.ts.map +1 -1
  136. package/dist/lib/server/decisioning/proposal/dispatch.js.map +1 -1
  137. package/dist/lib/server/decisioning/proposal/dispatch.mjs.map +1 -1
  138. package/dist/lib/server/decisioning/proposal/index.d.mts +1 -1
  139. package/dist/lib/server/decisioning/proposal/index.d.ts +1 -1
  140. package/dist/lib/server/decisioning/proposal/index.d.ts.map +1 -1
  141. package/dist/lib/server/decisioning/proposal/index.js.map +1 -1
  142. package/dist/lib/server/decisioning/proposal/index.mjs.map +1 -1
  143. package/dist/lib/server/decisioning/proposal/lifecycle.d.mts +3 -2
  144. package/dist/lib/server/decisioning/proposal/lifecycle.d.ts +3 -2
  145. package/dist/lib/server/decisioning/proposal/lifecycle.d.ts.map +1 -1
  146. package/dist/lib/server/decisioning/proposal/lifecycle.js.map +1 -1
  147. package/dist/lib/server/decisioning/proposal/lifecycle.mjs.map +1 -1
  148. package/dist/lib/server/decisioning/proposal/mock-manager.d.mts +3 -3
  149. package/dist/lib/server/decisioning/proposal/mock-manager.d.ts +3 -3
  150. package/dist/lib/server/decisioning/proposal/mock-manager.d.ts.map +1 -1
  151. package/dist/lib/server/decisioning/proposal/mock-manager.js.map +1 -1
  152. package/dist/lib/server/decisioning/proposal/mock-manager.mjs.map +1 -1
  153. package/dist/lib/server/decisioning/proposal/types.d.mts +10 -6
  154. package/dist/lib/server/decisioning/proposal/types.d.ts +10 -6
  155. package/dist/lib/server/decisioning/proposal/types.d.ts.map +1 -1
  156. package/dist/lib/server/decisioning/proposal/types.js.map +1 -1
  157. package/dist/lib/server/decisioning/proposal/types.mjs.map +1 -1
  158. package/dist/lib/server/decisioning/runtime/from-platform.d.mts +21 -2
  159. package/dist/lib/server/decisioning/runtime/from-platform.d.ts +21 -2
  160. package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
  161. package/dist/lib/server/decisioning/runtime/from-platform.js +754 -81
  162. package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
  163. package/dist/lib/server/decisioning/runtime/from-platform.mjs +763 -81
  164. package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
  165. package/dist/lib/server/decisioning/specialisms/brand-rights.d.mts +9 -9
  166. package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts +9 -9
  167. package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts.map +1 -1
  168. package/dist/lib/server/decisioning/specialisms/brand-rights.js.map +1 -1
  169. package/dist/lib/server/decisioning/specialisms/content-standards.d.mts +16 -16
  170. package/dist/lib/server/decisioning/specialisms/content-standards.d.ts +16 -16
  171. package/dist/lib/server/decisioning/specialisms/content-standards.d.ts.map +1 -1
  172. package/dist/lib/server/decisioning/specialisms/content-standards.js.map +1 -1
  173. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.mts +15 -13
  174. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts +15 -13
  175. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts.map +1 -1
  176. package/dist/lib/server/decisioning/specialisms/creative-ad-server.js.map +1 -1
  177. package/dist/lib/server/decisioning/specialisms/creative.d.mts +12 -11
  178. package/dist/lib/server/decisioning/specialisms/creative.d.ts +12 -11
  179. package/dist/lib/server/decisioning/specialisms/creative.d.ts.map +1 -1
  180. package/dist/lib/server/decisioning/specialisms/creative.js.map +1 -1
  181. package/dist/lib/server/decisioning/specialisms/sales.d.mts +25 -15
  182. package/dist/lib/server/decisioning/specialisms/sales.d.ts +25 -15
  183. package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
  184. package/dist/lib/server/decisioning/specialisms/sales.js.map +1 -1
  185. package/dist/lib/server/index.d.mts +3 -3
  186. package/dist/lib/server/index.d.ts +3 -3
  187. package/dist/lib/server/index.d.ts.map +1 -1
  188. package/dist/lib/server/index.js +72 -72
  189. package/dist/lib/server/index.js.map +1 -1
  190. package/dist/lib/server/index.mjs +36 -36
  191. package/dist/lib/server/index.mjs.map +1 -1
  192. package/dist/lib/server/legacy/v5/index.d.mts +1 -0
  193. package/dist/lib/server/legacy/v5/index.d.ts +1 -0
  194. package/dist/lib/server/legacy/v5/index.d.ts.map +1 -1
  195. package/dist/lib/server/legacy/v5/index.js +74 -1
  196. package/dist/lib/server/legacy/v5/index.js.map +1 -1
  197. package/dist/lib/server/legacy/v5/index.mjs +75 -1
  198. package/dist/lib/server/legacy/v5/index.mjs.map +1 -1
  199. package/dist/lib/server/responses.d.mts +2 -2
  200. package/dist/lib/server/responses.d.ts +2 -2
  201. package/dist/lib/server/responses.js.map +1 -1
  202. package/dist/lib/server/responses.mjs.map +1 -1
  203. package/dist/lib/testing/client.js +1 -1
  204. package/dist/lib/testing/client.js.map +1 -1
  205. package/dist/lib/testing/client.mjs +1 -1
  206. package/dist/lib/testing/client.mjs.map +1 -1
  207. package/dist/lib/testing/scenarios/brand-rights.js +6 -6
  208. package/dist/lib/testing/scenarios/brand-rights.js.map +1 -1
  209. package/dist/lib/testing/scenarios/brand-rights.mjs +6 -6
  210. package/dist/lib/testing/scenarios/brand-rights.mjs.map +1 -1
  211. package/dist/lib/testing/scenarios/creative.js +7 -7
  212. package/dist/lib/testing/scenarios/creative.js.map +1 -1
  213. package/dist/lib/testing/scenarios/creative.mjs +7 -7
  214. package/dist/lib/testing/scenarios/creative.mjs.map +1 -1
  215. package/dist/lib/testing/scenarios/discovery.js +2 -2
  216. package/dist/lib/testing/scenarios/discovery.js.map +1 -1
  217. package/dist/lib/testing/scenarios/discovery.mjs +2 -2
  218. package/dist/lib/testing/scenarios/discovery.mjs.map +1 -1
  219. package/dist/lib/testing/scenarios/edge-cases.js +11 -11
  220. package/dist/lib/testing/scenarios/edge-cases.js.map +1 -1
  221. package/dist/lib/testing/scenarios/edge-cases.mjs +11 -11
  222. package/dist/lib/testing/scenarios/edge-cases.mjs.map +1 -1
  223. package/dist/lib/testing/scenarios/governance.d.ts.map +1 -1
  224. package/dist/lib/testing/scenarios/governance.js +16 -22
  225. package/dist/lib/testing/scenarios/governance.js.map +1 -1
  226. package/dist/lib/testing/scenarios/governance.mjs +16 -22
  227. package/dist/lib/testing/scenarios/governance.mjs.map +1 -1
  228. package/dist/lib/testing/scenarios/media-buy.js +5 -5
  229. package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
  230. package/dist/lib/testing/scenarios/media-buy.mjs +5 -5
  231. package/dist/lib/testing/scenarios/media-buy.mjs.map +1 -1
  232. package/dist/lib/testing/scenarios/schema-compliance.js +1 -1
  233. package/dist/lib/testing/scenarios/schema-compliance.js.map +1 -1
  234. package/dist/lib/testing/scenarios/schema-compliance.mjs +1 -1
  235. package/dist/lib/testing/scenarios/schema-compliance.mjs.map +1 -1
  236. package/dist/lib/testing/scenarios/trusted-match.d.ts.map +1 -1
  237. package/dist/lib/testing/scenarios/trusted-match.js +4 -3
  238. package/dist/lib/testing/scenarios/trusted-match.js.map +1 -1
  239. package/dist/lib/testing/scenarios/trusted-match.mjs +4 -3
  240. package/dist/lib/testing/scenarios/trusted-match.mjs.map +1 -1
  241. package/dist/lib/testing/storyboard/shape-drift-hints.d.mts +3 -4
  242. package/dist/lib/testing/storyboard/shape-drift-hints.d.ts +3 -4
  243. package/dist/lib/testing/storyboard/shape-drift-hints.d.ts.map +1 -1
  244. package/dist/lib/testing/storyboard/shape-drift-hints.js +27 -27
  245. package/dist/lib/testing/storyboard/shape-drift-hints.js.map +1 -1
  246. package/dist/lib/testing/storyboard/shape-drift-hints.mjs +27 -27
  247. package/dist/lib/testing/storyboard/shape-drift-hints.mjs.map +1 -1
  248. package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -1
  249. package/dist/lib/testing/storyboard/task-map.js +43 -5
  250. package/dist/lib/testing/storyboard/task-map.js.map +1 -1
  251. package/dist/lib/testing/storyboard/task-map.mjs +43 -5
  252. package/dist/lib/testing/storyboard/task-map.mjs.map +1 -1
  253. package/dist/lib/testing/test-helpers.d.mts +2 -2
  254. package/dist/lib/testing/test-helpers.d.ts +2 -2
  255. package/dist/lib/testing/test-helpers.js.map +1 -1
  256. package/dist/lib/testing/test-helpers.mjs.map +1 -1
  257. package/dist/lib/types/adcp.d.mts +14 -14
  258. package/dist/lib/types/adcp.d.ts +14 -14
  259. package/dist/lib/types/adcp.d.ts.map +1 -1
  260. package/dist/lib/types/adcp.js.map +1 -1
  261. package/dist/lib/types/adcp.mjs.map +1 -1
  262. package/dist/lib/types/index.d.mts +2 -2
  263. package/dist/lib/types/index.d.ts +2 -2
  264. package/dist/lib/types/index.d.ts.map +1 -1
  265. package/dist/lib/types/index.js.map +1 -1
  266. package/dist/lib/types/index.mjs.map +1 -1
  267. package/dist/lib/utils/capabilities.d.mts +6 -0
  268. package/dist/lib/utils/capabilities.d.ts +6 -0
  269. package/dist/lib/utils/capabilities.d.ts.map +1 -1
  270. package/dist/lib/utils/capabilities.js +4 -0
  271. package/dist/lib/utils/capabilities.js.map +1 -1
  272. package/dist/lib/utils/capabilities.mjs +4 -0
  273. package/dist/lib/utils/capabilities.mjs.map +1 -1
  274. package/dist/lib/utils/creative-delivery.d.mts +52 -10
  275. package/dist/lib/utils/creative-delivery.d.ts +52 -10
  276. package/dist/lib/utils/creative-delivery.d.ts.map +1 -1
  277. package/dist/lib/utils/creative-delivery.js +104 -9
  278. package/dist/lib/utils/creative-delivery.js.map +1 -1
  279. package/dist/lib/utils/creative-delivery.mjs +104 -8
  280. package/dist/lib/utils/creative-delivery.mjs.map +1 -1
  281. package/dist/lib/utils/format-assets.d.mts +41 -38
  282. package/dist/lib/utils/format-assets.d.ts +41 -38
  283. package/dist/lib/utils/format-assets.d.ts.map +1 -1
  284. package/dist/lib/utils/format-assets.js +3 -1
  285. package/dist/lib/utils/format-assets.js.map +1 -1
  286. package/dist/lib/utils/format-assets.mjs +3 -1
  287. package/dist/lib/utils/format-assets.mjs.map +1 -1
  288. package/dist/lib/utils/index.d.mts +8 -8
  289. package/dist/lib/utils/index.d.ts +8 -8
  290. package/dist/lib/utils/index.d.ts.map +1 -1
  291. package/dist/lib/utils/index.js +11 -9
  292. package/dist/lib/utils/index.js.map +1 -1
  293. package/dist/lib/utils/index.mjs +9 -8
  294. package/dist/lib/utils/index.mjs.map +1 -1
  295. package/dist/lib/utils/preview-utils.d.mts +11 -8
  296. package/dist/lib/utils/preview-utils.d.ts +11 -8
  297. package/dist/lib/utils/preview-utils.d.ts.map +1 -1
  298. package/dist/lib/utils/preview-utils.js +4 -4
  299. package/dist/lib/utils/preview-utils.js.map +1 -1
  300. package/dist/lib/utils/preview-utils.mjs +3 -3
  301. package/dist/lib/utils/preview-utils.mjs.map +1 -1
  302. package/dist/lib/utils/tool-request-schemas.d.mts +2 -2
  303. package/dist/lib/utils/tool-request-schemas.d.ts +2 -2
  304. package/dist/lib/v2/projection/aao-reference-formats.json +492 -0
  305. package/dist/lib/v2/projection/augment-response.d.mts +31 -11
  306. package/dist/lib/v2/projection/augment-response.d.ts +31 -11
  307. package/dist/lib/v2/projection/augment-response.d.ts.map +1 -1
  308. package/dist/lib/v2/projection/augment-response.js +233 -27
  309. package/dist/lib/v2/projection/augment-response.js.map +1 -1
  310. package/dist/lib/v2/projection/augment-response.mjs +232 -27
  311. package/dist/lib/v2/projection/augment-response.mjs.map +1 -1
  312. package/dist/lib/v2/projection/builders.d.mts +7 -6
  313. package/dist/lib/v2/projection/builders.d.ts +7 -6
  314. package/dist/lib/v2/projection/builders.d.ts.map +1 -1
  315. package/dist/lib/v2/projection/builders.js +11 -8
  316. package/dist/lib/v2/projection/builders.js.map +1 -1
  317. package/dist/lib/v2/projection/builders.mjs +9 -6
  318. package/dist/lib/v2/projection/builders.mjs.map +1 -1
  319. package/dist/lib/v2/projection/catalog-snapshot.d.mts +47 -0
  320. package/dist/lib/v2/projection/catalog-snapshot.d.ts +48 -0
  321. package/dist/lib/v2/projection/catalog-snapshot.d.ts.map +1 -0
  322. package/dist/lib/v2/projection/catalog-snapshot.js +291 -0
  323. package/dist/lib/v2/projection/catalog-snapshot.js.map +1 -0
  324. package/dist/lib/v2/projection/catalog-snapshot.mjs +265 -0
  325. package/dist/lib/v2/projection/catalog-snapshot.mjs.map +1 -0
  326. package/dist/lib/v2/projection/catalog.d.mts +23 -2
  327. package/dist/lib/v2/projection/catalog.d.ts +23 -2
  328. package/dist/lib/v2/projection/catalog.d.ts.map +1 -1
  329. package/dist/lib/v2/projection/catalog.js +34 -10
  330. package/dist/lib/v2/projection/catalog.js.map +1 -1
  331. package/dist/lib/v2/projection/catalog.mjs +33 -10
  332. package/dist/lib/v2/projection/catalog.mjs.map +1 -1
  333. package/dist/lib/v2/projection/creative-delivery.d.mts +157 -0
  334. package/dist/lib/v2/projection/creative-delivery.d.ts +158 -0
  335. package/dist/lib/v2/projection/creative-delivery.d.ts.map +1 -0
  336. package/dist/lib/v2/projection/creative-delivery.js +967 -0
  337. package/dist/lib/v2/projection/creative-delivery.js.map +1 -0
  338. package/dist/lib/v2/projection/creative-delivery.mjs +941 -0
  339. package/dist/lib/v2/projection/creative-delivery.mjs.map +1 -0
  340. package/dist/lib/v2/projection/index.d.mts +8 -6
  341. package/dist/lib/v2/projection/index.d.ts +8 -6
  342. package/dist/lib/v2/projection/index.d.ts.map +1 -1
  343. package/dist/lib/v2/projection/index.js +26 -4
  344. package/dist/lib/v2/projection/index.js.map +1 -1
  345. package/dist/lib/v2/projection/index.mjs +28 -4
  346. package/dist/lib/v2/projection/index.mjs.map +1 -1
  347. package/dist/lib/v2/projection/legacy-metadata.d.mts +21 -0
  348. package/dist/lib/v2/projection/legacy-metadata.d.ts +22 -0
  349. package/dist/lib/v2/projection/legacy-metadata.d.ts.map +1 -0
  350. package/dist/lib/v2/projection/legacy-metadata.js +73 -0
  351. package/dist/lib/v2/projection/legacy-metadata.js.map +1 -0
  352. package/dist/lib/v2/projection/legacy-metadata.mjs +45 -0
  353. package/dist/lib/v2/projection/legacy-metadata.mjs.map +1 -0
  354. package/dist/lib/v2/projection/types.d.mts +29 -23
  355. package/dist/lib/v2/projection/types.d.ts +29 -23
  356. package/dist/lib/v2/projection/types.d.ts.map +1 -1
  357. package/dist/lib/v2/projection/types.js.map +1 -1
  358. package/dist/lib/v2/projection/v1-to-v2.d.mts +29 -6
  359. package/dist/lib/v2/projection/v1-to-v2.d.ts +29 -6
  360. package/dist/lib/v2/projection/v1-to-v2.d.ts.map +1 -1
  361. package/dist/lib/v2/projection/v1-to-v2.js +218 -9
  362. package/dist/lib/v2/projection/v1-to-v2.js.map +1 -1
  363. package/dist/lib/v2/projection/v1-to-v2.mjs +219 -10
  364. package/dist/lib/v2/projection/v1-to-v2.mjs.map +1 -1
  365. package/dist/lib/v2/projection/v2-to-v1.d.mts +31 -2
  366. package/dist/lib/v2/projection/v2-to-v1.d.ts +31 -2
  367. package/dist/lib/v2/projection/v2-to-v1.d.ts.map +1 -1
  368. package/dist/lib/v2/projection/v2-to-v1.js +138 -7
  369. package/dist/lib/v2/projection/v2-to-v1.js.map +1 -1
  370. package/dist/lib/v2/projection/v2-to-v1.mjs +135 -6
  371. package/dist/lib/v2/projection/v2-to-v1.mjs.map +1 -1
  372. package/dist/lib/v2/projection/write-side.d.mts +12 -13
  373. package/dist/lib/v2/projection/write-side.d.ts +12 -13
  374. package/dist/lib/v2/projection/write-side.d.ts.map +1 -1
  375. package/dist/lib/v2/projection/write-side.js +16 -12
  376. package/dist/lib/v2/projection/write-side.js.map +1 -1
  377. package/dist/lib/v2/projection/write-side.mjs +16 -12
  378. package/dist/lib/v2/projection/write-side.mjs.map +1 -1
  379. package/dist/lib/version.d.mts +3 -3
  380. package/dist/lib/version.d.ts +3 -3
  381. package/dist/lib/version.d.ts.map +1 -1
  382. package/dist/lib/version.js +3 -3
  383. package/dist/lib/version.js.map +1 -1
  384. package/dist/lib/version.mjs +3 -3
  385. package/dist/lib/version.mjs.map +1 -1
  386. package/docs/guides/BUILD-AN-AGENT.md +7 -2
  387. package/docs/guides/PREVIEW-ASSET-DURABILITY.md +6 -2
  388. package/docs/llms.txt +1 -0
  389. package/examples/README.md +1 -1
  390. package/examples/batch-preview-test.ts +3 -3
  391. package/examples/conversation-client.ts +2 -2
  392. package/examples/debug-preview-response.ts +1 -1
  393. package/examples/decisioning-platform-broadcast-tv.ts +10 -4
  394. package/examples/decisioning-platform-mock-seller.ts +16 -9
  395. package/examples/decisioning-platform-programmatic.ts +18 -7
  396. package/examples/error-compliant-server.ts +26 -16
  397. package/examples/generative-creative-demo.ts +7 -19
  398. package/examples/hello_creative_adapter_ad_server.ts +37 -16
  399. package/examples/hello_creative_adapter_template.ts +12 -10
  400. package/examples/hello_seller_adapter_guaranteed.ts +52 -23
  401. package/examples/hello_seller_adapter_multi_tenant.ts +6 -3
  402. package/examples/hello_seller_adapter_non_guaranteed.ts +54 -26
  403. package/examples/hello_seller_adapter_proposal_mode.ts +40 -14
  404. package/examples/hello_seller_adapter_social.ts +2 -7
  405. package/examples/inspect-card-formats.ts +1 -1
  406. package/examples/simple-getting-started.ts +1 -1
  407. package/examples/test-helpers-demo.ts +1 -1
  408. package/package.json +2 -2
  409. package/skills/build-decisioning-creative-template/SKILL.md +11 -11
  410. package/skills/build-decisioning-platform/advanced/REFERENCE.md +8 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/testing/test-helpers.ts"],"sourcesContent":["// Test agent helpers for easy examples and quick testing\n// These provide pre-configured access to AdCP's public test agent\n\nimport { ADCPMultiAgentClient } from '../core/ADCPMultiAgentClient';\nimport { CreativeAgentClient, STANDARD_CREATIVE_AGENTS } from '../core/CreativeAgentClient';\nimport type { AgentClient } from '../core/AgentClient';\nimport type { AgentConfig } from '../types';\n\n/**\n * Public test agent auth token\n * This token is public and rate-limited, for testing/examples only.\n */\nexport const TEST_AGENT_TOKEN = '1v8tAhASaUYYp4odoQ1PnMpdqNaMiTrCRqYo9OJp6IQ';\n\n/**\n * Public test agent configuration - MCP protocol\n * This is the raw configuration object if you need to customize it\n */\nexport const TEST_AGENT_MCP_CONFIG: AgentConfig = {\n id: 'test-agent-mcp',\n name: 'AdCP Public Test Agent (MCP)',\n agent_uri: 'https://test-agent.adcontextprotocol.org/mcp/',\n protocol: 'mcp',\n auth_token: TEST_AGENT_TOKEN,\n};\n\n/**\n * Public test agent configuration - A2A protocol\n * This is the raw configuration object if you need to customize it\n */\nexport const TEST_AGENT_A2A_CONFIG: AgentConfig = {\n id: 'test-agent-a2a',\n name: 'AdCP Public Test Agent (A2A)',\n agent_uri: 'https://test-agent.adcontextprotocol.org',\n protocol: 'a2a',\n auth_token: TEST_AGENT_TOKEN,\n};\n\n/**\n * Public test agent configuration without authentication - MCP protocol\n * Demonstrates unauthenticated agent access patterns\n */\nexport const TEST_AGENT_NO_AUTH_MCP_CONFIG: AgentConfig = {\n id: 'test-agent-no-auth-mcp',\n name: 'AdCP Public Test Agent (MCP, No Auth)',\n agent_uri: 'https://test-agent.adcontextprotocol.org/mcp/',\n protocol: 'mcp',\n};\n\n/**\n * Public test agent configuration without authentication - A2A protocol\n * Demonstrates unauthenticated agent access patterns\n */\nexport const TEST_AGENT_NO_AUTH_A2A_CONFIG: AgentConfig = {\n id: 'test-agent-no-auth-a2a',\n name: 'AdCP Public Test Agent (A2A, No Auth)',\n agent_uri: 'https://test-agent.adcontextprotocol.org',\n protocol: 'a2a',\n};\n\n/**\n * Pre-configured test agent client using MCP protocol.\n * Ready to use for examples, documentation, and quick testing.\n *\n * @example\n * ```typescript\n * import { testAgent } from '@adcp/sdk/testing';\n *\n * // Simple getProducts call\n * const result = await testAgent.getProducts({\n * brief: 'Coffee subscription service for busy professionals',\n * promoted_offering: 'Premium monthly coffee deliveries'\n * });\n *\n * if (result.success) {\n * console.log(`Found ${result.data.products.length} products`);\n * }\n * ```\n *\n * @example\n * ```typescript\n * // With AI test orchestration (natural language instructions)\n * const result = await testAgent.createMediaBuy({\n * brief: 'Test campaign',\n * promoted_offering: 'Wait 10 seconds before responding',\n * products: ['prod_123'],\n * budget: 10000\n * });\n * ```\n *\n * @remarks\n * This agent is rate-limited and intended for testing/examples only.\n * The auth token is public and may be rotated without notice.\n * DO NOT use in production applications.\n */\nexport const testAgent: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_MCP_CONFIG]).agent('test-agent-mcp');\n\n/**\n * Pre-configured test agent client using A2A protocol.\n * Identical functionality to testAgent but uses A2A instead of MCP.\n *\n * @example\n * ```typescript\n * import { testAgentA2A } from '@adcp/sdk/testing';\n *\n * const result = await testAgentA2A.getProducts({\n * brief: 'Sustainable fashion brands',\n * promoted_offering: 'Eco-friendly clothing'\n * });\n * ```\n *\n * @remarks\n * This agent is rate-limited and intended for testing/examples only.\n * The auth token is public and may be rotated without notice.\n * DO NOT use in production applications.\n */\nexport const testAgentA2A: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_A2A_CONFIG]).agent('test-agent-a2a');\n\n/**\n * Pre-configured test agent client WITHOUT authentication (MCP protocol).\n * Demonstrates what happens when calling authenticated endpoints without auth.\n * Useful for testing error handling and showing auth vs no-auth differences.\n *\n * @example\n * ```typescript\n * import { testAgentNoAuth } from '@adcp/sdk/testing';\n *\n * // This will fail with authentication error\n * try {\n * const result = await testAgentNoAuth.getProducts({\n * brief: 'Coffee subscription',\n * promoted_offering: 'Premium coffee'\n * });\n * } catch (error) {\n * console.log('Expected auth error:', error.message);\n * }\n * ```\n *\n * @remarks\n * This agent intentionally does NOT include authentication.\n * Use it to demonstrate authentication requirements and error handling.\n */\nexport const testAgentNoAuth: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_NO_AUTH_MCP_CONFIG]).agent(\n 'test-agent-no-auth-mcp'\n);\n\n/**\n * Pre-configured test agent client WITHOUT authentication (A2A protocol).\n * Demonstrates what happens when calling authenticated endpoints without auth.\n * Useful for testing error handling and showing auth vs no-auth differences.\n *\n * @example\n * ```typescript\n * import { testAgentNoAuthA2A } from '@adcp/sdk/testing';\n *\n * // Compare authenticated vs unauthenticated\n * import { testAgentA2A } from '@adcp/sdk/testing';\n *\n * // This works (has auth)\n * const authResult = await testAgentA2A.getProducts({ brief: 'Test' });\n *\n * // This fails (no auth)\n * const noAuthResult = await testAgentNoAuthA2A.getProducts({ brief: 'Test' });\n * ```\n *\n * @remarks\n * This agent intentionally does NOT include authentication.\n * Use it to demonstrate authentication requirements and error handling.\n */\nexport const testAgentNoAuthA2A: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_NO_AUTH_A2A_CONFIG]).agent(\n 'test-agent-no-auth-a2a'\n);\n\n/**\n * Multi-agent client with both test agents configured.\n * Useful for testing multi-agent patterns and protocol comparisons.\n *\n * @example\n * ```typescript\n * import { testAgentClient } from '@adcp/sdk/testing';\n *\n * // Access individual agents\n * const mcpAgent = testAgentClient.agent('test-agent-mcp');\n * const a2aAgent = testAgentClient.agent('test-agent-a2a');\n *\n * // Or use agent collection for parallel operations\n * const results = await testAgentClient.allAgents().getProducts({\n * brief: 'Premium coffee brands',\n * promoted_offering: 'Artisan coffee'\n * });\n * ```\n *\n * @remarks\n * This client is rate-limited and intended for testing/examples only.\n * DO NOT use in production applications.\n */\nexport const testAgentClient = new ADCPMultiAgentClient([TEST_AGENT_MCP_CONFIG, TEST_AGENT_A2A_CONFIG]);\n\n/**\n * Create a custom test agent configuration.\n * Useful when you need to modify the default test agent setup.\n *\n * @param overrides - Partial agent config to override defaults\n * @returns Complete agent configuration\n *\n * @example\n * ```typescript\n * import { createTestAgent, AdCPClient } from '@adcp/sdk/testing';\n *\n * // Use default test agent with custom ID\n * const config = createTestAgent({ id: 'my-test-agent' });\n * const client = new AdCPClient([config]);\n * ```\n *\n * @example\n * ```typescript\n * // Use A2A protocol instead of MCP\n * const config = createTestAgent({\n * protocol: 'a2a',\n * agent_uri: 'https://test-agent.adcontextprotocol.org'\n * });\n * ```\n */\nexport function createTestAgent(overrides?: Partial<AgentConfig>): AgentConfig {\n return {\n ...TEST_AGENT_MCP_CONFIG,\n ...overrides,\n };\n}\n\n// ====== CREATIVE AGENT HELPERS ======\n\n/**\n * Pre-configured creative agent client using MCP protocol.\n * Ready to use for creative generation and format listing.\n *\n * @example\n * ```typescript\n * import { creativeAgent } from '@adcp/sdk/testing';\n *\n * // List available creative formats\n * const formats = await creativeAgent.listFormats();\n * console.log(`Found ${formats.length} creative formats`);\n * ```\n *\n * @example\n * ```typescript\n * // Find formats by dimensions\n * const formats = await creativeAgent.listFormats();\n * const banner = formats.find(f =>\n * f.renders?.[0]?.dimensions?.width === 300 &&\n * f.renders?.[0]?.dimensions?.height === 250\n * );\n * ```\n *\n * @remarks\n * This is the official AdCP reference creative agent.\n * No authentication required for public endpoints.\n */\nexport const creativeAgent: CreativeAgentClient = new CreativeAgentClient({\n agentUrl: STANDARD_CREATIVE_AGENTS.ADCP_REFERENCE,\n protocol: 'mcp',\n});\n\n// Note: creativeAgentA2A is not exported because A2A protocol is not yet supported\n// on the creative agent. Only MCP is currently available.\n"],"mappings":"AAGA,SAAS,4BAA4B;AACrC,SAAS,qBAAqB,gCAAgC;AAQvD,MAAM,mBAAmB;AAMzB,MAAM,wBAAqC;AAAA,EAChD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AACd;AAMO,MAAM,wBAAqC;AAAA,EAChD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AACd;AAMO,MAAM,gCAA6C;AAAA,EACxD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AACZ;AAMO,MAAM,gCAA6C;AAAA,EACxD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AACZ;AAqCO,MAAM,YAAyB,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,EAAE,MAAM,gBAAgB;AAqBvG,MAAM,eAA4B,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,EAAE,MAAM,gBAAgB;AA0B1G,MAAM,kBAA+B,IAAI,qBAAqB,CAAC,6BAA6B,CAAC,EAAE;AAAA,EACpG;AACF;AAyBO,MAAM,qBAAkC,IAAI,qBAAqB,CAAC,6BAA6B,CAAC,EAAE;AAAA,EACvG;AACF;AAyBO,MAAM,kBAAkB,IAAI,qBAAqB,CAAC,uBAAuB,qBAAqB,CAAC;AA2B/F,SAAS,gBAAgB,WAA+C;AAC7E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF;AA+BO,MAAM,gBAAqC,IAAI,oBAAoB;AAAA,EACxE,UAAU,yBAAyB;AAAA,EACnC,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/testing/test-helpers.ts"],"sourcesContent":["// Test agent helpers for easy examples and quick testing\n// These provide pre-configured access to AdCP's public test agent\n\nimport { ADCPMultiAgentClient } from '../core/ADCPMultiAgentClient';\nimport { CreativeAgentClient, STANDARD_CREATIVE_AGENTS } from '../core/CreativeAgentClient';\nimport type { AgentClient } from '../core/AgentClient';\nimport type { AgentConfig } from '../types';\n\n/**\n * Public test agent auth token\n * This token is public and rate-limited, for testing/examples only.\n */\nexport const TEST_AGENT_TOKEN = '1v8tAhASaUYYp4odoQ1PnMpdqNaMiTrCRqYo9OJp6IQ';\n\n/**\n * Public test agent configuration - MCP protocol\n * This is the raw configuration object if you need to customize it\n */\nexport const TEST_AGENT_MCP_CONFIG: AgentConfig = {\n id: 'test-agent-mcp',\n name: 'AdCP Public Test Agent (MCP)',\n agent_uri: 'https://test-agent.adcontextprotocol.org/mcp/',\n protocol: 'mcp',\n auth_token: TEST_AGENT_TOKEN,\n};\n\n/**\n * Public test agent configuration - A2A protocol\n * This is the raw configuration object if you need to customize it\n */\nexport const TEST_AGENT_A2A_CONFIG: AgentConfig = {\n id: 'test-agent-a2a',\n name: 'AdCP Public Test Agent (A2A)',\n agent_uri: 'https://test-agent.adcontextprotocol.org',\n protocol: 'a2a',\n auth_token: TEST_AGENT_TOKEN,\n};\n\n/**\n * Public test agent configuration without authentication - MCP protocol\n * Demonstrates unauthenticated agent access patterns\n */\nexport const TEST_AGENT_NO_AUTH_MCP_CONFIG: AgentConfig = {\n id: 'test-agent-no-auth-mcp',\n name: 'AdCP Public Test Agent (MCP, No Auth)',\n agent_uri: 'https://test-agent.adcontextprotocol.org/mcp/',\n protocol: 'mcp',\n};\n\n/**\n * Public test agent configuration without authentication - A2A protocol\n * Demonstrates unauthenticated agent access patterns\n */\nexport const TEST_AGENT_NO_AUTH_A2A_CONFIG: AgentConfig = {\n id: 'test-agent-no-auth-a2a',\n name: 'AdCP Public Test Agent (A2A, No Auth)',\n agent_uri: 'https://test-agent.adcontextprotocol.org',\n protocol: 'a2a',\n};\n\n/**\n * Pre-configured test agent client using MCP protocol.\n * Ready to use for examples, documentation, and quick testing.\n *\n * @example\n * ```typescript\n * import { testAgent } from '@adcp/sdk/testing';\n *\n * // Simple getProducts call\n * const result = await testAgent.getProducts({\n * brief: 'Coffee subscription service for busy professionals',\n * promoted_offering: 'Premium monthly coffee deliveries'\n * });\n *\n * if (result.success) {\n * console.log(`Found ${result.data.products.length} products`);\n * }\n * ```\n *\n * @example\n * ```typescript\n * // With AI test orchestration (natural language instructions)\n * const result = await testAgent.createMediaBuy({\n * brief: 'Test campaign',\n * promoted_offering: 'Wait 10 seconds before responding',\n * products: ['prod_123'],\n * budget: 10000\n * });\n * ```\n *\n * @remarks\n * This agent is rate-limited and intended for testing/examples only.\n * The auth token is public and may be rotated without notice.\n * DO NOT use in production applications.\n */\nexport const testAgent: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_MCP_CONFIG]).agent('test-agent-mcp');\n\n/**\n * Pre-configured test agent client using A2A protocol.\n * Identical functionality to testAgent but uses A2A instead of MCP.\n *\n * @example\n * ```typescript\n * import { testAgentA2A } from '@adcp/sdk/testing';\n *\n * const result = await testAgentA2A.getProducts({\n * brief: 'Sustainable fashion brands',\n * promoted_offering: 'Eco-friendly clothing'\n * });\n * ```\n *\n * @remarks\n * This agent is rate-limited and intended for testing/examples only.\n * The auth token is public and may be rotated without notice.\n * DO NOT use in production applications.\n */\nexport const testAgentA2A: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_A2A_CONFIG]).agent('test-agent-a2a');\n\n/**\n * Pre-configured test agent client WITHOUT authentication (MCP protocol).\n * Demonstrates what happens when calling authenticated endpoints without auth.\n * Useful for testing error handling and showing auth vs no-auth differences.\n *\n * @example\n * ```typescript\n * import { testAgentNoAuth } from '@adcp/sdk/testing';\n *\n * // This will fail with authentication error\n * try {\n * const result = await testAgentNoAuth.getProducts({\n * brief: 'Coffee subscription',\n * promoted_offering: 'Premium coffee'\n * });\n * } catch (error) {\n * console.log('Expected auth error:', error.message);\n * }\n * ```\n *\n * @remarks\n * This agent intentionally does NOT include authentication.\n * Use it to demonstrate authentication requirements and error handling.\n */\nexport const testAgentNoAuth: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_NO_AUTH_MCP_CONFIG]).agent(\n 'test-agent-no-auth-mcp'\n);\n\n/**\n * Pre-configured test agent client WITHOUT authentication (A2A protocol).\n * Demonstrates what happens when calling authenticated endpoints without auth.\n * Useful for testing error handling and showing auth vs no-auth differences.\n *\n * @example\n * ```typescript\n * import { testAgentNoAuthA2A } from '@adcp/sdk/testing';\n *\n * // Compare authenticated vs unauthenticated\n * import { testAgentA2A } from '@adcp/sdk/testing';\n *\n * // This works (has auth)\n * const authResult = await testAgentA2A.getProducts({ brief: 'Test' });\n *\n * // This fails (no auth)\n * const noAuthResult = await testAgentNoAuthA2A.getProducts({ brief: 'Test' });\n * ```\n *\n * @remarks\n * This agent intentionally does NOT include authentication.\n * Use it to demonstrate authentication requirements and error handling.\n */\nexport const testAgentNoAuthA2A: AgentClient = new ADCPMultiAgentClient([TEST_AGENT_NO_AUTH_A2A_CONFIG]).agent(\n 'test-agent-no-auth-a2a'\n);\n\n/**\n * Multi-agent client with both test agents configured.\n * Useful for testing multi-agent patterns and protocol comparisons.\n *\n * @example\n * ```typescript\n * import { testAgentClient } from '@adcp/sdk/testing';\n *\n * // Access individual agents\n * const mcpAgent = testAgentClient.agent('test-agent-mcp');\n * const a2aAgent = testAgentClient.agent('test-agent-a2a');\n *\n * // Or use agent collection for parallel operations\n * const results = await testAgentClient.allAgents().getProducts({\n * brief: 'Premium coffee brands',\n * promoted_offering: 'Artisan coffee'\n * });\n * ```\n *\n * @remarks\n * This client is rate-limited and intended for testing/examples only.\n * DO NOT use in production applications.\n */\nexport const testAgentClient = new ADCPMultiAgentClient([TEST_AGENT_MCP_CONFIG, TEST_AGENT_A2A_CONFIG]);\n\n/**\n * Create a custom test agent configuration.\n * Useful when you need to modify the default test agent setup.\n *\n * @param overrides - Partial agent config to override defaults\n * @returns Complete agent configuration\n *\n * @example\n * ```typescript\n * import { createTestAgent, AdCPClient } from '@adcp/sdk/testing';\n *\n * // Use default test agent with custom ID\n * const config = createTestAgent({ id: 'my-test-agent' });\n * const client = new AdCPClient([config]);\n * ```\n *\n * @example\n * ```typescript\n * // Use A2A protocol instead of MCP\n * const config = createTestAgent({\n * protocol: 'a2a',\n * agent_uri: 'https://test-agent.adcontextprotocol.org'\n * });\n * ```\n */\nexport function createTestAgent(overrides?: Partial<AgentConfig>): AgentConfig {\n return {\n ...TEST_AGENT_MCP_CONFIG,\n ...overrides,\n };\n}\n\n// ====== CREATIVE AGENT HELPERS ======\n\n/**\n * Pre-configured creative agent client using MCP protocol.\n * Ready to use for creative generation and format listing.\n *\n * @example\n * ```typescript\n * import { creativeAgent } from '@adcp/sdk/testing';\n *\n * // List available creative formats\n * const formats = await creativeAgent.listFormatsLegacy();\n * console.log(`Found ${formats.length} creative formats`);\n * ```\n *\n * @example\n * ```typescript\n * // Find formats by dimensions\n * const formats = await creativeAgent.listFormatsLegacy();\n * const banner = formats.find(f =>\n * f.renders?.[0]?.dimensions?.width === 300 &&\n * f.renders?.[0]?.dimensions?.height === 250\n * );\n * ```\n *\n * @remarks\n * This is the official AdCP reference creative agent.\n * No authentication required for public endpoints.\n */\nexport const creativeAgent: CreativeAgentClient = new CreativeAgentClient({\n agentUrl: STANDARD_CREATIVE_AGENTS.ADCP_REFERENCE,\n protocol: 'mcp',\n});\n\n// Note: creativeAgentA2A is not exported because A2A protocol is not yet supported\n// on the creative agent. Only MCP is currently available.\n"],"mappings":"AAGA,SAAS,4BAA4B;AACrC,SAAS,qBAAqB,gCAAgC;AAQvD,MAAM,mBAAmB;AAMzB,MAAM,wBAAqC;AAAA,EAChD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AACd;AAMO,MAAM,wBAAqC;AAAA,EAChD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AACd;AAMO,MAAM,gCAA6C;AAAA,EACxD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AACZ;AAMO,MAAM,gCAA6C;AAAA,EACxD,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,WAAW;AAAA,EACX,UAAU;AACZ;AAqCO,MAAM,YAAyB,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,EAAE,MAAM,gBAAgB;AAqBvG,MAAM,eAA4B,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,EAAE,MAAM,gBAAgB;AA0B1G,MAAM,kBAA+B,IAAI,qBAAqB,CAAC,6BAA6B,CAAC,EAAE;AAAA,EACpG;AACF;AAyBO,MAAM,qBAAkC,IAAI,qBAAqB,CAAC,6BAA6B,CAAC,EAAE;AAAA,EACvG;AACF;AAyBO,MAAM,kBAAkB,IAAI,qBAAqB,CAAC,uBAAuB,qBAAqB,CAAC;AA2B/F,SAAS,gBAAgB,WAA+C;AAC7E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,EACL;AACF;AA+BO,MAAM,gBAAqC,IAAI,oBAAoB;AAAA,EACxE,UAAU,yBAAyB;AAAA,EACnC,UAAU;AACZ,CAAC;","names":[]}
@@ -15,12 +15,12 @@ export interface MediaBuy {
15
15
  /** Total budget amount (currency determined by pricing options) */
16
16
  total_budget: number;
17
17
  targeting: Targeting;
18
- creative_assets: CreativeAsset[];
18
+ creative_assets: LegacyManagedCreativeAsset[];
19
19
  delivery_schedule: DeliverySchedule;
20
20
  created_at: string;
21
21
  updated_at: string;
22
22
  }
23
- export interface CreativeAsset {
23
+ export interface LegacyManagedCreativeAsset {
24
24
  id: string;
25
25
  name: string;
26
26
  type: 'image' | 'video' | 'html' | 'native';
@@ -51,7 +51,7 @@ export interface CreativeSubAsset {
51
51
  height: number;
52
52
  };
53
53
  }
54
- export interface AdvertisingProduct {
54
+ export interface LegacyAdvertisingProduct {
55
55
  id: string;
56
56
  name: string;
57
57
  description: string;
@@ -61,10 +61,10 @@ export interface AdvertisingProduct {
61
61
  currency: string;
62
62
  minimum_spend?: number;
63
63
  targeting_capabilities: string[];
64
- creative_formats: CreativeFormat[];
64
+ creative_formats: LegacyCreativeFormatSummary[];
65
65
  inventory_details: InventoryDetails;
66
66
  }
67
- export interface CreativeFormat {
67
+ export interface LegacyCreativeFormatSummary {
68
68
  format_id: FormatID;
69
69
  name: string;
70
70
  dimensions: {
@@ -497,11 +497,11 @@ export interface CreativeComplianceData {
497
497
  export interface ManageCreativeAssetsRequest {
498
498
  action: 'upload' | 'list' | 'update' | 'assign' | 'unassign' | 'delete';
499
499
  adcp_version?: string;
500
- assets?: CreativeAsset[];
501
- filters?: CreativeFilters;
500
+ assets?: LegacyManagedCreativeAsset[];
501
+ filters?: LegacyManagedCreativeFilters;
502
502
  pagination?: PaginationOptions;
503
503
  creative_id?: string;
504
- updates?: Partial<CreativeAsset>;
504
+ updates?: Partial<LegacyManagedCreativeAsset>;
505
505
  creative_ids?: string[];
506
506
  media_buy_id?: string;
507
507
  buyer_ref?: string;
@@ -511,8 +511,8 @@ export interface ManageCreativeAssetsRequest {
511
511
  package_ids?: string[];
512
512
  archive?: boolean;
513
513
  }
514
- export interface SyncCreativesRequest {
515
- creatives: CreativeAsset[];
514
+ export interface LegacyManageSyncCreativesRequest {
515
+ creatives: LegacyManagedCreativeAsset[];
516
516
  patch?: boolean;
517
517
  dry_run?: boolean;
518
518
  assignments?: {
@@ -520,8 +520,8 @@ export interface SyncCreativesRequest {
520
520
  };
521
521
  validation_mode?: 'strict' | 'lenient';
522
522
  }
523
- export interface ListCreativesRequest {
524
- filters?: CreativeFilters;
523
+ export interface LegacyManageListCreativesRequest {
524
+ filters?: LegacyManagedCreativeFilters;
525
525
  sort?: {
526
526
  field: string;
527
527
  direction: 'asc' | 'desc';
@@ -530,7 +530,7 @@ export interface ListCreativesRequest {
530
530
  include_assignments?: boolean;
531
531
  include_performance?: boolean;
532
532
  }
533
- export interface CreativeFilters {
533
+ export interface LegacyManagedCreativeFilters {
534
534
  format?: FormatID | FormatID[];
535
535
  type?: ('image' | 'video' | 'html' | 'native') | ('image' | 'video' | 'html' | 'native')[];
536
536
  status?: string | string[];
@@ -592,7 +592,7 @@ export interface ManageCreativeAssetsResponse {
592
592
  };
593
593
  errors?: ManageCreativeAssetsError[];
594
594
  }
595
- export interface ListCreativesResponse {
595
+ export interface LegacyManageListCreativesResponse {
596
596
  success: boolean;
597
597
  creatives: CreativeLibraryItem[];
598
598
  total_count: number;
@@ -15,12 +15,12 @@ export interface MediaBuy {
15
15
  /** Total budget amount (currency determined by pricing options) */
16
16
  total_budget: number;
17
17
  targeting: Targeting;
18
- creative_assets: CreativeAsset[];
18
+ creative_assets: LegacyManagedCreativeAsset[];
19
19
  delivery_schedule: DeliverySchedule;
20
20
  created_at: string;
21
21
  updated_at: string;
22
22
  }
23
- export interface CreativeAsset {
23
+ export interface LegacyManagedCreativeAsset {
24
24
  id: string;
25
25
  name: string;
26
26
  type: 'image' | 'video' | 'html' | 'native';
@@ -51,7 +51,7 @@ export interface CreativeSubAsset {
51
51
  height: number;
52
52
  };
53
53
  }
54
- export interface AdvertisingProduct {
54
+ export interface LegacyAdvertisingProduct {
55
55
  id: string;
56
56
  name: string;
57
57
  description: string;
@@ -61,10 +61,10 @@ export interface AdvertisingProduct {
61
61
  currency: string;
62
62
  minimum_spend?: number;
63
63
  targeting_capabilities: string[];
64
- creative_formats: CreativeFormat[];
64
+ creative_formats: LegacyCreativeFormatSummary[];
65
65
  inventory_details: InventoryDetails;
66
66
  }
67
- export interface CreativeFormat {
67
+ export interface LegacyCreativeFormatSummary {
68
68
  format_id: FormatID;
69
69
  name: string;
70
70
  dimensions: {
@@ -497,11 +497,11 @@ export interface CreativeComplianceData {
497
497
  export interface ManageCreativeAssetsRequest {
498
498
  action: 'upload' | 'list' | 'update' | 'assign' | 'unassign' | 'delete';
499
499
  adcp_version?: string;
500
- assets?: CreativeAsset[];
501
- filters?: CreativeFilters;
500
+ assets?: LegacyManagedCreativeAsset[];
501
+ filters?: LegacyManagedCreativeFilters;
502
502
  pagination?: PaginationOptions;
503
503
  creative_id?: string;
504
- updates?: Partial<CreativeAsset>;
504
+ updates?: Partial<LegacyManagedCreativeAsset>;
505
505
  creative_ids?: string[];
506
506
  media_buy_id?: string;
507
507
  buyer_ref?: string;
@@ -511,8 +511,8 @@ export interface ManageCreativeAssetsRequest {
511
511
  package_ids?: string[];
512
512
  archive?: boolean;
513
513
  }
514
- export interface SyncCreativesRequest {
515
- creatives: CreativeAsset[];
514
+ export interface LegacyManageSyncCreativesRequest {
515
+ creatives: LegacyManagedCreativeAsset[];
516
516
  patch?: boolean;
517
517
  dry_run?: boolean;
518
518
  assignments?: {
@@ -520,8 +520,8 @@ export interface SyncCreativesRequest {
520
520
  };
521
521
  validation_mode?: 'strict' | 'lenient';
522
522
  }
523
- export interface ListCreativesRequest {
524
- filters?: CreativeFilters;
523
+ export interface LegacyManageListCreativesRequest {
524
+ filters?: LegacyManagedCreativeFilters;
525
525
  sort?: {
526
526
  field: string;
527
527
  direction: 'asc' | 'desc';
@@ -530,7 +530,7 @@ export interface ListCreativesRequest {
530
530
  include_assignments?: boolean;
531
531
  include_performance?: boolean;
532
532
  }
533
- export interface CreativeFilters {
533
+ export interface LegacyManagedCreativeFilters {
534
534
  format?: FormatID | FormatID[];
535
535
  type?: ('image' | 'video' | 'html' | 'native') | ('image' | 'video' | 'html' | 'native')[];
536
536
  status?: string | string[];
@@ -592,7 +592,7 @@ export interface ManageCreativeAssetsResponse {
592
592
  };
593
593
  errors?: ManageCreativeAssetsError[];
594
594
  }
595
- export interface ListCreativesResponse {
595
+ export interface LegacyManageListCreativesResponse {
596
596
  success: boolean;
597
597
  creatives: CreativeLibraryItem[];
598
598
  total_count: number;
@@ -1 +1 @@
1
- {"version":3,"file":"adcp.d.ts","sourceRoot":"","sources":["../../../src/lib/types/adcp.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,aAS/B,CAAC;AAKH,OAAO,KAAK,EACV,gCAAgC,EAChC,4BAA4B,EAC5B,0BAA0B,EAC1B,+BAA+B,IAAI,QAAQ,EAC3C,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,6BAA6B,EAC7B,yBAAyB,EACzB,sBAAsB,EACtB,0BAA0B,EAC1B,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,+BAA+B,EAC/B,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;IACxD,mEAAmE;IACnE,YAA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AC;CAC9B;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,iBAAiB,CAAC;AAEnH,MAAM,MAAM,sBAAsB,GAC9B,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,iBAAiB,GACjB,oBAAoB,GACpB,gBAAgB,GAChB,qBAAqB,GACrB,iBAAiB,GACjB,gBAAgB,GAChB,eAAe,GACf,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,wBAAwB,GACxB,QAAQ,CAAC;AAEb,iCAAiC;AACjC,MAAM,MAAM,mBAAmB,GAAG;IAChC,gBAAgB,EACZ,sBAAsB,GACtB,0BAA0B,GAC1B,gCAAgC,GAChC,4BAA4B,CAAC;IACjC,YAAY,EACR,mBAAmB,GACnB,uBAAuB,GACvB,6BAA6B,GAC7B,yBAAyB,CAAC;IAC9B,gBAAgB,EACZ,sBAAsB,GACtB,0BAA0B,GAC1B,gCAAgC,GAChC,4BAA4B,CAAC;IACjC,cAAc,EACV,qBAAqB,GACrB,yBAAyB,GACzB,+BAA+B,GAC/B,2BAA2B,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,MAAM,mBAAmB,IAAI,mBAAmB,CAAC,KAAK,CAAC,CAAC;AAEnG,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACnF,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAC5E,MAAM,MAAM,+BAA+B,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;AACnF,MAAM,MAAM,8BAA8B,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/types/adcp.ts"],"sourcesContent":["// AdCP Types - Based on official AdCP specification\n// https://adcontextprotocol.org/docs/reference/data-models\n\n/**\n * Protocol-level fields that bypass per-tool schema stripping.\n * These fields live at the AdCP envelope layer, not in individual tool schemas,\n * and must always be preserved when sending requests to agents.\n */\nexport const ADCP_ENVELOPE_FIELDS = new Set([\n 'adcp_major_version', // Protocol version negotiation — preserved so version probes reach the seller\n 'adcp_version', // AdCP 3.1+ release-precision version string (spec PR #3493) — preserved alongside the integer\n 'context', // Opaque pass-through for correlation and workflow state\n 'ext', // Vendor-namespaced extensions\n 'governance_context', // Governance approval token\n 'push_notification_config', // Webhook configuration for async operations\n 'context_id', // Legacy context identifier\n 'idempotency_key', // Prevents duplicate processing on retries\n]);\n\n// Import structured FormatID from generated core types. AdCP 3.0.1 renamed\n// the schema title to \"Format Reference (Structured Object)\" — wire shape\n// unchanged; we keep the local `FormatID` name via the `as` alias.\nimport type {\n CreateMediaBuyAsyncInputRequired,\n CreateMediaBuyAsyncSubmitted,\n CreateMediaBuyAsyncWorking,\n FormatReferenceStructuredObject as FormatID,\n FrequencyCap,\n CreateMediaBuyResponse,\n GetProductsResponse,\n GetProductsAsyncWorking,\n GetProductsAsyncInputRequired,\n GetProductsAsyncSubmitted,\n UpdateMediaBuyResponse,\n UpdateMediaBuyAsyncWorking,\n UpdateMediaBuyAsyncInputRequired,\n UpdateMediaBuyAsyncSubmitted,\n SyncCreativesAsyncWorking,\n SyncCreativesAsyncInputRequired,\n SyncCreativesAsyncSubmitted,\n SyncCreativesResponse,\n} from './core.generated';\n\nimport type { SigningProvider } from '../signing/provider';\n\nexport type { FrequencyCap } from './core.generated';\n\nexport interface MediaBuy {\n id: string;\n campaign_name?: string;\n advertiser_name?: string;\n status: 'active' | 'paused' | 'completed' | 'cancelled';\n /** Total budget amount (currency determined by pricing options) */\n total_budget: number;\n targeting: Targeting;\n creative_assets: CreativeAsset[];\n delivery_schedule: DeliverySchedule;\n created_at: string;\n updated_at: string;\n}\n\nexport interface CreativeAsset {\n id: string;\n name: string;\n type: 'image' | 'video' | 'html' | 'native';\n format: string;\n dimensions: {\n width: number;\n height: number;\n };\n // Support for both hosted and third-party assets\n url?: string; // For backward compatibility (deprecated)\n media_url?: string; // Hosted asset URL\n snippet?: string; // Third-party asset snippet\n snippet_type?: 'html' | 'javascript' | 'amp';\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n file_size?: number;\n duration?: number;\n // Enhanced metadata\n tags?: string[];\n sub_assets?: CreativeSubAsset[];\n created_at?: string;\n updated_at?: string;\n}\n\nexport interface CreativeSubAsset {\n id: string;\n name: string;\n type: 'companion' | 'thumbnail' | 'preview';\n media_url: string;\n dimensions?: {\n width: number;\n height: number;\n };\n}\n\nexport interface AdvertisingProduct {\n id: string;\n name: string;\n description: string;\n type: 'display' | 'video' | 'native' | 'audio' | 'connected_tv';\n pricing_model: 'cpm' | 'cpc' | 'cpa' | 'fixed';\n base_price: number;\n currency: string;\n minimum_spend?: number;\n targeting_capabilities: string[];\n creative_formats: CreativeFormat[];\n inventory_details: InventoryDetails;\n}\n\nexport interface CreativeFormat {\n format_id: FormatID;\n name: string;\n dimensions: {\n width: number;\n height: number;\n };\n aspect_ratio?: string;\n file_types: string[];\n max_file_size: number;\n duration_range?: {\n min: number;\n max: number;\n };\n}\n\nexport interface InventoryDetails {\n sources: string[];\n quality_score?: number;\n brand_safety_level?: 'high' | 'medium' | 'low';\n viewability_rate?: number;\n geographic_coverage: string[];\n}\n\nexport interface Targeting {\n geographic?: GeographicTargeting;\n demographic?: DemographicTargeting;\n behavioral?: BehavioralTargeting;\n contextual?: ContextualTargeting;\n device?: DeviceTargeting;\n frequency_cap?: FrequencyCap;\n}\n\nexport interface GeographicTargeting {\n countries?: string[];\n regions?: string[];\n cities?: string[];\n postal_codes?: string[];\n}\n\nexport interface DemographicTargeting {\n age_ranges?: {\n min: number;\n max: number;\n }[];\n genders?: ('male' | 'female' | 'other')[];\n income_ranges?: {\n min: number;\n max: number;\n currency: string;\n }[];\n}\n\nexport interface BehavioralTargeting {\n interests?: string[];\n purchase_intent?: string[];\n life_events?: string[];\n}\n\nexport interface ContextualTargeting {\n keywords?: string[];\n topics?: string[];\n content_categories?: string[];\n website_categories?: string[];\n}\n\nexport interface DeviceTargeting {\n device_types?: ('mobile' | 'tablet' | 'desktop' | 'connected_tv')[];\n operating_systems?: string[];\n browsers?: string[];\n}\n\nexport interface DeliverySchedule {\n start_date: string;\n end_date?: string;\n time_zone: string;\n day_parting?: DayParting[];\n}\n\nexport interface DayParting {\n days_of_week: ('monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday')[];\n hours: {\n start: number;\n end: number;\n };\n}\n\n/**\n * OAuth tokens for agent authentication\n */\nexport interface AgentOAuthTokens {\n /** OAuth access token */\n access_token: string;\n /** OAuth refresh token (for token renewal) */\n refresh_token?: string;\n /** Token type (usually \"Bearer\") */\n token_type?: string;\n /** Seconds until access_token expires */\n expires_in?: number;\n /** ISO timestamp when access_token expires */\n expires_at?: string;\n /** OAuth scope */\n scope?: string;\n}\n\n/**\n * OAuth client information (from dynamic registration)\n */\nexport interface AgentOAuthClient {\n /** OAuth client ID */\n client_id: string;\n /** OAuth client secret (for confidential clients) */\n client_secret?: string;\n /** When client_secret expires */\n client_secret_expires_at?: number;\n}\n\n/**\n * OAuth 2.0 client credentials grant configuration (RFC 6749 §4.4).\n *\n * For machine-to-machine authentication where no user is present — the\n * library exchanges the client ID + secret directly with the authorization\n * server. Tokens are cached in `AgentConfig.oauth_tokens` and re-exchanged\n * by `ensureClientCredentialsTokens` when they near expiry.\n *\n * Secret values (`client_id`, `client_secret`) may be either literal strings\n * or env-var references in the form `$ENV:VAR_NAME`. References are resolved\n * at token-exchange time by `resolveSecret`, so secrets never need to land\n * on disk for CI use cases.\n *\n * @example Literal secret (local dev)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: 'shh-its-a-secret',\n * scope: 'adcp',\n * };\n * ```\n *\n * @example Env-var reference (CI — no on-disk secret)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: '$ENV:ADCP_CLIENT_SECRET',\n * scope: 'adcp',\n * audience: 'https://agent.example.com',\n * };\n * ```\n */\nexport interface AgentOAuthClientCredentials {\n /**\n * Authorization server token endpoint. Must be HTTPS unless it points at\n * `localhost` / `127.0.0.1` (dev/test carve-out). The exchange helper\n * rejects non-HTTPS URLs at runtime to keep the client secret off the\n * wire in plaintext.\n */\n token_endpoint: string;\n /** OAuth client ID. May be a `$ENV:VAR` reference. */\n client_id: string;\n /** OAuth client secret. May be a `$ENV:VAR` reference. */\n client_secret: string;\n /** Requested OAuth scope (space-delimited for multiple). */\n scope?: string;\n /**\n * RFC 8707 resource indicator(s). Advertises the protected resource the\n * issued token will be used against, so the AS can mint an\n * audience-bound token. Required by some AS deployments (Keycloak in\n * strict mode, AWS Cognito with resource servers) when the agent is\n * behind a proxy that validates `aud`. Accepts a single URI or an array\n * — the library sends one `resource` form field per entry.\n */\n resource?: string | string[];\n /**\n * Audience parameter. Non-standard in RFC 6749 but widely supported by\n * Auth0, Okta, and Azure AD as the preferred way to request an\n * audience-bound token. Send this when the AS documentation calls for\n * `audience=`; otherwise prefer `resource` (RFC 8707).\n */\n audience?: string;\n /**\n * Where to put client credentials on the token request.\n * - `basic` (default): HTTP Basic Auth header (RFC 6749 §2.3.1 preferred).\n * - `body`: `client_id` / `client_secret` form fields in the body.\n *\n * RFC 6749 says servers MUST support Basic and MAY support body — a few\n * popular providers only accept body, so this toggle exists.\n */\n auth_method?: 'basic' | 'body';\n}\n\n/**\n * Private JWK carrying the `d` scalar required to sign. Narrower than the\n * generic JWK shape to give hand-authors a compiler error when they paste\n * the public JWK (which lacks `d`) by accident.\n */\nexport interface AdcpPrivateJsonWebKey {\n kid: string;\n kty: string;\n crv?: string;\n alg?: string;\n use?: string;\n key_ops?: string[];\n x?: string;\n y?: string;\n /** Private scalar. Required for signing. */\n d: string;\n [extra: string]: unknown;\n}\n\n/**\n * Request-signing configuration for an agent. When present on an AgentConfig,\n * outbound MCP/A2A calls are gated by the seller's advertised\n * `request_signing` capability block (fetched once via `get_adcp_capabilities`\n * and cached): operations listed in `required_for` / `supported_for` (or\n * `always_sign`) are signed with this key per RFC 9421.\n *\n * Content-digest coverage is resolved per request from the seller's\n * advertised `covers_content_digest` policy: `required` covers, `forbidden`\n * omits, `either` (or absent) covers by default — body-binding is the safer\n * choice and a seller advertising `either` has explicitly allowed both forms.\n *\n * Two shapes, discriminated on `kind`:\n * - `'inline'` (default) — private JWK held in process memory.\n * - `'provider'` — delegates `sign()` to a {@link SigningProvider} so private\n * key material can live in a managed key store (GCP KMS, AWS KMS, etc.).\n */\nexport type AgentRequestSigningConfig = AgentRequestSigningConfigInline | AgentRequestSigningConfigProvider;\n\n/** Operation-list overrides shared by both `request_signing` shapes. */\nexport interface AgentRequestSigningOperationOverrides {\n /**\n * AdCP operation names to sign regardless of the seller's advertisement.\n * Useful during pilots before a counterparty flips an op into `required_for`.\n */\n always_sign?: string[];\n /**\n * When true, also sign operations the seller lists in `supported_for` (but\n * not `required_for`). Defaults to false — conservative \"sign what the\n * seller asks for\" behavior.\n */\n sign_supported?: boolean;\n /**\n * Informational mirror of the JWKS endpoint where this agent publishes\n * its verification keys. Verifiers do not read this field — they walk\n * brand.json from `agent_url` to discover the authoritative `jwks_uri`.\n * The field is carried on the buyer-side config so audit logs, custom\n * verifier wiring, and split-domain setups have a single self-describing\n * source of truth that matches what brand.json publishes.\n *\n * Common case: split-domain setups where the JWKS lives off the\n * conventional `${agent_url}/.well-known/jwks.json` path (identity\n * domain separate from the agent endpoint). Make sure brand.json's\n * `jwks_uri` agrees with whatever you set here — brand.json is\n * authoritative; this field documents intent.\n */\n jwks_uri?: string;\n}\n\n/**\n * In-process signing identity. The SDK loads the private JWK at request time\n * and signs synchronously — appropriate for development, testing, and\n * deployments where holding the private scalar in process memory is\n * acceptable.\n *\n * `kind` defaults to `'inline'` so existing literals without the field\n * continue to type-check.\n */\nexport interface AgentRequestSigningConfigInline extends AgentRequestSigningOperationOverrides {\n /** Discriminator. Defaults to `'inline'` so legacy literals work unchanged. */\n kind?: 'inline';\n /** Key identifier (published by the buyer at its JWKS endpoint) */\n kid: string;\n /** Signature algorithm. Must match the key material. */\n alg: 'ed25519' | 'ecdsa-p256-sha256';\n /**\n * Private signing key as a JWK. Must include `d` (the private scalar);\n * other fields mirror the public JWK the buyer publishes for verification.\n */\n private_key: AdcpPrivateJsonWebKey;\n /**\n * Agent's base URL (e.g., `https://buyer.example.com`). Consistent with\n * every other `agent_url` field across AdCP — formats, creatives, signals,\n * brand. Sellers derive the JWKS endpoint via the conventional well-known\n * suffix (`{agent_url}/.well-known/adcp-jwks.json`); a handful of deploys\n * override the path via seller-side resolver configuration.\n *\n * The client does not read this field — the signer only needs the local\n * private key — but it's carried here so the field sits next to `kid` /\n * `alg` / `private_key` and is available to downstream audit logging or\n * custom verifier wiring.\n */\n agent_url: string;\n}\n\n/**\n * KMS-backed (or otherwise externalized) signing identity. The SDK calls\n * `provider.sign(payload)` on every signed request — async, may dispatch\n * to a managed key store. Use a {@link SigningProvider} for production\n * deployments that keep private keys out of process memory.\n *\n * The `kid` and `alg` come from the provider itself; this shape only carries\n * the agent's `agent_url` and the operation-list overrides.\n */\nexport interface AgentRequestSigningConfigProvider extends AgentRequestSigningOperationOverrides {\n kind: 'provider';\n /**\n * The signing provider that produces RFC 9421 signature bytes. Imported\n * from `@adcp/sdk/signing` — see `SigningProvider` for the interface\n * contract and `examples/gcp-kms-signing-provider.ts` for a reference\n * KMS adapter.\n */\n provider: SigningProvider;\n /** Agent base URL — same semantics as the inline shape. */\n agent_url: string;\n}\n\n// Agent Configuration Types\nexport interface AgentConfig {\n id: string;\n name: string;\n agent_uri: string;\n protocol: 'mcp' | 'a2a';\n\n /**\n * Static authentication token\n * Use this for API keys or pre-issued bearer tokens\n */\n auth_token?: string;\n\n /**\n * OAuth tokens for dynamic authentication\n * The client will automatically refresh tokens when they expire\n */\n oauth_tokens?: AgentOAuthTokens;\n\n /**\n * OAuth client registration info\n * Stored after dynamic client registration\n */\n oauth_client?: AgentOAuthClient;\n\n /**\n * OAuth 2.0 client credentials grant configuration (M2M).\n * When present, tokens in `oauth_tokens` are refreshed by re-exchanging\n * these credentials against `token_endpoint` — there is no user-facing\n * authorization flow.\n */\n oauth_client_credentials?: AgentOAuthClientCredentials;\n\n /**\n * PKCE code verifier (temporary, during OAuth flow)\n * @internal\n */\n oauth_code_verifier?: string;\n\n /**\n * Additional HTTP headers to include in every request to this agent.\n * Useful for sending API keys, org IDs, or other vendor-specific headers\n * alongside the standard authorization token.\n *\n * Example:\n * ```typescript\n * headers: {\n * 'x-api-key': 'quota-key',\n * 'x-org-id': 'org-123'\n * }\n * ```\n */\n headers?: Record<string, string>;\n\n /**\n * Optional — when set, outbound requests to this agent are signed per\n * RFC 9421 for operations the agent advertises in its `request_signing`\n * capability block (fetched once via `get_adcp_capabilities` and cached\n * by the client). See {@link AgentRequestSigningConfig}.\n */\n request_signing?: AgentRequestSigningConfig;\n\n /**\n * Pre-connected MCP `Client` for in-process testing without an HTTP loopback server.\n * When present, tool calls are dispatched directly to this client, bypassing URL\n * validation, OAuth refresh, and the connection cache. All client-side pipeline\n * stages (idempotency injection, schema validation, governance middleware) still apply.\n *\n * Do not set this field directly — use `AgentClient.fromMCPClient()` instead.\n * @internal\n */\n _inProcessMcpClient?: import('@modelcontextprotocol/sdk/client/index.js').Client;\n}\n\n// Testing Types\nexport interface TestRequest {\n agents: AgentConfig[];\n brief: string;\n brand_manifest?: string; // Replaces deprecated promoted_offering\n tool_name?: string;\n}\n\n/** Structured debug log entry emitted during protocol and governance interactions */\nexport interface DebugLogEntry {\n type: string;\n [key: string]: unknown;\n}\n\nexport interface TestResult {\n agent_id: string;\n agent_name: string;\n success: boolean;\n response_time_ms: number;\n data?: unknown;\n error?: string;\n timestamp: string;\n debug_logs?: DebugLogEntry[];\n validation?: Record<string, unknown>;\n}\n\n// API Response Types\nexport interface ApiResponse<T = unknown> {\n success: boolean;\n data?: T;\n error?: string;\n timestamp: string;\n}\n\nexport interface AgentListResponse {\n agents: AgentConfig[];\n total: number;\n}\n\nexport interface TestResponse {\n test_id: string;\n results: TestResult[];\n summary: {\n total_agents: number;\n successful: number;\n failed: number;\n average_response_time_ms: number;\n };\n}\n\n// Creative Library Management Types (AdCP v1.3.0)\nexport interface CreativeLibraryItem {\n creative_id: string;\n name: string;\n format: string;\n type: 'image' | 'video' | 'html' | 'native';\n // Asset content (mutually exclusive)\n media_url?: string;\n snippet?: string;\n snippet_type?: 'html' | 'javascript' | 'amp';\n // Metadata\n dimensions?: {\n width: number;\n height: number;\n };\n file_size?: number;\n duration?: number;\n tags?: string[];\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n // Library-specific fields\n created_date: string;\n last_updated: string;\n assignments: string[]; // Array of media_buy_ids or package_ids\n assignment_count: number;\n performance_metrics?: CreativePerformanceMetrics;\n compliance?: CreativeComplianceData;\n sub_assets?: CreativeSubAsset[];\n}\n\nexport interface CreativePerformanceMetrics {\n impressions?: number;\n clicks?: number;\n ctr?: number;\n conversions?: number;\n cost_per_conversion?: number;\n performance_score?: number;\n last_updated: string;\n}\n\nexport interface CreativeComplianceData {\n brand_safety_status: 'approved' | 'flagged' | 'rejected' | 'pending';\n policy_violations?: string[];\n last_reviewed: string;\n reviewer_notes?: string;\n}\n\n// New Task Request/Response Types\nexport interface ManageCreativeAssetsRequest {\n action: 'upload' | 'list' | 'update' | 'assign' | 'unassign' | 'delete';\n adcp_version?: string;\n // Action-specific parameters\n assets?: CreativeAsset[]; // For upload\n filters?: CreativeFilters; // For list\n pagination?: PaginationOptions; // For list\n creative_id?: string; // For update\n updates?: Partial<CreativeAsset>; // For update\n creative_ids?: string[]; // For assign/unassign/delete\n media_buy_id?: string; // For assign/unassign\n buyer_ref?: string; // For assign/unassign\n package_assignments?: { [creative_id: string]: string[] }; // For assign\n package_ids?: string[]; // For unassign\n archive?: boolean; // For delete (soft vs hard delete)\n}\n\nexport interface SyncCreativesRequest {\n creatives: CreativeAsset[];\n patch?: boolean; // Enable partial updates\n dry_run?: boolean; // Preview changes without applying\n assignments?: { [creative_id: string]: string[] }; // Bulk assign to packages\n validation_mode?: 'strict' | 'lenient';\n}\n\nexport interface ListCreativesRequest {\n filters?: CreativeFilters;\n sort?: {\n field: string;\n direction: 'asc' | 'desc';\n };\n pagination?: PaginationOptions;\n include_assignments?: boolean;\n include_performance?: boolean;\n}\n\nexport interface CreativeFilters {\n format?: FormatID | FormatID[];\n type?: ('image' | 'video' | 'html' | 'native') | ('image' | 'video' | 'html' | 'native')[];\n status?: string | string[];\n tags?: string | string[];\n created_after?: string;\n created_before?: string;\n updated_after?: string;\n updated_before?: string;\n assigned_to?: string; // media_buy_id or package_id\n performance_score_min?: number;\n performance_score_max?: number;\n}\n\n/** @deprecated Use PaginationRequest from tools.generated instead */\nexport interface PaginationOptions {\n offset?: number;\n limit?: number;\n cursor?: string;\n}\n\nexport type ManageCreativeAssetsError = {\n creative_id?: string;\n message: string;\n} & (\n | {\n code: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code?: string;\n }\n | {\n code?: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code: string;\n }\n);\n\n// Response Types\nexport interface ManageCreativeAssetsResponse {\n success: boolean;\n action: string;\n results?: {\n uploaded?: CreativeLibraryItem[];\n listed?: {\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n };\n updated?: CreativeLibraryItem;\n assigned?: {\n creative_id: string;\n assignments: string[];\n }[];\n unassigned?: {\n creative_id: string;\n removed_from: string[];\n }[];\n deleted?: {\n creative_id: string;\n archived: boolean;\n }[];\n };\n errors?: ManageCreativeAssetsError[];\n}\n\nexport interface ListCreativesResponse {\n success: boolean;\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n}\n\n// Property Types - Used for discovery and property management\nexport interface Property {\n property_id?: string;\n property_type: PropertyType;\n name: string;\n identifiers: PropertyIdentifier[];\n tags?: string[];\n publisher_domain?: string;\n}\n\nexport interface PropertyIdentifier {\n type: PropertyIdentifierType;\n value: string;\n include_subdomains?: boolean;\n}\n\nexport type PropertyType = 'website' | 'mobile_app' | 'ctv_app' | 'dooh' | 'podcast' | 'radio' | 'streaming_audio';\n\nexport type PropertyIdentifierType =\n | 'domain'\n | 'subdomain'\n | 'ios_bundle'\n | 'android_package'\n | 'apple_app_store_id'\n | 'google_play_id'\n | 'amazon_app_store_id'\n | 'roku_channel_id'\n | 'samsung_app_id'\n | 'lg_channel_id'\n | 'vizio_app_id'\n | 'fire_tv_app_id'\n | 'dooh_venue_id'\n | 'podcast_rss_feed'\n | 'spotify_show_id'\n | 'apple_podcast_id'\n | 'iab_tech_lab_domain_id'\n | 'custom';\n\n/** Grouped types by tool type */\nexport type AsyncResponseByTask = {\n create_media_buy:\n | CreateMediaBuyResponse\n | CreateMediaBuyAsyncWorking\n | CreateMediaBuyAsyncInputRequired\n | CreateMediaBuyAsyncSubmitted;\n get_products:\n | GetProductsResponse\n | GetProductsAsyncWorking\n | GetProductsAsyncInputRequired\n | GetProductsAsyncSubmitted;\n update_media_buy:\n | UpdateMediaBuyResponse\n | UpdateMediaBuyAsyncWorking\n | UpdateMediaBuyAsyncInputRequired\n | UpdateMediaBuyAsyncSubmitted;\n sync_creatives:\n | SyncCreativesResponse\n | SyncCreativesAsyncWorking\n | SyncCreativesAsyncInputRequired\n | SyncCreativesAsyncSubmitted;\n};\n\nexport type AsyncResponseFor<TTask extends keyof AsyncResponseByTask> = AsyncResponseByTask[TTask];\n\nexport type CreateMediaBuyAsyncResponseData = AsyncResponseFor<'create_media_buy'>;\nexport type GetProductsAsyncResponseData = AsyncResponseFor<'get_products'>;\nexport type UpdateMediaBuyAsyncResponseData = AsyncResponseFor<'update_media_buy'>;\nexport type SyncCreativesAsyncResponseData = AsyncResponseFor<'sync_creatives'>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,uBAAuB,oBAAI,IAAI;AAAA,EAC1C;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/types/adcp.ts"],"sourcesContent":["// AdCP Types - Based on official AdCP specification\n// https://adcontextprotocol.org/docs/reference/data-models\n\n/**\n * Protocol-level fields that bypass per-tool schema stripping.\n * These fields live at the AdCP envelope layer, not in individual tool schemas,\n * and must always be preserved when sending requests to agents.\n */\nexport const ADCP_ENVELOPE_FIELDS = new Set([\n 'adcp_major_version', // Protocol version negotiation — preserved so version probes reach the seller\n 'adcp_version', // AdCP 3.1+ release-precision version string (spec PR #3493) — preserved alongside the integer\n 'context', // Opaque pass-through for correlation and workflow state\n 'ext', // Vendor-namespaced extensions\n 'governance_context', // Governance approval token\n 'push_notification_config', // Webhook configuration for async operations\n 'context_id', // Legacy context identifier\n 'idempotency_key', // Prevents duplicate processing on retries\n]);\n\n// Import structured FormatID from generated core types. AdCP 3.0.1 renamed\n// the schema title to \"Format Reference (Structured Object)\" — wire shape\n// unchanged; we keep the local `FormatID` name via the `as` alias.\nimport type {\n CreateMediaBuyAsyncInputRequired,\n CreateMediaBuyAsyncSubmitted,\n CreateMediaBuyAsyncWorking,\n FormatReferenceStructuredObject as FormatID,\n FrequencyCap,\n CreateMediaBuyResponse,\n GetProductsResponse,\n GetProductsAsyncWorking,\n GetProductsAsyncInputRequired,\n GetProductsAsyncSubmitted,\n UpdateMediaBuyResponse,\n UpdateMediaBuyAsyncWorking,\n UpdateMediaBuyAsyncInputRequired,\n UpdateMediaBuyAsyncSubmitted,\n SyncCreativesAsyncWorking,\n SyncCreativesAsyncInputRequired,\n SyncCreativesAsyncSubmitted,\n SyncCreativesResponse,\n} from './core.generated';\n\nimport type { SigningProvider } from '../signing/provider';\n\nexport type { FrequencyCap } from './core.generated';\n\nexport interface MediaBuy {\n id: string;\n campaign_name?: string;\n advertiser_name?: string;\n status: 'active' | 'paused' | 'completed' | 'cancelled';\n /** Total budget amount (currency determined by pricing options) */\n total_budget: number;\n targeting: Targeting;\n creative_assets: LegacyManagedCreativeAsset[];\n delivery_schedule: DeliverySchedule;\n created_at: string;\n updated_at: string;\n}\n\nexport interface LegacyManagedCreativeAsset {\n id: string;\n name: string;\n type: 'image' | 'video' | 'html' | 'native';\n format: string;\n dimensions: {\n width: number;\n height: number;\n };\n // Support for both hosted and third-party assets\n url?: string; // For backward compatibility (deprecated)\n media_url?: string; // Hosted asset URL\n snippet?: string; // Third-party asset snippet\n snippet_type?: 'html' | 'javascript' | 'amp';\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n file_size?: number;\n duration?: number;\n // Enhanced metadata\n tags?: string[];\n sub_assets?: CreativeSubAsset[];\n created_at?: string;\n updated_at?: string;\n}\n\nexport interface CreativeSubAsset {\n id: string;\n name: string;\n type: 'companion' | 'thumbnail' | 'preview';\n media_url: string;\n dimensions?: {\n width: number;\n height: number;\n };\n}\n\nexport interface LegacyAdvertisingProduct {\n id: string;\n name: string;\n description: string;\n type: 'display' | 'video' | 'native' | 'audio' | 'connected_tv';\n pricing_model: 'cpm' | 'cpc' | 'cpa' | 'fixed';\n base_price: number;\n currency: string;\n minimum_spend?: number;\n targeting_capabilities: string[];\n creative_formats: LegacyCreativeFormatSummary[];\n inventory_details: InventoryDetails;\n}\n\nexport interface LegacyCreativeFormatSummary {\n format_id: FormatID;\n name: string;\n dimensions: {\n width: number;\n height: number;\n };\n aspect_ratio?: string;\n file_types: string[];\n max_file_size: number;\n duration_range?: {\n min: number;\n max: number;\n };\n}\n\nexport interface InventoryDetails {\n sources: string[];\n quality_score?: number;\n brand_safety_level?: 'high' | 'medium' | 'low';\n viewability_rate?: number;\n geographic_coverage: string[];\n}\n\nexport interface Targeting {\n geographic?: GeographicTargeting;\n demographic?: DemographicTargeting;\n behavioral?: BehavioralTargeting;\n contextual?: ContextualTargeting;\n device?: DeviceTargeting;\n frequency_cap?: FrequencyCap;\n}\n\nexport interface GeographicTargeting {\n countries?: string[];\n regions?: string[];\n cities?: string[];\n postal_codes?: string[];\n}\n\nexport interface DemographicTargeting {\n age_ranges?: {\n min: number;\n max: number;\n }[];\n genders?: ('male' | 'female' | 'other')[];\n income_ranges?: {\n min: number;\n max: number;\n currency: string;\n }[];\n}\n\nexport interface BehavioralTargeting {\n interests?: string[];\n purchase_intent?: string[];\n life_events?: string[];\n}\n\nexport interface ContextualTargeting {\n keywords?: string[];\n topics?: string[];\n content_categories?: string[];\n website_categories?: string[];\n}\n\nexport interface DeviceTargeting {\n device_types?: ('mobile' | 'tablet' | 'desktop' | 'connected_tv')[];\n operating_systems?: string[];\n browsers?: string[];\n}\n\nexport interface DeliverySchedule {\n start_date: string;\n end_date?: string;\n time_zone: string;\n day_parting?: DayParting[];\n}\n\nexport interface DayParting {\n days_of_week: ('monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday')[];\n hours: {\n start: number;\n end: number;\n };\n}\n\n/**\n * OAuth tokens for agent authentication\n */\nexport interface AgentOAuthTokens {\n /** OAuth access token */\n access_token: string;\n /** OAuth refresh token (for token renewal) */\n refresh_token?: string;\n /** Token type (usually \"Bearer\") */\n token_type?: string;\n /** Seconds until access_token expires */\n expires_in?: number;\n /** ISO timestamp when access_token expires */\n expires_at?: string;\n /** OAuth scope */\n scope?: string;\n}\n\n/**\n * OAuth client information (from dynamic registration)\n */\nexport interface AgentOAuthClient {\n /** OAuth client ID */\n client_id: string;\n /** OAuth client secret (for confidential clients) */\n client_secret?: string;\n /** When client_secret expires */\n client_secret_expires_at?: number;\n}\n\n/**\n * OAuth 2.0 client credentials grant configuration (RFC 6749 §4.4).\n *\n * For machine-to-machine authentication where no user is present — the\n * library exchanges the client ID + secret directly with the authorization\n * server. Tokens are cached in `AgentConfig.oauth_tokens` and re-exchanged\n * by `ensureClientCredentialsTokens` when they near expiry.\n *\n * Secret values (`client_id`, `client_secret`) may be either literal strings\n * or env-var references in the form `$ENV:VAR_NAME`. References are resolved\n * at token-exchange time by `resolveSecret`, so secrets never need to land\n * on disk for CI use cases.\n *\n * @example Literal secret (local dev)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: 'shh-its-a-secret',\n * scope: 'adcp',\n * };\n * ```\n *\n * @example Env-var reference (CI — no on-disk secret)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: '$ENV:ADCP_CLIENT_SECRET',\n * scope: 'adcp',\n * audience: 'https://agent.example.com',\n * };\n * ```\n */\nexport interface AgentOAuthClientCredentials {\n /**\n * Authorization server token endpoint. Must be HTTPS unless it points at\n * `localhost` / `127.0.0.1` (dev/test carve-out). The exchange helper\n * rejects non-HTTPS URLs at runtime to keep the client secret off the\n * wire in plaintext.\n */\n token_endpoint: string;\n /** OAuth client ID. May be a `$ENV:VAR` reference. */\n client_id: string;\n /** OAuth client secret. May be a `$ENV:VAR` reference. */\n client_secret: string;\n /** Requested OAuth scope (space-delimited for multiple). */\n scope?: string;\n /**\n * RFC 8707 resource indicator(s). Advertises the protected resource the\n * issued token will be used against, so the AS can mint an\n * audience-bound token. Required by some AS deployments (Keycloak in\n * strict mode, AWS Cognito with resource servers) when the agent is\n * behind a proxy that validates `aud`. Accepts a single URI or an array\n * — the library sends one `resource` form field per entry.\n */\n resource?: string | string[];\n /**\n * Audience parameter. Non-standard in RFC 6749 but widely supported by\n * Auth0, Okta, and Azure AD as the preferred way to request an\n * audience-bound token. Send this when the AS documentation calls for\n * `audience=`; otherwise prefer `resource` (RFC 8707).\n */\n audience?: string;\n /**\n * Where to put client credentials on the token request.\n * - `basic` (default): HTTP Basic Auth header (RFC 6749 §2.3.1 preferred).\n * - `body`: `client_id` / `client_secret` form fields in the body.\n *\n * RFC 6749 says servers MUST support Basic and MAY support body — a few\n * popular providers only accept body, so this toggle exists.\n */\n auth_method?: 'basic' | 'body';\n}\n\n/**\n * Private JWK carrying the `d` scalar required to sign. Narrower than the\n * generic JWK shape to give hand-authors a compiler error when they paste\n * the public JWK (which lacks `d`) by accident.\n */\nexport interface AdcpPrivateJsonWebKey {\n kid: string;\n kty: string;\n crv?: string;\n alg?: string;\n use?: string;\n key_ops?: string[];\n x?: string;\n y?: string;\n /** Private scalar. Required for signing. */\n d: string;\n [extra: string]: unknown;\n}\n\n/**\n * Request-signing configuration for an agent. When present on an AgentConfig,\n * outbound MCP/A2A calls are gated by the seller's advertised\n * `request_signing` capability block (fetched once via `get_adcp_capabilities`\n * and cached): operations listed in `required_for` / `supported_for` (or\n * `always_sign`) are signed with this key per RFC 9421.\n *\n * Content-digest coverage is resolved per request from the seller's\n * advertised `covers_content_digest` policy: `required` covers, `forbidden`\n * omits, `either` (or absent) covers by default — body-binding is the safer\n * choice and a seller advertising `either` has explicitly allowed both forms.\n *\n * Two shapes, discriminated on `kind`:\n * - `'inline'` (default) — private JWK held in process memory.\n * - `'provider'` — delegates `sign()` to a {@link SigningProvider} so private\n * key material can live in a managed key store (GCP KMS, AWS KMS, etc.).\n */\nexport type AgentRequestSigningConfig = AgentRequestSigningConfigInline | AgentRequestSigningConfigProvider;\n\n/** Operation-list overrides shared by both `request_signing` shapes. */\nexport interface AgentRequestSigningOperationOverrides {\n /**\n * AdCP operation names to sign regardless of the seller's advertisement.\n * Useful during pilots before a counterparty flips an op into `required_for`.\n */\n always_sign?: string[];\n /**\n * When true, also sign operations the seller lists in `supported_for` (but\n * not `required_for`). Defaults to false — conservative \"sign what the\n * seller asks for\" behavior.\n */\n sign_supported?: boolean;\n /**\n * Informational mirror of the JWKS endpoint where this agent publishes\n * its verification keys. Verifiers do not read this field — they walk\n * brand.json from `agent_url` to discover the authoritative `jwks_uri`.\n * The field is carried on the buyer-side config so audit logs, custom\n * verifier wiring, and split-domain setups have a single self-describing\n * source of truth that matches what brand.json publishes.\n *\n * Common case: split-domain setups where the JWKS lives off the\n * conventional `${agent_url}/.well-known/jwks.json` path (identity\n * domain separate from the agent endpoint). Make sure brand.json's\n * `jwks_uri` agrees with whatever you set here — brand.json is\n * authoritative; this field documents intent.\n */\n jwks_uri?: string;\n}\n\n/**\n * In-process signing identity. The SDK loads the private JWK at request time\n * and signs synchronously — appropriate for development, testing, and\n * deployments where holding the private scalar in process memory is\n * acceptable.\n *\n * `kind` defaults to `'inline'` so existing literals without the field\n * continue to type-check.\n */\nexport interface AgentRequestSigningConfigInline extends AgentRequestSigningOperationOverrides {\n /** Discriminator. Defaults to `'inline'` so legacy literals work unchanged. */\n kind?: 'inline';\n /** Key identifier (published by the buyer at its JWKS endpoint) */\n kid: string;\n /** Signature algorithm. Must match the key material. */\n alg: 'ed25519' | 'ecdsa-p256-sha256';\n /**\n * Private signing key as a JWK. Must include `d` (the private scalar);\n * other fields mirror the public JWK the buyer publishes for verification.\n */\n private_key: AdcpPrivateJsonWebKey;\n /**\n * Agent's base URL (e.g., `https://buyer.example.com`). Consistent with\n * every other `agent_url` field across AdCP — formats, creatives, signals,\n * brand. Sellers derive the JWKS endpoint via the conventional well-known\n * suffix (`{agent_url}/.well-known/adcp-jwks.json`); a handful of deploys\n * override the path via seller-side resolver configuration.\n *\n * The client does not read this field — the signer only needs the local\n * private key — but it's carried here so the field sits next to `kid` /\n * `alg` / `private_key` and is available to downstream audit logging or\n * custom verifier wiring.\n */\n agent_url: string;\n}\n\n/**\n * KMS-backed (or otherwise externalized) signing identity. The SDK calls\n * `provider.sign(payload)` on every signed request — async, may dispatch\n * to a managed key store. Use a {@link SigningProvider} for production\n * deployments that keep private keys out of process memory.\n *\n * The `kid` and `alg` come from the provider itself; this shape only carries\n * the agent's `agent_url` and the operation-list overrides.\n */\nexport interface AgentRequestSigningConfigProvider extends AgentRequestSigningOperationOverrides {\n kind: 'provider';\n /**\n * The signing provider that produces RFC 9421 signature bytes. Imported\n * from `@adcp/sdk/signing` — see `SigningProvider` for the interface\n * contract and `examples/gcp-kms-signing-provider.ts` for a reference\n * KMS adapter.\n */\n provider: SigningProvider;\n /** Agent base URL — same semantics as the inline shape. */\n agent_url: string;\n}\n\n// Agent Configuration Types\nexport interface AgentConfig {\n id: string;\n name: string;\n agent_uri: string;\n protocol: 'mcp' | 'a2a';\n\n /**\n * Static authentication token\n * Use this for API keys or pre-issued bearer tokens\n */\n auth_token?: string;\n\n /**\n * OAuth tokens for dynamic authentication\n * The client will automatically refresh tokens when they expire\n */\n oauth_tokens?: AgentOAuthTokens;\n\n /**\n * OAuth client registration info\n * Stored after dynamic client registration\n */\n oauth_client?: AgentOAuthClient;\n\n /**\n * OAuth 2.0 client credentials grant configuration (M2M).\n * When present, tokens in `oauth_tokens` are refreshed by re-exchanging\n * these credentials against `token_endpoint` — there is no user-facing\n * authorization flow.\n */\n oauth_client_credentials?: AgentOAuthClientCredentials;\n\n /**\n * PKCE code verifier (temporary, during OAuth flow)\n * @internal\n */\n oauth_code_verifier?: string;\n\n /**\n * Additional HTTP headers to include in every request to this agent.\n * Useful for sending API keys, org IDs, or other vendor-specific headers\n * alongside the standard authorization token.\n *\n * Example:\n * ```typescript\n * headers: {\n * 'x-api-key': 'quota-key',\n * 'x-org-id': 'org-123'\n * }\n * ```\n */\n headers?: Record<string, string>;\n\n /**\n * Optional — when set, outbound requests to this agent are signed per\n * RFC 9421 for operations the agent advertises in its `request_signing`\n * capability block (fetched once via `get_adcp_capabilities` and cached\n * by the client). See {@link AgentRequestSigningConfig}.\n */\n request_signing?: AgentRequestSigningConfig;\n\n /**\n * Pre-connected MCP `Client` for in-process testing without an HTTP loopback server.\n * When present, tool calls are dispatched directly to this client, bypassing URL\n * validation, OAuth refresh, and the connection cache. All client-side pipeline\n * stages (idempotency injection, schema validation, governance middleware) still apply.\n *\n * Do not set this field directly — use `AgentClient.fromMCPClient()` instead.\n * @internal\n */\n _inProcessMcpClient?: import('@modelcontextprotocol/sdk/client/index.js').Client;\n}\n\n// Testing Types\nexport interface TestRequest {\n agents: AgentConfig[];\n brief: string;\n brand_manifest?: string; // Replaces deprecated promoted_offering\n tool_name?: string;\n}\n\n/** Structured debug log entry emitted during protocol and governance interactions */\nexport interface DebugLogEntry {\n type: string;\n [key: string]: unknown;\n}\n\nexport interface TestResult {\n agent_id: string;\n agent_name: string;\n success: boolean;\n response_time_ms: number;\n data?: unknown;\n error?: string;\n timestamp: string;\n debug_logs?: DebugLogEntry[];\n validation?: Record<string, unknown>;\n}\n\n// API Response Types\nexport interface ApiResponse<T = unknown> {\n success: boolean;\n data?: T;\n error?: string;\n timestamp: string;\n}\n\nexport interface AgentListResponse {\n agents: AgentConfig[];\n total: number;\n}\n\nexport interface TestResponse {\n test_id: string;\n results: TestResult[];\n summary: {\n total_agents: number;\n successful: number;\n failed: number;\n average_response_time_ms: number;\n };\n}\n\n// Creative Library Management Types (AdCP v1.3.0)\nexport interface CreativeLibraryItem {\n creative_id: string;\n name: string;\n format: string;\n type: 'image' | 'video' | 'html' | 'native';\n // Asset content (mutually exclusive)\n media_url?: string;\n snippet?: string;\n snippet_type?: 'html' | 'javascript' | 'amp';\n // Metadata\n dimensions?: {\n width: number;\n height: number;\n };\n file_size?: number;\n duration?: number;\n tags?: string[];\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n // Library-specific fields\n created_date: string;\n last_updated: string;\n assignments: string[]; // Array of media_buy_ids or package_ids\n assignment_count: number;\n performance_metrics?: CreativePerformanceMetrics;\n compliance?: CreativeComplianceData;\n sub_assets?: CreativeSubAsset[];\n}\n\nexport interface CreativePerformanceMetrics {\n impressions?: number;\n clicks?: number;\n ctr?: number;\n conversions?: number;\n cost_per_conversion?: number;\n performance_score?: number;\n last_updated: string;\n}\n\nexport interface CreativeComplianceData {\n brand_safety_status: 'approved' | 'flagged' | 'rejected' | 'pending';\n policy_violations?: string[];\n last_reviewed: string;\n reviewer_notes?: string;\n}\n\n// New Task Request/Response Types\nexport interface ManageCreativeAssetsRequest {\n action: 'upload' | 'list' | 'update' | 'assign' | 'unassign' | 'delete';\n adcp_version?: string;\n // Action-specific parameters\n assets?: LegacyManagedCreativeAsset[]; // For upload\n filters?: LegacyManagedCreativeFilters; // For list\n pagination?: PaginationOptions; // For list\n creative_id?: string; // For update\n updates?: Partial<LegacyManagedCreativeAsset>; // For update\n creative_ids?: string[]; // For assign/unassign/delete\n media_buy_id?: string; // For assign/unassign\n buyer_ref?: string; // For assign/unassign\n package_assignments?: { [creative_id: string]: string[] }; // For assign\n package_ids?: string[]; // For unassign\n archive?: boolean; // For delete (soft vs hard delete)\n}\n\nexport interface LegacyManageSyncCreativesRequest {\n creatives: LegacyManagedCreativeAsset[];\n patch?: boolean; // Enable partial updates\n dry_run?: boolean; // Preview changes without applying\n assignments?: { [creative_id: string]: string[] }; // Bulk assign to packages\n validation_mode?: 'strict' | 'lenient';\n}\n\nexport interface LegacyManageListCreativesRequest {\n filters?: LegacyManagedCreativeFilters;\n sort?: {\n field: string;\n direction: 'asc' | 'desc';\n };\n pagination?: PaginationOptions;\n include_assignments?: boolean;\n include_performance?: boolean;\n}\n\nexport interface LegacyManagedCreativeFilters {\n format?: FormatID | FormatID[];\n type?: ('image' | 'video' | 'html' | 'native') | ('image' | 'video' | 'html' | 'native')[];\n status?: string | string[];\n tags?: string | string[];\n created_after?: string;\n created_before?: string;\n updated_after?: string;\n updated_before?: string;\n assigned_to?: string; // media_buy_id or package_id\n performance_score_min?: number;\n performance_score_max?: number;\n}\n\n/** @deprecated Use PaginationRequest from tools.generated instead */\nexport interface PaginationOptions {\n offset?: number;\n limit?: number;\n cursor?: string;\n}\n\nexport type ManageCreativeAssetsError = {\n creative_id?: string;\n message: string;\n} & (\n | {\n code: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code?: string;\n }\n | {\n code?: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code: string;\n }\n);\n\n// Response Types\nexport interface ManageCreativeAssetsResponse {\n success: boolean;\n action: string;\n results?: {\n uploaded?: CreativeLibraryItem[];\n listed?: {\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n };\n updated?: CreativeLibraryItem;\n assigned?: {\n creative_id: string;\n assignments: string[];\n }[];\n unassigned?: {\n creative_id: string;\n removed_from: string[];\n }[];\n deleted?: {\n creative_id: string;\n archived: boolean;\n }[];\n };\n errors?: ManageCreativeAssetsError[];\n}\n\nexport interface LegacyManageListCreativesResponse {\n success: boolean;\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n}\n\n// Property Types - Used for discovery and property management\nexport interface Property {\n property_id?: string;\n property_type: PropertyType;\n name: string;\n identifiers: PropertyIdentifier[];\n tags?: string[];\n publisher_domain?: string;\n}\n\nexport interface PropertyIdentifier {\n type: PropertyIdentifierType;\n value: string;\n include_subdomains?: boolean;\n}\n\nexport type PropertyType = 'website' | 'mobile_app' | 'ctv_app' | 'dooh' | 'podcast' | 'radio' | 'streaming_audio';\n\nexport type PropertyIdentifierType =\n | 'domain'\n | 'subdomain'\n | 'ios_bundle'\n | 'android_package'\n | 'apple_app_store_id'\n | 'google_play_id'\n | 'amazon_app_store_id'\n | 'roku_channel_id'\n | 'samsung_app_id'\n | 'lg_channel_id'\n | 'vizio_app_id'\n | 'fire_tv_app_id'\n | 'dooh_venue_id'\n | 'podcast_rss_feed'\n | 'spotify_show_id'\n | 'apple_podcast_id'\n | 'iab_tech_lab_domain_id'\n | 'custom';\n\n/** Grouped types by tool type */\nexport type AsyncResponseByTask = {\n create_media_buy:\n | CreateMediaBuyResponse\n | CreateMediaBuyAsyncWorking\n | CreateMediaBuyAsyncInputRequired\n | CreateMediaBuyAsyncSubmitted;\n get_products:\n | GetProductsResponse\n | GetProductsAsyncWorking\n | GetProductsAsyncInputRequired\n | GetProductsAsyncSubmitted;\n update_media_buy:\n | UpdateMediaBuyResponse\n | UpdateMediaBuyAsyncWorking\n | UpdateMediaBuyAsyncInputRequired\n | UpdateMediaBuyAsyncSubmitted;\n sync_creatives:\n | SyncCreativesResponse\n | SyncCreativesAsyncWorking\n | SyncCreativesAsyncInputRequired\n | SyncCreativesAsyncSubmitted;\n};\n\nexport type AsyncResponseFor<TTask extends keyof AsyncResponseByTask> = AsyncResponseByTask[TTask];\n\nexport type CreateMediaBuyAsyncResponseData = AsyncResponseFor<'create_media_buy'>;\nexport type GetProductsAsyncResponseData = AsyncResponseFor<'get_products'>;\nexport type UpdateMediaBuyAsyncResponseData = AsyncResponseFor<'update_media_buy'>;\nexport type SyncCreativesAsyncResponseData = AsyncResponseFor<'sync_creatives'>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,uBAAuB,oBAAI,IAAI;AAAA,EAC1C;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF,CAAC;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/lib/types/adcp.ts"],"sourcesContent":["// AdCP Types - Based on official AdCP specification\n// https://adcontextprotocol.org/docs/reference/data-models\n\n/**\n * Protocol-level fields that bypass per-tool schema stripping.\n * These fields live at the AdCP envelope layer, not in individual tool schemas,\n * and must always be preserved when sending requests to agents.\n */\nexport const ADCP_ENVELOPE_FIELDS = new Set([\n 'adcp_major_version', // Protocol version negotiation — preserved so version probes reach the seller\n 'adcp_version', // AdCP 3.1+ release-precision version string (spec PR #3493) — preserved alongside the integer\n 'context', // Opaque pass-through for correlation and workflow state\n 'ext', // Vendor-namespaced extensions\n 'governance_context', // Governance approval token\n 'push_notification_config', // Webhook configuration for async operations\n 'context_id', // Legacy context identifier\n 'idempotency_key', // Prevents duplicate processing on retries\n]);\n\n// Import structured FormatID from generated core types. AdCP 3.0.1 renamed\n// the schema title to \"Format Reference (Structured Object)\" — wire shape\n// unchanged; we keep the local `FormatID` name via the `as` alias.\nimport type {\n CreateMediaBuyAsyncInputRequired,\n CreateMediaBuyAsyncSubmitted,\n CreateMediaBuyAsyncWorking,\n FormatReferenceStructuredObject as FormatID,\n FrequencyCap,\n CreateMediaBuyResponse,\n GetProductsResponse,\n GetProductsAsyncWorking,\n GetProductsAsyncInputRequired,\n GetProductsAsyncSubmitted,\n UpdateMediaBuyResponse,\n UpdateMediaBuyAsyncWorking,\n UpdateMediaBuyAsyncInputRequired,\n UpdateMediaBuyAsyncSubmitted,\n SyncCreativesAsyncWorking,\n SyncCreativesAsyncInputRequired,\n SyncCreativesAsyncSubmitted,\n SyncCreativesResponse,\n} from './core.generated';\n\nimport type { SigningProvider } from '../signing/provider';\n\nexport type { FrequencyCap } from './core.generated';\n\nexport interface MediaBuy {\n id: string;\n campaign_name?: string;\n advertiser_name?: string;\n status: 'active' | 'paused' | 'completed' | 'cancelled';\n /** Total budget amount (currency determined by pricing options) */\n total_budget: number;\n targeting: Targeting;\n creative_assets: CreativeAsset[];\n delivery_schedule: DeliverySchedule;\n created_at: string;\n updated_at: string;\n}\n\nexport interface CreativeAsset {\n id: string;\n name: string;\n type: 'image' | 'video' | 'html' | 'native';\n format: string;\n dimensions: {\n width: number;\n height: number;\n };\n // Support for both hosted and third-party assets\n url?: string; // For backward compatibility (deprecated)\n media_url?: string; // Hosted asset URL\n snippet?: string; // Third-party asset snippet\n snippet_type?: 'html' | 'javascript' | 'amp';\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n file_size?: number;\n duration?: number;\n // Enhanced metadata\n tags?: string[];\n sub_assets?: CreativeSubAsset[];\n created_at?: string;\n updated_at?: string;\n}\n\nexport interface CreativeSubAsset {\n id: string;\n name: string;\n type: 'companion' | 'thumbnail' | 'preview';\n media_url: string;\n dimensions?: {\n width: number;\n height: number;\n };\n}\n\nexport interface AdvertisingProduct {\n id: string;\n name: string;\n description: string;\n type: 'display' | 'video' | 'native' | 'audio' | 'connected_tv';\n pricing_model: 'cpm' | 'cpc' | 'cpa' | 'fixed';\n base_price: number;\n currency: string;\n minimum_spend?: number;\n targeting_capabilities: string[];\n creative_formats: CreativeFormat[];\n inventory_details: InventoryDetails;\n}\n\nexport interface CreativeFormat {\n format_id: FormatID;\n name: string;\n dimensions: {\n width: number;\n height: number;\n };\n aspect_ratio?: string;\n file_types: string[];\n max_file_size: number;\n duration_range?: {\n min: number;\n max: number;\n };\n}\n\nexport interface InventoryDetails {\n sources: string[];\n quality_score?: number;\n brand_safety_level?: 'high' | 'medium' | 'low';\n viewability_rate?: number;\n geographic_coverage: string[];\n}\n\nexport interface Targeting {\n geographic?: GeographicTargeting;\n demographic?: DemographicTargeting;\n behavioral?: BehavioralTargeting;\n contextual?: ContextualTargeting;\n device?: DeviceTargeting;\n frequency_cap?: FrequencyCap;\n}\n\nexport interface GeographicTargeting {\n countries?: string[];\n regions?: string[];\n cities?: string[];\n postal_codes?: string[];\n}\n\nexport interface DemographicTargeting {\n age_ranges?: {\n min: number;\n max: number;\n }[];\n genders?: ('male' | 'female' | 'other')[];\n income_ranges?: {\n min: number;\n max: number;\n currency: string;\n }[];\n}\n\nexport interface BehavioralTargeting {\n interests?: string[];\n purchase_intent?: string[];\n life_events?: string[];\n}\n\nexport interface ContextualTargeting {\n keywords?: string[];\n topics?: string[];\n content_categories?: string[];\n website_categories?: string[];\n}\n\nexport interface DeviceTargeting {\n device_types?: ('mobile' | 'tablet' | 'desktop' | 'connected_tv')[];\n operating_systems?: string[];\n browsers?: string[];\n}\n\nexport interface DeliverySchedule {\n start_date: string;\n end_date?: string;\n time_zone: string;\n day_parting?: DayParting[];\n}\n\nexport interface DayParting {\n days_of_week: ('monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday')[];\n hours: {\n start: number;\n end: number;\n };\n}\n\n/**\n * OAuth tokens for agent authentication\n */\nexport interface AgentOAuthTokens {\n /** OAuth access token */\n access_token: string;\n /** OAuth refresh token (for token renewal) */\n refresh_token?: string;\n /** Token type (usually \"Bearer\") */\n token_type?: string;\n /** Seconds until access_token expires */\n expires_in?: number;\n /** ISO timestamp when access_token expires */\n expires_at?: string;\n /** OAuth scope */\n scope?: string;\n}\n\n/**\n * OAuth client information (from dynamic registration)\n */\nexport interface AgentOAuthClient {\n /** OAuth client ID */\n client_id: string;\n /** OAuth client secret (for confidential clients) */\n client_secret?: string;\n /** When client_secret expires */\n client_secret_expires_at?: number;\n}\n\n/**\n * OAuth 2.0 client credentials grant configuration (RFC 6749 §4.4).\n *\n * For machine-to-machine authentication where no user is present — the\n * library exchanges the client ID + secret directly with the authorization\n * server. Tokens are cached in `AgentConfig.oauth_tokens` and re-exchanged\n * by `ensureClientCredentialsTokens` when they near expiry.\n *\n * Secret values (`client_id`, `client_secret`) may be either literal strings\n * or env-var references in the form `$ENV:VAR_NAME`. References are resolved\n * at token-exchange time by `resolveSecret`, so secrets never need to land\n * on disk for CI use cases.\n *\n * @example Literal secret (local dev)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: 'shh-its-a-secret',\n * scope: 'adcp',\n * };\n * ```\n *\n * @example Env-var reference (CI — no on-disk secret)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: '$ENV:ADCP_CLIENT_SECRET',\n * scope: 'adcp',\n * audience: 'https://agent.example.com',\n * };\n * ```\n */\nexport interface AgentOAuthClientCredentials {\n /**\n * Authorization server token endpoint. Must be HTTPS unless it points at\n * `localhost` / `127.0.0.1` (dev/test carve-out). The exchange helper\n * rejects non-HTTPS URLs at runtime to keep the client secret off the\n * wire in plaintext.\n */\n token_endpoint: string;\n /** OAuth client ID. May be a `$ENV:VAR` reference. */\n client_id: string;\n /** OAuth client secret. May be a `$ENV:VAR` reference. */\n client_secret: string;\n /** Requested OAuth scope (space-delimited for multiple). */\n scope?: string;\n /**\n * RFC 8707 resource indicator(s). Advertises the protected resource the\n * issued token will be used against, so the AS can mint an\n * audience-bound token. Required by some AS deployments (Keycloak in\n * strict mode, AWS Cognito with resource servers) when the agent is\n * behind a proxy that validates `aud`. Accepts a single URI or an array\n * — the library sends one `resource` form field per entry.\n */\n resource?: string | string[];\n /**\n * Audience parameter. Non-standard in RFC 6749 but widely supported by\n * Auth0, Okta, and Azure AD as the preferred way to request an\n * audience-bound token. Send this when the AS documentation calls for\n * `audience=`; otherwise prefer `resource` (RFC 8707).\n */\n audience?: string;\n /**\n * Where to put client credentials on the token request.\n * - `basic` (default): HTTP Basic Auth header (RFC 6749 §2.3.1 preferred).\n * - `body`: `client_id` / `client_secret` form fields in the body.\n *\n * RFC 6749 says servers MUST support Basic and MAY support body — a few\n * popular providers only accept body, so this toggle exists.\n */\n auth_method?: 'basic' | 'body';\n}\n\n/**\n * Private JWK carrying the `d` scalar required to sign. Narrower than the\n * generic JWK shape to give hand-authors a compiler error when they paste\n * the public JWK (which lacks `d`) by accident.\n */\nexport interface AdcpPrivateJsonWebKey {\n kid: string;\n kty: string;\n crv?: string;\n alg?: string;\n use?: string;\n key_ops?: string[];\n x?: string;\n y?: string;\n /** Private scalar. Required for signing. */\n d: string;\n [extra: string]: unknown;\n}\n\n/**\n * Request-signing configuration for an agent. When present on an AgentConfig,\n * outbound MCP/A2A calls are gated by the seller's advertised\n * `request_signing` capability block (fetched once via `get_adcp_capabilities`\n * and cached): operations listed in `required_for` / `supported_for` (or\n * `always_sign`) are signed with this key per RFC 9421.\n *\n * Content-digest coverage is resolved per request from the seller's\n * advertised `covers_content_digest` policy: `required` covers, `forbidden`\n * omits, `either` (or absent) covers by default — body-binding is the safer\n * choice and a seller advertising `either` has explicitly allowed both forms.\n *\n * Two shapes, discriminated on `kind`:\n * - `'inline'` (default) — private JWK held in process memory.\n * - `'provider'` — delegates `sign()` to a {@link SigningProvider} so private\n * key material can live in a managed key store (GCP KMS, AWS KMS, etc.).\n */\nexport type AgentRequestSigningConfig = AgentRequestSigningConfigInline | AgentRequestSigningConfigProvider;\n\n/** Operation-list overrides shared by both `request_signing` shapes. */\nexport interface AgentRequestSigningOperationOverrides {\n /**\n * AdCP operation names to sign regardless of the seller's advertisement.\n * Useful during pilots before a counterparty flips an op into `required_for`.\n */\n always_sign?: string[];\n /**\n * When true, also sign operations the seller lists in `supported_for` (but\n * not `required_for`). Defaults to false — conservative \"sign what the\n * seller asks for\" behavior.\n */\n sign_supported?: boolean;\n /**\n * Informational mirror of the JWKS endpoint where this agent publishes\n * its verification keys. Verifiers do not read this field — they walk\n * brand.json from `agent_url` to discover the authoritative `jwks_uri`.\n * The field is carried on the buyer-side config so audit logs, custom\n * verifier wiring, and split-domain setups have a single self-describing\n * source of truth that matches what brand.json publishes.\n *\n * Common case: split-domain setups where the JWKS lives off the\n * conventional `${agent_url}/.well-known/jwks.json` path (identity\n * domain separate from the agent endpoint). Make sure brand.json's\n * `jwks_uri` agrees with whatever you set here — brand.json is\n * authoritative; this field documents intent.\n */\n jwks_uri?: string;\n}\n\n/**\n * In-process signing identity. The SDK loads the private JWK at request time\n * and signs synchronously — appropriate for development, testing, and\n * deployments where holding the private scalar in process memory is\n * acceptable.\n *\n * `kind` defaults to `'inline'` so existing literals without the field\n * continue to type-check.\n */\nexport interface AgentRequestSigningConfigInline extends AgentRequestSigningOperationOverrides {\n /** Discriminator. Defaults to `'inline'` so legacy literals work unchanged. */\n kind?: 'inline';\n /** Key identifier (published by the buyer at its JWKS endpoint) */\n kid: string;\n /** Signature algorithm. Must match the key material. */\n alg: 'ed25519' | 'ecdsa-p256-sha256';\n /**\n * Private signing key as a JWK. Must include `d` (the private scalar);\n * other fields mirror the public JWK the buyer publishes for verification.\n */\n private_key: AdcpPrivateJsonWebKey;\n /**\n * Agent's base URL (e.g., `https://buyer.example.com`). Consistent with\n * every other `agent_url` field across AdCP — formats, creatives, signals,\n * brand. Sellers derive the JWKS endpoint via the conventional well-known\n * suffix (`{agent_url}/.well-known/adcp-jwks.json`); a handful of deploys\n * override the path via seller-side resolver configuration.\n *\n * The client does not read this field — the signer only needs the local\n * private key — but it's carried here so the field sits next to `kid` /\n * `alg` / `private_key` and is available to downstream audit logging or\n * custom verifier wiring.\n */\n agent_url: string;\n}\n\n/**\n * KMS-backed (or otherwise externalized) signing identity. The SDK calls\n * `provider.sign(payload)` on every signed request — async, may dispatch\n * to a managed key store. Use a {@link SigningProvider} for production\n * deployments that keep private keys out of process memory.\n *\n * The `kid` and `alg` come from the provider itself; this shape only carries\n * the agent's `agent_url` and the operation-list overrides.\n */\nexport interface AgentRequestSigningConfigProvider extends AgentRequestSigningOperationOverrides {\n kind: 'provider';\n /**\n * The signing provider that produces RFC 9421 signature bytes. Imported\n * from `@adcp/sdk/signing` — see `SigningProvider` for the interface\n * contract and `examples/gcp-kms-signing-provider.ts` for a reference\n * KMS adapter.\n */\n provider: SigningProvider;\n /** Agent base URL — same semantics as the inline shape. */\n agent_url: string;\n}\n\n// Agent Configuration Types\nexport interface AgentConfig {\n id: string;\n name: string;\n agent_uri: string;\n protocol: 'mcp' | 'a2a';\n\n /**\n * Static authentication token\n * Use this for API keys or pre-issued bearer tokens\n */\n auth_token?: string;\n\n /**\n * OAuth tokens for dynamic authentication\n * The client will automatically refresh tokens when they expire\n */\n oauth_tokens?: AgentOAuthTokens;\n\n /**\n * OAuth client registration info\n * Stored after dynamic client registration\n */\n oauth_client?: AgentOAuthClient;\n\n /**\n * OAuth 2.0 client credentials grant configuration (M2M).\n * When present, tokens in `oauth_tokens` are refreshed by re-exchanging\n * these credentials against `token_endpoint` — there is no user-facing\n * authorization flow.\n */\n oauth_client_credentials?: AgentOAuthClientCredentials;\n\n /**\n * PKCE code verifier (temporary, during OAuth flow)\n * @internal\n */\n oauth_code_verifier?: string;\n\n /**\n * Additional HTTP headers to include in every request to this agent.\n * Useful for sending API keys, org IDs, or other vendor-specific headers\n * alongside the standard authorization token.\n *\n * Example:\n * ```typescript\n * headers: {\n * 'x-api-key': 'quota-key',\n * 'x-org-id': 'org-123'\n * }\n * ```\n */\n headers?: Record<string, string>;\n\n /**\n * Optional — when set, outbound requests to this agent are signed per\n * RFC 9421 for operations the agent advertises in its `request_signing`\n * capability block (fetched once via `get_adcp_capabilities` and cached\n * by the client). See {@link AgentRequestSigningConfig}.\n */\n request_signing?: AgentRequestSigningConfig;\n\n /**\n * Pre-connected MCP `Client` for in-process testing without an HTTP loopback server.\n * When present, tool calls are dispatched directly to this client, bypassing URL\n * validation, OAuth refresh, and the connection cache. All client-side pipeline\n * stages (idempotency injection, schema validation, governance middleware) still apply.\n *\n * Do not set this field directly — use `AgentClient.fromMCPClient()` instead.\n * @internal\n */\n _inProcessMcpClient?: import('@modelcontextprotocol/sdk/client/index.js').Client;\n}\n\n// Testing Types\nexport interface TestRequest {\n agents: AgentConfig[];\n brief: string;\n brand_manifest?: string; // Replaces deprecated promoted_offering\n tool_name?: string;\n}\n\n/** Structured debug log entry emitted during protocol and governance interactions */\nexport interface DebugLogEntry {\n type: string;\n [key: string]: unknown;\n}\n\nexport interface TestResult {\n agent_id: string;\n agent_name: string;\n success: boolean;\n response_time_ms: number;\n data?: unknown;\n error?: string;\n timestamp: string;\n debug_logs?: DebugLogEntry[];\n validation?: Record<string, unknown>;\n}\n\n// API Response Types\nexport interface ApiResponse<T = unknown> {\n success: boolean;\n data?: T;\n error?: string;\n timestamp: string;\n}\n\nexport interface AgentListResponse {\n agents: AgentConfig[];\n total: number;\n}\n\nexport interface TestResponse {\n test_id: string;\n results: TestResult[];\n summary: {\n total_agents: number;\n successful: number;\n failed: number;\n average_response_time_ms: number;\n };\n}\n\n// Creative Library Management Types (AdCP v1.3.0)\nexport interface CreativeLibraryItem {\n creative_id: string;\n name: string;\n format: string;\n type: 'image' | 'video' | 'html' | 'native';\n // Asset content (mutually exclusive)\n media_url?: string;\n snippet?: string;\n snippet_type?: 'html' | 'javascript' | 'amp';\n // Metadata\n dimensions?: {\n width: number;\n height: number;\n };\n file_size?: number;\n duration?: number;\n tags?: string[];\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n // Library-specific fields\n created_date: string;\n last_updated: string;\n assignments: string[]; // Array of media_buy_ids or package_ids\n assignment_count: number;\n performance_metrics?: CreativePerformanceMetrics;\n compliance?: CreativeComplianceData;\n sub_assets?: CreativeSubAsset[];\n}\n\nexport interface CreativePerformanceMetrics {\n impressions?: number;\n clicks?: number;\n ctr?: number;\n conversions?: number;\n cost_per_conversion?: number;\n performance_score?: number;\n last_updated: string;\n}\n\nexport interface CreativeComplianceData {\n brand_safety_status: 'approved' | 'flagged' | 'rejected' | 'pending';\n policy_violations?: string[];\n last_reviewed: string;\n reviewer_notes?: string;\n}\n\n// New Task Request/Response Types\nexport interface ManageCreativeAssetsRequest {\n action: 'upload' | 'list' | 'update' | 'assign' | 'unassign' | 'delete';\n adcp_version?: string;\n // Action-specific parameters\n assets?: CreativeAsset[]; // For upload\n filters?: CreativeFilters; // For list\n pagination?: PaginationOptions; // For list\n creative_id?: string; // For update\n updates?: Partial<CreativeAsset>; // For update\n creative_ids?: string[]; // For assign/unassign/delete\n media_buy_id?: string; // For assign/unassign\n buyer_ref?: string; // For assign/unassign\n package_assignments?: { [creative_id: string]: string[] }; // For assign\n package_ids?: string[]; // For unassign\n archive?: boolean; // For delete (soft vs hard delete)\n}\n\nexport interface SyncCreativesRequest {\n creatives: CreativeAsset[];\n patch?: boolean; // Enable partial updates\n dry_run?: boolean; // Preview changes without applying\n assignments?: { [creative_id: string]: string[] }; // Bulk assign to packages\n validation_mode?: 'strict' | 'lenient';\n}\n\nexport interface ListCreativesRequest {\n filters?: CreativeFilters;\n sort?: {\n field: string;\n direction: 'asc' | 'desc';\n };\n pagination?: PaginationOptions;\n include_assignments?: boolean;\n include_performance?: boolean;\n}\n\nexport interface CreativeFilters {\n format?: FormatID | FormatID[];\n type?: ('image' | 'video' | 'html' | 'native') | ('image' | 'video' | 'html' | 'native')[];\n status?: string | string[];\n tags?: string | string[];\n created_after?: string;\n created_before?: string;\n updated_after?: string;\n updated_before?: string;\n assigned_to?: string; // media_buy_id or package_id\n performance_score_min?: number;\n performance_score_max?: number;\n}\n\n/** @deprecated Use PaginationRequest from tools.generated instead */\nexport interface PaginationOptions {\n offset?: number;\n limit?: number;\n cursor?: string;\n}\n\nexport type ManageCreativeAssetsError = {\n creative_id?: string;\n message: string;\n} & (\n | {\n code: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code?: string;\n }\n | {\n code?: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code: string;\n }\n);\n\n// Response Types\nexport interface ManageCreativeAssetsResponse {\n success: boolean;\n action: string;\n results?: {\n uploaded?: CreativeLibraryItem[];\n listed?: {\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n };\n updated?: CreativeLibraryItem;\n assigned?: {\n creative_id: string;\n assignments: string[];\n }[];\n unassigned?: {\n creative_id: string;\n removed_from: string[];\n }[];\n deleted?: {\n creative_id: string;\n archived: boolean;\n }[];\n };\n errors?: ManageCreativeAssetsError[];\n}\n\nexport interface ListCreativesResponse {\n success: boolean;\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n}\n\n// Property Types - Used for discovery and property management\nexport interface Property {\n property_id?: string;\n property_type: PropertyType;\n name: string;\n identifiers: PropertyIdentifier[];\n tags?: string[];\n publisher_domain?: string;\n}\n\nexport interface PropertyIdentifier {\n type: PropertyIdentifierType;\n value: string;\n include_subdomains?: boolean;\n}\n\nexport type PropertyType = 'website' | 'mobile_app' | 'ctv_app' | 'dooh' | 'podcast' | 'radio' | 'streaming_audio';\n\nexport type PropertyIdentifierType =\n | 'domain'\n | 'subdomain'\n | 'ios_bundle'\n | 'android_package'\n | 'apple_app_store_id'\n | 'google_play_id'\n | 'amazon_app_store_id'\n | 'roku_channel_id'\n | 'samsung_app_id'\n | 'lg_channel_id'\n | 'vizio_app_id'\n | 'fire_tv_app_id'\n | 'dooh_venue_id'\n | 'podcast_rss_feed'\n | 'spotify_show_id'\n | 'apple_podcast_id'\n | 'iab_tech_lab_domain_id'\n | 'custom';\n\n/** Grouped types by tool type */\nexport type AsyncResponseByTask = {\n create_media_buy:\n | CreateMediaBuyResponse\n | CreateMediaBuyAsyncWorking\n | CreateMediaBuyAsyncInputRequired\n | CreateMediaBuyAsyncSubmitted;\n get_products:\n | GetProductsResponse\n | GetProductsAsyncWorking\n | GetProductsAsyncInputRequired\n | GetProductsAsyncSubmitted;\n update_media_buy:\n | UpdateMediaBuyResponse\n | UpdateMediaBuyAsyncWorking\n | UpdateMediaBuyAsyncInputRequired\n | UpdateMediaBuyAsyncSubmitted;\n sync_creatives:\n | SyncCreativesResponse\n | SyncCreativesAsyncWorking\n | SyncCreativesAsyncInputRequired\n | SyncCreativesAsyncSubmitted;\n};\n\nexport type AsyncResponseFor<TTask extends keyof AsyncResponseByTask> = AsyncResponseByTask[TTask];\n\nexport type CreateMediaBuyAsyncResponseData = AsyncResponseFor<'create_media_buy'>;\nexport type GetProductsAsyncResponseData = AsyncResponseFor<'get_products'>;\nexport type UpdateMediaBuyAsyncResponseData = AsyncResponseFor<'update_media_buy'>;\nexport type SyncCreativesAsyncResponseData = AsyncResponseFor<'sync_creatives'>;\n"],"mappings":"AAQO,MAAM,uBAAuB,oBAAI,IAAI;AAAA,EAC1C;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../src/lib/types/adcp.ts"],"sourcesContent":["// AdCP Types - Based on official AdCP specification\n// https://adcontextprotocol.org/docs/reference/data-models\n\n/**\n * Protocol-level fields that bypass per-tool schema stripping.\n * These fields live at the AdCP envelope layer, not in individual tool schemas,\n * and must always be preserved when sending requests to agents.\n */\nexport const ADCP_ENVELOPE_FIELDS = new Set([\n 'adcp_major_version', // Protocol version negotiation — preserved so version probes reach the seller\n 'adcp_version', // AdCP 3.1+ release-precision version string (spec PR #3493) — preserved alongside the integer\n 'context', // Opaque pass-through for correlation and workflow state\n 'ext', // Vendor-namespaced extensions\n 'governance_context', // Governance approval token\n 'push_notification_config', // Webhook configuration for async operations\n 'context_id', // Legacy context identifier\n 'idempotency_key', // Prevents duplicate processing on retries\n]);\n\n// Import structured FormatID from generated core types. AdCP 3.0.1 renamed\n// the schema title to \"Format Reference (Structured Object)\" — wire shape\n// unchanged; we keep the local `FormatID` name via the `as` alias.\nimport type {\n CreateMediaBuyAsyncInputRequired,\n CreateMediaBuyAsyncSubmitted,\n CreateMediaBuyAsyncWorking,\n FormatReferenceStructuredObject as FormatID,\n FrequencyCap,\n CreateMediaBuyResponse,\n GetProductsResponse,\n GetProductsAsyncWorking,\n GetProductsAsyncInputRequired,\n GetProductsAsyncSubmitted,\n UpdateMediaBuyResponse,\n UpdateMediaBuyAsyncWorking,\n UpdateMediaBuyAsyncInputRequired,\n UpdateMediaBuyAsyncSubmitted,\n SyncCreativesAsyncWorking,\n SyncCreativesAsyncInputRequired,\n SyncCreativesAsyncSubmitted,\n SyncCreativesResponse,\n} from './core.generated';\n\nimport type { SigningProvider } from '../signing/provider';\n\nexport type { FrequencyCap } from './core.generated';\n\nexport interface MediaBuy {\n id: string;\n campaign_name?: string;\n advertiser_name?: string;\n status: 'active' | 'paused' | 'completed' | 'cancelled';\n /** Total budget amount (currency determined by pricing options) */\n total_budget: number;\n targeting: Targeting;\n creative_assets: LegacyManagedCreativeAsset[];\n delivery_schedule: DeliverySchedule;\n created_at: string;\n updated_at: string;\n}\n\nexport interface LegacyManagedCreativeAsset {\n id: string;\n name: string;\n type: 'image' | 'video' | 'html' | 'native';\n format: string;\n dimensions: {\n width: number;\n height: number;\n };\n // Support for both hosted and third-party assets\n url?: string; // For backward compatibility (deprecated)\n media_url?: string; // Hosted asset URL\n snippet?: string; // Third-party asset snippet\n snippet_type?: 'html' | 'javascript' | 'amp';\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n file_size?: number;\n duration?: number;\n // Enhanced metadata\n tags?: string[];\n sub_assets?: CreativeSubAsset[];\n created_at?: string;\n updated_at?: string;\n}\n\nexport interface CreativeSubAsset {\n id: string;\n name: string;\n type: 'companion' | 'thumbnail' | 'preview';\n media_url: string;\n dimensions?: {\n width: number;\n height: number;\n };\n}\n\nexport interface LegacyAdvertisingProduct {\n id: string;\n name: string;\n description: string;\n type: 'display' | 'video' | 'native' | 'audio' | 'connected_tv';\n pricing_model: 'cpm' | 'cpc' | 'cpa' | 'fixed';\n base_price: number;\n currency: string;\n minimum_spend?: number;\n targeting_capabilities: string[];\n creative_formats: LegacyCreativeFormatSummary[];\n inventory_details: InventoryDetails;\n}\n\nexport interface LegacyCreativeFormatSummary {\n format_id: FormatID;\n name: string;\n dimensions: {\n width: number;\n height: number;\n };\n aspect_ratio?: string;\n file_types: string[];\n max_file_size: number;\n duration_range?: {\n min: number;\n max: number;\n };\n}\n\nexport interface InventoryDetails {\n sources: string[];\n quality_score?: number;\n brand_safety_level?: 'high' | 'medium' | 'low';\n viewability_rate?: number;\n geographic_coverage: string[];\n}\n\nexport interface Targeting {\n geographic?: GeographicTargeting;\n demographic?: DemographicTargeting;\n behavioral?: BehavioralTargeting;\n contextual?: ContextualTargeting;\n device?: DeviceTargeting;\n frequency_cap?: FrequencyCap;\n}\n\nexport interface GeographicTargeting {\n countries?: string[];\n regions?: string[];\n cities?: string[];\n postal_codes?: string[];\n}\n\nexport interface DemographicTargeting {\n age_ranges?: {\n min: number;\n max: number;\n }[];\n genders?: ('male' | 'female' | 'other')[];\n income_ranges?: {\n min: number;\n max: number;\n currency: string;\n }[];\n}\n\nexport interface BehavioralTargeting {\n interests?: string[];\n purchase_intent?: string[];\n life_events?: string[];\n}\n\nexport interface ContextualTargeting {\n keywords?: string[];\n topics?: string[];\n content_categories?: string[];\n website_categories?: string[];\n}\n\nexport interface DeviceTargeting {\n device_types?: ('mobile' | 'tablet' | 'desktop' | 'connected_tv')[];\n operating_systems?: string[];\n browsers?: string[];\n}\n\nexport interface DeliverySchedule {\n start_date: string;\n end_date?: string;\n time_zone: string;\n day_parting?: DayParting[];\n}\n\nexport interface DayParting {\n days_of_week: ('monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday' | 'sunday')[];\n hours: {\n start: number;\n end: number;\n };\n}\n\n/**\n * OAuth tokens for agent authentication\n */\nexport interface AgentOAuthTokens {\n /** OAuth access token */\n access_token: string;\n /** OAuth refresh token (for token renewal) */\n refresh_token?: string;\n /** Token type (usually \"Bearer\") */\n token_type?: string;\n /** Seconds until access_token expires */\n expires_in?: number;\n /** ISO timestamp when access_token expires */\n expires_at?: string;\n /** OAuth scope */\n scope?: string;\n}\n\n/**\n * OAuth client information (from dynamic registration)\n */\nexport interface AgentOAuthClient {\n /** OAuth client ID */\n client_id: string;\n /** OAuth client secret (for confidential clients) */\n client_secret?: string;\n /** When client_secret expires */\n client_secret_expires_at?: number;\n}\n\n/**\n * OAuth 2.0 client credentials grant configuration (RFC 6749 §4.4).\n *\n * For machine-to-machine authentication where no user is present — the\n * library exchanges the client ID + secret directly with the authorization\n * server. Tokens are cached in `AgentConfig.oauth_tokens` and re-exchanged\n * by `ensureClientCredentialsTokens` when they near expiry.\n *\n * Secret values (`client_id`, `client_secret`) may be either literal strings\n * or env-var references in the form `$ENV:VAR_NAME`. References are resolved\n * at token-exchange time by `resolveSecret`, so secrets never need to land\n * on disk for CI use cases.\n *\n * @example Literal secret (local dev)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: 'shh-its-a-secret',\n * scope: 'adcp',\n * };\n * ```\n *\n * @example Env-var reference (CI — no on-disk secret)\n * ```ts\n * const credentials: AgentOAuthClientCredentials = {\n * token_endpoint: 'https://auth.example.com/oauth/token',\n * client_id: 'abc123',\n * client_secret: '$ENV:ADCP_CLIENT_SECRET',\n * scope: 'adcp',\n * audience: 'https://agent.example.com',\n * };\n * ```\n */\nexport interface AgentOAuthClientCredentials {\n /**\n * Authorization server token endpoint. Must be HTTPS unless it points at\n * `localhost` / `127.0.0.1` (dev/test carve-out). The exchange helper\n * rejects non-HTTPS URLs at runtime to keep the client secret off the\n * wire in plaintext.\n */\n token_endpoint: string;\n /** OAuth client ID. May be a `$ENV:VAR` reference. */\n client_id: string;\n /** OAuth client secret. May be a `$ENV:VAR` reference. */\n client_secret: string;\n /** Requested OAuth scope (space-delimited for multiple). */\n scope?: string;\n /**\n * RFC 8707 resource indicator(s). Advertises the protected resource the\n * issued token will be used against, so the AS can mint an\n * audience-bound token. Required by some AS deployments (Keycloak in\n * strict mode, AWS Cognito with resource servers) when the agent is\n * behind a proxy that validates `aud`. Accepts a single URI or an array\n * — the library sends one `resource` form field per entry.\n */\n resource?: string | string[];\n /**\n * Audience parameter. Non-standard in RFC 6749 but widely supported by\n * Auth0, Okta, and Azure AD as the preferred way to request an\n * audience-bound token. Send this when the AS documentation calls for\n * `audience=`; otherwise prefer `resource` (RFC 8707).\n */\n audience?: string;\n /**\n * Where to put client credentials on the token request.\n * - `basic` (default): HTTP Basic Auth header (RFC 6749 §2.3.1 preferred).\n * - `body`: `client_id` / `client_secret` form fields in the body.\n *\n * RFC 6749 says servers MUST support Basic and MAY support body — a few\n * popular providers only accept body, so this toggle exists.\n */\n auth_method?: 'basic' | 'body';\n}\n\n/**\n * Private JWK carrying the `d` scalar required to sign. Narrower than the\n * generic JWK shape to give hand-authors a compiler error when they paste\n * the public JWK (which lacks `d`) by accident.\n */\nexport interface AdcpPrivateJsonWebKey {\n kid: string;\n kty: string;\n crv?: string;\n alg?: string;\n use?: string;\n key_ops?: string[];\n x?: string;\n y?: string;\n /** Private scalar. Required for signing. */\n d: string;\n [extra: string]: unknown;\n}\n\n/**\n * Request-signing configuration for an agent. When present on an AgentConfig,\n * outbound MCP/A2A calls are gated by the seller's advertised\n * `request_signing` capability block (fetched once via `get_adcp_capabilities`\n * and cached): operations listed in `required_for` / `supported_for` (or\n * `always_sign`) are signed with this key per RFC 9421.\n *\n * Content-digest coverage is resolved per request from the seller's\n * advertised `covers_content_digest` policy: `required` covers, `forbidden`\n * omits, `either` (or absent) covers by default — body-binding is the safer\n * choice and a seller advertising `either` has explicitly allowed both forms.\n *\n * Two shapes, discriminated on `kind`:\n * - `'inline'` (default) — private JWK held in process memory.\n * - `'provider'` — delegates `sign()` to a {@link SigningProvider} so private\n * key material can live in a managed key store (GCP KMS, AWS KMS, etc.).\n */\nexport type AgentRequestSigningConfig = AgentRequestSigningConfigInline | AgentRequestSigningConfigProvider;\n\n/** Operation-list overrides shared by both `request_signing` shapes. */\nexport interface AgentRequestSigningOperationOverrides {\n /**\n * AdCP operation names to sign regardless of the seller's advertisement.\n * Useful during pilots before a counterparty flips an op into `required_for`.\n */\n always_sign?: string[];\n /**\n * When true, also sign operations the seller lists in `supported_for` (but\n * not `required_for`). Defaults to false — conservative \"sign what the\n * seller asks for\" behavior.\n */\n sign_supported?: boolean;\n /**\n * Informational mirror of the JWKS endpoint where this agent publishes\n * its verification keys. Verifiers do not read this field — they walk\n * brand.json from `agent_url` to discover the authoritative `jwks_uri`.\n * The field is carried on the buyer-side config so audit logs, custom\n * verifier wiring, and split-domain setups have a single self-describing\n * source of truth that matches what brand.json publishes.\n *\n * Common case: split-domain setups where the JWKS lives off the\n * conventional `${agent_url}/.well-known/jwks.json` path (identity\n * domain separate from the agent endpoint). Make sure brand.json's\n * `jwks_uri` agrees with whatever you set here — brand.json is\n * authoritative; this field documents intent.\n */\n jwks_uri?: string;\n}\n\n/**\n * In-process signing identity. The SDK loads the private JWK at request time\n * and signs synchronously — appropriate for development, testing, and\n * deployments where holding the private scalar in process memory is\n * acceptable.\n *\n * `kind` defaults to `'inline'` so existing literals without the field\n * continue to type-check.\n */\nexport interface AgentRequestSigningConfigInline extends AgentRequestSigningOperationOverrides {\n /** Discriminator. Defaults to `'inline'` so legacy literals work unchanged. */\n kind?: 'inline';\n /** Key identifier (published by the buyer at its JWKS endpoint) */\n kid: string;\n /** Signature algorithm. Must match the key material. */\n alg: 'ed25519' | 'ecdsa-p256-sha256';\n /**\n * Private signing key as a JWK. Must include `d` (the private scalar);\n * other fields mirror the public JWK the buyer publishes for verification.\n */\n private_key: AdcpPrivateJsonWebKey;\n /**\n * Agent's base URL (e.g., `https://buyer.example.com`). Consistent with\n * every other `agent_url` field across AdCP — formats, creatives, signals,\n * brand. Sellers derive the JWKS endpoint via the conventional well-known\n * suffix (`{agent_url}/.well-known/adcp-jwks.json`); a handful of deploys\n * override the path via seller-side resolver configuration.\n *\n * The client does not read this field — the signer only needs the local\n * private key — but it's carried here so the field sits next to `kid` /\n * `alg` / `private_key` and is available to downstream audit logging or\n * custom verifier wiring.\n */\n agent_url: string;\n}\n\n/**\n * KMS-backed (or otherwise externalized) signing identity. The SDK calls\n * `provider.sign(payload)` on every signed request — async, may dispatch\n * to a managed key store. Use a {@link SigningProvider} for production\n * deployments that keep private keys out of process memory.\n *\n * The `kid` and `alg` come from the provider itself; this shape only carries\n * the agent's `agent_url` and the operation-list overrides.\n */\nexport interface AgentRequestSigningConfigProvider extends AgentRequestSigningOperationOverrides {\n kind: 'provider';\n /**\n * The signing provider that produces RFC 9421 signature bytes. Imported\n * from `@adcp/sdk/signing` — see `SigningProvider` for the interface\n * contract and `examples/gcp-kms-signing-provider.ts` for a reference\n * KMS adapter.\n */\n provider: SigningProvider;\n /** Agent base URL — same semantics as the inline shape. */\n agent_url: string;\n}\n\n// Agent Configuration Types\nexport interface AgentConfig {\n id: string;\n name: string;\n agent_uri: string;\n protocol: 'mcp' | 'a2a';\n\n /**\n * Static authentication token\n * Use this for API keys or pre-issued bearer tokens\n */\n auth_token?: string;\n\n /**\n * OAuth tokens for dynamic authentication\n * The client will automatically refresh tokens when they expire\n */\n oauth_tokens?: AgentOAuthTokens;\n\n /**\n * OAuth client registration info\n * Stored after dynamic client registration\n */\n oauth_client?: AgentOAuthClient;\n\n /**\n * OAuth 2.0 client credentials grant configuration (M2M).\n * When present, tokens in `oauth_tokens` are refreshed by re-exchanging\n * these credentials against `token_endpoint` — there is no user-facing\n * authorization flow.\n */\n oauth_client_credentials?: AgentOAuthClientCredentials;\n\n /**\n * PKCE code verifier (temporary, during OAuth flow)\n * @internal\n */\n oauth_code_verifier?: string;\n\n /**\n * Additional HTTP headers to include in every request to this agent.\n * Useful for sending API keys, org IDs, or other vendor-specific headers\n * alongside the standard authorization token.\n *\n * Example:\n * ```typescript\n * headers: {\n * 'x-api-key': 'quota-key',\n * 'x-org-id': 'org-123'\n * }\n * ```\n */\n headers?: Record<string, string>;\n\n /**\n * Optional — when set, outbound requests to this agent are signed per\n * RFC 9421 for operations the agent advertises in its `request_signing`\n * capability block (fetched once via `get_adcp_capabilities` and cached\n * by the client). See {@link AgentRequestSigningConfig}.\n */\n request_signing?: AgentRequestSigningConfig;\n\n /**\n * Pre-connected MCP `Client` for in-process testing without an HTTP loopback server.\n * When present, tool calls are dispatched directly to this client, bypassing URL\n * validation, OAuth refresh, and the connection cache. All client-side pipeline\n * stages (idempotency injection, schema validation, governance middleware) still apply.\n *\n * Do not set this field directly — use `AgentClient.fromMCPClient()` instead.\n * @internal\n */\n _inProcessMcpClient?: import('@modelcontextprotocol/sdk/client/index.js').Client;\n}\n\n// Testing Types\nexport interface TestRequest {\n agents: AgentConfig[];\n brief: string;\n brand_manifest?: string; // Replaces deprecated promoted_offering\n tool_name?: string;\n}\n\n/** Structured debug log entry emitted during protocol and governance interactions */\nexport interface DebugLogEntry {\n type: string;\n [key: string]: unknown;\n}\n\nexport interface TestResult {\n agent_id: string;\n agent_name: string;\n success: boolean;\n response_time_ms: number;\n data?: unknown;\n error?: string;\n timestamp: string;\n debug_logs?: DebugLogEntry[];\n validation?: Record<string, unknown>;\n}\n\n// API Response Types\nexport interface ApiResponse<T = unknown> {\n success: boolean;\n data?: T;\n error?: string;\n timestamp: string;\n}\n\nexport interface AgentListResponse {\n agents: AgentConfig[];\n total: number;\n}\n\nexport interface TestResponse {\n test_id: string;\n results: TestResult[];\n summary: {\n total_agents: number;\n successful: number;\n failed: number;\n average_response_time_ms: number;\n };\n}\n\n// Creative Library Management Types (AdCP v1.3.0)\nexport interface CreativeLibraryItem {\n creative_id: string;\n name: string;\n format: string;\n type: 'image' | 'video' | 'html' | 'native';\n // Asset content (mutually exclusive)\n media_url?: string;\n snippet?: string;\n snippet_type?: 'html' | 'javascript' | 'amp';\n // Metadata\n dimensions?: {\n width: number;\n height: number;\n };\n file_size?: number;\n duration?: number;\n tags?: string[];\n status: 'active' | 'inactive' | 'pending_review' | 'approved' | 'rejected';\n // Library-specific fields\n created_date: string;\n last_updated: string;\n assignments: string[]; // Array of media_buy_ids or package_ids\n assignment_count: number;\n performance_metrics?: CreativePerformanceMetrics;\n compliance?: CreativeComplianceData;\n sub_assets?: CreativeSubAsset[];\n}\n\nexport interface CreativePerformanceMetrics {\n impressions?: number;\n clicks?: number;\n ctr?: number;\n conversions?: number;\n cost_per_conversion?: number;\n performance_score?: number;\n last_updated: string;\n}\n\nexport interface CreativeComplianceData {\n brand_safety_status: 'approved' | 'flagged' | 'rejected' | 'pending';\n policy_violations?: string[];\n last_reviewed: string;\n reviewer_notes?: string;\n}\n\n// New Task Request/Response Types\nexport interface ManageCreativeAssetsRequest {\n action: 'upload' | 'list' | 'update' | 'assign' | 'unassign' | 'delete';\n adcp_version?: string;\n // Action-specific parameters\n assets?: LegacyManagedCreativeAsset[]; // For upload\n filters?: LegacyManagedCreativeFilters; // For list\n pagination?: PaginationOptions; // For list\n creative_id?: string; // For update\n updates?: Partial<LegacyManagedCreativeAsset>; // For update\n creative_ids?: string[]; // For assign/unassign/delete\n media_buy_id?: string; // For assign/unassign\n buyer_ref?: string; // For assign/unassign\n package_assignments?: { [creative_id: string]: string[] }; // For assign\n package_ids?: string[]; // For unassign\n archive?: boolean; // For delete (soft vs hard delete)\n}\n\nexport interface LegacyManageSyncCreativesRequest {\n creatives: LegacyManagedCreativeAsset[];\n patch?: boolean; // Enable partial updates\n dry_run?: boolean; // Preview changes without applying\n assignments?: { [creative_id: string]: string[] }; // Bulk assign to packages\n validation_mode?: 'strict' | 'lenient';\n}\n\nexport interface LegacyManageListCreativesRequest {\n filters?: LegacyManagedCreativeFilters;\n sort?: {\n field: string;\n direction: 'asc' | 'desc';\n };\n pagination?: PaginationOptions;\n include_assignments?: boolean;\n include_performance?: boolean;\n}\n\nexport interface LegacyManagedCreativeFilters {\n format?: FormatID | FormatID[];\n type?: ('image' | 'video' | 'html' | 'native') | ('image' | 'video' | 'html' | 'native')[];\n status?: string | string[];\n tags?: string | string[];\n created_after?: string;\n created_before?: string;\n updated_after?: string;\n updated_before?: string;\n assigned_to?: string; // media_buy_id or package_id\n performance_score_min?: number;\n performance_score_max?: number;\n}\n\n/** @deprecated Use PaginationRequest from tools.generated instead */\nexport interface PaginationOptions {\n offset?: number;\n limit?: number;\n cursor?: string;\n}\n\nexport type ManageCreativeAssetsError = {\n creative_id?: string;\n message: string;\n} & (\n | {\n code: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code?: string;\n }\n | {\n code?: string;\n /** @deprecated Use `code`. Preserved for older creative-library integrations. */\n error_code: string;\n }\n);\n\n// Response Types\nexport interface ManageCreativeAssetsResponse {\n success: boolean;\n action: string;\n results?: {\n uploaded?: CreativeLibraryItem[];\n listed?: {\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n };\n updated?: CreativeLibraryItem;\n assigned?: {\n creative_id: string;\n assignments: string[];\n }[];\n unassigned?: {\n creative_id: string;\n removed_from: string[];\n }[];\n deleted?: {\n creative_id: string;\n archived: boolean;\n }[];\n };\n errors?: ManageCreativeAssetsError[];\n}\n\nexport interface LegacyManageListCreativesResponse {\n success: boolean;\n creatives: CreativeLibraryItem[];\n total_count: number;\n pagination?: {\n offset: number;\n limit: number;\n has_more: boolean;\n next_cursor?: string;\n };\n}\n\n// Property Types - Used for discovery and property management\nexport interface Property {\n property_id?: string;\n property_type: PropertyType;\n name: string;\n identifiers: PropertyIdentifier[];\n tags?: string[];\n publisher_domain?: string;\n}\n\nexport interface PropertyIdentifier {\n type: PropertyIdentifierType;\n value: string;\n include_subdomains?: boolean;\n}\n\nexport type PropertyType = 'website' | 'mobile_app' | 'ctv_app' | 'dooh' | 'podcast' | 'radio' | 'streaming_audio';\n\nexport type PropertyIdentifierType =\n | 'domain'\n | 'subdomain'\n | 'ios_bundle'\n | 'android_package'\n | 'apple_app_store_id'\n | 'google_play_id'\n | 'amazon_app_store_id'\n | 'roku_channel_id'\n | 'samsung_app_id'\n | 'lg_channel_id'\n | 'vizio_app_id'\n | 'fire_tv_app_id'\n | 'dooh_venue_id'\n | 'podcast_rss_feed'\n | 'spotify_show_id'\n | 'apple_podcast_id'\n | 'iab_tech_lab_domain_id'\n | 'custom';\n\n/** Grouped types by tool type */\nexport type AsyncResponseByTask = {\n create_media_buy:\n | CreateMediaBuyResponse\n | CreateMediaBuyAsyncWorking\n | CreateMediaBuyAsyncInputRequired\n | CreateMediaBuyAsyncSubmitted;\n get_products:\n | GetProductsResponse\n | GetProductsAsyncWorking\n | GetProductsAsyncInputRequired\n | GetProductsAsyncSubmitted;\n update_media_buy:\n | UpdateMediaBuyResponse\n | UpdateMediaBuyAsyncWorking\n | UpdateMediaBuyAsyncInputRequired\n | UpdateMediaBuyAsyncSubmitted;\n sync_creatives:\n | SyncCreativesResponse\n | SyncCreativesAsyncWorking\n | SyncCreativesAsyncInputRequired\n | SyncCreativesAsyncSubmitted;\n};\n\nexport type AsyncResponseFor<TTask extends keyof AsyncResponseByTask> = AsyncResponseByTask[TTask];\n\nexport type CreateMediaBuyAsyncResponseData = AsyncResponseFor<'create_media_buy'>;\nexport type GetProductsAsyncResponseData = AsyncResponseFor<'get_products'>;\nexport type UpdateMediaBuyAsyncResponseData = AsyncResponseFor<'update_media_buy'>;\nexport type SyncCreativesAsyncResponseData = AsyncResponseFor<'sync_creatives'>;\n"],"mappings":"AAQO,MAAM,uBAAuB,oBAAI,IAAI;AAAA,EAC1C;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF,CAAC;","names":[]}
@@ -1,5 +1,5 @@
1
1
  export * from './adcp.mjs';
2
- export type { AgentConfig, TestResult, TestRequest, ApiResponse, CreativeFormat, AdvertisingProduct, MediaBuy, Targeting, ManageCreativeAssetsRequest, ManageCreativeAssetsResponse, CreateMediaBuyAsyncResponseData, UpdateMediaBuyAsyncResponseData, GetProductsAsyncResponseData, SyncCreativesAsyncResponseData, } from './adcp.mjs';
2
+ export type { AgentConfig, TestResult, TestRequest, ApiResponse, LegacyCreativeFormatSummary, LegacyAdvertisingProduct, MediaBuy, Targeting, LegacyManagedCreativeAsset, LegacyManageSyncCreativesRequest, LegacyManageListCreativesRequest, LegacyManageListCreativesResponse, LegacyManagedCreativeFilters, ManageCreativeAssetsRequest, ManageCreativeAssetsResponse, CreateMediaBuyAsyncResponseData, UpdateMediaBuyAsyncResponseData, GetProductsAsyncResponseData, SyncCreativesAsyncResponseData, } from './adcp.mjs';
3
3
  export type { FormatReferenceStructuredObject } from './core.generated.mjs';
4
4
  import type { FormatReferenceStructuredObject } from './core.generated.mjs';
5
5
  export type { RequireCacheScopeWhenProducts, ServerPayload } from './server-payload.mjs';
@@ -20,7 +20,7 @@ export type { MediaChannel, AudienceStatus, MediaBuyStatus, CreativeStatus, Plac
20
20
  export type { SyncAudiencesRequest, SyncAudiencesResponse, SyncAudiencesSuccess, SyncAudiencesError, SyncCatalogsRequest, SyncCatalogsResponse, SyncCatalogsSuccess, SyncCatalogsError, SyncCatalogsAsyncSubmitted, SyncEventSourcesRequest, SyncEventSourcesResponse, SyncEventSourcesSuccess, SyncEventSourcesError, LogEventRequest, LogEventResponse, LogEventSuccess, LogEventError, } from './tools.generated.mjs';
21
21
  export type { GetSignalsRequest, GetSignalsResponse, ActivateSignalRequest, ActivateSignalResponse, ActivateSignalSuccess, ActivateSignalError, SignalID, SignalValueType, SignalAvailabilityType, SignalAvailabilityType as SignalCatalogType, Destination, Deployment, ActivationKey, VendorPricingOption, SignalFilters, // embedded in GetSignalsRequest.filters
22
22
  SignalTargeting, } from './tools.generated.mjs';
23
- export type { BuildCreativeRequest, BuildCreativeResponse, BuildCreativeSuccess, BuildCreativeError, BuildCreativeMultiSuccess, BuildCreativeAsyncSubmitted, CreativeManifest, PreviewCreativeRequest, PreviewCreativeResponse, PreviewCreativeSingleResponse, PreviewCreativeVariantResponse, PreviewCreativeBatchResponse, PreviewBatchResultSuccess, PreviewBatchResultError, ListCreativeFormatsRequest, ListCreativeFormatsResponse, GetCreativeFeaturesRequest, GetCreativeFeaturesResponse, GetCreativeDeliveryRequest, GetCreativeDeliveryResponse, SyncCreativesResponse, SyncCreativesSuccess, SyncCreativesError, SyncCreativesSubmitted, SyncCreativesAsyncSubmitted, CreativeAsset, CreativeQuality, Format, ProductFormatDeclaration, FormatIDParameter, } from './tools.generated.mjs';
23
+ export type { BuildCreativeRequest, BuildCreativeResponse, BuildCreativeSuccess, BuildCreativeError, BuildCreativeMultiSuccess, BuildCreativeAsyncSubmitted, CreativeManifest, PreviewCreativeRequest, PreviewCreativeResponse, PreviewCreativeSingleResponse, PreviewCreativeVariantResponse, PreviewCreativeBatchResponse, PreviewBatchResultSuccess, PreviewBatchResultError, ListCreativeFormatsRequest, ListCreativeFormatsResponse, GetCreativeFeaturesRequest, GetCreativeFeaturesResponse, GetCreativeDeliveryRequest, GetCreativeDeliveryResponse, SyncCreativesRequest, SyncCreativesResponse, SyncCreativesSuccess, SyncCreativesError, SyncCreativesSubmitted, SyncCreativesAsyncSubmitted, ListCreativesRequest, ListCreativesResponse, CreativeFilters, CreativeAsset, CreativeQuality, Format, ProductFormatDeclaration, FormatIDParameter, } from './tools.generated.mjs';
24
24
  export type { PropertyList, CreatePropertyListRequest, CreatePropertyListResponse, UpdatePropertyListRequest, UpdatePropertyListResponse, GetPropertyListRequest, GetPropertyListResponse, ListPropertyListsRequest, ListPropertyListsResponse, DeletePropertyListRequest, DeletePropertyListResponse, } from './tools.generated.mjs';
25
25
  export type { CollectionList, CreateCollectionListRequest, CreateCollectionListResponse, UpdateCollectionListRequest, UpdateCollectionListResponse, GetCollectionListRequest, GetCollectionListResponse, ListCollectionListsRequest, ListCollectionListsResponse, DeleteCollectionListRequest, DeleteCollectionListResponse, } from './tools.generated.mjs';
26
26
  export type { CheckGovernanceRequest, CheckGovernanceResponse, SyncGovernanceRequest, SyncGovernanceResponse, SyncGovernanceSuccess, SyncGovernanceError, CreateContentStandardsRequest, CreateContentStandardsResponse, UpdateContentStandardsRequest, UpdateContentStandardsResponse, UpdateContentStandardsSuccess, UpdateContentStandardsError, ListContentStandardsRequest, ListContentStandardsResponse, GetContentStandardsRequest, GetContentStandardsResponse, CalibrateContentRequest, CalibrateContentResponse, ValidateContentDeliveryRequest, ValidateContentDeliveryResponse, } from './tools.generated.mjs';
@@ -1,5 +1,5 @@
1
1
  export * from './adcp';
2
- export type { AgentConfig, TestResult, TestRequest, ApiResponse, CreativeFormat, AdvertisingProduct, MediaBuy, Targeting, ManageCreativeAssetsRequest, ManageCreativeAssetsResponse, CreateMediaBuyAsyncResponseData, UpdateMediaBuyAsyncResponseData, GetProductsAsyncResponseData, SyncCreativesAsyncResponseData, } from './adcp';
2
+ export type { AgentConfig, TestResult, TestRequest, ApiResponse, LegacyCreativeFormatSummary, LegacyAdvertisingProduct, MediaBuy, Targeting, LegacyManagedCreativeAsset, LegacyManageSyncCreativesRequest, LegacyManageListCreativesRequest, LegacyManageListCreativesResponse, LegacyManagedCreativeFilters, ManageCreativeAssetsRequest, ManageCreativeAssetsResponse, CreateMediaBuyAsyncResponseData, UpdateMediaBuyAsyncResponseData, GetProductsAsyncResponseData, SyncCreativesAsyncResponseData, } from './adcp';
3
3
  export type { FormatReferenceStructuredObject } from './core.generated';
4
4
  import type { FormatReferenceStructuredObject } from './core.generated';
5
5
  export type { RequireCacheScopeWhenProducts, ServerPayload } from './server-payload';
@@ -20,7 +20,7 @@ export type { MediaChannel, AudienceStatus, MediaBuyStatus, CreativeStatus, Plac
20
20
  export type { SyncAudiencesRequest, SyncAudiencesResponse, SyncAudiencesSuccess, SyncAudiencesError, SyncCatalogsRequest, SyncCatalogsResponse, SyncCatalogsSuccess, SyncCatalogsError, SyncCatalogsAsyncSubmitted, SyncEventSourcesRequest, SyncEventSourcesResponse, SyncEventSourcesSuccess, SyncEventSourcesError, LogEventRequest, LogEventResponse, LogEventSuccess, LogEventError, } from './tools.generated';
21
21
  export type { GetSignalsRequest, GetSignalsResponse, ActivateSignalRequest, ActivateSignalResponse, ActivateSignalSuccess, ActivateSignalError, SignalID, SignalValueType, SignalAvailabilityType, SignalAvailabilityType as SignalCatalogType, Destination, Deployment, ActivationKey, VendorPricingOption, SignalFilters, // embedded in GetSignalsRequest.filters
22
22
  SignalTargeting, } from './tools.generated';
23
- export type { BuildCreativeRequest, BuildCreativeResponse, BuildCreativeSuccess, BuildCreativeError, BuildCreativeMultiSuccess, BuildCreativeAsyncSubmitted, CreativeManifest, PreviewCreativeRequest, PreviewCreativeResponse, PreviewCreativeSingleResponse, PreviewCreativeVariantResponse, PreviewCreativeBatchResponse, PreviewBatchResultSuccess, PreviewBatchResultError, ListCreativeFormatsRequest, ListCreativeFormatsResponse, GetCreativeFeaturesRequest, GetCreativeFeaturesResponse, GetCreativeDeliveryRequest, GetCreativeDeliveryResponse, SyncCreativesResponse, SyncCreativesSuccess, SyncCreativesError, SyncCreativesSubmitted, SyncCreativesAsyncSubmitted, CreativeAsset, CreativeQuality, Format, ProductFormatDeclaration, FormatIDParameter, } from './tools.generated';
23
+ export type { BuildCreativeRequest, BuildCreativeResponse, BuildCreativeSuccess, BuildCreativeError, BuildCreativeMultiSuccess, BuildCreativeAsyncSubmitted, CreativeManifest, PreviewCreativeRequest, PreviewCreativeResponse, PreviewCreativeSingleResponse, PreviewCreativeVariantResponse, PreviewCreativeBatchResponse, PreviewBatchResultSuccess, PreviewBatchResultError, ListCreativeFormatsRequest, ListCreativeFormatsResponse, GetCreativeFeaturesRequest, GetCreativeFeaturesResponse, GetCreativeDeliveryRequest, GetCreativeDeliveryResponse, SyncCreativesRequest, SyncCreativesResponse, SyncCreativesSuccess, SyncCreativesError, SyncCreativesSubmitted, SyncCreativesAsyncSubmitted, ListCreativesRequest, ListCreativesResponse, CreativeFilters, CreativeAsset, CreativeQuality, Format, ProductFormatDeclaration, FormatIDParameter, } from './tools.generated';
24
24
  export type { PropertyList, CreatePropertyListRequest, CreatePropertyListResponse, UpdatePropertyListRequest, UpdatePropertyListResponse, GetPropertyListRequest, GetPropertyListResponse, ListPropertyListsRequest, ListPropertyListsResponse, DeletePropertyListRequest, DeletePropertyListResponse, } from './tools.generated';
25
25
  export type { CollectionList, CreateCollectionListRequest, CreateCollectionListResponse, UpdateCollectionListRequest, UpdateCollectionListResponse, GetCollectionListRequest, GetCollectionListResponse, ListCollectionListsRequest, ListCollectionListsResponse, DeleteCollectionListRequest, DeleteCollectionListResponse, } from './tools.generated';
26
26
  export type { CheckGovernanceRequest, CheckGovernanceResponse, SyncGovernanceRequest, SyncGovernanceResponse, SyncGovernanceSuccess, SyncGovernanceError, CreateContentStandardsRequest, CreateContentStandardsResponse, UpdateContentStandardsRequest, UpdateContentStandardsResponse, UpdateContentStandardsSuccess, UpdateContentStandardsError, ListContentStandardsRequest, ListContentStandardsResponse, GetContentStandardsRequest, GetContentStandardsResponse, CalibrateContentRequest, CalibrateContentResponse, ValidateContentDeliveryRequest, ValidateContentDeliveryResponse, } from './tools.generated';