@adcp/sdk 16.0.0-beta.8 → 16.0.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 (371) hide show
  1. package/AGENTS.md +3 -3
  2. package/README.md +5 -2
  3. package/bin/adcp.js +10 -13
  4. package/dist/lib/core/AgentClient.d.mts +8 -5
  5. package/dist/lib/core/AgentClient.d.ts +8 -5
  6. package/dist/lib/core/AgentClient.js +9 -4
  7. package/dist/lib/core/AgentClient.mjs +9 -4
  8. package/dist/lib/core/SingleAgentClient.d.mts +19 -112
  9. package/dist/lib/core/SingleAgentClient.d.ts +19 -112
  10. package/dist/lib/core/SingleAgentClient.js +270 -252
  11. package/dist/lib/core/SingleAgentClient.mjs +275 -253
  12. package/dist/lib/core/TaskExecutor.d.mts +1 -16
  13. package/dist/lib/core/TaskExecutor.d.ts +1 -16
  14. package/dist/lib/core/TaskExecutor.js +34 -51
  15. package/dist/lib/core/TaskExecutor.mjs +12 -29
  16. package/dist/lib/core/product-cache.d.mts +3 -1
  17. package/dist/lib/core/product-cache.d.ts +3 -1
  18. package/dist/lib/core/product-cache.js +2 -1
  19. package/dist/lib/core/product-cache.mjs +2 -1
  20. package/dist/lib/errors/index.d.mts +2 -8
  21. package/dist/lib/errors/index.d.ts +2 -8
  22. package/dist/lib/errors/index.js +4 -4
  23. package/dist/lib/errors/index.mjs +4 -4
  24. package/dist/lib/identity-3.3/revocation.js +6 -7
  25. package/dist/lib/identity-3.3/revocation.mjs +6 -7
  26. package/dist/lib/index.d.mts +4 -4
  27. package/dist/lib/index.d.ts +4 -4
  28. package/dist/lib/index.js +0 -14
  29. package/dist/lib/index.mjs +0 -14
  30. package/dist/lib/media-buy/compatibility.d.mts +1 -1
  31. package/dist/lib/media-buy/compatibility.d.ts +1 -1
  32. package/dist/lib/media-buy/compatibility.js +26 -45
  33. package/dist/lib/media-buy/compatibility.mjs +26 -45
  34. package/dist/lib/media-buy/legacy-purchase-continuation.d.mts +2 -2
  35. package/dist/lib/media-buy/legacy-purchase-continuation.d.ts +2 -2
  36. package/dist/lib/protocols/index.js +14 -22
  37. package/dist/lib/protocols/index.mjs +5 -13
  38. package/dist/lib/registry/types.d.mts +3 -2
  39. package/dist/lib/registry/types.d.ts +3 -2
  40. package/dist/lib/registry/types.generated.d.mts +51 -11
  41. package/dist/lib/registry/types.generated.d.ts +51 -11
  42. package/dist/lib/reporting/source/conformance.d.mts +8 -8
  43. package/dist/lib/reporting/source/conformance.d.ts +8 -8
  44. package/dist/lib/reporting/source/manifest.d.mts +27 -27
  45. package/dist/lib/reporting/source/manifest.d.ts +27 -27
  46. package/dist/lib/server/create-adcp-server.js +7 -1
  47. package/dist/lib/server/create-adcp-server.mjs +7 -1
  48. package/dist/lib/signing/crypto.d.mts +1 -1
  49. package/dist/lib/signing/crypto.d.ts +1 -1
  50. package/dist/lib/signing/crypto.js +2 -45
  51. package/dist/lib/signing/crypto.mjs +2 -46
  52. package/dist/lib/signing/web-bot-auth.d.mts +18 -10
  53. package/dist/lib/signing/web-bot-auth.d.ts +18 -10
  54. package/dist/lib/signing/web-bot-auth.js +29 -24
  55. package/dist/lib/signing/web-bot-auth.mjs +29 -24
  56. package/dist/lib/testing/compliance/comply.js +0 -8
  57. package/dist/lib/testing/compliance/comply.mjs +0 -8
  58. package/dist/lib/testing/compliance/storyboard-tracks.js +11 -0
  59. package/dist/lib/testing/compliance/storyboard-tracks.mjs +11 -0
  60. package/dist/lib/testing/index.d.mts +2 -0
  61. package/dist/lib/testing/index.d.ts +2 -0
  62. package/dist/lib/testing/index.js +5 -0
  63. package/dist/lib/testing/index.mjs +3 -0
  64. package/dist/lib/testing/scenarios/capabilities.d.mts +2 -2
  65. package/dist/lib/testing/scenarios/capabilities.d.ts +2 -2
  66. package/dist/lib/testing/scenarios/capabilities.js +8 -41
  67. package/dist/lib/testing/scenarios/capabilities.mjs +9 -42
  68. package/dist/lib/testing/storyboard/creative-build-probe.d.mts +34 -0
  69. package/dist/lib/testing/storyboard/creative-build-probe.d.ts +34 -0
  70. package/dist/lib/testing/storyboard/creative-build-probe.js +395 -0
  71. package/dist/lib/testing/storyboard/creative-build-probe.mjs +373 -0
  72. package/dist/lib/testing/storyboard/index.d.mts +2 -0
  73. package/dist/lib/testing/storyboard/index.d.ts +2 -0
  74. package/dist/lib/testing/storyboard/index.js +5 -0
  75. package/dist/lib/testing/storyboard/index.mjs +3 -0
  76. package/dist/lib/testing/storyboard/loader.js +12 -0
  77. package/dist/lib/testing/storyboard/loader.mjs +12 -0
  78. package/dist/lib/testing/storyboard/property-list-reference.d.mts +15 -0
  79. package/dist/lib/testing/storyboard/property-list-reference.d.ts +15 -0
  80. package/dist/lib/testing/storyboard/property-list-reference.js +514 -0
  81. package/dist/lib/testing/storyboard/property-list-reference.mjs +487 -0
  82. package/dist/lib/testing/storyboard/runner.js +318 -58
  83. package/dist/lib/testing/storyboard/runner.mjs +322 -58
  84. package/dist/lib/testing/storyboard/types.d.mts +38 -16
  85. package/dist/lib/testing/storyboard/types.d.ts +38 -16
  86. package/dist/lib/testing/storyboard/types.js +1 -0
  87. package/dist/lib/testing/storyboard/types.mjs +1 -0
  88. package/dist/lib/testing/storyboard/validations.d.mts +1 -1
  89. package/dist/lib/testing/storyboard/validations.d.ts +1 -1
  90. package/dist/lib/testing/storyboard/validations.js +64 -0
  91. package/dist/lib/testing/storyboard/validations.mjs +67 -1
  92. package/dist/lib/testing/types.d.mts +15 -1
  93. package/dist/lib/testing/types.d.ts +15 -1
  94. package/dist/lib/types/schemas.generated.d.ts +65 -65
  95. package/dist/lib/types/wellknown-schemas.generated.d.mts +21 -21
  96. package/dist/lib/types/wellknown-schemas.generated.d.ts +21 -21
  97. package/dist/lib/utils/adcp-version-config.js +6 -0
  98. package/dist/lib/utils/adcp-version-config.mjs +6 -0
  99. package/dist/lib/utils/capabilities.d.mts +7 -9
  100. package/dist/lib/utils/capabilities.d.ts +7 -9
  101. package/dist/lib/utils/capabilities.js +14 -28
  102. package/dist/lib/utils/capabilities.mjs +14 -27
  103. package/dist/lib/utils/creative-adapter.d.mts +15 -113
  104. package/dist/lib/utils/creative-adapter.d.ts +15 -113
  105. package/dist/lib/utils/creative-adapter.js +7 -106
  106. package/dist/lib/utils/creative-adapter.mjs +7 -102
  107. package/dist/lib/utils/format-renders.d.mts +20 -80
  108. package/dist/lib/utils/format-renders.d.ts +20 -80
  109. package/dist/lib/utils/format-renders.js +7 -67
  110. package/dist/lib/utils/format-renders.mjs +7 -66
  111. package/dist/lib/utils/index.d.mts +1 -2
  112. package/dist/lib/utils/index.d.ts +1 -2
  113. package/dist/lib/utils/index.js +0 -7
  114. package/dist/lib/utils/index.mjs +0 -6
  115. package/dist/lib/utils/preview-normalizer.d.mts +31 -80
  116. package/dist/lib/utils/preview-normalizer.d.ts +31 -80
  117. package/dist/lib/utils/preview-normalizer.js +5 -50
  118. package/dist/lib/utils/preview-normalizer.mjs +5 -49
  119. package/dist/lib/utils/pricing-adapter.d.mts +2 -36
  120. package/dist/lib/utils/pricing-adapter.d.ts +2 -36
  121. package/dist/lib/utils/pricing-adapter.js +0 -105
  122. package/dist/lib/utils/pricing-adapter.mjs +0 -100
  123. package/dist/lib/utils/request-normalizer.d.mts +1 -2
  124. package/dist/lib/utils/request-normalizer.d.ts +1 -2
  125. package/dist/lib/v2/projection/catalog.d.mts +4 -0
  126. package/dist/lib/v2/projection/catalog.d.ts +4 -0
  127. package/dist/lib/v2/projection/creative-delivery.d.mts +17 -9
  128. package/dist/lib/v2/projection/creative-delivery.d.ts +17 -9
  129. package/dist/lib/v2/projection/creative-delivery.js +78 -10
  130. package/dist/lib/v2/projection/creative-delivery.mjs +77 -10
  131. package/dist/lib/v2/projection/legacy-metadata.d.mts +12 -0
  132. package/dist/lib/v2/projection/legacy-metadata.d.ts +12 -0
  133. package/dist/lib/v2/projection/legacy-metadata.js +41 -1
  134. package/dist/lib/v2/projection/legacy-metadata.mjs +37 -1
  135. package/dist/lib/v2/projection/legacy-normalization.d.mts +1 -1
  136. package/dist/lib/v2/projection/legacy-normalization.d.ts +1 -1
  137. package/dist/lib/v2/projection/v1-to-v2.js +13 -0
  138. package/dist/lib/v2/projection/v1-to-v2.mjs +14 -0
  139. package/dist/lib/validation/client-hooks.d.mts +1 -4
  140. package/dist/lib/validation/client-hooks.d.ts +1 -4
  141. package/dist/lib/validation/get-products-request.d.mts +1 -1
  142. package/dist/lib/validation/get-products-request.d.ts +1 -1
  143. package/dist/lib/validation/schema-loader.js +6 -0
  144. package/dist/lib/validation/schema-loader.mjs +6 -0
  145. package/dist/lib/validation/schema-validator.js +1 -26
  146. package/dist/lib/validation/schema-validator.mjs +1 -26
  147. package/dist/lib/version.d.mts +5 -5
  148. package/dist/lib/version.d.ts +5 -5
  149. package/dist/lib/version.js +3 -5
  150. package/dist/lib/version.mjs +3 -5
  151. package/docs/TYPE-SUMMARY.md +2 -2
  152. package/docs/development/PROTOCOL_DIFFERENCES.md +1 -1
  153. package/docs/guides/CONFORMANCE.md +25 -0
  154. package/docs/guides/CREATIVE-BUILD-PROBE.md +156 -0
  155. package/docs/guides/CREATIVE-DELIVERY.md +63 -7
  156. package/docs/guides/MEDIA-BUY-3.2-COMPATIBILITY.md +15 -18
  157. package/docs/guides/REPORTING-STABILITY.md +7 -7
  158. package/docs/guides/VALIDATE-YOUR-AGENT.md +5 -0
  159. package/docs/llms.txt +3 -3
  160. package/docs/migration-13-to-14.md +20 -16
  161. package/docs/migration-14.x-rc-worksheet.md +5 -5
  162. package/docs/migration-4.x-to-5.x.md +12 -7
  163. package/docs/migration-agent-identity-3.3.md +44 -19
  164. package/docs/migration-drop-adcp-2.md +25 -0
  165. package/docs/migration-reporting-storage-package.md +3 -3
  166. package/docs/releases/16.0.0.md +20 -0
  167. package/package.json +3 -18
  168. package/skills/call-adcp-agent/SKILL.md +23 -25
  169. package/dist/lib/adapters/legacy/v2-5/create_media_buy.d.mts +0 -3
  170. package/dist/lib/adapters/legacy/v2-5/create_media_buy.d.ts +0 -3
  171. package/dist/lib/adapters/legacy/v2-5/create_media_buy.js +0 -33
  172. package/dist/lib/adapters/legacy/v2-5/create_media_buy.mjs +0 -9
  173. package/dist/lib/adapters/legacy/v2-5/get_products.d.mts +0 -8
  174. package/dist/lib/adapters/legacy/v2-5/get_products.d.ts +0 -8
  175. package/dist/lib/adapters/legacy/v2-5/get_products.js +0 -33
  176. package/dist/lib/adapters/legacy/v2-5/get_products.mjs +0 -9
  177. package/dist/lib/adapters/legacy/v2-5/index.d.mts +0 -34
  178. package/dist/lib/adapters/legacy/v2-5/index.d.ts +0 -34
  179. package/dist/lib/adapters/legacy/v2-5/index.js +0 -50
  180. package/dist/lib/adapters/legacy/v2-5/index.mjs +0 -25
  181. package/dist/lib/adapters/legacy/v2-5/list_creative_formats.d.mts +0 -8
  182. package/dist/lib/adapters/legacy/v2-5/list_creative_formats.d.ts +0 -8
  183. package/dist/lib/adapters/legacy/v2-5/list_creative_formats.js +0 -33
  184. package/dist/lib/adapters/legacy/v2-5/list_creative_formats.mjs +0 -9
  185. package/dist/lib/adapters/legacy/v2-5/preview_creative.d.mts +0 -3
  186. package/dist/lib/adapters/legacy/v2-5/preview_creative.d.ts +0 -3
  187. package/dist/lib/adapters/legacy/v2-5/preview_creative.js +0 -33
  188. package/dist/lib/adapters/legacy/v2-5/preview_creative.mjs +0 -9
  189. package/dist/lib/adapters/legacy/v2-5/sync_creatives.d.mts +0 -11
  190. package/dist/lib/adapters/legacy/v2-5/sync_creatives.d.ts +0 -11
  191. package/dist/lib/adapters/legacy/v2-5/sync_creatives.js +0 -32
  192. package/dist/lib/adapters/legacy/v2-5/sync_creatives.mjs +0 -8
  193. package/dist/lib/adapters/legacy/v2-5/types.d.mts +0 -39
  194. package/dist/lib/adapters/legacy/v2-5/types.d.ts +0 -39
  195. package/dist/lib/adapters/legacy/v2-5/types.js +0 -16
  196. package/dist/lib/adapters/legacy/v2-5/types.mjs +0 -0
  197. package/dist/lib/adapters/legacy/v2-5/update_media_buy.d.mts +0 -3
  198. package/dist/lib/adapters/legacy/v2-5/update_media_buy.d.ts +0 -3
  199. package/dist/lib/adapters/legacy/v2-5/update_media_buy.js +0 -35
  200. package/dist/lib/adapters/legacy/v2-5/update_media_buy.mjs +0 -11
  201. package/dist/lib/schemas-data/v2.5/_provenance.json +0 -8
  202. package/dist/lib/schemas-data/v2.5/adagents.json +0 -494
  203. package/dist/lib/schemas-data/v2.5/core/activation-key.json +0 -50
  204. package/dist/lib/schemas-data/v2.5/core/assets/audio-asset.json +0 -32
  205. package/dist/lib/schemas-data/v2.5/core/assets/css-asset.json +0 -21
  206. package/dist/lib/schemas-data/v2.5/core/assets/daast-asset.json +0 -87
  207. package/dist/lib/schemas-data/v2.5/core/assets/html-asset.json +0 -21
  208. package/dist/lib/schemas-data/v2.5/core/assets/image-asset.json +0 -38
  209. package/dist/lib/schemas-data/v2.5/core/assets/javascript-asset.json +0 -21
  210. package/dist/lib/schemas-data/v2.5/core/assets/markdown-asset.json +0 -31
  211. package/dist/lib/schemas-data/v2.5/core/assets/text-asset.json +0 -21
  212. package/dist/lib/schemas-data/v2.5/core/assets/url-asset.json +0 -26
  213. package/dist/lib/schemas-data/v2.5/core/assets/vast-asset.json +0 -87
  214. package/dist/lib/schemas-data/v2.5/core/assets/video-asset.json +0 -44
  215. package/dist/lib/schemas-data/v2.5/core/assets/webhook-asset.json +0 -71
  216. package/dist/lib/schemas-data/v2.5/core/async-response-data.json +0 -88
  217. package/dist/lib/schemas-data/v2.5/core/brand-manifest-ref.json +0 -33
  218. package/dist/lib/schemas-data/v2.5/core/brand-manifest.json +0 -409
  219. package/dist/lib/schemas-data/v2.5/core/context.json +0 -8
  220. package/dist/lib/schemas-data/v2.5/core/creative-asset.json +0 -125
  221. package/dist/lib/schemas-data/v2.5/core/creative-assignment.json +0 -31
  222. package/dist/lib/schemas-data/v2.5/core/creative-filters.json +0 -111
  223. package/dist/lib/schemas-data/v2.5/core/creative-manifest.json +0 -72
  224. package/dist/lib/schemas-data/v2.5/core/creative-policy.json +0 -27
  225. package/dist/lib/schemas-data/v2.5/core/delivery-metrics.json +0 -171
  226. package/dist/lib/schemas-data/v2.5/core/deployment.json +0 -93
  227. package/dist/lib/schemas-data/v2.5/core/destination.json +0 -53
  228. package/dist/lib/schemas-data/v2.5/core/error.json +0 -40
  229. package/dist/lib/schemas-data/v2.5/core/ext.json +0 -8
  230. package/dist/lib/schemas-data/v2.5/core/format-id.json +0 -47
  231. package/dist/lib/schemas-data/v2.5/core/format.json +0 -324
  232. package/dist/lib/schemas-data/v2.5/core/frequency-cap.json +0 -18
  233. package/dist/lib/schemas-data/v2.5/core/mcp-webhook-payload.json +0 -152
  234. package/dist/lib/schemas-data/v2.5/core/measurement.json +0 -48
  235. package/dist/lib/schemas-data/v2.5/core/media-buy.json +0 -62
  236. package/dist/lib/schemas-data/v2.5/core/package.json +0 -72
  237. package/dist/lib/schemas-data/v2.5/core/performance-feedback.json +0 -90
  238. package/dist/lib/schemas-data/v2.5/core/placement.json +0 -34
  239. package/dist/lib/schemas-data/v2.5/core/pricing-option.json +0 -35
  240. package/dist/lib/schemas-data/v2.5/core/product-filters.json +0 -102
  241. package/dist/lib/schemas-data/v2.5/core/product.json +0 -153
  242. package/dist/lib/schemas-data/v2.5/core/promoted-offerings.json +0 -115
  243. package/dist/lib/schemas-data/v2.5/core/promoted-products.json +0 -67
  244. package/dist/lib/schemas-data/v2.5/core/property-id.json +0 -14
  245. package/dist/lib/schemas-data/v2.5/core/property-tag.json +0 -16
  246. package/dist/lib/schemas-data/v2.5/core/property.json +0 -62
  247. package/dist/lib/schemas-data/v2.5/core/protocol-envelope.json +0 -146
  248. package/dist/lib/schemas-data/v2.5/core/publisher-property-selector.json +0 -92
  249. package/dist/lib/schemas-data/v2.5/core/push-notification-config.json +0 -48
  250. package/dist/lib/schemas-data/v2.5/core/reporting-capabilities.json +0 -71
  251. package/dist/lib/schemas-data/v2.5/core/response.json +0 -24
  252. package/dist/lib/schemas-data/v2.5/core/signal-filters.json +0 -35
  253. package/dist/lib/schemas-data/v2.5/core/start-timing.json +0 -18
  254. package/dist/lib/schemas-data/v2.5/core/sub-asset.json +0 -79
  255. package/dist/lib/schemas-data/v2.5/core/targeting.json +0 -50
  256. package/dist/lib/schemas-data/v2.5/core/tasks-get-request.json +0 -43
  257. package/dist/lib/schemas-data/v2.5/core/tasks-get-response.json +0 -166
  258. package/dist/lib/schemas-data/v2.5/core/tasks-list-request.json +0 -192
  259. package/dist/lib/schemas-data/v2.5/core/tasks-list-response.json +0 -183
  260. package/dist/lib/schemas-data/v2.5/creative/asset-types/index.json +0 -101
  261. package/dist/lib/schemas-data/v2.5/creative/list-creative-formats-request.json +0 -73
  262. package/dist/lib/schemas-data/v2.5/creative/list-creative-formats-response.json +0 -61
  263. package/dist/lib/schemas-data/v2.5/creative/preview-creative-request.json +0 -164
  264. package/dist/lib/schemas-data/v2.5/creative/preview-creative-response.json +0 -245
  265. package/dist/lib/schemas-data/v2.5/creative/preview-render.json +0 -225
  266. package/dist/lib/schemas-data/v2.5/enums/adcp-domain.json +0 -11
  267. package/dist/lib/schemas-data/v2.5/enums/asset-content-type.json +0 -22
  268. package/dist/lib/schemas-data/v2.5/enums/auth-scheme.json +0 -11
  269. package/dist/lib/schemas-data/v2.5/enums/available-metric.json +0 -18
  270. package/dist/lib/schemas-data/v2.5/enums/channels.json +0 -18
  271. package/dist/lib/schemas-data/v2.5/enums/co-branding-requirement.json +0 -12
  272. package/dist/lib/schemas-data/v2.5/enums/creative-action.json +0 -14
  273. package/dist/lib/schemas-data/v2.5/enums/creative-agent-capability.json +0 -13
  274. package/dist/lib/schemas-data/v2.5/enums/creative-sort-field.json +0 -15
  275. package/dist/lib/schemas-data/v2.5/enums/creative-status.json +0 -19
  276. package/dist/lib/schemas-data/v2.5/enums/daast-tracking-event.json +0 -20
  277. package/dist/lib/schemas-data/v2.5/enums/daast-version.json +0 -11
  278. package/dist/lib/schemas-data/v2.5/enums/delivery-type.json +0 -15
  279. package/dist/lib/schemas-data/v2.5/enums/dimension-unit.json +0 -13
  280. package/dist/lib/schemas-data/v2.5/enums/feed-format.json +0 -12
  281. package/dist/lib/schemas-data/v2.5/enums/feedback-source.json +0 -13
  282. package/dist/lib/schemas-data/v2.5/enums/format-category.json +0 -16
  283. package/dist/lib/schemas-data/v2.5/enums/format-id-parameter.json +0 -11
  284. package/dist/lib/schemas-data/v2.5/enums/frequency-cap-scope.json +0 -13
  285. package/dist/lib/schemas-data/v2.5/enums/history-entry-type.json +0 -11
  286. package/dist/lib/schemas-data/v2.5/enums/http-method.json +0 -11
  287. package/dist/lib/schemas-data/v2.5/enums/identifier-types.json +0 -34
  288. package/dist/lib/schemas-data/v2.5/enums/javascript-module-type.json +0 -12
  289. package/dist/lib/schemas-data/v2.5/enums/landing-page-requirement.json +0 -12
  290. package/dist/lib/schemas-data/v2.5/enums/markdown-flavor.json +0 -11
  291. package/dist/lib/schemas-data/v2.5/enums/media-buy-status.json +0 -19
  292. package/dist/lib/schemas-data/v2.5/enums/metric-type.json +0 -17
  293. package/dist/lib/schemas-data/v2.5/enums/notification-type.json +0 -13
  294. package/dist/lib/schemas-data/v2.5/enums/pacing.json +0 -17
  295. package/dist/lib/schemas-data/v2.5/enums/preview-output-format.json +0 -11
  296. package/dist/lib/schemas-data/v2.5/enums/pricing-model.json +0 -25
  297. package/dist/lib/schemas-data/v2.5/enums/property-type.json +0 -16
  298. package/dist/lib/schemas-data/v2.5/enums/publisher-identifier-types.json +0 -19
  299. package/dist/lib/schemas-data/v2.5/enums/reporting-frequency.json +0 -12
  300. package/dist/lib/schemas-data/v2.5/enums/signal-catalog-type.json +0 -12
  301. package/dist/lib/schemas-data/v2.5/enums/sort-direction.json +0 -11
  302. package/dist/lib/schemas-data/v2.5/enums/standard-format-ids.json +0 -103
  303. package/dist/lib/schemas-data/v2.5/enums/task-status.json +0 -29
  304. package/dist/lib/schemas-data/v2.5/enums/task-type.json +0 -27
  305. package/dist/lib/schemas-data/v2.5/enums/update-frequency.json +0 -13
  306. package/dist/lib/schemas-data/v2.5/enums/url-asset-type.json +0 -12
  307. package/dist/lib/schemas-data/v2.5/enums/validation-mode.json +0 -11
  308. package/dist/lib/schemas-data/v2.5/enums/vast-tracking-event.json +0 -25
  309. package/dist/lib/schemas-data/v2.5/enums/vast-version.json +0 -14
  310. package/dist/lib/schemas-data/v2.5/enums/webhook-response-type.json +0 -13
  311. package/dist/lib/schemas-data/v2.5/enums/webhook-security-method.json +0 -12
  312. package/dist/lib/schemas-data/v2.5/index.json +0 -604
  313. package/dist/lib/schemas-data/v2.5/media-buy/build-creative-request.json +0 -31
  314. package/dist/lib/schemas-data/v2.5/media-buy/build-creative-response.json +0 -65
  315. package/dist/lib/schemas-data/v2.5/media-buy/create-media-buy-async-response-input-required.json +0 -31
  316. package/dist/lib/schemas-data/v2.5/media-buy/create-media-buy-async-response-submitted.json +0 -16
  317. package/dist/lib/schemas-data/v2.5/media-buy/create-media-buy-async-response-working.json +0 -36
  318. package/dist/lib/schemas-data/v2.5/media-buy/create-media-buy-request.json +0 -126
  319. package/dist/lib/schemas-data/v2.5/media-buy/create-media-buy-response.json +0 -97
  320. package/dist/lib/schemas-data/v2.5/media-buy/get-media-buy-delivery-request.json +0 -54
  321. package/dist/lib/schemas-data/v2.5/media-buy/get-media-buy-delivery-response.json +0 -285
  322. package/dist/lib/schemas-data/v2.5/media-buy/get-products-async-response-input-required.json +0 -38
  323. package/dist/lib/schemas-data/v2.5/media-buy/get-products-async-response-submitted.json +0 -21
  324. package/dist/lib/schemas-data/v2.5/media-buy/get-products-async-response-working.json +0 -34
  325. package/dist/lib/schemas-data/v2.5/media-buy/get-products-request.json +0 -28
  326. package/dist/lib/schemas-data/v2.5/media-buy/get-products-response.json +0 -33
  327. package/dist/lib/schemas-data/v2.5/media-buy/list-authorized-properties-request.json +0 -26
  328. package/dist/lib/schemas-data/v2.5/media-buy/list-authorized-properties-response.json +0 -70
  329. package/dist/lib/schemas-data/v2.5/media-buy/list-creative-formats-request.json +0 -58
  330. package/dist/lib/schemas-data/v2.5/media-buy/list-creative-formats-response.json +0 -61
  331. package/dist/lib/schemas-data/v2.5/media-buy/list-creatives-request.json +0 -137
  332. package/dist/lib/schemas-data/v2.5/media-buy/list-creatives-response.json +0 -437
  333. package/dist/lib/schemas-data/v2.5/media-buy/package-request.json +0 -80
  334. package/dist/lib/schemas-data/v2.5/media-buy/provide-performance-feedback-request.json +0 -88
  335. package/dist/lib/schemas-data/v2.5/media-buy/provide-performance-feedback-response.json +0 -66
  336. package/dist/lib/schemas-data/v2.5/media-buy/sync-creatives-async-response-input-required.json +0 -25
  337. package/dist/lib/schemas-data/v2.5/media-buy/sync-creatives-async-response-submitted.json +0 -16
  338. package/dist/lib/schemas-data/v2.5/media-buy/sync-creatives-async-response-working.json +0 -46
  339. package/dist/lib/schemas-data/v2.5/media-buy/sync-creatives-request.json +0 -178
  340. package/dist/lib/schemas-data/v2.5/media-buy/sync-creatives-response.json +0 -149
  341. package/dist/lib/schemas-data/v2.5/media-buy/update-media-buy-async-response-input-required.json +0 -24
  342. package/dist/lib/schemas-data/v2.5/media-buy/update-media-buy-async-response-submitted.json +0 -16
  343. package/dist/lib/schemas-data/v2.5/media-buy/update-media-buy-async-response-working.json +0 -36
  344. package/dist/lib/schemas-data/v2.5/media-buy/update-media-buy-request.json +0 -129
  345. package/dist/lib/schemas-data/v2.5/media-buy/update-media-buy-response.json +0 -99
  346. package/dist/lib/schemas-data/v2.5/pricing-options/cpc-option.json +0 -52
  347. package/dist/lib/schemas-data/v2.5/pricing-options/cpcv-option.json +0 -52
  348. package/dist/lib/schemas-data/v2.5/pricing-options/cpm-auction-option.json +0 -81
  349. package/dist/lib/schemas-data/v2.5/pricing-options/cpm-fixed-option.json +0 -52
  350. package/dist/lib/schemas-data/v2.5/pricing-options/cpp-option.json +0 -73
  351. package/dist/lib/schemas-data/v2.5/pricing-options/cpv-option.json +0 -88
  352. package/dist/lib/schemas-data/v2.5/pricing-options/flat-rate-option.json +0 -93
  353. package/dist/lib/schemas-data/v2.5/pricing-options/vcpm-auction-option.json +0 -81
  354. package/dist/lib/schemas-data/v2.5/pricing-options/vcpm-fixed-option.json +0 -52
  355. package/dist/lib/schemas-data/v2.5/protocols/adcp-extension.json +0 -33
  356. package/dist/lib/schemas-data/v2.5/signals/activate-signal-request.json +0 -32
  357. package/dist/lib/schemas-data/v2.5/signals/activate-signal-response.json +0 -68
  358. package/dist/lib/schemas-data/v2.5/signals/get-signals-request.json +0 -59
  359. package/dist/lib/schemas-data/v2.5/signals/get-signals-response.json +0 -100
  360. package/dist/lib/types/v2-5/index.d.mts +0 -1
  361. package/dist/lib/types/v2-5/index.d.ts +0 -1
  362. package/dist/lib/types/v2-5/index.js +0 -22
  363. package/dist/lib/types/v2-5/index.mjs +0 -1
  364. package/dist/lib/types/v2-5/tools.generated.d.mts +0 -3568
  365. package/dist/lib/types/v2-5/tools.generated.d.ts +0 -3568
  366. package/dist/lib/types/v2-5/tools.generated.js +0 -16
  367. package/dist/lib/types/v2-5/tools.generated.mjs +0 -0
  368. package/dist/lib/utils/sync-creatives-adapter.d.mts +0 -33
  369. package/dist/lib/utils/sync-creatives-adapter.d.ts +0 -33
  370. package/dist/lib/utils/sync-creatives-adapter.js +0 -83
  371. package/dist/lib/utils/sync-creatives-adapter.mjs +0 -59
@@ -101,10 +101,10 @@ export declare const ReportingCoverageConstituentV1Schema: z.ZodDiscriminatedUni
101
101
  productBinding: z.ZodOptional<z.ZodNever>;
102
102
  status: z.ZodEnum<{
103
103
  delayed: "delayed";
104
+ partial: "partial";
104
105
  present: "present";
105
106
  missing: "missing";
106
107
  unsupported: "unsupported";
107
- partial: "partial";
108
108
  stale: "stale";
109
109
  explicit_zero: "explicit_zero";
110
110
  }>;
@@ -127,10 +127,10 @@ export declare const ReportingCoverageConstituentV1Schema: z.ZodDiscriminatedUni
127
127
  }, z.core.$strict>;
128
128
  status: z.ZodEnum<{
129
129
  delayed: "delayed";
130
+ partial: "partial";
130
131
  present: "present";
131
132
  missing: "missing";
132
133
  unsupported: "unsupported";
133
- partial: "partial";
134
134
  stale: "stale";
135
135
  explicit_zero: "explicit_zero";
136
136
  }>;
@@ -153,10 +153,10 @@ export declare const ReportingCoverageConstituentV1Schema: z.ZodDiscriminatedUni
153
153
  }, z.core.$strict>;
154
154
  status: z.ZodEnum<{
155
155
  delayed: "delayed";
156
+ partial: "partial";
156
157
  present: "present";
157
158
  missing: "missing";
158
159
  unsupported: "unsupported";
159
- partial: "partial";
160
160
  stale: "stale";
161
161
  explicit_zero: "explicit_zero";
162
162
  }>;
@@ -359,10 +359,10 @@ export declare const BasicSourceBatchManifestV1Schema: z.ZodObject<{
359
359
  semanticContractSha256: z.ZodString;
360
360
  status: z.ZodEnum<{
361
361
  delayed: "delayed";
362
+ partial: "partial";
362
363
  present: "present";
363
364
  missing: "missing";
364
365
  unsupported: "unsupported";
365
- partial: "partial";
366
366
  stale: "stale";
367
367
  explicit_zero: "explicit_zero";
368
368
  }>;
@@ -386,10 +386,10 @@ export declare const BasicSourceBatchManifestV1Schema: z.ZodObject<{
386
386
  productBinding: z.ZodOptional<z.ZodNever>;
387
387
  status: z.ZodEnum<{
388
388
  delayed: "delayed";
389
+ partial: "partial";
389
390
  present: "present";
390
391
  missing: "missing";
391
392
  unsupported: "unsupported";
392
- partial: "partial";
393
393
  stale: "stale";
394
394
  explicit_zero: "explicit_zero";
395
395
  }>;
@@ -412,10 +412,10 @@ export declare const BasicSourceBatchManifestV1Schema: z.ZodObject<{
412
412
  }, z.core.$strict>;
413
413
  status: z.ZodEnum<{
414
414
  delayed: "delayed";
415
+ partial: "partial";
415
416
  present: "present";
416
417
  missing: "missing";
417
418
  unsupported: "unsupported";
418
- partial: "partial";
419
419
  stale: "stale";
420
420
  explicit_zero: "explicit_zero";
421
421
  }>;
@@ -438,10 +438,10 @@ export declare const BasicSourceBatchManifestV1Schema: z.ZodObject<{
438
438
  }, z.core.$strict>;
439
439
  status: z.ZodEnum<{
440
440
  delayed: "delayed";
441
+ partial: "partial";
441
442
  present: "present";
442
443
  missing: "missing";
443
444
  unsupported: "unsupported";
444
- partial: "partial";
445
445
  stale: "stale";
446
446
  explicit_zero: "explicit_zero";
447
447
  }>;
@@ -704,10 +704,10 @@ export declare const SourceBatchManifestV1Schema: z.ZodObject<{
704
704
  semanticContractSha256: z.ZodString;
705
705
  status: z.ZodEnum<{
706
706
  delayed: "delayed";
707
+ partial: "partial";
707
708
  present: "present";
708
709
  missing: "missing";
709
710
  unsupported: "unsupported";
710
- partial: "partial";
711
711
  stale: "stale";
712
712
  explicit_zero: "explicit_zero";
713
713
  }>;
@@ -731,10 +731,10 @@ export declare const SourceBatchManifestV1Schema: z.ZodObject<{
731
731
  productBinding: z.ZodOptional<z.ZodNever>;
732
732
  status: z.ZodEnum<{
733
733
  delayed: "delayed";
734
+ partial: "partial";
734
735
  present: "present";
735
736
  missing: "missing";
736
737
  unsupported: "unsupported";
737
- partial: "partial";
738
738
  stale: "stale";
739
739
  explicit_zero: "explicit_zero";
740
740
  }>;
@@ -757,10 +757,10 @@ export declare const SourceBatchManifestV1Schema: z.ZodObject<{
757
757
  }, z.core.$strict>;
758
758
  status: z.ZodEnum<{
759
759
  delayed: "delayed";
760
+ partial: "partial";
760
761
  present: "present";
761
762
  missing: "missing";
762
763
  unsupported: "unsupported";
763
- partial: "partial";
764
764
  stale: "stale";
765
765
  explicit_zero: "explicit_zero";
766
766
  }>;
@@ -783,10 +783,10 @@ export declare const SourceBatchManifestV1Schema: z.ZodObject<{
783
783
  }, z.core.$strict>;
784
784
  status: z.ZodEnum<{
785
785
  delayed: "delayed";
786
+ partial: "partial";
786
787
  present: "present";
787
788
  missing: "missing";
788
789
  unsupported: "unsupported";
789
- partial: "partial";
790
790
  stale: "stale";
791
791
  explicit_zero: "explicit_zero";
792
792
  }>;
@@ -969,10 +969,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
969
969
  semanticContractSha256: z.ZodString;
970
970
  status: z.ZodEnum<{
971
971
  delayed: "delayed";
972
+ partial: "partial";
972
973
  present: "present";
973
974
  missing: "missing";
974
975
  unsupported: "unsupported";
975
- partial: "partial";
976
976
  stale: "stale";
977
977
  explicit_zero: "explicit_zero";
978
978
  }>;
@@ -996,10 +996,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
996
996
  productBinding: z.ZodOptional<z.ZodNever>;
997
997
  status: z.ZodEnum<{
998
998
  delayed: "delayed";
999
+ partial: "partial";
999
1000
  present: "present";
1000
1001
  missing: "missing";
1001
1002
  unsupported: "unsupported";
1002
- partial: "partial";
1003
1003
  stale: "stale";
1004
1004
  explicit_zero: "explicit_zero";
1005
1005
  }>;
@@ -1022,10 +1022,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
1022
1022
  }, z.core.$strict>;
1023
1023
  status: z.ZodEnum<{
1024
1024
  delayed: "delayed";
1025
+ partial: "partial";
1025
1026
  present: "present";
1026
1027
  missing: "missing";
1027
1028
  unsupported: "unsupported";
1028
- partial: "partial";
1029
1029
  stale: "stale";
1030
1030
  explicit_zero: "explicit_zero";
1031
1031
  }>;
@@ -1048,10 +1048,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
1048
1048
  }, z.core.$strict>;
1049
1049
  status: z.ZodEnum<{
1050
1050
  delayed: "delayed";
1051
+ partial: "partial";
1051
1052
  present: "present";
1052
1053
  missing: "missing";
1053
1054
  unsupported: "unsupported";
1054
- partial: "partial";
1055
1055
  stale: "stale";
1056
1056
  explicit_zero: "explicit_zero";
1057
1057
  }>;
@@ -1313,10 +1313,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
1313
1313
  semanticContractSha256: z.ZodString;
1314
1314
  status: z.ZodEnum<{
1315
1315
  delayed: "delayed";
1316
+ partial: "partial";
1316
1317
  present: "present";
1317
1318
  missing: "missing";
1318
1319
  unsupported: "unsupported";
1319
- partial: "partial";
1320
1320
  stale: "stale";
1321
1321
  explicit_zero: "explicit_zero";
1322
1322
  }>;
@@ -1340,10 +1340,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
1340
1340
  productBinding: z.ZodOptional<z.ZodNever>;
1341
1341
  status: z.ZodEnum<{
1342
1342
  delayed: "delayed";
1343
+ partial: "partial";
1343
1344
  present: "present";
1344
1345
  missing: "missing";
1345
1346
  unsupported: "unsupported";
1346
- partial: "partial";
1347
1347
  stale: "stale";
1348
1348
  explicit_zero: "explicit_zero";
1349
1349
  }>;
@@ -1366,10 +1366,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
1366
1366
  }, z.core.$strict>;
1367
1367
  status: z.ZodEnum<{
1368
1368
  delayed: "delayed";
1369
+ partial: "partial";
1369
1370
  present: "present";
1370
1371
  missing: "missing";
1371
1372
  unsupported: "unsupported";
1372
- partial: "partial";
1373
1373
  stale: "stale";
1374
1374
  explicit_zero: "explicit_zero";
1375
1375
  }>;
@@ -1392,10 +1392,10 @@ export declare const ReportingSourceManifestV1Schema: z.ZodUnion<readonly [z.Zod
1392
1392
  }, z.core.$strict>;
1393
1393
  status: z.ZodEnum<{
1394
1394
  delayed: "delayed";
1395
+ partial: "partial";
1395
1396
  present: "present";
1396
1397
  missing: "missing";
1397
1398
  unsupported: "unsupported";
1398
- partial: "partial";
1399
1399
  stale: "stale";
1400
1400
  explicit_zero: "explicit_zero";
1401
1401
  }>;
@@ -1600,10 +1600,10 @@ export declare const BasicSourceBatchManifestV1JsonSchema: z.core.ZodStandardJSO
1600
1600
  semanticContractSha256: z.ZodString;
1601
1601
  status: z.ZodEnum<{
1602
1602
  delayed: "delayed";
1603
+ partial: "partial";
1603
1604
  present: "present";
1604
1605
  missing: "missing";
1605
1606
  unsupported: "unsupported";
1606
- partial: "partial";
1607
1607
  stale: "stale";
1608
1608
  explicit_zero: "explicit_zero";
1609
1609
  }>;
@@ -1627,10 +1627,10 @@ export declare const BasicSourceBatchManifestV1JsonSchema: z.core.ZodStandardJSO
1627
1627
  productBinding: z.ZodOptional<z.ZodNever>;
1628
1628
  status: z.ZodEnum<{
1629
1629
  delayed: "delayed";
1630
+ partial: "partial";
1630
1631
  present: "present";
1631
1632
  missing: "missing";
1632
1633
  unsupported: "unsupported";
1633
- partial: "partial";
1634
1634
  stale: "stale";
1635
1635
  explicit_zero: "explicit_zero";
1636
1636
  }>;
@@ -1653,10 +1653,10 @@ export declare const BasicSourceBatchManifestV1JsonSchema: z.core.ZodStandardJSO
1653
1653
  }, z.core.$strict>;
1654
1654
  status: z.ZodEnum<{
1655
1655
  delayed: "delayed";
1656
+ partial: "partial";
1656
1657
  present: "present";
1657
1658
  missing: "missing";
1658
1659
  unsupported: "unsupported";
1659
- partial: "partial";
1660
1660
  stale: "stale";
1661
1661
  explicit_zero: "explicit_zero";
1662
1662
  }>;
@@ -1679,10 +1679,10 @@ export declare const BasicSourceBatchManifestV1JsonSchema: z.core.ZodStandardJSO
1679
1679
  }, z.core.$strict>;
1680
1680
  status: z.ZodEnum<{
1681
1681
  delayed: "delayed";
1682
+ partial: "partial";
1682
1683
  present: "present";
1683
1684
  missing: "missing";
1684
1685
  unsupported: "unsupported";
1685
- partial: "partial";
1686
1686
  stale: "stale";
1687
1687
  explicit_zero: "explicit_zero";
1688
1688
  }>;
@@ -1945,10 +1945,10 @@ export declare const SourceBatchManifestV1JsonSchema: z.core.ZodStandardJSONSche
1945
1945
  semanticContractSha256: z.ZodString;
1946
1946
  status: z.ZodEnum<{
1947
1947
  delayed: "delayed";
1948
+ partial: "partial";
1948
1949
  present: "present";
1949
1950
  missing: "missing";
1950
1951
  unsupported: "unsupported";
1951
- partial: "partial";
1952
1952
  stale: "stale";
1953
1953
  explicit_zero: "explicit_zero";
1954
1954
  }>;
@@ -1972,10 +1972,10 @@ export declare const SourceBatchManifestV1JsonSchema: z.core.ZodStandardJSONSche
1972
1972
  productBinding: z.ZodOptional<z.ZodNever>;
1973
1973
  status: z.ZodEnum<{
1974
1974
  delayed: "delayed";
1975
+ partial: "partial";
1975
1976
  present: "present";
1976
1977
  missing: "missing";
1977
1978
  unsupported: "unsupported";
1978
- partial: "partial";
1979
1979
  stale: "stale";
1980
1980
  explicit_zero: "explicit_zero";
1981
1981
  }>;
@@ -1998,10 +1998,10 @@ export declare const SourceBatchManifestV1JsonSchema: z.core.ZodStandardJSONSche
1998
1998
  }, z.core.$strict>;
1999
1999
  status: z.ZodEnum<{
2000
2000
  delayed: "delayed";
2001
+ partial: "partial";
2001
2002
  present: "present";
2002
2003
  missing: "missing";
2003
2004
  unsupported: "unsupported";
2004
- partial: "partial";
2005
2005
  stale: "stale";
2006
2006
  explicit_zero: "explicit_zero";
2007
2007
  }>;
@@ -2024,10 +2024,10 @@ export declare const SourceBatchManifestV1JsonSchema: z.core.ZodStandardJSONSche
2024
2024
  }, z.core.$strict>;
2025
2025
  status: z.ZodEnum<{
2026
2026
  delayed: "delayed";
2027
+ partial: "partial";
2027
2028
  present: "present";
2028
2029
  missing: "missing";
2029
2030
  unsupported: "unsupported";
2030
- partial: "partial";
2031
2031
  stale: "stale";
2032
2032
  explicit_zero: "explicit_zero";
2033
2033
  }>;
@@ -1993,6 +1993,12 @@ function createAdcpServer(config) {
1993
1993
  responseEnhancer,
1994
1994
  structuredContentTextFallback = "always"
1995
1995
  } = config;
1996
+ if (capConfig?.major_versions?.some((major) => major < 3) || capConfig?.supported_versions?.some((version2) => (0, import_version.parseAdcpMajorVersion)(version2) < 3)) {
1997
+ throw new import_errors.ConfigurationError(
1998
+ "AdCP 2 reached end of life on 2026-08-01. Server capabilities must advertise AdCP 3 only.",
1999
+ "capabilities"
2000
+ );
2001
+ }
1996
2002
  if (taskRegistry !== void 0 && taskRegistry.scopeVersion !== 1) {
1997
2003
  throw new Error(
1998
2004
  "createAdcpServer: taskRegistry.scopeVersion must be 1. Migrate custom registries to the account/principal-scoped TaskRegistry signatures before use."
@@ -4575,7 +4581,7 @@ function createAdcpServer(config) {
4575
4581
  .../* @__PURE__ */ new Set([
4576
4582
  algorithm,
4577
4583
  // `algorithms` lists AdCP webhook-profile values; a Web Bot Auth key
4578
- // is Ed25519 or RSA-PSS (adcp#7894), and only Ed25519 has a value here.
4584
+ // is Ed25519 (adcp#7894), which has the value `ed25519` here.
4579
4585
  ...webhooks.webBotAuth && ("privateKey" in webhooks.webBotAuth.key ? webhooks.webBotAuth.key.privateKey.crv : webhooks.webBotAuth.key.publicKey.crv) === "Ed25519" ? ["ed25519"] : []
4580
4586
  ])
4581
4587
  ],
@@ -2084,6 +2084,12 @@ function createAdcpServer(config) {
2084
2084
  responseEnhancer,
2085
2085
  structuredContentTextFallback = "always"
2086
2086
  } = config;
2087
+ if (capConfig?.major_versions?.some((major) => major < 3) || capConfig?.supported_versions?.some((version2) => parseAdcpMajorVersion(version2) < 3)) {
2088
+ throw new ConfigurationError(
2089
+ "AdCP 2 reached end of life on 2026-08-01. Server capabilities must advertise AdCP 3 only.",
2090
+ "capabilities"
2091
+ );
2092
+ }
2087
2093
  if (taskRegistry !== void 0 && taskRegistry.scopeVersion !== 1) {
2088
2094
  throw new Error(
2089
2095
  "createAdcpServer: taskRegistry.scopeVersion must be 1. Migrate custom registries to the account/principal-scoped TaskRegistry signatures before use."
@@ -4666,7 +4672,7 @@ function createAdcpServer(config) {
4666
4672
  .../* @__PURE__ */ new Set([
4667
4673
  algorithm,
4668
4674
  // `algorithms` lists AdCP webhook-profile values; a Web Bot Auth key
4669
- // is Ed25519 or RSA-PSS (adcp#7894), and only Ed25519 has a value here.
4675
+ // is Ed25519 (adcp#7894), which has the value `ed25519` here.
4670
4676
  ...webhooks.webBotAuth && ("privateKey" in webhooks.webBotAuth.key ? webhooks.webBotAuth.key.privateKey.crv : webhooks.webBotAuth.key.publicKey.crv) === "Ed25519" ? ["ed25519"] : []
4671
4677
  ])
4672
4678
  ],
@@ -15,5 +15,5 @@ export declare function verifySignatureAsync(alg: string, publicKey: KeyObject |
15
15
  * path passes the key as a JWK so workerd accepts it (#3243).
16
16
  */
17
17
  export declare function signWithPrivateJwk(alg: string, privateJwk: AdcpJsonWebKey, data: Uint8Array): Uint8Array;
18
- /** {@link signWithPrivateJwk}, preferring WebCrypto for ES256 and RSA-PSS when available (workerd, #3243). */
18
+ /** {@link signWithPrivateJwk}, preferring WebCrypto for ES256 when available (workerd, #3243). */
19
19
  export declare function signWithPrivateJwkAsync(alg: string, privateJwk: AdcpJsonWebKey, data: Uint8Array): Promise<Uint8Array>;
@@ -15,5 +15,5 @@ export declare function verifySignatureAsync(alg: string, publicKey: KeyObject |
15
15
  * path passes the key as a JWK so workerd accepts it (#3243).
16
16
  */
17
17
  export declare function signWithPrivateJwk(alg: string, privateJwk: AdcpJsonWebKey, data: Uint8Array): Uint8Array;
18
- /** {@link signWithPrivateJwk}, preferring WebCrypto for ES256 and RSA-PSS when available (workerd, #3243). */
18
+ /** {@link signWithPrivateJwk}, preferring WebCrypto for ES256 when available (workerd, #3243). */
19
19
  export declare function signWithPrivateJwkAsync(alg: string, privateJwk: AdcpJsonWebKey, data: Uint8Array): Promise<Uint8Array>;
@@ -59,14 +59,6 @@ function verifySignature(alg, publicKey, data, signature) {
59
59
  );
60
60
  }
61
61
  }
62
- if (alg === "rsa-pss-sha512") {
63
- return (0, import_crypto.verify)(
64
- "sha512",
65
- data,
66
- { key: publicKey, padding: import_crypto.constants.RSA_PKCS1_PSS_PADDING, saltLength: 64 },
67
- signature
68
- );
69
- }
70
62
  return false;
71
63
  } catch {
72
64
  return false;
@@ -87,36 +79,15 @@ function privateP256Jwk(jwk) {
87
79
  async function verifySignatureAsync(alg, publicKey, data, signature) {
88
80
  const subtle = subtleCrypto();
89
81
  const keyObject = () => isKeyObject(publicKey) ? publicKey : jwkToPublicKey(publicKey);
90
- if (alg !== "ecdsa-p256-sha256" && alg !== "rsa-pss-sha512" || !subtle)
91
- return verifySignature(alg, keyObject(), data, signature);
82
+ if (alg !== "ecdsa-p256-sha256" || !subtle) return verifySignature(alg, keyObject(), data, signature);
92
83
  try {
93
84
  const jwk = isKeyObject(publicKey) ? publicKey.export({ format: "jwk" }) : publicKey;
94
- if (alg === "rsa-pss-sha512") {
95
- const key2 = await importRsaPssVerifyKey(subtle, jwk);
96
- return await subtle.verify(RSA_PSS_SHA512_SIGN, key2, toArrayBuffer(signature), toArrayBuffer(data));
97
- }
98
85
  const key = await importP256VerifyKey(subtle, jwk);
99
86
  return await subtle.verify(P256_SHA256, key, toArrayBuffer(signature), toArrayBuffer(data));
100
87
  } catch {
101
88
  return false;
102
89
  }
103
90
  }
104
- const RSA_PSS_SHA512 = { name: "RSA-PSS", hash: "SHA-512" };
105
- const RSA_PSS_SHA512_SIGN = { name: "RSA-PSS", saltLength: 64 };
106
- const rsaPssVerifyKeys = /* @__PURE__ */ new Map();
107
- function importRsaPssVerifyKey(subtle, jwk) {
108
- if (jwk.kty !== "RSA" || typeof jwk.n !== "string" || typeof jwk.e !== "string")
109
- return Promise.reject(new TypeError("Not an RSA public key"));
110
- const cacheKey = `${jwk.e}.${jwk.n}`;
111
- let key = rsaPssVerifyKeys.get(cacheKey);
112
- if (!key) {
113
- key = subtle.importKey("jwk", { kty: "RSA", n: jwk.n, e: jwk.e }, RSA_PSS_SHA512, false, ["verify"]);
114
- key.catch(() => rsaPssVerifyKeys.delete(cacheKey));
115
- if (rsaPssVerifyKeys.size >= 256) rsaPssVerifyKeys.delete(rsaPssVerifyKeys.keys().next().value);
116
- rsaPssVerifyKeys.set(cacheKey, key);
117
- }
118
- return key;
119
- }
120
91
  function isKeyObject(value) {
121
92
  return typeof value?.export === "function" && "asymmetricKeyType" in value;
122
93
  }
@@ -139,25 +110,11 @@ function signWithPrivateJwk(alg, privateJwk, data) {
139
110
  return new Uint8Array((0, import_crypto.sign)(null, data, (0, import_crypto.createPrivateKey)({ key: privateJwk, format: "jwk" })));
140
111
  if (alg === "ecdsa-p256-sha256")
141
112
  return new Uint8Array((0, import_crypto.sign)("sha256", data, { key: privateJwk, format: "jwk", dsaEncoding: "ieee-p1363" }));
142
- if (alg === "rsa-pss-sha512")
143
- return new Uint8Array(
144
- (0, import_crypto.sign)("sha512", data, {
145
- key: (0, import_crypto.createPrivateKey)({ key: privateJwk, format: "jwk" }),
146
- padding: import_crypto.constants.RSA_PKCS1_PSS_PADDING,
147
- saltLength: 64
148
- })
149
- );
150
113
  throw new TypeError(`Unsupported signing algorithm: ${alg}`);
151
114
  }
152
115
  async function signWithPrivateJwkAsync(alg, privateJwk, data) {
153
116
  const subtle = subtleCrypto();
154
- if (alg !== "ecdsa-p256-sha256" && alg !== "rsa-pss-sha512" || !subtle)
155
- return signWithPrivateJwk(alg, privateJwk, data);
156
- if (alg === "rsa-pss-sha512") {
157
- const { kty, n, e, d, p, q, dp, dq, qi } = privateJwk;
158
- const key2 = await subtle.importKey("jwk", { kty, n, e, d, p, q, dp, dq, qi }, RSA_PSS_SHA512, false, ["sign"]);
159
- return new Uint8Array(await subtle.sign(RSA_PSS_SHA512_SIGN, key2, toArrayBuffer(data)));
160
- }
117
+ if (alg !== "ecdsa-p256-sha256" || !subtle) return signWithPrivateJwk(alg, privateJwk, data);
161
118
  const key = await subtle.importKey("jwk", privateP256Jwk(privateJwk), P256, false, ["sign"]);
162
119
  return new Uint8Array(await subtle.sign(P256_SHA256, key, toArrayBuffer(data)));
163
120
  }
@@ -1,5 +1,4 @@
1
1
  import {
2
- constants,
3
2
  createPrivateKey,
4
3
  createPublicKey,
5
4
  sign as nodeSign,
@@ -38,14 +37,6 @@ function verifySignature(alg, publicKey, data, signature) {
38
37
  );
39
38
  }
40
39
  }
41
- if (alg === "rsa-pss-sha512") {
42
- return nodeVerify(
43
- "sha512",
44
- data,
45
- { key: publicKey, padding: constants.RSA_PKCS1_PSS_PADDING, saltLength: 64 },
46
- signature
47
- );
48
- }
49
40
  return false;
50
41
  } catch {
51
42
  return false;
@@ -66,36 +57,15 @@ function privateP256Jwk(jwk) {
66
57
  async function verifySignatureAsync(alg, publicKey, data, signature) {
67
58
  const subtle = subtleCrypto();
68
59
  const keyObject = () => isKeyObject(publicKey) ? publicKey : jwkToPublicKey(publicKey);
69
- if (alg !== "ecdsa-p256-sha256" && alg !== "rsa-pss-sha512" || !subtle)
70
- return verifySignature(alg, keyObject(), data, signature);
60
+ if (alg !== "ecdsa-p256-sha256" || !subtle) return verifySignature(alg, keyObject(), data, signature);
71
61
  try {
72
62
  const jwk = isKeyObject(publicKey) ? publicKey.export({ format: "jwk" }) : publicKey;
73
- if (alg === "rsa-pss-sha512") {
74
- const key2 = await importRsaPssVerifyKey(subtle, jwk);
75
- return await subtle.verify(RSA_PSS_SHA512_SIGN, key2, toArrayBuffer(signature), toArrayBuffer(data));
76
- }
77
63
  const key = await importP256VerifyKey(subtle, jwk);
78
64
  return await subtle.verify(P256_SHA256, key, toArrayBuffer(signature), toArrayBuffer(data));
79
65
  } catch {
80
66
  return false;
81
67
  }
82
68
  }
83
- const RSA_PSS_SHA512 = { name: "RSA-PSS", hash: "SHA-512" };
84
- const RSA_PSS_SHA512_SIGN = { name: "RSA-PSS", saltLength: 64 };
85
- const rsaPssVerifyKeys = /* @__PURE__ */ new Map();
86
- function importRsaPssVerifyKey(subtle, jwk) {
87
- if (jwk.kty !== "RSA" || typeof jwk.n !== "string" || typeof jwk.e !== "string")
88
- return Promise.reject(new TypeError("Not an RSA public key"));
89
- const cacheKey = `${jwk.e}.${jwk.n}`;
90
- let key = rsaPssVerifyKeys.get(cacheKey);
91
- if (!key) {
92
- key = subtle.importKey("jwk", { kty: "RSA", n: jwk.n, e: jwk.e }, RSA_PSS_SHA512, false, ["verify"]);
93
- key.catch(() => rsaPssVerifyKeys.delete(cacheKey));
94
- if (rsaPssVerifyKeys.size >= 256) rsaPssVerifyKeys.delete(rsaPssVerifyKeys.keys().next().value);
95
- rsaPssVerifyKeys.set(cacheKey, key);
96
- }
97
- return key;
98
- }
99
69
  function isKeyObject(value) {
100
70
  return typeof value?.export === "function" && "asymmetricKeyType" in value;
101
71
  }
@@ -118,25 +88,11 @@ function signWithPrivateJwk(alg, privateJwk, data) {
118
88
  return new Uint8Array(nodeSign(null, data, createPrivateKey({ key: privateJwk, format: "jwk" })));
119
89
  if (alg === "ecdsa-p256-sha256")
120
90
  return new Uint8Array(nodeSign("sha256", data, { key: privateJwk, format: "jwk", dsaEncoding: "ieee-p1363" }));
121
- if (alg === "rsa-pss-sha512")
122
- return new Uint8Array(
123
- nodeSign("sha512", data, {
124
- key: createPrivateKey({ key: privateJwk, format: "jwk" }),
125
- padding: constants.RSA_PKCS1_PSS_PADDING,
126
- saltLength: 64
127
- })
128
- );
129
91
  throw new TypeError(`Unsupported signing algorithm: ${alg}`);
130
92
  }
131
93
  async function signWithPrivateJwkAsync(alg, privateJwk, data) {
132
94
  const subtle = subtleCrypto();
133
- if (alg !== "ecdsa-p256-sha256" && alg !== "rsa-pss-sha512" || !subtle)
134
- return signWithPrivateJwk(alg, privateJwk, data);
135
- if (alg === "rsa-pss-sha512") {
136
- const { kty, n, e, d, p, q, dp, dq, qi } = privateJwk;
137
- const key2 = await subtle.importKey("jwk", { kty, n, e, d, p, q, dp, dq, qi }, RSA_PSS_SHA512, false, ["sign"]);
138
- return new Uint8Array(await subtle.sign(RSA_PSS_SHA512_SIGN, key2, toArrayBuffer(data)));
139
- }
95
+ if (alg !== "ecdsa-p256-sha256" || !subtle) return signWithPrivateJwk(alg, privateJwk, data);
140
96
  const key = await subtle.importKey("jwk", privateP256Jwk(privateJwk), P256, false, ["sign"]);
141
97
  return new Uint8Array(await subtle.sign(P256_SHA256, key, toArrayBuffer(data)));
142
98
  }
@@ -8,8 +8,8 @@ export declare const WEB_BOT_AUTH_PROFILE: "web-bot-auth";
8
8
  export declare const WEB_BOT_AUTH_DRAFT_REVISION: "draft-ietf-webbotauth-httpsig-protocol-00";
9
9
  export declare const SIGNATURE_DIRECTORY_PATH = "/.well-known/http-message-signatures-directory";
10
10
  export declare const SIGNATURE_DIRECTORY_MEDIA_TYPE = "application/http-message-signatures-directory+json";
11
- /** The profile's signature algorithms (wba-profile.mdx "Profile rules"). ES256 is RFC 9421 profile only. */
12
- export declare const WEB_BOT_AUTH_ALGORITHMS: readonly ["ed25519", "rsa-pss-sha512"];
11
+ /** The profile's signature algorithm: Ed25519 only. ES256 is RFC 9421 profile only. */
12
+ export declare const WEB_BOT_AUTH_ALGORITHMS: readonly ["ed25519"];
13
13
  /**
14
14
  * The profile's `Accept-Signature` member (RFC 9421 §5.1): the label, the
15
15
  * components the profile requires, and its parameters. A replay challenge
@@ -73,7 +73,12 @@ export declare function jwkThumbprint(jwk: Partial<Pick<AdcpJsonWebKey, 'kty' |
73
73
  * time rather than on the first request.
74
74
  */
75
75
  export declare function assertWebBotAuthSigningKey(key: WebBotSigningKey): void;
76
- /** Reject authority normalization differentials on received identifiers. */
76
+ /**
77
+ * A received identity origin, which must be exactly the canonical https
78
+ * origin string (WBA §5.2.1): lowercase host, no default port, and no path,
79
+ * trailing `/`, query, fragment, or userinfo. The string is compared as
80
+ * received, never normalized first.
81
+ */
77
82
  export declare function receivedAgentOrigin(value: string): string;
78
83
  export declare function getWebBotAuthLegacyOriginGate(resolver: Function | undefined): ((origin: string) => Promise<void>) | undefined;
79
84
  export interface WebBotAuthAuthorizationFailure {
@@ -136,8 +141,9 @@ export interface VerifyWebBotAuthOptions {
136
141
  /**
137
142
  * Verify a Web Bot Auth request (wba-profile.mdx "Verification"). Resolves to
138
143
  * exactly one verified signer: the profile takes one `web-bot-auth` signature
139
- * and one `Signature-Agent` member per request. The array shape is kept for
140
- * principal resolvers written against earlier drafts.
144
+ * and one `Signature-Agent` member per request, and does not read signatures
145
+ * with other tags. The array shape is kept for principal resolvers written
146
+ * against earlier drafts.
141
147
  */
142
148
  export declare function verifyWebBotAuth(request: RequestLike, options: VerifyWebBotAuthOptions): Promise<VerifiedWebBotSigner[]>;
143
149
  export interface VerifiedSignatureDirectory {
@@ -151,11 +157,13 @@ export interface VerifiedSignatureDirectory {
151
157
  }
152
158
  /**
153
159
  * Verify a key directory response (wba-profile.mdx "Key directories", WBA
154
- * Appendix B.1). The response must be signed once per key, each signature
155
- * covering `"@authority";req` and `content-digest` with `created`, `expires`,
156
- * the key's thumbprint as `keyid` and `tag="http-message-signatures-directory"`,
157
- * and verifying under the key the directory itself provides. An unsigned
158
- * directory is a discovery failure.
160
+ * Appendix B.1). The response must be signed once per usable key, each
161
+ * signature covering `"@authority";req` and `content-digest` with `created`,
162
+ * `expires`, the key's thumbprint as `keyid` and
163
+ * `tag="http-message-signatures-directory"`, and verifying under the key the
164
+ * directory itself provides. Keys the profile cannot use, and their
165
+ * signatures, are ignored. An unsigned directory, or one without a usable
166
+ * key, is a discovery failure.
159
167
  */
160
168
  export declare function verifyKeyDirectory(response: ResponseLike, now?: number, options?: {
161
169
  allowTestKeys?: boolean;
@@ -8,8 +8,8 @@ export declare const WEB_BOT_AUTH_PROFILE: "web-bot-auth";
8
8
  export declare const WEB_BOT_AUTH_DRAFT_REVISION: "draft-ietf-webbotauth-httpsig-protocol-00";
9
9
  export declare const SIGNATURE_DIRECTORY_PATH = "/.well-known/http-message-signatures-directory";
10
10
  export declare const SIGNATURE_DIRECTORY_MEDIA_TYPE = "application/http-message-signatures-directory+json";
11
- /** The profile's signature algorithms (wba-profile.mdx "Profile rules"). ES256 is RFC 9421 profile only. */
12
- export declare const WEB_BOT_AUTH_ALGORITHMS: readonly ["ed25519", "rsa-pss-sha512"];
11
+ /** The profile's signature algorithm: Ed25519 only. ES256 is RFC 9421 profile only. */
12
+ export declare const WEB_BOT_AUTH_ALGORITHMS: readonly ["ed25519"];
13
13
  /**
14
14
  * The profile's `Accept-Signature` member (RFC 9421 §5.1): the label, the
15
15
  * components the profile requires, and its parameters. A replay challenge
@@ -73,7 +73,12 @@ export declare function jwkThumbprint(jwk: Partial<Pick<AdcpJsonWebKey, 'kty' |
73
73
  * time rather than on the first request.
74
74
  */
75
75
  export declare function assertWebBotAuthSigningKey(key: WebBotSigningKey): void;
76
- /** Reject authority normalization differentials on received identifiers. */
76
+ /**
77
+ * A received identity origin, which must be exactly the canonical https
78
+ * origin string (WBA §5.2.1): lowercase host, no default port, and no path,
79
+ * trailing `/`, query, fragment, or userinfo. The string is compared as
80
+ * received, never normalized first.
81
+ */
77
82
  export declare function receivedAgentOrigin(value: string): string;
78
83
  export declare function getWebBotAuthLegacyOriginGate(resolver: Function | undefined): ((origin: string) => Promise<void>) | undefined;
79
84
  export interface WebBotAuthAuthorizationFailure {
@@ -136,8 +141,9 @@ export interface VerifyWebBotAuthOptions {
136
141
  /**
137
142
  * Verify a Web Bot Auth request (wba-profile.mdx "Verification"). Resolves to
138
143
  * exactly one verified signer: the profile takes one `web-bot-auth` signature
139
- * and one `Signature-Agent` member per request. The array shape is kept for
140
- * principal resolvers written against earlier drafts.
144
+ * and one `Signature-Agent` member per request, and does not read signatures
145
+ * with other tags. The array shape is kept for principal resolvers written
146
+ * against earlier drafts.
141
147
  */
142
148
  export declare function verifyWebBotAuth(request: RequestLike, options: VerifyWebBotAuthOptions): Promise<VerifiedWebBotSigner[]>;
143
149
  export interface VerifiedSignatureDirectory {
@@ -151,11 +157,13 @@ export interface VerifiedSignatureDirectory {
151
157
  }
152
158
  /**
153
159
  * Verify a key directory response (wba-profile.mdx "Key directories", WBA
154
- * Appendix B.1). The response must be signed once per key, each signature
155
- * covering `"@authority";req` and `content-digest` with `created`, `expires`,
156
- * the key's thumbprint as `keyid` and `tag="http-message-signatures-directory"`,
157
- * and verifying under the key the directory itself provides. An unsigned
158
- * directory is a discovery failure.
160
+ * Appendix B.1). The response must be signed once per usable key, each
161
+ * signature covering `"@authority";req` and `content-digest` with `created`,
162
+ * `expires`, the key's thumbprint as `keyid` and
163
+ * `tag="http-message-signatures-directory"`, and verifying under the key the
164
+ * directory itself provides. Keys the profile cannot use, and their
165
+ * signatures, are ignored. An unsigned directory, or one without a usable
166
+ * key, is a discovery failure.
159
167
  */
160
168
  export declare function verifyKeyDirectory(response: ResponseLike, now?: number, options?: {
161
169
  allowTestKeys?: boolean;