@adcp/sdk 8.1.0-beta.1 → 8.1.0-beta.11

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 (286) hide show
  1. package/README.md +16 -1
  2. package/bin/adcp.js +75 -21
  3. package/dist/lib/conformance/oracle.d.ts.map +1 -1
  4. package/dist/lib/conformance/oracle.js +8 -1
  5. package/dist/lib/conformance/oracle.js.map +1 -1
  6. package/dist/lib/conformance/schemaArbitrary.js +135 -9
  7. package/dist/lib/conformance/schemaArbitrary.js.map +1 -1
  8. package/dist/lib/core/AgentClient.d.ts +1 -1
  9. package/dist/lib/core/AgentClient.d.ts.map +1 -1
  10. package/dist/lib/core/AgentClient.js.map +1 -1
  11. package/dist/lib/core/GovernanceMiddleware.d.ts +2 -1
  12. package/dist/lib/core/GovernanceMiddleware.d.ts.map +1 -1
  13. package/dist/lib/core/GovernanceMiddleware.js +9 -2
  14. package/dist/lib/core/GovernanceMiddleware.js.map +1 -1
  15. package/dist/lib/core/ResponseValidator.js +1 -1
  16. package/dist/lib/core/ResponseValidator.js.map +1 -1
  17. package/dist/lib/core/SingleAgentClient.d.ts +6 -0
  18. package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
  19. package/dist/lib/core/SingleAgentClient.js +2 -3
  20. package/dist/lib/core/SingleAgentClient.js.map +1 -1
  21. package/dist/lib/core/TaskExecutor.d.ts +1 -0
  22. package/dist/lib/core/TaskExecutor.d.ts.map +1 -1
  23. package/dist/lib/core/TaskExecutor.js +14 -3
  24. package/dist/lib/core/TaskExecutor.js.map +1 -1
  25. package/dist/lib/index.d.ts +3 -2
  26. package/dist/lib/index.d.ts.map +1 -1
  27. package/dist/lib/index.js +26 -11
  28. package/dist/lib/index.js.map +1 -1
  29. package/dist/lib/media-buy/index.d.ts +1 -1
  30. package/dist/lib/media-buy/index.d.ts.map +1 -1
  31. package/dist/lib/media-buy/index.js.map +1 -1
  32. package/dist/lib/media-buy/types.d.ts +12 -52
  33. package/dist/lib/media-buy/types.d.ts.map +1 -1
  34. package/dist/lib/media-buy/types.js +12 -15
  35. package/dist/lib/media-buy/types.js.map +1 -1
  36. package/dist/lib/net/index.d.ts +1 -1
  37. package/dist/lib/net/index.d.ts.map +1 -1
  38. package/dist/lib/net/index.js +2 -1
  39. package/dist/lib/net/index.js.map +1 -1
  40. package/dist/lib/protocols/index.d.ts +10 -2
  41. package/dist/lib/protocols/index.d.ts.map +1 -1
  42. package/dist/lib/protocols/index.js +7 -6
  43. package/dist/lib/protocols/index.js.map +1 -1
  44. package/dist/lib/schemas/index.d.ts +68 -10
  45. package/dist/lib/schemas/index.d.ts.map +1 -1
  46. package/dist/lib/schemas/index.js +57 -16
  47. package/dist/lib/schemas/index.js.map +1 -1
  48. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  49. package/dist/lib/server/create-adcp-server.d.ts +59 -53
  50. package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
  51. package/dist/lib/server/create-adcp-server.js +62 -10
  52. package/dist/lib/server/create-adcp-server.js.map +1 -1
  53. package/dist/lib/server/decisioning/account.d.ts +22 -6
  54. package/dist/lib/server/decisioning/account.d.ts.map +1 -1
  55. package/dist/lib/server/decisioning/account.js.map +1 -1
  56. package/dist/lib/server/decisioning/capabilities.d.ts +8 -0
  57. package/dist/lib/server/decisioning/capabilities.d.ts.map +1 -1
  58. package/dist/lib/server/decisioning/index.d.ts +12 -11
  59. package/dist/lib/server/decisioning/index.d.ts.map +1 -1
  60. package/dist/lib/server/decisioning/index.js.map +1 -1
  61. package/dist/lib/server/decisioning/list-helpers.d.ts +3 -2
  62. package/dist/lib/server/decisioning/list-helpers.d.ts.map +1 -1
  63. package/dist/lib/server/decisioning/list-helpers.js +0 -1
  64. package/dist/lib/server/decisioning/list-helpers.js.map +1 -1
  65. package/dist/lib/server/decisioning/manifest-helpers.d.ts +8 -2
  66. package/dist/lib/server/decisioning/manifest-helpers.d.ts.map +1 -1
  67. package/dist/lib/server/decisioning/manifest-helpers.js +8 -2
  68. package/dist/lib/server/decisioning/manifest-helpers.js.map +1 -1
  69. package/dist/lib/server/decisioning/proposal/dispatch.d.ts +3 -2
  70. package/dist/lib/server/decisioning/proposal/dispatch.d.ts.map +1 -1
  71. package/dist/lib/server/decisioning/proposal/dispatch.js +1 -0
  72. package/dist/lib/server/decisioning/proposal/dispatch.js.map +1 -1
  73. package/dist/lib/server/decisioning/proposal/mock-manager.d.ts +3 -2
  74. package/dist/lib/server/decisioning/proposal/mock-manager.d.ts.map +1 -1
  75. package/dist/lib/server/decisioning/proposal/mock-manager.js.map +1 -1
  76. package/dist/lib/server/decisioning/proposal/types.d.ts +3 -2
  77. package/dist/lib/server/decisioning/proposal/types.d.ts.map +1 -1
  78. package/dist/lib/server/decisioning/proposal/types.js.map +1 -1
  79. package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
  80. package/dist/lib/server/decisioning/runtime/from-platform.js +14 -1
  81. package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
  82. package/dist/lib/server/decisioning/specialisms/audiences.d.ts +4 -1
  83. package/dist/lib/server/decisioning/specialisms/audiences.d.ts.map +1 -1
  84. package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts +19 -7
  85. package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts.map +1 -1
  86. package/dist/lib/server/decisioning/specialisms/campaign-governance.d.ts +9 -4
  87. package/dist/lib/server/decisioning/specialisms/campaign-governance.d.ts.map +1 -1
  88. package/dist/lib/server/decisioning/specialisms/content-standards.d.ts +17 -8
  89. package/dist/lib/server/decisioning/specialisms/content-standards.d.ts.map +1 -1
  90. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts +13 -5
  91. package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts.map +1 -1
  92. package/dist/lib/server/decisioning/specialisms/creative.d.ts +14 -9
  93. package/dist/lib/server/decisioning/specialisms/creative.d.ts.map +1 -1
  94. package/dist/lib/server/decisioning/specialisms/lists.d.ts +21 -10
  95. package/dist/lib/server/decisioning/specialisms/lists.d.ts.map +1 -1
  96. package/dist/lib/server/decisioning/specialisms/sales.d.ts +27 -12
  97. package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
  98. package/dist/lib/server/decisioning/specialisms/signals.d.ts +5 -2
  99. package/dist/lib/server/decisioning/specialisms/signals.d.ts.map +1 -1
  100. package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.d.ts +9 -4
  101. package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.d.ts.map +1 -1
  102. package/dist/lib/server/index.d.ts +2 -0
  103. package/dist/lib/server/index.d.ts.map +1 -1
  104. package/dist/lib/server/index.js.map +1 -1
  105. package/dist/lib/server/operational-platform.d.ts +4 -3
  106. package/dist/lib/server/operational-platform.d.ts.map +1 -1
  107. package/dist/lib/server/operational-platform.js.map +1 -1
  108. package/dist/lib/server/responses.d.ts +28 -27
  109. package/dist/lib/server/responses.d.ts.map +1 -1
  110. package/dist/lib/server/responses.js +96 -35
  111. package/dist/lib/server/responses.js.map +1 -1
  112. package/dist/lib/signing/types.d.ts +6 -0
  113. package/dist/lib/signing/types.d.ts.map +1 -1
  114. package/dist/lib/signing/types.js.map +1 -1
  115. package/dist/lib/signing/verifier.d.ts.map +1 -1
  116. package/dist/lib/signing/verifier.js +33 -4
  117. package/dist/lib/signing/verifier.js.map +1 -1
  118. package/dist/lib/testing/client.d.ts +5 -0
  119. package/dist/lib/testing/client.d.ts.map +1 -1
  120. package/dist/lib/testing/client.js +34 -3
  121. package/dist/lib/testing/client.js.map +1 -1
  122. package/dist/lib/testing/compliance/comply.d.ts +8 -1
  123. package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
  124. package/dist/lib/testing/compliance/comply.js +57 -25
  125. package/dist/lib/testing/compliance/comply.js.map +1 -1
  126. package/dist/lib/testing/compliance/types.d.ts +2 -0
  127. package/dist/lib/testing/compliance/types.d.ts.map +1 -1
  128. package/dist/lib/testing/index.d.ts +1 -1
  129. package/dist/lib/testing/index.d.ts.map +1 -1
  130. package/dist/lib/testing/index.js +4 -1
  131. package/dist/lib/testing/index.js.map +1 -1
  132. package/dist/lib/testing/scenarios/media-buy.d.ts.map +1 -1
  133. package/dist/lib/testing/scenarios/media-buy.js +12 -9
  134. package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
  135. package/dist/lib/testing/storyboard/compliance.d.ts +11 -1
  136. package/dist/lib/testing/storyboard/compliance.d.ts.map +1 -1
  137. package/dist/lib/testing/storyboard/compliance.js +37 -3
  138. package/dist/lib/testing/storyboard/compliance.js.map +1 -1
  139. package/dist/lib/testing/storyboard/context.d.ts.map +1 -1
  140. package/dist/lib/testing/storyboard/context.js +26 -11
  141. package/dist/lib/testing/storyboard/context.js.map +1 -1
  142. package/dist/lib/testing/storyboard/index.d.ts +2 -2
  143. package/dist/lib/testing/storyboard/index.d.ts.map +1 -1
  144. package/dist/lib/testing/storyboard/index.js +6 -2
  145. package/dist/lib/testing/storyboard/index.js.map +1 -1
  146. package/dist/lib/testing/storyboard/probes.d.ts.map +1 -1
  147. package/dist/lib/testing/storyboard/probes.js +3 -0
  148. package/dist/lib/testing/storyboard/probes.js.map +1 -1
  149. package/dist/lib/testing/storyboard/request-builder.d.ts.map +1 -1
  150. package/dist/lib/testing/storyboard/request-builder.js +4 -1
  151. package/dist/lib/testing/storyboard/request-builder.js.map +1 -1
  152. package/dist/lib/testing/storyboard/runner.d.ts +2 -0
  153. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
  154. package/dist/lib/testing/storyboard/runner.js +357 -47
  155. package/dist/lib/testing/storyboard/runner.js.map +1 -1
  156. package/dist/lib/testing/storyboard/types.d.ts +65 -0
  157. package/dist/lib/testing/storyboard/types.d.ts.map +1 -1
  158. package/dist/lib/testing/storyboard/types.js.map +1 -1
  159. package/dist/lib/testing/storyboard/validations.d.ts +4 -3
  160. package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
  161. package/dist/lib/testing/storyboard/validations.js +27 -3
  162. package/dist/lib/testing/storyboard/validations.js.map +1 -1
  163. package/dist/lib/testing/types.d.ts +19 -0
  164. package/dist/lib/testing/types.d.ts.map +1 -1
  165. package/dist/lib/types/activate-signal.d.ts +647 -0
  166. package/dist/lib/types/build-creative.d.ts +2105 -0
  167. package/dist/lib/types/calibrate-content.d.ts +675 -0
  168. package/dist/lib/types/check-governance.d.ts +619 -0
  169. package/dist/lib/types/comply-test-controller.d.ts +8428 -0
  170. package/dist/lib/types/core.generated.d.ts +547 -537
  171. package/dist/lib/types/core.generated.d.ts.map +1 -1
  172. package/dist/lib/types/core.generated.js +1 -1
  173. package/dist/lib/types/create-collection-list.d.ts +693 -0
  174. package/dist/lib/types/create-content-standards.d.ts +830 -0
  175. package/dist/lib/types/create-media-buy.d.ts +3374 -0
  176. package/dist/lib/types/create-property-list.d.ts +836 -0
  177. package/dist/lib/types/delete-collection-list.d.ts +497 -0
  178. package/dist/lib/types/delete-property-list.d.ts +497 -0
  179. package/dist/lib/types/get-account-financials.d.ts +624 -0
  180. package/dist/lib/types/get-adcp-capabilities.d.ts +2863 -0
  181. package/dist/lib/types/get-collection-list.d.ts +763 -0
  182. package/dist/lib/types/get-content-standards.d.ts +919 -0
  183. package/dist/lib/types/get-creative-delivery.d.ts +2219 -0
  184. package/dist/lib/types/get-creative-features.d.ts +1736 -0
  185. package/dist/lib/types/get-media-buy-artifacts.d.ts +864 -0
  186. package/dist/lib/types/get-media-buys.d.ts +1670 -0
  187. package/dist/lib/types/get-plan-audit-logs.d.ts +455 -0
  188. package/dist/lib/types/get-products.d.ts +4935 -0
  189. package/dist/lib/types/get-property-list.d.ts +874 -0
  190. package/dist/lib/types/get-signals.d.ts +986 -0
  191. package/dist/lib/types/index.d.ts +2 -0
  192. package/dist/lib/types/index.d.ts.map +1 -1
  193. package/dist/lib/types/index.js +1 -0
  194. package/dist/lib/types/index.js.map +1 -1
  195. package/dist/lib/types/inline-enums.generated.d.ts +163 -7
  196. package/dist/lib/types/inline-enums.generated.d.ts.map +1 -1
  197. package/dist/lib/types/inline-enums.generated.js +222 -9
  198. package/dist/lib/types/inline-enums.generated.js.map +1 -1
  199. package/dist/lib/types/list-accounts.d.ts +851 -0
  200. package/dist/lib/types/list-content-standards.d.ts +975 -0
  201. package/dist/lib/types/list-creative-formats.d.ts +3132 -0
  202. package/dist/lib/types/list-creatives.d.ts +2390 -0
  203. package/dist/lib/types/list-property-lists.d.ts +855 -0
  204. package/dist/lib/types/log-event.d.ts +373 -0
  205. package/dist/lib/types/per-tool-index.json +391 -0
  206. package/dist/lib/types/preview-creative.d.ts +1981 -0
  207. package/dist/lib/types/provide-performance-feedback.d.ts +218 -0
  208. package/dist/lib/types/report-plan-outcome.d.ts +433 -0
  209. package/dist/lib/types/report-usage.d.ts +579 -0
  210. package/dist/lib/types/schemas.generated.d.ts +146765 -128986
  211. package/dist/lib/types/schemas.generated.d.ts.map +1 -1
  212. package/dist/lib/types/schemas.generated.js +405 -437
  213. package/dist/lib/types/schemas.generated.js.map +1 -1
  214. package/dist/lib/types/server-payload-aliases.d.ts +78 -0
  215. package/dist/lib/types/server-payload-aliases.d.ts.map +1 -0
  216. package/dist/lib/types/server-payload-aliases.js +11 -0
  217. package/dist/lib/types/server-payload-aliases.js.map +1 -0
  218. package/dist/lib/types/server-payload.d.ts +39 -0
  219. package/dist/lib/types/server-payload.d.ts.map +1 -0
  220. package/dist/lib/types/server-payload.js +11 -0
  221. package/dist/lib/types/server-payload.js.map +1 -0
  222. package/dist/lib/types/si-get-offering.d.ts +259 -0
  223. package/dist/lib/types/si-initiate-session.d.ts +372 -0
  224. package/dist/lib/types/si-send-message.d.ts +300 -0
  225. package/dist/lib/types/si-terminate-session.d.ts +213 -0
  226. package/dist/lib/types/sync-accounts.d.ts +856 -0
  227. package/dist/lib/types/sync-audiences.d.ts +707 -0
  228. package/dist/lib/types/sync-catalogs.d.ts +766 -0
  229. package/dist/lib/types/sync-creatives.d.ts +2134 -0
  230. package/dist/lib/types/sync-event-sources.d.ts +665 -0
  231. package/dist/lib/types/sync-governance.d.ts +558 -0
  232. package/dist/lib/types/sync-plans.d.ts +979 -0
  233. package/dist/lib/types/tools.generated.d.ts +236 -188
  234. package/dist/lib/types/tools.generated.d.ts.map +1 -1
  235. package/dist/lib/types/update-collection-list.d.ts +697 -0
  236. package/dist/lib/types/update-content-standards.d.ts +847 -0
  237. package/dist/lib/types/update-media-buy.d.ts +3047 -0
  238. package/dist/lib/types/update-property-list.d.ts +840 -0
  239. package/dist/lib/types/validate-content-delivery.d.ts +722 -0
  240. package/dist/lib/types/validate-input.d.ts +1683 -0
  241. package/dist/lib/utils/adcp-version-config.d.ts +2 -0
  242. package/dist/lib/utils/adcp-version-config.d.ts.map +1 -1
  243. package/dist/lib/utils/adcp-version-config.js +42 -0
  244. package/dist/lib/utils/adcp-version-config.js.map +1 -1
  245. package/dist/lib/utils/envelope-status-compat.d.ts +24 -5
  246. package/dist/lib/utils/envelope-status-compat.d.ts.map +1 -1
  247. package/dist/lib/utils/envelope-status-compat.js +71 -5
  248. package/dist/lib/utils/envelope-status-compat.js.map +1 -1
  249. package/dist/lib/utils/index.d.ts +1 -0
  250. package/dist/lib/utils/index.d.ts.map +1 -1
  251. package/dist/lib/utils/index.js +5 -2
  252. package/dist/lib/utils/index.js.map +1 -1
  253. package/dist/lib/utils/media-buy-status.d.ts +22 -0
  254. package/dist/lib/utils/media-buy-status.d.ts.map +1 -0
  255. package/dist/lib/utils/media-buy-status.js +55 -0
  256. package/dist/lib/utils/media-buy-status.js.map +1 -0
  257. package/dist/lib/utils/response-schemas.d.ts.map +1 -1
  258. package/dist/lib/utils/response-schemas.js +3 -0
  259. package/dist/lib/utils/response-schemas.js.map +1 -1
  260. package/dist/lib/utils/response-unwrapper.d.ts.map +1 -1
  261. package/dist/lib/utils/response-unwrapper.js +48 -6
  262. package/dist/lib/utils/response-unwrapper.js.map +1 -1
  263. package/dist/lib/utils/tool-request-schemas.d.ts +8574 -1
  264. package/dist/lib/utils/tool-request-schemas.d.ts.map +1 -1
  265. package/dist/lib/utils/tool-request-schemas.js +4 -5
  266. package/dist/lib/utils/tool-request-schemas.js.map +1 -1
  267. package/dist/lib/utils/union-errors.d.ts +13 -6
  268. package/dist/lib/utils/union-errors.d.ts.map +1 -1
  269. package/dist/lib/utils/union-errors.js +34 -7
  270. package/dist/lib/utils/union-errors.js.map +1 -1
  271. package/dist/lib/validation/schema-loader.d.ts.map +1 -1
  272. package/dist/lib/validation/schema-loader.js +68 -15
  273. package/dist/lib/validation/schema-loader.js.map +1 -1
  274. package/dist/lib/validation/schema-validator.js +1 -1
  275. package/dist/lib/validation/schema-validator.js.map +1 -1
  276. package/dist/lib/version.d.ts +27 -3
  277. package/dist/lib/version.d.ts.map +1 -1
  278. package/dist/lib/version.js +42 -3
  279. package/dist/lib/version.js.map +1 -1
  280. package/examples/error-compliant-server.ts +1 -1
  281. package/examples/hello_seller_adapter_guaranteed.ts +14 -10
  282. package/examples/hello_seller_adapter_multi_tenant.ts +27 -23
  283. package/examples/hello_seller_adapter_non_guaranteed.ts +16 -14
  284. package/examples/hello_seller_adapter_proposal_mode.ts +22 -6
  285. package/examples/hello_signals_adapter_marketplace.ts +34 -3
  286. package/package.json +17 -2
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Named server/adopter payload aliases for generated AdCP response types.
3
+ *
4
+ * Generated `*Response` and `*Success` types describe wire responses. Server
5
+ * handlers return the domain payload before the SDK stamps protocol envelope
6
+ * fields such as `status`, `task_id`, and `adcp_version`. These aliases make
7
+ * that distinction discoverable from the public barrels.
8
+ */
9
+ import type { ActivateSignalSuccess, BuildCreativeMultiSuccess, BuildCreativeSuccess, CalibrateContentResponse, CheckGovernanceResponse, CreateCollectionListResponse, CreateContentStandardsResponse, CreateMediaBuySuccess, CreatePropertyListResponse, DeleteCollectionListResponse, DeletePropertyListResponse, GetAccountFinancialsResponse, GetAccountFinancialsSuccess, GetAdCPCapabilitiesResponse, GetCollectionListResponse, GetContentStandardsResponse, GetCreativeDeliveryResponse, GetCreativeFeaturesResponse, GetMediaBuyArtifactsResponse, GetMediaBuyDeliveryResponse, GetMediaBuysResponse, GetPlanAuditLogsResponse, GetProductsResponse, GetPropertyListResponse, GetSignalsResponse, ListAccountsResponse, ListCollectionListsResponse, ListContentStandardsResponse, ListCreativeFormatsResponse, ListCreativesResponse, ListPropertyListsResponse, LogEventSuccess, PreviewCreativeResponse, ProvidePerformanceFeedbackSuccess, ReportPlanOutcomeResponse, ReportUsageResponse, SIGetOfferingResponse, SIInitiateSessionResponse, SISendMessageResponse, SITerminateSessionResponse, SyncAccountsResponse, SyncAccountsSuccess, SyncAudiencesSuccess, SyncCatalogsSuccess, SyncCreativesSuccess, SyncEventSourcesSuccess, SyncGovernanceResponse, SyncGovernanceSuccess, SyncPlansResponse, UpdateCollectionListResponse, UpdateContentStandardsResponse, UpdateMediaBuySuccess, UpdatePropertyListResponse, ValidateContentDeliveryResponse } from './tools.generated';
10
+ import type { AcquireRightsAcquired, AcquireRightsPendingApproval, AcquireRightsRejected, CreativeApproved, CreativePendingReview, CreativeRejected, GetBrandIdentitySuccess, GetRightsResponse, GetRightsSuccess, UpdateRightsSuccess } from './core.generated';
11
+ import type { ServerPayload } from './server-payload';
12
+ export type GetAdCPCapabilitiesPayload = ServerPayload<GetAdCPCapabilitiesResponse>;
13
+ export type ListAccountsPayload = ServerPayload<ListAccountsResponse>;
14
+ export type SyncAccountsPayload = ServerPayload<SyncAccountsResponse>;
15
+ export type SyncAccountsSuccessPayload = ServerPayload<SyncAccountsSuccess>;
16
+ export type SyncGovernancePayload = ServerPayload<SyncGovernanceResponse>;
17
+ export type SyncGovernanceSuccessPayload = ServerPayload<SyncGovernanceSuccess>;
18
+ export type ReportUsagePayload = ServerPayload<ReportUsageResponse>;
19
+ export type GetAccountFinancialsPayload = ServerPayload<GetAccountFinancialsResponse>;
20
+ export type GetAccountFinancialsSuccessPayload = ServerPayload<GetAccountFinancialsSuccess>;
21
+ export type GetProductsPayload = ServerPayload<GetProductsResponse>;
22
+ export type CreateMediaBuyPayload = ServerPayload<CreateMediaBuySuccess>;
23
+ export type UpdateMediaBuyPayload = ServerPayload<UpdateMediaBuySuccess>;
24
+ export type GetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;
25
+ export type GetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;
26
+ export type ProvidePerformanceFeedbackPayload = ServerPayload<ProvidePerformanceFeedbackSuccess>;
27
+ export type ListCreativeFormatsPayload = ServerPayload<ListCreativeFormatsResponse>;
28
+ export type ListCreativesPayload = ServerPayload<ListCreativesResponse>;
29
+ export type SyncCreativesPayload = ServerPayload<SyncCreativesSuccess>;
30
+ export type SyncCatalogsPayload = ServerPayload<SyncCatalogsSuccess>;
31
+ export type SyncEventSourcesPayload = ServerPayload<SyncEventSourcesSuccess>;
32
+ export type LogEventPayload = ServerPayload<LogEventSuccess>;
33
+ export type GetSignalsPayload = ServerPayload<GetSignalsResponse>;
34
+ export type ActivateSignalPayload = ServerPayload<ActivateSignalSuccess>;
35
+ export type SyncAudiencesPayload = ServerPayload<SyncAudiencesSuccess>;
36
+ export type BuildCreativePayload = ServerPayload<BuildCreativeSuccess>;
37
+ export type BuildCreativeMultiPayload = ServerPayload<BuildCreativeMultiSuccess>;
38
+ export type PreviewCreativePayload = ServerPayload<PreviewCreativeResponse>;
39
+ export type GetCreativeDeliveryPayload = ServerPayload<GetCreativeDeliveryResponse>;
40
+ export type CreatePropertyListPayload = ServerPayload<CreatePropertyListResponse>;
41
+ export type UpdatePropertyListPayload = ServerPayload<UpdatePropertyListResponse>;
42
+ export type GetPropertyListPayload = ServerPayload<GetPropertyListResponse>;
43
+ export type ListPropertyListsPayload = ServerPayload<ListPropertyListsResponse>;
44
+ export type DeletePropertyListPayload = ServerPayload<DeletePropertyListResponse>;
45
+ export type CreateCollectionListPayload = ServerPayload<CreateCollectionListResponse>;
46
+ export type UpdateCollectionListPayload = ServerPayload<UpdateCollectionListResponse>;
47
+ export type GetCollectionListPayload = ServerPayload<GetCollectionListResponse>;
48
+ export type ListCollectionListsPayload = ServerPayload<ListCollectionListsResponse>;
49
+ export type DeleteCollectionListPayload = ServerPayload<DeleteCollectionListResponse>;
50
+ export type ListContentStandardsPayload = ServerPayload<ListContentStandardsResponse>;
51
+ export type GetContentStandardsPayload = ServerPayload<GetContentStandardsResponse>;
52
+ export type CreateContentStandardsPayload = ServerPayload<CreateContentStandardsResponse>;
53
+ export type UpdateContentStandardsPayload = ServerPayload<UpdateContentStandardsResponse>;
54
+ export type CalibrateContentPayload = ServerPayload<CalibrateContentResponse>;
55
+ export type ValidateContentDeliveryPayload = ServerPayload<ValidateContentDeliveryResponse>;
56
+ export type GetMediaBuyArtifactsPayload = ServerPayload<GetMediaBuyArtifactsResponse>;
57
+ export type GetCreativeFeaturesPayload = ServerPayload<GetCreativeFeaturesResponse>;
58
+ export type SyncPlansPayload = ServerPayload<SyncPlansResponse>;
59
+ export type CheckGovernancePayload = ServerPayload<CheckGovernanceResponse>;
60
+ export type ReportPlanOutcomePayload = ServerPayload<ReportPlanOutcomeResponse>;
61
+ export type GetPlanAuditLogsPayload = ServerPayload<GetPlanAuditLogsResponse>;
62
+ export type SIGetOfferingPayload = ServerPayload<SIGetOfferingResponse>;
63
+ export type SIInitiateSessionPayload = ServerPayload<SIInitiateSessionResponse>;
64
+ export type SISendMessagePayload = ServerPayload<SISendMessageResponse>;
65
+ export type SITerminateSessionPayload = ServerPayload<SITerminateSessionResponse>;
66
+ export type GetBrandIdentityPayload = ServerPayload<GetBrandIdentitySuccess>;
67
+ export type GetRightsPayload = ServerPayload<GetRightsSuccess>;
68
+ export type GetRightsResponsePayload = ServerPayload<GetRightsResponse>;
69
+ export type AcquireRightsAcquiredPayload = ServerPayload<AcquireRightsAcquired>;
70
+ export type AcquireRightsPendingApprovalPayload = ServerPayload<AcquireRightsPendingApproval>;
71
+ export type AcquireRightsRejectedPayload = ServerPayload<AcquireRightsRejected>;
72
+ export type AcquireRightsPayload = AcquireRightsAcquiredPayload | AcquireRightsPendingApprovalPayload | AcquireRightsRejectedPayload;
73
+ export type UpdateRightsPayload = ServerPayload<UpdateRightsSuccess>;
74
+ export type CreativeApprovedPayload = ServerPayload<CreativeApproved>;
75
+ export type CreativeRejectedPayload = ServerPayload<CreativeRejected>;
76
+ export type CreativePendingReviewPayload = ServerPayload<CreativePendingReview>;
77
+ export type CreativeApprovalPayload = CreativeApprovedPayload | CreativeRejectedPayload | CreativePendingReviewPayload;
78
+ //# sourceMappingURL=server-payload-aliases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-payload-aliases.d.ts","sourceRoot":"","sources":["../../../src/lib/types/server-payload-aliases.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,8BAA8B,EAC9B,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,qBAAqB,EACrB,yBAAyB,EACzB,eAAe,EACf,uBAAuB,EACvB,iCAAiC,EACjC,yBAAyB,EACzB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,4BAA4B,EAC5B,8BAA8B,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,yBAAyB,CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AACxE,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,0BAA0B,CAAC,CAAC;AAElF,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,wBAAwB,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC;AACxE,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,mCAAmC,GAAG,aAAa,CAAC,4BAA4B,CAAC,CAAC;AAC9F,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAC5B,4BAA4B,GAC5B,mCAAmC,GACnC,4BAA4B,CAAC;AACjC,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,aAAa,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,4BAA4B,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,GAAG,uBAAuB,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * Named server/adopter payload aliases for generated AdCP response types.
4
+ *
5
+ * Generated `*Response` and `*Success` types describe wire responses. Server
6
+ * handlers return the domain payload before the SDK stamps protocol envelope
7
+ * fields such as `status`, `task_id`, and `adcp_version`. These aliases make
8
+ * that distinction discoverable from the public barrels.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ //# sourceMappingURL=server-payload-aliases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-payload-aliases.js","sourceRoot":"","sources":["../../../src/lib/types/server-payload-aliases.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Server-side handler payload helpers.
3
+ *
4
+ * Generated AdCP response types describe the transport/wire shape. In v3.1
5
+ * that includes protocol envelope fields such as `status: TaskStatus`,
6
+ * `task_id`, and `adcp_version`. Server handlers should return only the
7
+ * domain payload; the SDK stamps the protocol envelope at dispatch time.
8
+ */
9
+ import type { TaskStatus } from './tools.generated';
10
+ type ProtocolTaskStatus = TaskStatus;
11
+ type ProtocolStatusKey<T> = 'status' extends keyof T ? NonNullable<T['status']> extends ProtocolTaskStatus ? 'status' : never : never;
12
+ type ProtocolEnvelopeKeys<T> = ProtocolStatusKey<T> | 'context_id' | 'task_id' | 'message' | 'timestamp' | 'replayed' | 'adcp_error' | 'push_notification_config' | 'payload' | 'adcp_version' | 'adcp_major_version';
13
+ type JsonPrimitive = string | number | boolean | null | undefined;
14
+ type StripAuthenticationCredentials<T> = T extends {
15
+ authentication?: infer TAuth;
16
+ } ? Omit<T, 'authentication'> & {
17
+ authentication?: TAuth extends object ? Omit<StripWriteOnlyResponseFields<TAuth>, 'credentials'> : TAuth;
18
+ } : T;
19
+ type StripBusinessEntityBank<T> = T extends {
20
+ bank?: unknown;
21
+ } ? Omit<T, 'bank'> : T;
22
+ type StripWriteOnlyResponseFields<T> = T extends JsonPrimitive ? T : T extends (infer TItem)[] ? StripWriteOnlyResponseFields<TItem>[] : T extends readonly (infer TItem)[] ? readonly StripWriteOnlyResponseFields<TItem>[] : T extends object ? StripAuthenticationCredentials<StripBusinessEntityBank<{
23
+ [K in keyof T]: StripWriteOnlyResponseFields<T[K]>;
24
+ }>> : T;
25
+ /**
26
+ * Domain payload shape a server handler returns for a generated wire response.
27
+ *
28
+ * Use this when a generated `*Response` type includes protocol-envelope fields
29
+ * the SDK owns. Domain-level `status` fields are preserved unless their entire
30
+ * type is the protocol `TaskStatus` vocabulary.
31
+ *
32
+ * Write-only legacy webhook credentials and billing bank coordinates are
33
+ * also removed from nested objects. Runtime response projection already
34
+ * strips these; this keeps public server payload annotations aligned with
35
+ * what can safely appear on response wires and in adopter logs.
36
+ */
37
+ export type ServerPayload<T> = T extends unknown ? StripWriteOnlyResponseFields<Omit<T, ProtocolEnvelopeKeys<T>>> : never;
38
+ export {};
39
+ //# sourceMappingURL=server-payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-payload.d.ts","sourceRoot":"","sources":["../../../src/lib/types/server-payload.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,KAAK,kBAAkB,GAAG,UAAU,CAAC;AAErC,KAAK,iBAAiB,CAAC,CAAC,IAAI,QAAQ,SAAS,MAAM,CAAC,GAChD,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,kBAAkB,GACjD,QAAQ,GACR,KAAK,GACP,KAAK,CAAC;AAEV,KAAK,oBAAoB,CAAC,CAAC,IACvB,iBAAiB,CAAC,CAAC,CAAC,GACpB,YAAY,GACZ,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,YAAY,GACZ,0BAA0B,GAC1B,SAAS,GACT,cAAc,GACd,oBAAoB,CAAC;AAEzB,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AAElE,KAAK,8BAA8B,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,cAAc,CAAC,EAAE,MAAM,KAAK,CAAA;CAAE,GAC/E,IAAI,CAAC,CAAC,EAAE,gBAAgB,CAAC,GAAG;IAC1B,cAAc,CAAC,EAAE,KAAK,SAAS,MAAM,GAAG,IAAI,CAAC,4BAA4B,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC;CAC1G,GACD,CAAC,CAAC;AAEN,KAAK,uBAAuB,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;AAErF,KAAK,4BAA4B,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,GAC1D,CAAC,GACD,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,GACvB,4BAA4B,CAAC,KAAK,CAAC,EAAE,GACrC,CAAC,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,GAChC,SAAS,4BAA4B,CAAC,KAAK,CAAC,EAAE,GAC9C,CAAC,SAAS,MAAM,GACd,8BAA8B,CAC5B,uBAAuB,CAAC;KACrB,CAAC,IAAI,MAAM,CAAC,GAAG,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnD,CAAC,CACH,GACD,CAAC,CAAC;AAEZ;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAC5C,4BAA4B,CAAC,IAAI,CAAC,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,GAC9D,KAAK,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * Server-side handler payload helpers.
4
+ *
5
+ * Generated AdCP response types describe the transport/wire shape. In v3.1
6
+ * that includes protocol envelope fields such as `status: TaskStatus`,
7
+ * `task_id`, and `adcp_version`. Server handlers should return only the
8
+ * domain payload; the SDK stamps the protocol envelope at dispatch time.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ //# sourceMappingURL=server-payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-payload.js","sourceRoot":"","sources":["../../../src/lib/types/server-payload.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG"}
@@ -0,0 +1,259 @@
1
+ // AUTO-GENERATED — DO NOT EDIT.
2
+ // Per-tool .d.ts slice for `si_get_offering`. Built from the published
3
+ // `tools.generated.d.ts` + `core.generated.d.ts` + `enums.generated.d.ts`
4
+ // by `scripts/generate-per-tool-types.ts`.
5
+ //
6
+ // Self-contained: imports nothing from the broader SDK. Adopters who
7
+ // import only this slice pay a fraction of the tsc cost of pulling in
8
+ // `@adcp/sdk` root — useful when strict + skipLibCheck:false adopters
9
+ // hit memory pressure on the full surface.
10
+
11
+ /**
12
+ * Get offering details and availability before session handoff. Returns offering information, availability status, and optionally matching products based on context.
13
+ */
14
+ export interface SIGetOfferingRequest {
15
+ /**
16
+ * Release-precision AdCP version (VERSION.RELEASE, e.g. "3.0", "3.1", "3.1-beta"). On a request: the buyer's release pin — the seller validates against its supported_versions and returns VERSION_UNSUPPORTED on cross-major mismatch, or downshifts to the highest supported release within the same major. On a response: the release the seller actually served — clients SHOULD validate the response against that release's schema, not against their pin. Patches are not negotiated; surface them as build_version on capabilities for operational visibility. When omitted, falls back to adcp_major_version (deprecated) or server default. Buyers SHOULD emit both adcp_version and adcp_major_version through 3.x to remain compatible with sellers that only read the legacy field. NORMALIZATION: SDKs that read full-semver values from bundle metadata (e.g. ComplianceIndex.published_version = "3.1.0-beta.1") MUST normalize to release-precision ("3.1-beta.1") before emitting on the wire — meta-field values are NOT valid wire values.
17
+ */
18
+ adcp_version?: string;
19
+ /**
20
+ * DEPRECATED in favor of adcp_version (release-precision string). Servers MUST continue to honor this field through 3.x. Removed in 4.0. Original semantics: the AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
21
+ */
22
+ adcp_major_version?: number;
23
+ /**
24
+ * Offering identifier from the catalog to get details for
25
+ */
26
+ offering_id: string;
27
+ /**
28
+ * Optional natural language description of user intent for personalized results (e.g., 'mens size 14 near Cincinnati'). Must be anonymous - no PII.
29
+ */
30
+ intent?: string;
31
+ context?: ContextObject;
32
+ /**
33
+ * Whether to include matching products in the response
34
+ */
35
+ include_products?: boolean;
36
+ /**
37
+ * Maximum number of matching products to return
38
+ * @minimum 1
39
+ * @maximum 50
40
+ */
41
+ product_limit?: number;
42
+ ext?: ExtensionObject;
43
+ }
44
+
45
+ /**
46
+ * Offering details, availability status, and optionally matching products. Use the offering_token in si_initiate_session for correlation.
47
+ */
48
+ export interface SIGetOfferingResponse {
49
+ /**
50
+ * Session/conversation identifier for tracking related operations across multiple task invocations. Managed by the protocol layer to maintain conversational context. Distinct from `context` (per-request opaque echo, see below).
51
+ */
52
+ context_id?: string;
53
+ context?: ContextObject;
54
+ /**
55
+ * Unique identifier for tracking asynchronous operations. Present when a task requires extended processing time. Used to query task status and retrieve results when complete.
56
+ */
57
+ task_id?: string;
58
+ status: TaskStatus;
59
+ /**
60
+ * Human-readable summary of the task result. Provides natural language explanation of what happened, suitable for display to end users or for AI agent comprehension. Generated by the protocol layer based on the task response.
61
+ */
62
+ message?: string;
63
+ /**
64
+ * ISO 8601 timestamp when the response was generated. Useful for debugging, logging, cache validation, and tracking async operation progress.
65
+ */
66
+ timestamp?: string;
67
+ /**
68
+ * Set to true when this response was returned from the idempotency cache rather than from a fresh execution. Set to false (or omitted) when the request was executed fresh. Buyers use this to distinguish cached replays from new executions — matters for billing reconciliation, audit logs, state-machine routing (cached state-tracking fields are historical snapshots, not current state — re-read via the resource's read endpoint), and any downstream system that assumes exactly-once event semantics. From 3.1 onward, `replayed` MAY appear on responses to any request that resolved via the idempotency cache, including read tools — universal `idempotency_key` (see security.mdx §Idempotency) means the cache holds read responses too.
69
+ */
70
+ replayed?: boolean;
71
+ adcp_error?: Error;
72
+ push_notification_config?: PushNotificationConfig;
73
+ /**
74
+ * Governance context token issued by the account's governance agent during check_governance. Buyers attach it to governed purchase requests (media buys, rights acquisitions, signal activations, creative services); sellers persist it and include it on all subsequent governance calls for that action's lifecycle. An account binds to one governance agent (see sync_governance); governance is phased across `purchase` / `modification` / `delivery`, not partitioned across specialist agents, so the envelope carries a single token for the full lifecycle.
75
+ *
76
+ * Value format: governance agents MUST emit a compact JWS per the AdCP JWS profile (see Security — Signed Governance Context). Sellers MAY verify; sellers that do not verify MUST persist and forward the token unchanged. In 3.1 all sellers MUST verify. Non-JWS values from pre-3.0 governance agents are deprecated.
77
+ *
78
+ * This is the primary correlation key for audit and reporting across the governance lifecycle.
79
+ */
80
+ governance_context?: string;
81
+ /**
82
+ * Conceptual grouping for the task-specific response data defined by individual task response schemas (e.g., get-products-response.json, create-media-buy-response.json). `payload` is a documentary construct — it is NOT a required wire field, and its on-the-wire shape depends on transport (see Transport serialization below). Task response schemas declare body fields without wrapping them in a `payload` object; the wire representation places those body fields per transport convention. On MCP the body fields appear as siblings of envelope fields at the root of the tool response; on A2A they appear inside `task.artifacts[0].parts[].DataPart`; on REST they appear at the root of the JSON body.
83
+ */
84
+ payload?: {};
85
+ /**
86
+ * Release-precision AdCP version (VERSION.RELEASE, e.g. "3.0", "3.1", "3.1-beta"). On a request: the buyer's release pin — the seller validates against its supported_versions and returns VERSION_UNSUPPORTED on cross-major mismatch, or downshifts to the highest supported release within the same major. On a response: the release the seller actually served — clients SHOULD validate the response against that release's schema, not against their pin. Patches are not negotiated; surface them as build_version on capabilities for operational visibility. When omitted, falls back to adcp_major_version (deprecated) or server default. Buyers SHOULD emit both adcp_version and adcp_major_version through 3.x to remain compatible with sellers that only read the legacy field. NORMALIZATION: SDKs that read full-semver values from bundle metadata (e.g. ComplianceIndex.published_version = "3.1.0-beta.1") MUST normalize to release-precision ("3.1-beta.1") before emitting on the wire — meta-field values are NOT valid wire values.
87
+ */
88
+ adcp_version?: string;
89
+ /**
90
+ * DEPRECATED in favor of adcp_version (release-precision string). Servers MUST continue to honor this field through 3.x. Removed in 4.0. Original semantics: the AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.
91
+ */
92
+ adcp_major_version?: number;
93
+ /**
94
+ * Whether the offering is currently available
95
+ */
96
+ available: boolean;
97
+ /**
98
+ * Token to pass to si_initiate_session for session continuity. Brand stores the full query context server-side (products shown, order, context) so they can resolve references like 'the second one' when the session starts.
99
+ */
100
+ offering_token?: string;
101
+ /**
102
+ * How long this offering information is valid (seconds). Host should re-fetch after TTL expires.
103
+ * @minimum 0
104
+ */
105
+ ttl_seconds?: number;
106
+ /**
107
+ * When this offering information was retrieved
108
+ * @format date-time
109
+ */
110
+ checked_at?: string;
111
+ /**
112
+ * Offering details
113
+ */
114
+ offering?: {
115
+ /**
116
+ * Offering identifier
117
+ */
118
+ offering_id?: string;
119
+ /**
120
+ * Offering title
121
+ */
122
+ title?: string;
123
+ /**
124
+ * Brief summary of the offering
125
+ */
126
+ summary?: string;
127
+ /**
128
+ * Short promotional tagline
129
+ */
130
+ tagline?: string;
131
+ /**
132
+ * When this offering expires
133
+ * @format date-time
134
+ */
135
+ expires_at?: string;
136
+ /**
137
+ * Price indication (e.g., 'from $199', '50% off')
138
+ */
139
+ price_hint?: string;
140
+ /**
141
+ * Hero image for the offering
142
+ */
143
+ image_url?: string;
144
+ /**
145
+ * Landing page URL
146
+ */
147
+ landing_url?: string;
148
+ };
149
+ /**
150
+ * Products matching the request context. Only included if include_products was true.
151
+ */
152
+ matching_products?: {
153
+ /**
154
+ * Product identifier
155
+ */
156
+ product_id: string;
157
+ /**
158
+ * Product name
159
+ */
160
+ name: string;
161
+ /**
162
+ * Display price (e.g., '$129', '$89.99')
163
+ */
164
+ price?: string;
165
+ /**
166
+ * Original price if on sale
167
+ */
168
+ original_price?: string;
169
+ /**
170
+ * Product image
171
+ */
172
+ image_url?: string;
173
+ /**
174
+ * Brief availability info (e.g., 'In stock', 'Size 14 available', '3 left')
175
+ */
176
+ availability_summary?: string;
177
+ /**
178
+ * Product detail page URL
179
+ */
180
+ url?: string;
181
+ }[];
182
+ /**
183
+ * Total number of products matching the context (may be more than returned in matching_products)
184
+ * @minimum 0
185
+ */
186
+ total_matching?: number;
187
+ /**
188
+ * If not available, why (e.g., 'expired', 'sold_out', 'region_restricted')
189
+ */
190
+ unavailable_reason?: string;
191
+ /**
192
+ * Alternative offerings to consider if this one is unavailable
193
+ */
194
+ alternative_offering_ids?: string[];
195
+ /**
196
+ * Errors during offering lookup
197
+ */
198
+ errors?: Error[];
199
+ ext?: ExtensionObject;
200
+ }
201
+
202
+ /**
203
+ * Legacy authentication schemes for the webhook auth block. Bearer: token sent in Authorization header. HMAC-SHA256: legacy shared-secret signing. Both are deprecated; new integrations SHOULD omit the authentication block and use the RFC 9421 webhook signing profile (applicable on schemas where authentication is optional). Removed in AdCP 4.0.
204
+ */
205
+ export type AuthenticationScheme = 'Bearer' | 'HMAC-SHA256';
206
+
207
+ /**
208
+ * Opaque correlation data that is echoed unchanged in responses. Used for internal tracking, UI session IDs, trace IDs, and other caller-specific identifiers that don't affect protocol behavior. Context data is never parsed by AdCP agents - it's simply preserved and returned.
209
+ */
210
+ export interface ContextObject {
211
+ }
212
+
213
+ /**
214
+ * Extension object for platform-specific, vendor-namespaced parameters. Extensions are always optional and must be namespaced under a vendor/platform key (e.g., ext.gam, ext.roku). Used for custom capabilities, partner-specific configuration, and features being proposed for standardization.
215
+ */
216
+ export interface ExtensionObject {
217
+ }
218
+
219
+ /**
220
+ * Push notification configuration for async task updates (A2A and REST protocols). Echoed from the request to confirm webhook settings. Specifies URL, authentication scheme (Bearer or HMAC-SHA256), and credentials. MCP uses progress notifications instead of webhooks.
221
+ */
222
+ export interface PushNotificationConfig {
223
+ /**
224
+ * Webhook endpoint URL for task status notifications. The wire contract is unconstrained beyond `format: "uri"` — in particular, publishers SHOULD NOT enforce a destination-port allowlist by default, since buyers legitimately host receivers on non-standard TLS ports (`:9443`, `:4443`, path-routed multi-tenant gateways). The SSRF guard the protocol relies on is the IP-range check + DNS-rebinding-resistant connect pin defined in [Webhook URL validation (SSRF)](/docs/building/by-layer/L1/security#webhook-url-validation-ssrf), not port filtering. Operators who want a hardened destination-port allowlist as defense-in-depth (e.g., locked-down enterprise egress) opt in explicitly — see [Destination port: permissive by default](/docs/building/by-layer/L1/security#destination-port-permissive-by-default).
225
+ */
226
+ url: string;
227
+ /**
228
+ * Buyer-supplied correlation identifier for the operation that will produce webhooks against this registration. The seller MUST echo this value verbatim into every webhook payload's `operation_id` field (see [`mcp-webhook-payload.json`](/schemas/core/mcp-webhook-payload.json) and [Webhooks — Operation IDs](/docs/building/by-layer/L3/webhooks#operation-ids-and-url-templates)). Buyers SHOULD generate a unique value per task invocation (UUID recommended). This field is the canonical registration channel for `operation_id`; buyers MAY additionally embed the same value in the URL path or query as a routing aid for their own HTTP server, but the URL is opaque to the seller and the wire-level source of truth is this field. Sellers MUST NOT parse the URL to recover `operation_id`. Sellers that receive a webhook registration without `operation_id` MAY reject the task with `INVALID_REQUEST`.
229
+ * @minLength 1
230
+ * @maxLength 255
231
+ * @pattern ^[A-Za-z0-9_.:-]{1,255}$
232
+ */
233
+ operation_id?: string;
234
+ /**
235
+ * Optional client-provided token for webhook validation. The seller MUST echo this value verbatim in every webhook payload's `token` field (see [`mcp-webhook-payload.json`](/schemas/core/mcp-webhook-payload.json) for the receiver-side validation obligation). Length bounds give receivers a defensive range check on the echoed value; senders SHOULD generate tokens with at least 128 bits of entropy (≥22 base64url characters). This is a complementary authenticity mechanism that can layer on top of the RFC 9421 webhook signature — unlike the `authentication` block below, it is not on the 4.0 removal track. Receivers that registered both a signing key (RFC 9421) and a `token` MUST NOT treat a valid token echo as authorization to skip signature verification; both checks remain independent obligations.
236
+ * @minLength 16
237
+ * @maxLength 4096
238
+ */
239
+ token?: string;
240
+ /**
241
+ * Legacy authentication configuration (A2A-compatible). Opts the seller into Bearer or HMAC-SHA256 signing instead of the default RFC 9421 webhook profile. Deprecated; removed in AdCP 4.0. **Precedence is a switch, not a fallback:** presence of this block selects the legacy scheme; absence selects 9421. A seller MUST NOT sign the same webhook both ways, and a buyer MUST NOT attempt 'try 9421 first, fall back to HMAC' verification — signature mode is determined solely by whether this block was present at registration time. The seller's baseline 9421 webhook-signing key published at its brand.json `agents[]` `jwks_uri` does not override this selector; it is always discoverable but only used when `authentication` is omitted. See docs/building/implementation/security.mdx#webhook-callbacks for the full precedence and downgrade-resistance rules (including the `webhook_mode_mismatch` rejection a buyer MUST apply when a received webhook's signing mode does not match the registered mode).
242
+ */
243
+ authentication?: {
244
+ /**
245
+ * Array of authentication schemes. Supported: ['Bearer'] for simple token auth, ['HMAC-SHA256'] for legacy shared-secret signing. Both are deprecated; new integrations SHOULD omit `authentication` and use the RFC 9421 webhook profile.
246
+ */
247
+ schemes: AuthenticationScheme[];
248
+ /**
249
+ * Credentials for the legacy scheme. For Bearer: token sent in Authorization header. For HMAC-SHA256: shared secret used to generate signature. Minimum 32 characters. Exchanged out-of-band during onboarding.
250
+ * @minLength 32
251
+ */
252
+ credentials: string;
253
+ };
254
+ }
255
+
256
+ /**
257
+ * Current task execution state. Indicates whether the task is completed, in progress (working), submitted for async processing, failed, or requires user input. REQUIRED on every task response envelope. Synchronous tasks (including read-only metadata calls like `get_adcp_capabilities`) MUST emit `status: "completed"`; async tasks emit `submitted`, `working`, `input-required`, etc. per their lifecycle. Agents MUST NOT emit the legacy task_status or response_status fields alongside this field — the status field is the single authoritative task state.
258
+ */
259
+ export type TaskStatus = 'submitted' | 'working' | 'input-required' | 'completed' | 'canceled' | 'failed' | 'rejected' | 'auth-required' | 'unknown';