@adcp/sdk 14.0.0-beta.10 → 14.0.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 (134) hide show
  1. package/dist/lib/core/AgentClient.d.ts.map +1 -1
  2. package/dist/lib/core/SingleAgentClient.d.mts +2 -1
  3. package/dist/lib/core/SingleAgentClient.d.ts +2 -1
  4. package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
  5. package/dist/lib/core/SingleAgentClient.js +113 -64
  6. package/dist/lib/core/SingleAgentClient.js.map +1 -1
  7. package/dist/lib/core/SingleAgentClient.mjs +113 -64
  8. package/dist/lib/core/SingleAgentClient.mjs.map +1 -1
  9. package/dist/lib/index.d.mts +1 -1
  10. package/dist/lib/index.d.ts +1 -1
  11. package/dist/lib/index.d.ts.map +1 -1
  12. package/dist/lib/index.js.map +1 -1
  13. package/dist/lib/index.mjs.map +1 -1
  14. package/dist/lib/protocols/a2a.d.mts +10 -3
  15. package/dist/lib/protocols/a2a.d.ts +10 -3
  16. package/dist/lib/protocols/a2a.d.ts.map +1 -1
  17. package/dist/lib/protocols/a2a.js +162 -34
  18. package/dist/lib/protocols/a2a.js.map +1 -1
  19. package/dist/lib/protocols/a2a.mjs +166 -34
  20. package/dist/lib/protocols/a2a.mjs.map +1 -1
  21. package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
  22. package/dist/lib/server/a2a-adapter.d.mts +59 -33
  23. package/dist/lib/server/a2a-adapter.d.ts +59 -33
  24. package/dist/lib/server/a2a-adapter.d.ts.map +1 -1
  25. package/dist/lib/server/a2a-adapter.js +278 -67
  26. package/dist/lib/server/a2a-adapter.js.map +1 -1
  27. package/dist/lib/server/a2a-adapter.mjs +280 -68
  28. package/dist/lib/server/a2a-adapter.mjs.map +1 -1
  29. package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
  30. package/dist/lib/server/create-adcp-server.js +35 -108
  31. package/dist/lib/server/create-adcp-server.js.map +1 -1
  32. package/dist/lib/server/create-adcp-server.mjs +37 -109
  33. package/dist/lib/server/create-adcp-server.mjs.map +1 -1
  34. package/dist/lib/server/decisioning/index.d.mts +2 -0
  35. package/dist/lib/server/decisioning/index.d.ts +2 -0
  36. package/dist/lib/server/decisioning/index.d.ts.map +1 -1
  37. package/dist/lib/server/decisioning/index.js +5 -2
  38. package/dist/lib/server/decisioning/index.js.map +1 -1
  39. package/dist/lib/server/decisioning/index.mjs +3 -1
  40. package/dist/lib/server/decisioning/index.mjs.map +1 -1
  41. package/dist/lib/server/decisioning/response-summary.d.mts +33 -0
  42. package/dist/lib/server/decisioning/response-summary.d.ts +34 -0
  43. package/dist/lib/server/decisioning/response-summary.d.ts.map +1 -0
  44. package/dist/lib/server/decisioning/response-summary.js +62 -0
  45. package/dist/lib/server/decisioning/response-summary.js.map +1 -0
  46. package/dist/lib/server/decisioning/response-summary.mjs +37 -0
  47. package/dist/lib/server/decisioning/response-summary.mjs.map +1 -0
  48. package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
  49. package/dist/lib/server/decisioning/runtime/from-platform.js +27 -5
  50. package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
  51. package/dist/lib/server/decisioning/runtime/from-platform.mjs +27 -5
  52. package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
  53. package/dist/lib/server/decisioning/specialisms/sales.d.mts +7 -1
  54. package/dist/lib/server/decisioning/specialisms/sales.d.ts +7 -1
  55. package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
  56. package/dist/lib/server/decisioning/specialisms/sales.js.map +1 -1
  57. package/dist/lib/server/index.d.mts +1 -1
  58. package/dist/lib/server/index.d.ts +1 -1
  59. package/dist/lib/server/index.d.ts.map +1 -1
  60. package/dist/lib/server/index.js.map +1 -1
  61. package/dist/lib/server/index.mjs.map +1 -1
  62. package/dist/lib/server/responses.d.ts.map +1 -1
  63. package/dist/lib/server/responses.js +9 -1
  64. package/dist/lib/server/responses.js.map +1 -1
  65. package/dist/lib/server/responses.mjs +8 -1
  66. package/dist/lib/server/responses.mjs.map +1 -1
  67. package/dist/lib/testing/storyboard/context.d.ts.map +1 -1
  68. package/dist/lib/testing/storyboard/context.js +9 -4
  69. package/dist/lib/testing/storyboard/context.js.map +1 -1
  70. package/dist/lib/testing/storyboard/context.mjs +9 -4
  71. package/dist/lib/testing/storyboard/context.mjs.map +1 -1
  72. package/dist/lib/testing/storyboard/request-builder.d.ts.map +1 -1
  73. package/dist/lib/testing/storyboard/request-builder.js +28 -4
  74. package/dist/lib/testing/storyboard/request-builder.js.map +1 -1
  75. package/dist/lib/testing/storyboard/request-builder.mjs +28 -4
  76. package/dist/lib/testing/storyboard/request-builder.mjs.map +1 -1
  77. package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
  78. package/dist/lib/testing/storyboard/runner.js +21 -6
  79. package/dist/lib/testing/storyboard/runner.js.map +1 -1
  80. package/dist/lib/testing/storyboard/runner.mjs +21 -6
  81. package/dist/lib/testing/storyboard/runner.mjs.map +1 -1
  82. package/dist/lib/testing/storyboard/validations.d.mts +1 -1
  83. package/dist/lib/testing/storyboard/validations.d.ts +1 -1
  84. package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
  85. package/dist/lib/testing/storyboard/validations.js +18 -7
  86. package/dist/lib/testing/storyboard/validations.js.map +1 -1
  87. package/dist/lib/testing/storyboard/validations.mjs +18 -7
  88. package/dist/lib/testing/storyboard/validations.mjs.map +1 -1
  89. package/dist/lib/testing/storyboard/webhook-receiver.d.ts.map +1 -1
  90. package/dist/lib/testing/storyboard/webhook-receiver.js +32 -20
  91. package/dist/lib/testing/storyboard/webhook-receiver.js.map +1 -1
  92. package/dist/lib/testing/storyboard/webhook-receiver.mjs +32 -20
  93. package/dist/lib/testing/storyboard/webhook-receiver.mjs.map +1 -1
  94. package/dist/lib/types/schemas.generated.d.ts +516 -516
  95. package/dist/lib/types/schemas.generated.d.ts.map +1 -1
  96. package/dist/lib/types/schemas.generated.js.map +1 -1
  97. package/dist/lib/types/schemas.generated.mjs.map +1 -1
  98. package/dist/lib/utils/a2a-artifacts.d.ts.map +1 -1
  99. package/dist/lib/utils/a2a-artifacts.js +2 -2
  100. package/dist/lib/utils/a2a-artifacts.js.map +1 -1
  101. package/dist/lib/utils/a2a-artifacts.mjs +2 -2
  102. package/dist/lib/utils/a2a-artifacts.mjs.map +1 -1
  103. package/dist/lib/utils/a2a-discovery.d.mts +3 -3
  104. package/dist/lib/utils/a2a-discovery.d.ts +3 -3
  105. package/dist/lib/utils/a2a-discovery.js +1 -1
  106. package/dist/lib/utils/a2a-discovery.js.map +1 -1
  107. package/dist/lib/utils/a2a-discovery.mjs +1 -1
  108. package/dist/lib/utils/a2a-discovery.mjs.map +1 -1
  109. package/dist/lib/utils/tool-request-schemas.d.mts +31 -31
  110. package/dist/lib/utils/tool-request-schemas.d.ts +31 -31
  111. package/dist/lib/v2/projection/index.d.mts +2 -0
  112. package/dist/lib/v2/projection/index.d.ts +2 -0
  113. package/dist/lib/v2/projection/index.d.ts.map +1 -1
  114. package/dist/lib/v2/projection/index.js +3 -0
  115. package/dist/lib/v2/projection/index.js.map +1 -1
  116. package/dist/lib/v2/projection/index.mjs +2 -0
  117. package/dist/lib/v2/projection/index.mjs.map +1 -1
  118. package/dist/lib/v2/projection/legacy-normalization.d.mts +24 -0
  119. package/dist/lib/v2/projection/legacy-normalization.d.ts +25 -0
  120. package/dist/lib/v2/projection/legacy-normalization.d.ts.map +1 -0
  121. package/dist/lib/v2/projection/legacy-normalization.js +32 -0
  122. package/dist/lib/v2/projection/legacy-normalization.js.map +1 -0
  123. package/dist/lib/v2/projection/legacy-normalization.mjs +8 -0
  124. package/dist/lib/v2/projection/legacy-normalization.mjs.map +1 -0
  125. package/dist/lib/version.d.mts +3 -3
  126. package/dist/lib/version.d.ts +3 -3
  127. package/dist/lib/version.js +3 -3
  128. package/dist/lib/version.js.map +1 -1
  129. package/dist/lib/version.mjs +3 -3
  130. package/dist/lib/version.mjs.map +1 -1
  131. package/docs/guides/BUILD-AN-AGENT.md +42 -6
  132. package/docs/llms.txt +2 -2
  133. package/docs/migration-13-to-14.md +17 -0
  134. package/package.json +44 -41
@@ -62,6 +62,7 @@
62
62
  import type { Account, NoAccountCtx } from '../account.mjs';
63
63
  import type { RequestContext } from '../context.mjs';
64
64
  import type { TaskHandoff } from '../async-outcome.mjs';
65
+ import type { ResponseWithSummary } from '../response-summary.mjs';
65
66
  import type { RequireCacheScopeWhenProducts, ServerPayload } from '../../../types/server-payload.mjs';
66
67
  import type { GetProductsResponse, CreateMediaBuyError, CreateMediaBuySuccess, UpdateMediaBuySuccess, GetMediaBuysRequest, GetMediaBuysResponse, GetMediaBuyDeliveryRequest, GetMediaBuyDeliveryResponse, ProvidePerformanceFeedbackRequest, ProvidePerformanceFeedbackSuccess, ListCreativeFormatsRequest, ListCreativeFormatsResponse, ListCreativesResponse, MediaBuyStatus, SyncCatalogsRequest, SyncCatalogsSuccess, LogEventRequest, LogEventSuccess, SyncEventSourcesRequest, SyncEventSourcesSuccess, SyncCreativesError, SyncCreativesSuccess } from '../../../types/tools.generated.mjs';
67
68
  import type { ProposalRefinementCapabilities } from '../../../negotiation/types.mjs';
@@ -121,7 +122,12 @@ export type RefineProposalsPayload = AdcpToolMap['refine_proposals']['result'];
121
122
  * with `{ creatives: [...] }` to form `SyncCreativesSuccess`.
122
123
  */
123
124
  export type SyncCreativesRow = SyncCreativesSuccess['creatives'][number];
124
- export type GetProductsHandlerResult = GetProductsPayload | TaskHandoff<GetProductsPayload>;
125
+ /**
126
+ * Native product discovery result. Use `withResponseSummary(payload, text)`
127
+ * for a synchronous MCP text override while the SDK retains payload projection
128
+ * and validation; task handoffs continue to resolve to structured payloads.
129
+ */
130
+ export type GetProductsHandlerResult = GetProductsPayload | ResponseWithSummary<GetProductsPayload> | TaskHandoff<GetProductsPayload>;
125
131
  export type CreateMediaBuyHandlerResult = CreateMediaBuyPayload | TaskHandoff<CreateMediaBuySuccessPayload>;
126
132
  export type UpdateMediaBuyHandlerResult = UpdateMediaBuyPayload | TaskHandoff<UpdateMediaBuyPayload>;
127
133
  export type SyncCreativesHandlerResult = SyncCreativesRow[] | TaskHandoff<SyncCreativesRow[]>;
@@ -62,6 +62,7 @@
62
62
  import type { Account, NoAccountCtx } from '../account';
63
63
  import type { RequestContext } from '../context';
64
64
  import type { TaskHandoff } from '../async-outcome';
65
+ import type { ResponseWithSummary } from '../response-summary';
65
66
  import type { RequireCacheScopeWhenProducts, ServerPayload } from '../../../types/server-payload';
66
67
  import type { GetProductsResponse, CreateMediaBuyError, CreateMediaBuySuccess, UpdateMediaBuySuccess, GetMediaBuysRequest, GetMediaBuysResponse, GetMediaBuyDeliveryRequest, GetMediaBuyDeliveryResponse, ProvidePerformanceFeedbackRequest, ProvidePerformanceFeedbackSuccess, ListCreativeFormatsRequest, ListCreativeFormatsResponse, ListCreativesResponse, MediaBuyStatus, SyncCatalogsRequest, SyncCatalogsSuccess, LogEventRequest, LogEventSuccess, SyncEventSourcesRequest, SyncEventSourcesSuccess, SyncCreativesError, SyncCreativesSuccess } from '../../../types/tools.generated';
67
68
  import type { ProposalRefinementCapabilities } from '../../../negotiation/types';
@@ -121,7 +122,12 @@ export type RefineProposalsPayload = AdcpToolMap['refine_proposals']['result'];
121
122
  * with `{ creatives: [...] }` to form `SyncCreativesSuccess`.
122
123
  */
123
124
  export type SyncCreativesRow = SyncCreativesSuccess['creatives'][number];
124
- export type GetProductsHandlerResult = GetProductsPayload | TaskHandoff<GetProductsPayload>;
125
+ /**
126
+ * Native product discovery result. Use `withResponseSummary(payload, text)`
127
+ * for a synchronous MCP text override while the SDK retains payload projection
128
+ * and validation; task handoffs continue to resolve to structured payloads.
129
+ */
130
+ export type GetProductsHandlerResult = GetProductsPayload | ResponseWithSummary<GetProductsPayload> | TaskHandoff<GetProductsPayload>;
125
131
  export type CreateMediaBuyHandlerResult = CreateMediaBuyPayload | TaskHandoff<CreateMediaBuySuccessPayload>;
126
132
  export type UpdateMediaBuyHandlerResult = UpdateMediaBuyPayload | TaskHandoff<UpdateMediaBuyPayload>;
127
133
  export type SyncCreativesHandlerResult = SyncCreativesRow[] | TaskHandoff<SyncCreativesRow[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"sales.d.ts","sourceRoot":"","sources":["../../../../../src/lib/server/decisioning/specialisms/sales.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,6BAA6B,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAClG,OAAO,KAAK,EAEV,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,iCAAiC,EACjC,iCAAiC,EACjC,0BAA0B,EAC1B,2BAA2B,EAE3B,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EACV,0BAA0B,EAC1B,8BAA8B,EAC9B,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,gBAAgB,EAChB,8BAA8B,EAC/B,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,yB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,uBAAuB,EAAE,GAAG,EAAE,GAAG,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACvG;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,iBAAiB,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,QAAQ,CAC1E,IAAI,CACF,aAAa,CAAC,QAAQ,CAAC,EACvB,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,cAAc,CAC7F,CACF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,sBAAsB,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,IAAI,CAC3E,aAAa,CAAC,QAAQ,CAAC,EACrB,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,UAAU,GACV,2BAA2B,GAC3B,eAAe,GACf,4BAA4B,CAC/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/lib/server/decisioning/specialisms/sales.ts"],"sourcesContent":["/**\n * SalesPlatform — sales specialism platform interface.\n *\n * **Unified hybrid shape.** `get_products`, `create_media_buy`, and `sync_creatives` use a\n * single method each. The method returns the wire success arm (sync fast\n * path) OR `ctx.handoffToTask(fn)` to promote the call to a background\n * task (HITL slow path). Branch per-call — the same method handles\n * programmatic remnant, guaranteed inventory, curated discovery, and hybrid\n * sellers. Every other tool is sync-only:\n *\n * - `get_products` — sync OR `ctx.handoffToTask(...)` for curated brief/refine flows.\n * - `create_media_buy` — sync OR `ctx.handoffToTask(...)`.\n * - `update_media_buy` — sync only. Re-approval flows that need HITL run\n * out-of-band; `publishStatusChange` carries the result.\n * - `sync_creatives` — sync OR `ctx.handoffToTask(...)`.\n * - `get_media_buy_delivery` — sync only.\n *\n * Sync-only tools that need long-running semantics use `publishStatusChange`\n * (see `status-changes.ts`) — that's the spec-aligned channel for tools\n * whose wire response unions don't define a Submitted arm.\n *\n * Each method either returns the value or throws `AdcpError` for structured\n * rejection. Generic thrown errors map to `SERVICE_UNAVAILABLE`.\n *\n * **Method groups** — implement the group(s) matching your specialism:\n *\n * | Group | Methods | Claim when |\n * |---|---|---|\n * | Core sales (required) | `getProducts`, `updateMediaBuy`, `getMediaBuyDelivery` | Any `sales-*` specialism |\n * | Core sales (unified hybrid) | `createMediaBuy` | Any `sales-*` specialism |\n * | Core sales (unified hybrid) | `syncCreatives` | Any `sales-*` specialism |\n * | Read / feedback | `getMediaBuys`, `providePerformanceFeedback`, `listCreativeFormats`, `listCreatives` | Most sellers; optional |\n * | Retail-media extensions | `syncCatalogs`, `logEvent`, `syncEventSources` | `sales-catalog-driven`, `sales-retail-media` |\n *\n * New adopters implementing a non-retail seller (GAM, FreeWheel, a social\n * platform) only need the three core-required methods plus `createMediaBuy`\n * and `syncCreatives`. The retail-media extension methods (`syncCatalogs`,\n * `logEvent`, `syncEventSources`) are unnecessary unless you claim\n * `sales-catalog-driven` or `sales-retail-media`.\n *\n * **No-account tools (`providePerformanceFeedback`, `listCreativeFormats`):**\n * the wire requests for these two tools don't carry an `account` field, so\n * `ctx.account` may be `undefined` when `accounts.resolution === 'explicit'`.\n * Three safe patterns:\n *\n * 1. **`'derived'` resolution** — `accounts.resolve(undefined)` returns a\n * singleton; `ctx.account` is always set. Best for single-tenant\n * deployers.\n * 2. **Don't implement the method** — the framework returns\n * `UNSUPPORTED_FEATURE`; buyers using the merge-seam custom handler or\n * external creative agents still receive a response.\n * 3. **Explicit-mode with defensive read** — cast `ctx.account as Account |\n * undefined` and derive the account from the request body (e.g., via a\n * `media_buy_id` lookup), or throw `AdcpError('ACCOUNT_NOT_FOUND')`.\n * Full `resolveAccount(undefined, { authInfo, toolName })` support for\n * explicit-mode lands in rc.1.\n *\n * Status: Preview / 6.0.\n *\n * @public\n */\n\nimport type { Account, NoAccountCtx } from '../account';\nimport type { RequestContext } from '../context';\nimport type { TaskHandoff } from '../async-outcome';\nimport type { RequireCacheScopeWhenProducts, ServerPayload } from '../../../types/server-payload';\nimport type {\n GetProductsRequest,\n GetProductsResponse,\n CreateMediaBuyError,\n CreateMediaBuySuccess,\n UpdateMediaBuySuccess,\n GetMediaBuysRequest,\n GetMediaBuysResponse,\n GetMediaBuyDeliveryRequest,\n GetMediaBuyDeliveryResponse,\n ProvidePerformanceFeedbackRequest,\n ProvidePerformanceFeedbackSuccess,\n ListCreativeFormatsRequest,\n ListCreativeFormatsResponse,\n ListCreativesRequest,\n ListCreativesResponse,\n MediaBuyStatus,\n SyncCatalogsRequest,\n SyncCatalogsSuccess,\n LogEventRequest,\n LogEventSuccess,\n SyncEventSourcesRequest,\n SyncEventSourcesSuccess,\n SyncCreativesError,\n SyncCreativesSuccess,\n} from '../../../types/tools.generated';\nimport type { ProposalRefinementCapabilities } from '../../../negotiation/types';\nimport type { AdcpToolMap } from '../../create-adcp-server';\nimport type {\n CanonicalSyncCreativeAsset,\n CanonicalCreateMediaBuyRequest,\n CanonicalCreativeResponse,\n CanonicalGetProductsRequest,\n CanonicalListCreativesRequest,\n CanonicalListCreativesResponse,\n CanonicalProduct,\n CanonicalUpdateMediaBuyRequest,\n} from '../../../v2/projection/creative-delivery';\nimport type { ProjectionCatalogSnapshot } from '../../../v2/projection/catalog-snapshot';\nimport type { V1ProductInput } from '../../../v2/projection/types';\n\ntype SyncCreative = CanonicalSyncCreativeAsset;\ntype Ctx<TCtxMeta> = RequestContext<Account<TCtxMeta>>;\ntype ExclusivePayload<TLeft, TRight> =\n | (TLeft & { [K in Exclude<keyof TRight, keyof TLeft>]?: never })\n | (TRight & { [K in Exclude<keyof TLeft, keyof TRight>]?: never });\ntype LegacyMediaBuyStatusInput<T> = T & { status?: MediaBuyStatus };\n\nexport type GetProductsProjectionInput = (CanonicalProduct | V1ProductInput) & {\n /** Exact owner-scoped aliases used only while projecting this product; never emitted on the wire. */\n projectionCatalogs?: readonly ProjectionCatalogSnapshot[];\n};\ntype CanonicalGetProductsPayload = Omit<ServerPayload<CanonicalCreativeResponse<GetProductsResponse>>, 'products'> & {\n products?: GetProductsProjectionInput[];\n};\nexport type GetProductsPayload = RequireCacheScopeWhenProducts<CanonicalGetProductsPayload>;\ntype CreateMediaBuySuccessPayload = LegacyMediaBuyStatusInput<\n ServerPayload<CanonicalCreativeResponse<CreateMediaBuySuccess>>\n>;\ntype CreateMediaBuyErrorPayload = ServerPayload<CanonicalCreativeResponse<CreateMediaBuyError>>;\nexport type CreateMediaBuyPayload = ExclusivePayload<CreateMediaBuySuccessPayload, CreateMediaBuyErrorPayload>;\nexport type UpdateMediaBuyPayload = LegacyMediaBuyStatusInput<\n ServerPayload<CanonicalCreativeResponse<UpdateMediaBuySuccess>>\n>;\nexport type GetMediaBuyDeliveryPayload = ServerPayload<CanonicalCreativeResponse<GetMediaBuyDeliveryResponse>>;\nexport type GetMediaBuysPayload = ServerPayload<CanonicalCreativeResponse<GetMediaBuysResponse>>;\nexport type ProvidePerformanceFeedbackPayload = ServerPayload<ProvidePerformanceFeedbackSuccess>;\nexport type LegacyListCreativeFormatsPayload = ServerPayload<ListCreativeFormatsResponse>;\nexport type ListCreativesPayload = ServerPayload<CanonicalListCreativesResponse>;\nexport type LegacyGetProductsPayload = RequireCacheScopeWhenProducts<ServerPayload<GetProductsResponse>>;\nexport type LegacyCreateMediaBuyPayload = ExclusivePayload<\n LegacyMediaBuyStatusInput<ServerPayload<CreateMediaBuySuccess>>,\n ServerPayload<CreateMediaBuyError>\n>;\nexport type LegacyUpdateMediaBuyPayload = LegacyMediaBuyStatusInput<ServerPayload<UpdateMediaBuySuccess>>;\nexport type LegacyGetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;\nexport type LegacyGetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;\nexport type LegacyListCreativesPayload = ServerPayload<ListCreativesResponse>;\nexport type SyncCreativesSuccessPayload = ServerPayload<SyncCreativesSuccess>;\nexport type SyncCreativesErrorPayload = ServerPayload<SyncCreativesError>;\nexport type SyncCreativesPayload = SyncCreativesSuccessPayload | SyncCreativesErrorPayload;\nexport type SyncCatalogsPayload = ServerPayload<SyncCatalogsSuccess>;\nexport type LogEventPayload = ServerPayload<LogEventSuccess>;\nexport type SyncEventSourcesPayload = ServerPayload<SyncEventSourcesSuccess>;\nexport type ListProductsPayload = AdcpToolMap['list_products']['result'];\nexport type RequestProposalsPayload = AdcpToolMap['request_proposals']['result'];\nexport type DeclineProposalsPayload = AdcpToolMap['decline_proposals']['result'];\nexport type BuyProductsPayload = AdcpToolMap['buy_products']['result'];\nexport type AcceptProposalPayload = AdcpToolMap['accept_proposal']['result'];\nexport type ControlMediaBuyPayload = AdcpToolMap['control_media_buy']['result'];\nexport type RefineProposalsPayload = AdcpToolMap['refine_proposals']['result'];\n\n/**\n * Wire success-row shape for `sync_creatives`. Returning the array of these\n * rows from `syncCreatives` is what adopters write — the framework wraps\n * with `{ creatives: [...] }` to form `SyncCreativesSuccess`.\n */\nexport type SyncCreativesRow = SyncCreativesSuccess['creatives'][number];\nexport type GetProductsHandlerResult = GetProductsPayload | TaskHandoff<GetProductsPayload>;\nexport type CreateMediaBuyHandlerResult = CreateMediaBuyPayload | TaskHandoff<CreateMediaBuySuccessPayload>;\nexport type UpdateMediaBuyHandlerResult = UpdateMediaBuyPayload | TaskHandoff<UpdateMediaBuyPayload>;\nexport type SyncCreativesHandlerResult = SyncCreativesRow[] | TaskHandoff<SyncCreativesRow[]>;\n\ntype CompactLifecycleHandlerResult<T> = T | TaskHandoff<T>;\n\n/**\n * Primary AdCP 3.2 media-buy lifecycle surface.\n *\n * This lives beside {@link SalesPlatform} so SDK 14 adopters can implement\n * the compact protocol without translating it back into deprecated\n * `get_products` / `create_media_buy` / `update_media_buy` methods. Keep a\n * `SalesPlatform` implementation as well when the same deployment must serve\n * legacy 3.0/3.1 buyers; the server advertises only the compact profile to\n * 3.2 MCP discovery while retaining those older call routes.\n *\n * `refineProposals` requires `proposalRefinement` so capability discovery can\n * declare the supported structured refinement dimensions truthfully.\n *\n * @public\n */\nexport interface MediaBuyLifecyclePlatform<TCtxMeta = Record<string, unknown>> {\n proposalRefinement?: ProposalRefinementCapabilities;\n listProducts?(req: AdcpToolMap['list_products']['params'], ctx: Ctx<TCtxMeta>): Promise<ListProductsPayload>;\n requestProposals?(\n req: AdcpToolMap['request_proposals']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<RequestProposalsPayload>>;\n refineProposals?(\n req: AdcpToolMap['refine_proposals']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<RefineProposalsPayload>>;\n declineProposals?(\n req: AdcpToolMap['decline_proposals']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<DeclineProposalsPayload>>;\n buyProducts?(\n req: AdcpToolMap['buy_products']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<BuyProductsPayload>>;\n acceptProposal?(\n req: AdcpToolMap['accept_proposal']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<AcceptProposalPayload>>;\n controlMediaBuy?(\n req: AdcpToolMap['control_media_buy']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<ControlMediaBuyPayload>>;\n getMediaBuys?(req: GetMediaBuysRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuysPayload>;\n getMediaBuyDelivery?(filter: GetMediaBuyDeliveryRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuyDeliveryPayload>;\n}\n\nexport type MediaBuyLifecycleCorePlatform<TCtxMeta = Record<string, unknown>> = Required<\n Pick<\n MediaBuyLifecyclePlatform<TCtxMeta>,\n 'listProducts' | 'buyProducts' | 'controlMediaBuy' | 'getMediaBuys' | 'getMediaBuyDelivery'\n >\n>;\n\nexport type MediaBuyLifecycleProposalPlatform<TCtxMeta = Record<string, unknown>> = Required<\n Pick<\n MediaBuyLifecyclePlatform<TCtxMeta>,\n | 'proposalRefinement'\n | 'listProducts'\n | 'requestProposals'\n | 'refineProposals'\n | 'declineProposals'\n | 'acceptProposal'\n | 'getMediaBuys'\n | 'getMediaBuyDelivery'\n >\n>;\n\nexport interface SalesPlatform<TCtxMeta = Record<string, unknown>> {\n // **Method shape — all optional, enforced per-specialism.** Every method on\n // `SalesPlatform` is declared optional so the type accommodates non-media-\n // buy walled gardens (sales-social, audience-sync, sales-proposal-mode)\n // that don't accept inbound media buys but compose ingestion methods on\n // this same surface. Compile-time enforcement of \"you claimed\n // sales-non-guaranteed, therefore you MUST implement getProducts /\n // createMediaBuy / updateMediaBuy / getMediaBuyDelivery / getMediaBuys\"\n // moves up to `RequiredPlatformsFor<S>` — see the {@link SalesCorePlatform}\n // type alias and the per-specialism mapping in `platform.ts`. Runtime\n // enforcement is preserved: the dispatcher returns `UNSUPPORTED_FEATURE`\n // for tools whose method is absent, and `validateSpecialismRequiredTools`\n // throws / warns when a specialism's required tools aren't implemented.\n //\n // Adopters who implement the full media-buy surface keep working — their\n // implementation is a superset of every per-specialism requirement.\n // Adopters who only do ingestion (e.g. a Meta CAPI integration claiming\n // `sales-social`) drop the 5 core stubs without compile errors.\n\n // ── get_products: unified hybrid shape ────────────────────────────\n // get_products is a CATALOG LOOKUP — fast read against the seller's\n // existing inventory. rc8 allows curated brief/refine lookups to return a\n // Submitted arm when the seller needs async enrichment. Adopters express\n // that by returning ctx.handoffToTask(fn); the framework owns task_id\n // allocation, polling state, and optional completion webhook delivery.\n //\n // Wholesale catalog dumps remain sync: if the seller cannot serve the\n // full catalog directly, it should maintain an internal cache and return\n // the current catalog view instead of turning wholesale discovery into a\n // long-running operation.\n /** Catalog discovery: return products directly or hand off curated discovery to a background task. */\n getProducts?(req: CanonicalGetProductsRequest, ctx: Ctx<TCtxMeta>): Promise<GetProductsHandlerResult>;\n\n // ── create_media_buy: unified hybrid shape ──────────────────────────\n\n /**\n * Create a media buy. Return the wire success-arm shape (sync fast path)\n * OR `ctx.handoffToTask(fn)` to promote the call to a background task\n * (HITL slow path). Adopters can branch per-call: hybrid sellers route\n * programmatic remnant sync, guaranteed inventory through HITL, all\n * from the same method.\n *\n * Buyers pattern-match on the wire response shape (`media_buy_id` on\n * the immediate response → sync; `task_id` + `status: 'submitted'` →\n * poll `tasks_get` or receive webhook). Predictable per request,\n * dynamic per call.\n *\n * Status changes flow via `publishStatusChange(...)` regardless of\n * which path was taken.\n *\n * For synchronous domain validation that produces multiple failures,\n * return the pure Error arm (`{ errors: [...] }`) with no success-only\n * fields. Handoff callbacks remain success-only; throw `AdcpError` inside\n * a handoff to transition the task to `failed`.\n *\n * The handoff function's return value is persisted as JSONB in the\n * task registry. Postgres-backed registries cap row size at 4MB —\n * offload large payloads to blob storage and return references.\n *\n * @example Sync-only adopter (no HITL inventory)\n * ```ts\n * createMediaBuy: async (req, ctx) => {\n * return await this.commitSync(req);\n * }\n * ```\n *\n * @example HITL-only adopter (every call goes through trafficker review)\n * ```ts\n * createMediaBuy: async (req, ctx) => {\n * return ctx.handoffToTask(async (taskCtx) => {\n * await taskCtx.update({ message: 'Awaiting trafficker' });\n * return await this.runHITL(req);\n * });\n * }\n * ```\n *\n * @example Hybrid adopter (programmatic + guaranteed in same tenant)\n * ```ts\n * createMediaBuy: async (req, ctx) => {\n * if (this.requiresHITL(req)) {\n * return ctx.handoffToTask(async (taskCtx) => await this.runHITL(req));\n * }\n * return await this.commitSync(req);\n * }\n * ```\n */\n createMediaBuy?(req: CanonicalCreateMediaBuyRequest, ctx: Ctx<TCtxMeta>): Promise<CreateMediaBuyHandlerResult>;\n\n // ── update_media_buy: unified hybrid shape\n /**\n * Update a media buy. Return the patched buy immediately (sync fast path)\n * OR `ctx.handoffToTask(fn)` when the upstream activation or approval flow\n * must continue in the background. The framework owns task registration,\n * caller scoping, polling, and completion webhooks on the handoff path.\n */\n updateMediaBuy?(\n buyId: string,\n patch: CanonicalUpdateMediaBuyRequest,\n ctx: Ctx<TCtxMeta>\n ): Promise<UpdateMediaBuyHandlerResult>;\n\n // ── sync_creatives: unified hybrid shape ────────────────────────────\n\n /**\n * Push creatives. Return the array of wire success rows (sync fast\n * path) OR `ctx.handoffToTask(fn)` to defer to a background task\n * (HITL slow path — manual review, brand-suitability gates, etc.).\n * Hybrid: branch per-batch — auto-approve simple creatives sync,\n * route everything else to HITL.\n *\n * Each row carries `action` (CRUD outcome) and optional `status`\n * (review state). Buyers see mixed `approved` / `pending_review`\n * rows on the sync path; subsequent review changes flow via\n * `publishStatusChange(...)`.\n *\n * @example Hybrid adopter\n * ```ts\n * syncCreatives: async (creatives, ctx) => {\n * if (creatives.some(c => this.needsReview(c))) {\n * return ctx.handoffToTask(async (taskCtx) => {\n * return await this.reviewAndPersist(creatives);\n * });\n * }\n * return creatives.map(c => ({ creative_id: c.creative_id, action: 'created', status: 'approved' }));\n * }\n * ```\n */\n syncCreatives?(creatives: SyncCreative[], ctx: Ctx<TCtxMeta>): Promise<SyncCreativesHandlerResult>;\n\n // ── get_media_buy_delivery: sync only ───────────────────────────────\n\n /**\n * Per-media-buy delivery actuals (impressions, spend, pacing,\n * conversions). Sync — report-running platforms with manual report\n * cycles return the latest cached actuals and emit `delivery_report`\n * status changes via `publishStatusChange` when fresh reports are\n * available.\n *\n * **Multi-id contract.** `filter.media_buy_ids` is an array — buyers\n * routinely request delivery for multiple buys in one call. The\n * platform MUST iterate every id and return one element per id in\n * `media_buy_deliveries[]`. Implementations that read only\n * `media_buy_ids[0]` silently truncate the buyer's request — a\n * correctness bug that has bitten multiple adopters (closes #1342).\n *\n * Pass-through is the framework contract: the platform owns fan-out\n * because `aggregated_totals` requires platform-domain knowledge —\n * `reach` (cross-buy dedup capability), `new_to_brand_rate` (weighted\n * across buys, not a per-buy average), and `frequency` (depends on\n * dedup) cannot be synthesized correctly by a naive framework loop.\n * Sellers that can't compute the cross-buy fields omit them and emit\n * the safely-summable fields (`impressions`, `spend`, `clicks`,\n * `media_buy_count`); buyers fall back to per-buy values when needed.\n *\n * Recommended pattern — prefer the upstream's native multi-id query\n * over a per-id loop. Most reporting APIs (GAM ReportService's\n * `WHERE LINE_ITEM_ID IN (...)`, TTD, DV360, Magnite, PubMatic, retail\n * media) take an id list in one round-trip; iterating one-id-at-a-time\n * is an N-roundtrip pattern that triggers upstream rate limits on\n * 50-buy reports.\n *\n * ```ts\n * getMediaBuyDelivery: async (req, ctx) => {\n * const ids = req.media_buy_ids ?? [];\n * // Native multi-id: one upstream round-trip.\n * const rows = await this.upstream.report({\n * mediaBuyIds: ids,\n * start: req.start_date,\n * end: req.end_date,\n * });\n * return {\n * reporting_period: { start, end },\n * currency: 'USD',\n * media_buy_deliveries: rows,\n * aggregated_totals: this.upstream.aggregate(rows),\n * };\n * }\n * ```\n *\n * **Single-id fallback** — only if your upstream is genuinely single-id:\n *\n * ```ts\n * const deliveries = await Promise.all(ids.map(id => fetchOne(id, ctx)));\n * ```\n *\n * When `media_buy_ids` is omitted, return a paginated set of\n * accessible media buys per the wire schema. `status_filter`\n * defaults to `['active']` when omitted; honor the filter in your\n * iteration.\n */\n getMediaBuyDelivery?(filter: GetMediaBuyDeliveryRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuyDeliveryPayload>;\n\n // ── get_media_buys: sync only — REQUIRED ──────────────────────────────\n // Read tool — buyers fetch a list of their media buys (often filtered by\n // status / time window). Required because:\n // 1. Every seller needs to support reading back what they created.\n // 2. Idempotent retries depend on it (replay safe-by-design).\n // 3. The 6.2 patch-decomposition redesign needs single-id reads;\n // `getMediaBuys` is the foundation.\n // 4. Framework auto-stores returned media buys for hydration on\n // subsequent updateMediaBuy calls (see `hydratePackagesWithProducts`\n // pattern in `from-platform.ts`).\n //\n // Proposal-mode adopters (write-only via push channels) return an empty\n // `media_buys: []` array — that's a valid response.\n /**\n * List media buys this account owns. Filter + pagination per the wire shape.\n *\n * **Multi-id contract.** `req.media_buy_ids` is an array — buyers\n * routinely request a specific set of buys in one call. The platform\n * MUST iterate every id and return one element per id in the response\n * `media_buys[]` array. Reading only `media_buy_ids[0]` silently\n * truncates the buyer's request — same correctness bug that #1342\n * documented for `getMediaBuyDelivery`. Same recommended pattern: prefer\n * an upstream multi-id query (one round-trip), fall back to per-id loop\n * only when the upstream is single-id-only.\n *\n * When `media_buy_ids` is omitted, return a paginated set of accessible\n * buys filtered by `status_filter` (defaults to `['active']`).\n */\n getMediaBuys?(req: GetMediaBuysRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuysPayload>;\n\n // ── provide_performance_feedback: sync only ─────────────────────────\n // Write tool — buyers report aggregate creative-level performance\n // (impressions, clicks, conversions) to help the seller's optimizer learn.\n // Optional because not every sales agent runs an optimizer, but every\n // buyer expects to be able to call it. Framework returns UNSUPPORTED_FEATURE\n // when omitted.\n //\n // ⚠️ NO-ACCOUNT TOOL — `ctx: NoAccountCtx<TCtxMeta>`. The wire request\n // does not carry an `account` field. `ctx.account` may be `undefined` for\n // `'explicit'`-resolution adopters; narrow before reading\n // `ctx.account.ctx_metadata`. See {@link NoAccountCtx} and the\n // `SalesPlatform` JSDoc (\"No-account tools\") for safe patterns.\n /** Accept buyer-side performance signals on a media buy / creative. */\n providePerformanceFeedback?(\n req: ProvidePerformanceFeedbackRequest,\n ctx: NoAccountCtx<TCtxMeta>\n ): Promise<ProvidePerformanceFeedbackPayload>;\n\n // ── list_creative_formats: sync only ────────────────────────────────\n // Discovery tool — buyers query what creative formats this seller\n // accepts. Optional because sellers that delegate to external\n // `creative_agents` (declared in `capabilities.creative_agents[]`) don't\n // own format definitions; framework can resolve from the declared agents.\n // Self-hosted sellers (own creative library) implement this directly.\n //\n // ⚠️ NO-ACCOUNT TOOL — `ctx: NoAccountCtx<TCtxMeta>`. See\n // `providePerformanceFeedback` note above.\n listCreativeFormatsLegacy?(\n req: ListCreativeFormatsRequest,\n ctx: NoAccountCtx<TCtxMeta>\n ): Promise<LegacyListCreativeFormatsPayload>;\n\n // ── list_creatives: sync only ───────────────────────────────────────\n // Read tool — buyers query the seller's creative library. Optional\n // because most sales adopters delegate creative state to the\n // `creative_agents` declared in capabilities; ad-server-style sales\n // platforms implement directly. Note: also lives on `CreativeAdServerPlatform.listCreatives`\n // for the standalone-creative-agent shape.\n listCreatives?(req: CanonicalListCreativesRequest, ctx: Ctx<TCtxMeta>): Promise<ListCreativesPayload>;\n\n // ── sync_catalogs: sync only ────────────────────────────────────────\n // Retail-media catalog sync. Buyers push product catalogs (SKUs, ASINs,\n // store-ids) for `sales-catalog-driven` agents (Amazon, Criteo, Citrusad,\n // Walmart Connect, Shopify ad surfaces). Optional — non-retail sales\n // adopters omit. Idempotent on the buyer's `idempotency_key`.\n syncCatalogs?(req: SyncCatalogsRequest, ctx: Ctx<TCtxMeta>): Promise<SyncCatalogsPayload>;\n\n // ── log_event: sync only ────────────────────────────────────────────\n // Conversion / engagement event logging. Buyers post events tied to\n // a `media_buy_id` for performance attribution. Used by retail-media\n // (post-purchase events) and conversion-tracked sales (Snap pixel,\n // Meta CAPI, LinkedIn conversions API). Optional.\n logEvent?(req: LogEventRequest, ctx: Ctx<TCtxMeta>): Promise<LogEventPayload>;\n\n // ── sync_event_sources: sync only ──────────────────────────────────\n // Register conversion event sources (websites, apps, offline pixel\n // IDs) so subsequent `log_event` calls can be attributed correctly.\n // Optional — adopters who don't expose conversion tracking omit.\n syncEventSources?(req: SyncEventSourcesRequest, ctx: Ctx<TCtxMeta>): Promise<SyncEventSourcesPayload>;\n}\n\n/**\n * Names the **core sales surface** — bidding + media-buy lifecycle. Required\n * for `sales-*` specialisms that own pricing/pacing\n * (`sales-non-guaranteed`, `sales-guaranteed`, `sales-broadcast-tv`,\n * `sales-streaming-tv`, `sales-exchange`, `sales-catalog-driven`,\n * `sales-retail-media`).\n *\n * Walled-garden specialisms whose value surface is asset ingestion\n * (`sales-social`, the `audience-sync` track, pure conversion-tracking\n * adopters) DON'T need to implement these — see {@link SalesIngestionPlatform}.\n *\n * Used by `RequiredPlatformsFor<S>` to pick the right slice of `SalesPlatform`\n * per claimed specialism.\n *\n * @public\n */\nexport type SalesCorePlatform<TCtxMeta = Record<string, unknown>> = Required<\n Pick<\n SalesPlatform<TCtxMeta>,\n 'getProducts' | 'createMediaBuy' | 'updateMediaBuy' | 'getMediaBuyDelivery' | 'getMediaBuys'\n >\n>;\n\n/**\n * Names the **asset-ingestion surface** — sync surfaces for creatives,\n * audiences (via {@link import('./audiences').AudiencePlatform}), catalogs,\n * events, plus the read/feedback tools. Walled-garden specialisms\n * (`sales-social`) live here.\n *\n * Every method is optional individually. Adopters claiming `sales-social`\n * pick whichever ingestion surfaces apply (typically `syncCreatives` +\n * `logEvent` + `syncEventSources`); the rest stay omitted.\n *\n * Used by `RequiredPlatformsFor<S>` so claiming `sales-social` only requires\n * this slice of `SalesPlatform`, not the full {@link SalesCorePlatform}.\n *\n * @public\n */\nexport type SalesIngestionPlatform<TCtxMeta = Record<string, unknown>> = Pick<\n SalesPlatform<TCtxMeta>,\n | 'syncCreatives'\n | 'syncCatalogs'\n | 'syncEventSources'\n | 'logEvent'\n | 'listCreativeFormatsLegacy'\n | 'listCreatives'\n | 'providePerformanceFeedback'\n>;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../../../src/lib/server/decisioning/specialisms/sales.ts"],"sourcesContent":["/**\n * SalesPlatform — sales specialism platform interface.\n *\n * **Unified hybrid shape.** `get_products`, `create_media_buy`, and `sync_creatives` use a\n * single method each. The method returns the wire success arm (sync fast\n * path) OR `ctx.handoffToTask(fn)` to promote the call to a background\n * task (HITL slow path). Branch per-call — the same method handles\n * programmatic remnant, guaranteed inventory, curated discovery, and hybrid\n * sellers. Every other tool is sync-only:\n *\n * - `get_products` — sync OR `ctx.handoffToTask(...)` for curated brief/refine flows.\n * - `create_media_buy` — sync OR `ctx.handoffToTask(...)`.\n * - `update_media_buy` — sync only. Re-approval flows that need HITL run\n * out-of-band; `publishStatusChange` carries the result.\n * - `sync_creatives` — sync OR `ctx.handoffToTask(...)`.\n * - `get_media_buy_delivery` — sync only.\n *\n * Sync-only tools that need long-running semantics use `publishStatusChange`\n * (see `status-changes.ts`) — that's the spec-aligned channel for tools\n * whose wire response unions don't define a Submitted arm.\n *\n * Each method either returns the value or throws `AdcpError` for structured\n * rejection. Generic thrown errors map to `SERVICE_UNAVAILABLE`.\n *\n * **Method groups** — implement the group(s) matching your specialism:\n *\n * | Group | Methods | Claim when |\n * |---|---|---|\n * | Core sales (required) | `getProducts`, `updateMediaBuy`, `getMediaBuyDelivery` | Any `sales-*` specialism |\n * | Core sales (unified hybrid) | `createMediaBuy` | Any `sales-*` specialism |\n * | Core sales (unified hybrid) | `syncCreatives` | Any `sales-*` specialism |\n * | Read / feedback | `getMediaBuys`, `providePerformanceFeedback`, `listCreativeFormats`, `listCreatives` | Most sellers; optional |\n * | Retail-media extensions | `syncCatalogs`, `logEvent`, `syncEventSources` | `sales-catalog-driven`, `sales-retail-media` |\n *\n * New adopters implementing a non-retail seller (GAM, FreeWheel, a social\n * platform) only need the three core-required methods plus `createMediaBuy`\n * and `syncCreatives`. The retail-media extension methods (`syncCatalogs`,\n * `logEvent`, `syncEventSources`) are unnecessary unless you claim\n * `sales-catalog-driven` or `sales-retail-media`.\n *\n * **No-account tools (`providePerformanceFeedback`, `listCreativeFormats`):**\n * the wire requests for these two tools don't carry an `account` field, so\n * `ctx.account` may be `undefined` when `accounts.resolution === 'explicit'`.\n * Three safe patterns:\n *\n * 1. **`'derived'` resolution** — `accounts.resolve(undefined)` returns a\n * singleton; `ctx.account` is always set. Best for single-tenant\n * deployers.\n * 2. **Don't implement the method** — the framework returns\n * `UNSUPPORTED_FEATURE`; buyers using the merge-seam custom handler or\n * external creative agents still receive a response.\n * 3. **Explicit-mode with defensive read** — cast `ctx.account as Account |\n * undefined` and derive the account from the request body (e.g., via a\n * `media_buy_id` lookup), or throw `AdcpError('ACCOUNT_NOT_FOUND')`.\n * Full `resolveAccount(undefined, { authInfo, toolName })` support for\n * explicit-mode lands in rc.1.\n *\n * Status: Preview / 6.0.\n *\n * @public\n */\n\nimport type { Account, NoAccountCtx } from '../account';\nimport type { RequestContext } from '../context';\nimport type { TaskHandoff } from '../async-outcome';\nimport type { ResponseWithSummary } from '../response-summary';\nimport type { RequireCacheScopeWhenProducts, ServerPayload } from '../../../types/server-payload';\nimport type {\n GetProductsRequest,\n GetProductsResponse,\n CreateMediaBuyError,\n CreateMediaBuySuccess,\n UpdateMediaBuySuccess,\n GetMediaBuysRequest,\n GetMediaBuysResponse,\n GetMediaBuyDeliveryRequest,\n GetMediaBuyDeliveryResponse,\n ProvidePerformanceFeedbackRequest,\n ProvidePerformanceFeedbackSuccess,\n ListCreativeFormatsRequest,\n ListCreativeFormatsResponse,\n ListCreativesRequest,\n ListCreativesResponse,\n MediaBuyStatus,\n SyncCatalogsRequest,\n SyncCatalogsSuccess,\n LogEventRequest,\n LogEventSuccess,\n SyncEventSourcesRequest,\n SyncEventSourcesSuccess,\n SyncCreativesError,\n SyncCreativesSuccess,\n} from '../../../types/tools.generated';\nimport type { ProposalRefinementCapabilities } from '../../../negotiation/types';\nimport type { AdcpToolMap } from '../../create-adcp-server';\nimport type {\n CanonicalSyncCreativeAsset,\n CanonicalCreateMediaBuyRequest,\n CanonicalCreativeResponse,\n CanonicalGetProductsRequest,\n CanonicalListCreativesRequest,\n CanonicalListCreativesResponse,\n CanonicalProduct,\n CanonicalUpdateMediaBuyRequest,\n} from '../../../v2/projection/creative-delivery';\nimport type { ProjectionCatalogSnapshot } from '../../../v2/projection/catalog-snapshot';\nimport type { V1ProductInput } from '../../../v2/projection/types';\n\ntype SyncCreative = CanonicalSyncCreativeAsset;\ntype Ctx<TCtxMeta> = RequestContext<Account<TCtxMeta>>;\ntype ExclusivePayload<TLeft, TRight> =\n | (TLeft & { [K in Exclude<keyof TRight, keyof TLeft>]?: never })\n | (TRight & { [K in Exclude<keyof TLeft, keyof TRight>]?: never });\ntype LegacyMediaBuyStatusInput<T> = T & { status?: MediaBuyStatus };\n\nexport type GetProductsProjectionInput = (CanonicalProduct | V1ProductInput) & {\n /** Exact owner-scoped aliases used only while projecting this product; never emitted on the wire. */\n projectionCatalogs?: readonly ProjectionCatalogSnapshot[];\n};\ntype CanonicalGetProductsPayload = Omit<ServerPayload<CanonicalCreativeResponse<GetProductsResponse>>, 'products'> & {\n products?: GetProductsProjectionInput[];\n};\nexport type GetProductsPayload = RequireCacheScopeWhenProducts<CanonicalGetProductsPayload>;\ntype CreateMediaBuySuccessPayload = LegacyMediaBuyStatusInput<\n ServerPayload<CanonicalCreativeResponse<CreateMediaBuySuccess>>\n>;\ntype CreateMediaBuyErrorPayload = ServerPayload<CanonicalCreativeResponse<CreateMediaBuyError>>;\nexport type CreateMediaBuyPayload = ExclusivePayload<CreateMediaBuySuccessPayload, CreateMediaBuyErrorPayload>;\nexport type UpdateMediaBuyPayload = LegacyMediaBuyStatusInput<\n ServerPayload<CanonicalCreativeResponse<UpdateMediaBuySuccess>>\n>;\nexport type GetMediaBuyDeliveryPayload = ServerPayload<CanonicalCreativeResponse<GetMediaBuyDeliveryResponse>>;\nexport type GetMediaBuysPayload = ServerPayload<CanonicalCreativeResponse<GetMediaBuysResponse>>;\nexport type ProvidePerformanceFeedbackPayload = ServerPayload<ProvidePerformanceFeedbackSuccess>;\nexport type LegacyListCreativeFormatsPayload = ServerPayload<ListCreativeFormatsResponse>;\nexport type ListCreativesPayload = ServerPayload<CanonicalListCreativesResponse>;\nexport type LegacyGetProductsPayload = RequireCacheScopeWhenProducts<ServerPayload<GetProductsResponse>>;\nexport type LegacyCreateMediaBuyPayload = ExclusivePayload<\n LegacyMediaBuyStatusInput<ServerPayload<CreateMediaBuySuccess>>,\n ServerPayload<CreateMediaBuyError>\n>;\nexport type LegacyUpdateMediaBuyPayload = LegacyMediaBuyStatusInput<ServerPayload<UpdateMediaBuySuccess>>;\nexport type LegacyGetMediaBuyDeliveryPayload = ServerPayload<GetMediaBuyDeliveryResponse>;\nexport type LegacyGetMediaBuysPayload = ServerPayload<GetMediaBuysResponse>;\nexport type LegacyListCreativesPayload = ServerPayload<ListCreativesResponse>;\nexport type SyncCreativesSuccessPayload = ServerPayload<SyncCreativesSuccess>;\nexport type SyncCreativesErrorPayload = ServerPayload<SyncCreativesError>;\nexport type SyncCreativesPayload = SyncCreativesSuccessPayload | SyncCreativesErrorPayload;\nexport type SyncCatalogsPayload = ServerPayload<SyncCatalogsSuccess>;\nexport type LogEventPayload = ServerPayload<LogEventSuccess>;\nexport type SyncEventSourcesPayload = ServerPayload<SyncEventSourcesSuccess>;\nexport type ListProductsPayload = AdcpToolMap['list_products']['result'];\nexport type RequestProposalsPayload = AdcpToolMap['request_proposals']['result'];\nexport type DeclineProposalsPayload = AdcpToolMap['decline_proposals']['result'];\nexport type BuyProductsPayload = AdcpToolMap['buy_products']['result'];\nexport type AcceptProposalPayload = AdcpToolMap['accept_proposal']['result'];\nexport type ControlMediaBuyPayload = AdcpToolMap['control_media_buy']['result'];\nexport type RefineProposalsPayload = AdcpToolMap['refine_proposals']['result'];\n\n/**\n * Wire success-row shape for `sync_creatives`. Returning the array of these\n * rows from `syncCreatives` is what adopters write — the framework wraps\n * with `{ creatives: [...] }` to form `SyncCreativesSuccess`.\n */\nexport type SyncCreativesRow = SyncCreativesSuccess['creatives'][number];\n/**\n * Native product discovery result. Use `withResponseSummary(payload, text)`\n * for a synchronous MCP text override while the SDK retains payload projection\n * and validation; task handoffs continue to resolve to structured payloads.\n */\nexport type GetProductsHandlerResult =\n | GetProductsPayload\n | ResponseWithSummary<GetProductsPayload>\n | TaskHandoff<GetProductsPayload>;\nexport type CreateMediaBuyHandlerResult = CreateMediaBuyPayload | TaskHandoff<CreateMediaBuySuccessPayload>;\nexport type UpdateMediaBuyHandlerResult = UpdateMediaBuyPayload | TaskHandoff<UpdateMediaBuyPayload>;\nexport type SyncCreativesHandlerResult = SyncCreativesRow[] | TaskHandoff<SyncCreativesRow[]>;\n\ntype CompactLifecycleHandlerResult<T> = T | TaskHandoff<T>;\n\n/**\n * Primary AdCP 3.2 media-buy lifecycle surface.\n *\n * This lives beside {@link SalesPlatform} so SDK 14 adopters can implement\n * the compact protocol without translating it back into deprecated\n * `get_products` / `create_media_buy` / `update_media_buy` methods. Keep a\n * `SalesPlatform` implementation as well when the same deployment must serve\n * legacy 3.0/3.1 buyers; the server advertises only the compact profile to\n * 3.2 MCP discovery while retaining those older call routes.\n *\n * `refineProposals` requires `proposalRefinement` so capability discovery can\n * declare the supported structured refinement dimensions truthfully.\n *\n * @public\n */\nexport interface MediaBuyLifecyclePlatform<TCtxMeta = Record<string, unknown>> {\n proposalRefinement?: ProposalRefinementCapabilities;\n listProducts?(req: AdcpToolMap['list_products']['params'], ctx: Ctx<TCtxMeta>): Promise<ListProductsPayload>;\n requestProposals?(\n req: AdcpToolMap['request_proposals']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<RequestProposalsPayload>>;\n refineProposals?(\n req: AdcpToolMap['refine_proposals']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<RefineProposalsPayload>>;\n declineProposals?(\n req: AdcpToolMap['decline_proposals']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<DeclineProposalsPayload>>;\n buyProducts?(\n req: AdcpToolMap['buy_products']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<BuyProductsPayload>>;\n acceptProposal?(\n req: AdcpToolMap['accept_proposal']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<AcceptProposalPayload>>;\n controlMediaBuy?(\n req: AdcpToolMap['control_media_buy']['params'],\n ctx: Ctx<TCtxMeta>\n ): Promise<CompactLifecycleHandlerResult<ControlMediaBuyPayload>>;\n getMediaBuys?(req: GetMediaBuysRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuysPayload>;\n getMediaBuyDelivery?(filter: GetMediaBuyDeliveryRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuyDeliveryPayload>;\n}\n\nexport type MediaBuyLifecycleCorePlatform<TCtxMeta = Record<string, unknown>> = Required<\n Pick<\n MediaBuyLifecyclePlatform<TCtxMeta>,\n 'listProducts' | 'buyProducts' | 'controlMediaBuy' | 'getMediaBuys' | 'getMediaBuyDelivery'\n >\n>;\n\nexport type MediaBuyLifecycleProposalPlatform<TCtxMeta = Record<string, unknown>> = Required<\n Pick<\n MediaBuyLifecyclePlatform<TCtxMeta>,\n | 'proposalRefinement'\n | 'listProducts'\n | 'requestProposals'\n | 'refineProposals'\n | 'declineProposals'\n | 'acceptProposal'\n | 'getMediaBuys'\n | 'getMediaBuyDelivery'\n >\n>;\n\nexport interface SalesPlatform<TCtxMeta = Record<string, unknown>> {\n // **Method shape — all optional, enforced per-specialism.** Every method on\n // `SalesPlatform` is declared optional so the type accommodates non-media-\n // buy walled gardens (sales-social, audience-sync, sales-proposal-mode)\n // that don't accept inbound media buys but compose ingestion methods on\n // this same surface. Compile-time enforcement of \"you claimed\n // sales-non-guaranteed, therefore you MUST implement getProducts /\n // createMediaBuy / updateMediaBuy / getMediaBuyDelivery / getMediaBuys\"\n // moves up to `RequiredPlatformsFor<S>` — see the {@link SalesCorePlatform}\n // type alias and the per-specialism mapping in `platform.ts`. Runtime\n // enforcement is preserved: the dispatcher returns `UNSUPPORTED_FEATURE`\n // for tools whose method is absent, and `validateSpecialismRequiredTools`\n // throws / warns when a specialism's required tools aren't implemented.\n //\n // Adopters who implement the full media-buy surface keep working — their\n // implementation is a superset of every per-specialism requirement.\n // Adopters who only do ingestion (e.g. a Meta CAPI integration claiming\n // `sales-social`) drop the 5 core stubs without compile errors.\n\n // ── get_products: unified hybrid shape ────────────────────────────\n // get_products is a CATALOG LOOKUP — fast read against the seller's\n // existing inventory. rc8 allows curated brief/refine lookups to return a\n // Submitted arm when the seller needs async enrichment. Adopters express\n // that by returning ctx.handoffToTask(fn); the framework owns task_id\n // allocation, polling state, and optional completion webhook delivery.\n //\n // Wholesale catalog dumps remain sync: if the seller cannot serve the\n // full catalog directly, it should maintain an internal cache and return\n // the current catalog view instead of turning wholesale discovery into a\n // long-running operation.\n /** Catalog discovery: return products directly or hand off curated discovery to a background task. */\n getProducts?(req: CanonicalGetProductsRequest, ctx: Ctx<TCtxMeta>): Promise<GetProductsHandlerResult>;\n\n // ── create_media_buy: unified hybrid shape ──────────────────────────\n\n /**\n * Create a media buy. Return the wire success-arm shape (sync fast path)\n * OR `ctx.handoffToTask(fn)` to promote the call to a background task\n * (HITL slow path). Adopters can branch per-call: hybrid sellers route\n * programmatic remnant sync, guaranteed inventory through HITL, all\n * from the same method.\n *\n * Buyers pattern-match on the wire response shape (`media_buy_id` on\n * the immediate response → sync; `task_id` + `status: 'submitted'` →\n * poll `tasks_get` or receive webhook). Predictable per request,\n * dynamic per call.\n *\n * Status changes flow via `publishStatusChange(...)` regardless of\n * which path was taken.\n *\n * For synchronous domain validation that produces multiple failures,\n * return the pure Error arm (`{ errors: [...] }`) with no success-only\n * fields. Handoff callbacks remain success-only; throw `AdcpError` inside\n * a handoff to transition the task to `failed`.\n *\n * The handoff function's return value is persisted as JSONB in the\n * task registry. Postgres-backed registries cap row size at 4MB —\n * offload large payloads to blob storage and return references.\n *\n * @example Sync-only adopter (no HITL inventory)\n * ```ts\n * createMediaBuy: async (req, ctx) => {\n * return await this.commitSync(req);\n * }\n * ```\n *\n * @example HITL-only adopter (every call goes through trafficker review)\n * ```ts\n * createMediaBuy: async (req, ctx) => {\n * return ctx.handoffToTask(async (taskCtx) => {\n * await taskCtx.update({ message: 'Awaiting trafficker' });\n * return await this.runHITL(req);\n * });\n * }\n * ```\n *\n * @example Hybrid adopter (programmatic + guaranteed in same tenant)\n * ```ts\n * createMediaBuy: async (req, ctx) => {\n * if (this.requiresHITL(req)) {\n * return ctx.handoffToTask(async (taskCtx) => await this.runHITL(req));\n * }\n * return await this.commitSync(req);\n * }\n * ```\n */\n createMediaBuy?(req: CanonicalCreateMediaBuyRequest, ctx: Ctx<TCtxMeta>): Promise<CreateMediaBuyHandlerResult>;\n\n // ── update_media_buy: unified hybrid shape\n /**\n * Update a media buy. Return the patched buy immediately (sync fast path)\n * OR `ctx.handoffToTask(fn)` when the upstream activation or approval flow\n * must continue in the background. The framework owns task registration,\n * caller scoping, polling, and completion webhooks on the handoff path.\n */\n updateMediaBuy?(\n buyId: string,\n patch: CanonicalUpdateMediaBuyRequest,\n ctx: Ctx<TCtxMeta>\n ): Promise<UpdateMediaBuyHandlerResult>;\n\n // ── sync_creatives: unified hybrid shape ────────────────────────────\n\n /**\n * Push creatives. Return the array of wire success rows (sync fast\n * path) OR `ctx.handoffToTask(fn)` to defer to a background task\n * (HITL slow path — manual review, brand-suitability gates, etc.).\n * Hybrid: branch per-batch — auto-approve simple creatives sync,\n * route everything else to HITL.\n *\n * Each row carries `action` (CRUD outcome) and optional `status`\n * (review state). Buyers see mixed `approved` / `pending_review`\n * rows on the sync path; subsequent review changes flow via\n * `publishStatusChange(...)`.\n *\n * @example Hybrid adopter\n * ```ts\n * syncCreatives: async (creatives, ctx) => {\n * if (creatives.some(c => this.needsReview(c))) {\n * return ctx.handoffToTask(async (taskCtx) => {\n * return await this.reviewAndPersist(creatives);\n * });\n * }\n * return creatives.map(c => ({ creative_id: c.creative_id, action: 'created', status: 'approved' }));\n * }\n * ```\n */\n syncCreatives?(creatives: SyncCreative[], ctx: Ctx<TCtxMeta>): Promise<SyncCreativesHandlerResult>;\n\n // ── get_media_buy_delivery: sync only ───────────────────────────────\n\n /**\n * Per-media-buy delivery actuals (impressions, spend, pacing,\n * conversions). Sync — report-running platforms with manual report\n * cycles return the latest cached actuals and emit `delivery_report`\n * status changes via `publishStatusChange` when fresh reports are\n * available.\n *\n * **Multi-id contract.** `filter.media_buy_ids` is an array — buyers\n * routinely request delivery for multiple buys in one call. The\n * platform MUST iterate every id and return one element per id in\n * `media_buy_deliveries[]`. Implementations that read only\n * `media_buy_ids[0]` silently truncate the buyer's request — a\n * correctness bug that has bitten multiple adopters (closes #1342).\n *\n * Pass-through is the framework contract: the platform owns fan-out\n * because `aggregated_totals` requires platform-domain knowledge —\n * `reach` (cross-buy dedup capability), `new_to_brand_rate` (weighted\n * across buys, not a per-buy average), and `frequency` (depends on\n * dedup) cannot be synthesized correctly by a naive framework loop.\n * Sellers that can't compute the cross-buy fields omit them and emit\n * the safely-summable fields (`impressions`, `spend`, `clicks`,\n * `media_buy_count`); buyers fall back to per-buy values when needed.\n *\n * Recommended pattern — prefer the upstream's native multi-id query\n * over a per-id loop. Most reporting APIs (GAM ReportService's\n * `WHERE LINE_ITEM_ID IN (...)`, TTD, DV360, Magnite, PubMatic, retail\n * media) take an id list in one round-trip; iterating one-id-at-a-time\n * is an N-roundtrip pattern that triggers upstream rate limits on\n * 50-buy reports.\n *\n * ```ts\n * getMediaBuyDelivery: async (req, ctx) => {\n * const ids = req.media_buy_ids ?? [];\n * // Native multi-id: one upstream round-trip.\n * const rows = await this.upstream.report({\n * mediaBuyIds: ids,\n * start: req.start_date,\n * end: req.end_date,\n * });\n * return {\n * reporting_period: { start, end },\n * currency: 'USD',\n * media_buy_deliveries: rows,\n * aggregated_totals: this.upstream.aggregate(rows),\n * };\n * }\n * ```\n *\n * **Single-id fallback** — only if your upstream is genuinely single-id:\n *\n * ```ts\n * const deliveries = await Promise.all(ids.map(id => fetchOne(id, ctx)));\n * ```\n *\n * When `media_buy_ids` is omitted, return a paginated set of\n * accessible media buys per the wire schema. `status_filter`\n * defaults to `['active']` when omitted; honor the filter in your\n * iteration.\n */\n getMediaBuyDelivery?(filter: GetMediaBuyDeliveryRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuyDeliveryPayload>;\n\n // ── get_media_buys: sync only — REQUIRED ──────────────────────────────\n // Read tool — buyers fetch a list of their media buys (often filtered by\n // status / time window). Required because:\n // 1. Every seller needs to support reading back what they created.\n // 2. Idempotent retries depend on it (replay safe-by-design).\n // 3. The 6.2 patch-decomposition redesign needs single-id reads;\n // `getMediaBuys` is the foundation.\n // 4. Framework auto-stores returned media buys for hydration on\n // subsequent updateMediaBuy calls (see `hydratePackagesWithProducts`\n // pattern in `from-platform.ts`).\n //\n // Proposal-mode adopters (write-only via push channels) return an empty\n // `media_buys: []` array — that's a valid response.\n /**\n * List media buys this account owns. Filter + pagination per the wire shape.\n *\n * **Multi-id contract.** `req.media_buy_ids` is an array — buyers\n * routinely request a specific set of buys in one call. The platform\n * MUST iterate every id and return one element per id in the response\n * `media_buys[]` array. Reading only `media_buy_ids[0]` silently\n * truncates the buyer's request — same correctness bug that #1342\n * documented for `getMediaBuyDelivery`. Same recommended pattern: prefer\n * an upstream multi-id query (one round-trip), fall back to per-id loop\n * only when the upstream is single-id-only.\n *\n * When `media_buy_ids` is omitted, return a paginated set of accessible\n * buys filtered by `status_filter` (defaults to `['active']`).\n */\n getMediaBuys?(req: GetMediaBuysRequest, ctx: Ctx<TCtxMeta>): Promise<GetMediaBuysPayload>;\n\n // ── provide_performance_feedback: sync only ─────────────────────────\n // Write tool — buyers report aggregate creative-level performance\n // (impressions, clicks, conversions) to help the seller's optimizer learn.\n // Optional because not every sales agent runs an optimizer, but every\n // buyer expects to be able to call it. Framework returns UNSUPPORTED_FEATURE\n // when omitted.\n //\n // ⚠️ NO-ACCOUNT TOOL — `ctx: NoAccountCtx<TCtxMeta>`. The wire request\n // does not carry an `account` field. `ctx.account` may be `undefined` for\n // `'explicit'`-resolution adopters; narrow before reading\n // `ctx.account.ctx_metadata`. See {@link NoAccountCtx} and the\n // `SalesPlatform` JSDoc (\"No-account tools\") for safe patterns.\n /** Accept buyer-side performance signals on a media buy / creative. */\n providePerformanceFeedback?(\n req: ProvidePerformanceFeedbackRequest,\n ctx: NoAccountCtx<TCtxMeta>\n ): Promise<ProvidePerformanceFeedbackPayload>;\n\n // ── list_creative_formats: sync only ────────────────────────────────\n // Discovery tool — buyers query what creative formats this seller\n // accepts. Optional because sellers that delegate to external\n // `creative_agents` (declared in `capabilities.creative_agents[]`) don't\n // own format definitions; framework can resolve from the declared agents.\n // Self-hosted sellers (own creative library) implement this directly.\n //\n // ⚠️ NO-ACCOUNT TOOL — `ctx: NoAccountCtx<TCtxMeta>`. See\n // `providePerformanceFeedback` note above.\n listCreativeFormatsLegacy?(\n req: ListCreativeFormatsRequest,\n ctx: NoAccountCtx<TCtxMeta>\n ): Promise<LegacyListCreativeFormatsPayload>;\n\n // ── list_creatives: sync only ───────────────────────────────────────\n // Read tool — buyers query the seller's creative library. Optional\n // because most sales adopters delegate creative state to the\n // `creative_agents` declared in capabilities; ad-server-style sales\n // platforms implement directly. Note: also lives on `CreativeAdServerPlatform.listCreatives`\n // for the standalone-creative-agent shape.\n listCreatives?(req: CanonicalListCreativesRequest, ctx: Ctx<TCtxMeta>): Promise<ListCreativesPayload>;\n\n // ── sync_catalogs: sync only ────────────────────────────────────────\n // Retail-media catalog sync. Buyers push product catalogs (SKUs, ASINs,\n // store-ids) for `sales-catalog-driven` agents (Amazon, Criteo, Citrusad,\n // Walmart Connect, Shopify ad surfaces). Optional — non-retail sales\n // adopters omit. Idempotent on the buyer's `idempotency_key`.\n syncCatalogs?(req: SyncCatalogsRequest, ctx: Ctx<TCtxMeta>): Promise<SyncCatalogsPayload>;\n\n // ── log_event: sync only ────────────────────────────────────────────\n // Conversion / engagement event logging. Buyers post events tied to\n // a `media_buy_id` for performance attribution. Used by retail-media\n // (post-purchase events) and conversion-tracked sales (Snap pixel,\n // Meta CAPI, LinkedIn conversions API). Optional.\n logEvent?(req: LogEventRequest, ctx: Ctx<TCtxMeta>): Promise<LogEventPayload>;\n\n // ── sync_event_sources: sync only ──────────────────────────────────\n // Register conversion event sources (websites, apps, offline pixel\n // IDs) so subsequent `log_event` calls can be attributed correctly.\n // Optional — adopters who don't expose conversion tracking omit.\n syncEventSources?(req: SyncEventSourcesRequest, ctx: Ctx<TCtxMeta>): Promise<SyncEventSourcesPayload>;\n}\n\n/**\n * Names the **core sales surface** — bidding + media-buy lifecycle. Required\n * for `sales-*` specialisms that own pricing/pacing\n * (`sales-non-guaranteed`, `sales-guaranteed`, `sales-broadcast-tv`,\n * `sales-streaming-tv`, `sales-exchange`, `sales-catalog-driven`,\n * `sales-retail-media`).\n *\n * Walled-garden specialisms whose value surface is asset ingestion\n * (`sales-social`, the `audience-sync` track, pure conversion-tracking\n * adopters) DON'T need to implement these — see {@link SalesIngestionPlatform}.\n *\n * Used by `RequiredPlatformsFor<S>` to pick the right slice of `SalesPlatform`\n * per claimed specialism.\n *\n * @public\n */\nexport type SalesCorePlatform<TCtxMeta = Record<string, unknown>> = Required<\n Pick<\n SalesPlatform<TCtxMeta>,\n 'getProducts' | 'createMediaBuy' | 'updateMediaBuy' | 'getMediaBuyDelivery' | 'getMediaBuys'\n >\n>;\n\n/**\n * Names the **asset-ingestion surface** — sync surfaces for creatives,\n * audiences (via {@link import('./audiences').AudiencePlatform}), catalogs,\n * events, plus the read/feedback tools. Walled-garden specialisms\n * (`sales-social`) live here.\n *\n * Every method is optional individually. Adopters claiming `sales-social`\n * pick whichever ingestion surfaces apply (typically `syncCreatives` +\n * `logEvent` + `syncEventSources`); the rest stay omitted.\n *\n * Used by `RequiredPlatformsFor<S>` so claiming `sales-social` only requires\n * this slice of `SalesPlatform`, not the full {@link SalesCorePlatform}.\n *\n * @public\n */\nexport type SalesIngestionPlatform<TCtxMeta = Record<string, unknown>> = Pick<\n SalesPlatform<TCtxMeta>,\n | 'syncCreatives'\n | 'syncCatalogs'\n | 'syncEventSources'\n | 'logEvent'\n | 'listCreativeFormatsLegacy'\n | 'listCreatives'\n | 'providePerformanceFeedback'\n>;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -63,7 +63,7 @@ export type { TestControllerBridge, TestControllerBridgeContext, BridgeFromSessi
63
63
  export { createIdempotencyStore, probeIdempotencyStore, memoryBackend, pgBackend, getIdempotencyMigration, IDEMPOTENCY_MIGRATION, cleanupExpiredIdempotency, redisBackend, createLazyBackend, hashPayload, IdempotencyClaimOwnershipError, } from './idempotency/index.mjs';
64
64
  export type { IdempotencyStore, IdempotencyStoreConfig, IdempotencyBackend, IdempotencyCacheEntry, IdempotencyCheckResult, MemoryBackendOptions, PgBackendOptions, RedisBackendOptions, RedisBackendClient, RedisLikeClient, LazyBackendFactory, LazyBackendOptions, } from './idempotency/index.mjs';
65
65
  export { createA2AAdapter, A2AInvocationError } from './a2a-adapter.mjs';
66
- export type { A2AAdapter, A2AAdapterOptions, A2AAgentCardOverrides, A2AMountOptions, ExpressAppLike, } from './a2a-adapter.mjs';
66
+ export type { A2AAdapter, A2AAdapterOptions, A2AAgentCardOverrides, A2AAgentCapabilitiesOverride, A2AAgentSkillOverride, A2AMountOptions, ExpressAppLike, LegacyHttpSecurityScheme, LegacySecurityScheme, } from './a2a-adapter.mjs';
67
67
  export { createWebhookEmitter, memoryWebhookDeliveryStore, memoryWebhookKeyStore } from './webhook-emitter.mjs';
68
68
  export { pgWebhookDeliveryStore, pgWebhookDeliveryRecoveryBackend, redisWebhookDeliveryStore, redisWebhookDeliveryRecoveryBackend, getWebhookDeliveryMigration, getWebhookDeliveryRecoveryMigration, WEBHOOK_DELIVERY_MIGRATION, WEBHOOK_DELIVERY_RECOVERY_MIGRATION, createWebhookDeliveryRecovery, pollWebhookDeliveryRecovery, memoryWebhookDeliveryRecoveryBackend, WebhookDeliveryTerminalError, isWebhookDeliveryTerminalError, } from './webhook-delivery/index.mjs';
69
69
  export type { PgWebhookDeliveryStoreOptions, PgWebhookDeliveryRecoveryOptions, RedisWebhookDeliveryStoreOptions, RedisWebhookDeliveryRecoveryOptions, ProtectedWebhookAuthentication, WebhookAuthenticationAdapter, WebhookAuthenticationContext, StoredWebhookDeliverySnapshot, WebhookRecoveryRecord, WebhookRecoveryLease, WebhookRecoveryCheckpointResult, WebhookRecoveryCheckpointOutcome, WebhookDeliveryRecoveryBackend, DurableWebhookDeliveryRecovery, CreateWebhookDeliveryRecoveryOptions, PollWebhookDeliveryRecoveryOptions, } from './webhook-delivery/index.mjs';
@@ -63,7 +63,7 @@ export type { TestControllerBridge, TestControllerBridgeContext, BridgeFromSessi
63
63
  export { createIdempotencyStore, probeIdempotencyStore, memoryBackend, pgBackend, getIdempotencyMigration, IDEMPOTENCY_MIGRATION, cleanupExpiredIdempotency, redisBackend, createLazyBackend, hashPayload, IdempotencyClaimOwnershipError, } from './idempotency';
64
64
  export type { IdempotencyStore, IdempotencyStoreConfig, IdempotencyBackend, IdempotencyCacheEntry, IdempotencyCheckResult, MemoryBackendOptions, PgBackendOptions, RedisBackendOptions, RedisBackendClient, RedisLikeClient, LazyBackendFactory, LazyBackendOptions, } from './idempotency';
65
65
  export { createA2AAdapter, A2AInvocationError } from './a2a-adapter';
66
- export type { A2AAdapter, A2AAdapterOptions, A2AAgentCardOverrides, A2AMountOptions, ExpressAppLike, } from './a2a-adapter';
66
+ export type { A2AAdapter, A2AAdapterOptions, A2AAgentCardOverrides, A2AAgentCapabilitiesOverride, A2AAgentSkillOverride, A2AMountOptions, ExpressAppLike, LegacyHttpSecurityScheme, LegacySecurityScheme, } from './a2a-adapter';
67
67
  export { createWebhookEmitter, memoryWebhookDeliveryStore, memoryWebhookKeyStore } from './webhook-emitter';
68
68
  export { pgWebhookDeliveryStore, pgWebhookDeliveryRecoveryBackend, redisWebhookDeliveryStore, redisWebhookDeliveryRecoveryBackend, getWebhookDeliveryMigration, getWebhookDeliveryRecoveryMigration, WEBHOOK_DELIVERY_MIGRATION, WEBHOOK_DELIVERY_RECOVERY_MIGRATION, createWebhookDeliveryRecovery, pollWebhookDeliveryRecovery, memoryWebhookDeliveryRecoveryBackend, WebhookDeliveryTerminalError, isWebhookDeliveryTerminalError, } from './webhook-delivery';
69
69
  export type { PgWebhookDeliveryStoreOptions, PgWebhookDeliveryRecoveryOptions, RedisWebhookDeliveryStoreOptions, RedisWebhookDeliveryRecoveryOptions, ProtectedWebhookAuthentication, WebhookAuthenticationAdapter, WebhookAuthenticationContext, StoredWebhookDeliverySnapshot, WebhookRecoveryRecord, WebhookRecoveryLease, WebhookRecoveryCheckpointResult, WebhookRecoveryCheckpointOutcome, WebhookDeliveryRecoveryBackend, DurableWebhookDeliveryRecovery, CreateWebhookDeliveryRecoveryOptions, PollWebhookDeliveryRecoveryOptions, } from './webhook-delivery';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrE,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,EAC7B,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAC1F,YAAY,EACV,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;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
1
- {"version":3,"sources":["../../../src/lib/server/index.ts"],"sourcesContent":["export { adcpError } from './errors';\nexport type { AdcpErrorOptions, AdcpErrorPayload, AdcpErrorResponse } from './errors';\n\nexport { normalizeError, normalizeErrors } from './normalize-errors';\nexport type { NormalizedError } from './normalize-errors';\n\nexport { pickSafeDetails } from './pick-safe-details';\nexport type { PickSafeDetailsOptions } from './pick-safe-details';\n\nexport { wrapEnvelope } from './wrap-envelope';\nexport type { WrapEnvelopeOptions } from './wrap-envelope';\n\nexport {\n ERROR_ENVELOPE_FIELD_ALLOWLIST,\n DEFAULT_ERROR_ENVELOPE_FIELDS,\n ADCP_ERROR_FIELD_ALLOWLIST,\n CONFLICT_ADCP_ERROR_ALLOWLIST,\n} from './envelope-allowlist';\n\nexport { scanArgsForCredentials, DEFAULT_CREDENTIAL_PATTERNS } from './credential-policy';\nexport type {\n CredentialPolicy,\n CredentialPolicyMode,\n CredentialPolicyConfig,\n CredentialPatternsConfig,\n} from './credential-policy';\n\nexport { createDynamicRegistry } from './dynamic-registry';\nexport type {\n DynamicRegistry,\n DynamicRegistryConfig,\n DynamicRegistryRegisterOptions,\n PendingRegistries,\n RegistryShape,\n} from './dynamic-registry';\n\nexport { defineOperationalPlatform } from './operational-platform';\nexport type { OperationalPlatform, OperationalContext } from './operational-platform';\n\nexport { pickWireSpecFields, scrubExtensions, WIRE_SPEC_FIELDS } from './wire-safe';\nexport type { WireSafe, WireSpecRequestName, ScrubExtensionsOptions } from './wire-safe';\nexport type { RequireCacheScopeWhenProducts, ServerPayload } from '../types/server-payload';\nexport type {\n ActivateSignalPayload,\n AcquireRightsAcquiredPayload as LegacyAcquireRightsAcquiredPayload,\n AcquireRightsPayload as LegacyAcquireRightsPayload,\n AcquireRightsPendingApprovalPayload as LegacyAcquireRightsPendingApprovalPayload,\n AcquireRightsRejectedPayload as LegacyAcquireRightsRejectedPayload,\n BuildCreativeMultiPayload as LegacyBuildCreativeMultiPayload,\n BuildCreativePayload as LegacyBuildCreativePayload,\n CalibrateContentPayload as LegacyCalibrateContentPayload,\n CheckGovernancePayload,\n CreateCollectionListPayload,\n CreateContentStandardsPayload as LegacyCreateContentStandardsPayload,\n CreateMediaBuyPayload as LegacyCreateMediaBuyPayload,\n CreatePropertyListPayload,\n CreativeApprovalPayload,\n CreativeApprovedPayload,\n CreativePendingReviewPayload,\n CreativeRejectedPayload,\n DeleteCollectionListPayload,\n DeletePropertyListPayload,\n GetAccountFinancialsPayload,\n GetAccountFinancialsSuccessPayload,\n GetAdCPCapabilitiesPayload,\n GetBrandIdentityPayload,\n GetCollectionListPayload,\n GetContentStandardsPayload as LegacyGetContentStandardsPayload,\n GetCreativeDeliveryPayload as LegacyGetCreativeDeliveryPayload,\n GetCreativeFeaturesPayload as LegacyGetCreativeFeaturesPayload,\n GetMediaBuyArtifactsPayload as LegacyGetMediaBuyArtifactsPayload,\n GetMediaBuyDeliveryPayload as LegacyGetMediaBuyDeliveryPayload,\n GetMediaBuysPayload as LegacyGetMediaBuysPayload,\n GetPlanAuditLogsPayload,\n GetProductsPayload as LegacyGetProductsPayload,\n GetPropertyListPayload,\n GetRightsPayload as LegacyGetRightsPayload,\n GetRightsResponsePayload as LegacyGetRightsResponsePayload,\n GetSignalsPayload,\n ListAccountsPayload,\n ListCollectionListsPayload,\n ListContentStandardsPayload as LegacyListContentStandardsPayload,\n ListCreativeFormatsPayload as LegacyListCreativeFormatsPayload,\n ListCreativeFormatsResponsePayload as LegacyListCreativeFormatsResponsePayload,\n ListCreativeFormatsServerPayload as LegacyListCreativeFormatsServerPayload,\n ListCreativesPayload as LegacyListCreativesPayload,\n ListPropertyListsPayload,\n LogEventPayload,\n CanonicalPreviewCreativePayload,\n PreviewCreativePayload as LegacyPreviewCreativePayload,\n ProvidePerformanceFeedbackPayload,\n ReportPlanOutcomePayload,\n ReportUsagePayload,\n SIGetOfferingPayload,\n SIInitiateSessionPayload,\n SISendMessagePayload,\n SITerminateSessionPayload,\n SyncAccountsPayload,\n SyncAccountsSuccessPayload,\n SyncAudiencesPayload,\n SyncCatalogsPayload,\n SyncCreativesErrorPayload,\n SyncCreativesPayload,\n SyncCreativesSuccessPayload,\n SyncEventSourcesPayload,\n SyncGovernancePayload,\n SyncGovernanceSuccessPayload,\n SyncPlansPayload,\n UpdateCollectionListPayload,\n UpdateContentStandardsPayload as LegacyUpdateContentStandardsPayload,\n UpdateMediaBuyPayload as LegacyUpdateMediaBuyPayload,\n UpdatePropertyListPayload,\n UpdateRightsPayload as LegacyUpdateRightsPayload,\n ValidateContentDeliveryPayload as LegacyValidateContentDeliveryPayload,\n} from '../types/server-payload-aliases';\n\nexport { assertNoExampleTlds } from './example-tld-guard';\nexport type { AssertNoExampleTldsOptions } from './example-tld-guard';\n\n// Raw wire response builders remain available only through explicit\n// `legacy*` aliases on this primary barrel. The legacy/v5 subpath preserves\n// their historical names for handler-bag adopters.\nexport {\n capabilitiesResponse as legacyCapabilitiesResponse,\n productsResponse as legacyProductsResponse,\n mediaBuyResponse as legacyMediaBuyResponse,\n deliveryResponse as legacyDeliveryResponse,\n listAccountsResponse as legacyListAccountsResponse,\n listCreativeFormatsResponse as legacyListCreativeFormatsResponse,\n updateMediaBuyResponse as legacyUpdateMediaBuyResponse,\n getMediaBuysResponse as legacyGetMediaBuysResponse,\n performanceFeedbackResponse as legacyPerformanceFeedbackResponse,\n buildCreativeResponse as legacyBuildCreativeResponse,\n buildCreativeMultiResponse as legacyBuildCreativeMultiResponse,\n previewCreativeResponse as legacyPreviewCreativeResponse,\n creativeDeliveryResponse as legacyCreativeDeliveryResponse,\n listCreativesResponse as legacyListCreativesResponse,\n listPropertyListsResponse as legacyListPropertyListsResponse,\n listCollectionListsResponse as legacyListCollectionListsResponse,\n listContentStandardsResponse as legacyListContentStandardsResponse,\n getPlanAuditLogsResponse as legacyGetPlanAuditLogsResponse,\n syncCreativesResponse as legacySyncCreativesResponse,\n getSignalsResponse as legacyGetSignalsResponse,\n activateSignalResponse as legacyActivateSignalResponse,\n cancelMediaBuyResponse as legacyCancelMediaBuyResponse,\n acquireRightsResponse as legacyAcquireRightsResponse,\n acquireRightsAcquired as legacyAcquireRightsAcquired,\n acquireRightsPendingApproval as legacyAcquireRightsPendingApproval,\n acquireRightsRejected as legacyAcquireRightsRejected,\n updateRightsResponse as legacyUpdateRightsResponse,\n updateRightsSuccess as legacyUpdateRightsSuccess,\n creativeApprovalResponse as legacyCreativeApprovalResponse,\n creativeApprovalApproved as legacyCreativeApprovalApproved,\n creativeApprovalRejected as legacyCreativeApprovalRejected,\n creativeApprovalPendingReview as legacyCreativeApprovalPendingReview,\n creativeApprovalError as legacyCreativeApprovalError,\n syncAccountsResponse as legacySyncAccountsResponse,\n syncGovernanceResponse as legacySyncGovernanceResponse,\n reportUsageResponse as legacyReportUsageResponse,\n toStructuredContent,\n} from './responses';\nexport type { McpToolResponse } from './responses';\n\nexport { validActionsForStatus } from './media-buy-helpers';\nexport type { ValidAction, CancelMediaBuyInput } from './media-buy-helpers';\nexport { assertUpdateMediaBuyAllowed } from './media-buy-actions';\nexport type { AssertUpdateMediaBuyAllowedOptions } from './media-buy-actions';\n\nexport { createMediaBuyStore, DEFAULT_MEDIA_BUY_STORE_COLLECTION } from './media-buy-store';\nexport type {\n MediaBuyStore,\n CreateMediaBuyStoreOptions,\n CreateMediaBuyInputForStore,\n CreateMediaBuyResultForStore,\n UpdateMediaBuyInputForStore,\n GetMediaBuysResultForStore,\n} from './media-buy-store';\n\nexport {\n MEDIA_BUY_TRANSITIONS,\n CREATIVE_ASSET_TRANSITIONS,\n isLegalMediaBuyTransition,\n isLegalCreativeTransition,\n assertMediaBuyTransition,\n assertCreativeTransition,\n} from './state-machine';\n\nexport { getAccountMode, isSandboxOrMockAccount, assertSandboxAccount } from './account-mode';\nexport type { AccountMode } from './account-mode';\n\nexport {\n taskToolResponse,\n registerAdcpTaskTool,\n createTaskCapableServer,\n InMemoryTaskStore,\n isTerminal,\n} from './tasks';\nexport type {\n AdcpTaskToolConfig,\n TaskStore,\n TaskMessageQueue,\n CreateTaskOptions,\n ToolTaskHandler,\n CreateTaskRequestHandlerExtra,\n TaskRequestHandlerExtra,\n CreateTaskResult,\n GetTaskResult,\n Task,\n} from './tasks';\n\nexport {\n PostgresTaskStore,\n cleanupExpiredTasks,\n getMcpTasksMigration,\n MCP_TASKS_MIGRATION,\n} from './postgres-task-store';\nexport type { PgQueryable, PostgresTaskStoreOptions } from './postgres-task-store';\n\nexport {\n registerTestController,\n handleTestControllerRequest,\n TestControllerError,\n toMcpResponse,\n TOOL_INPUT_SHAPE,\n CONTROLLER_SCENARIOS,\n DISCOVERY_ARM_SCENARIOS,\n SEED_SCENARIOS,\n SEED_MESSAGES,\n SESSION_ENTRY_CAP,\n enforceMapCap,\n createSeedFixtureCache,\n} from './test-controller';\nexport type {\n TestControllerStore,\n TestControllerStoreFactory,\n TestControllerStoreOrFactory,\n ControllerScenario,\n SeedScenario,\n SeedFixtureCache,\n} from './test-controller';\n\nexport { serve, taskScopeFromPrincipal, UnknownHostError, hostname, resolveHost } from './serve';\nexport type { ServeContext, ServeOptions, ProtectedResourceMetadata } from './serve';\n\nexport { createExpressAdapter } from './express-adapter';\nexport type { ExpressAdapter, ExpressAdapterOptions } from './express-adapter';\n\nexport {\n verifyApiKey,\n verifyBearer,\n anyOf,\n extractBearerToken,\n respondUnauthorized,\n signatureErrorCodeFromCause,\n AuthError,\n AUTH_NEEDS_RAW_BODY,\n tagAuthenticatorNeedsRawBody,\n authenticatorNeedsRawBody,\n AUTH_PRESENCE_GATED,\n tagAuthenticatorPresenceGated,\n isAuthenticatorPresenceGated,\n ADCP_SERVE_REQUEST_CONTEXT,\n getServeRequestContext,\n DEFAULT_JWT_ALGORITHMS,\n DEFAULT_JWT_CLOCK_TOLERANCE_SECONDS,\n} from './auth';\nexport type {\n Authenticator,\n AuthPrincipal,\n AuthResult,\n VerifyApiKeyOptions,\n VerifyBearerOptions,\n RespondUnauthorizedOptions,\n ServeRequestContext,\n} from './auth';\n\nexport { verifyIntrospection } from './auth-introspection';\nexport type {\n VerifyIntrospectionOptions,\n IntrospectionCacheOptions,\n IntrospectionResponse,\n} from './auth-introspection';\n\nexport {\n verifySignatureAsAuthenticator,\n requireSignatureWhenPresent,\n requireAuthenticatedOrSigned,\n mcpToolNameResolver,\n} from './auth-signature';\nexport type {\n VerifySignatureAsAuthenticatorOptions,\n RequireSignatureWhenPresentOptions,\n RequireAuthenticatedOrSignedOptions,\n} from './auth-signature';\n\nexport {\n InMemoryStateStore,\n StateError,\n PatchConflictError,\n DEFAULT_MAX_DOCUMENT_BYTES,\n SESSION_KEY_FIELD,\n createSessionedStore,\n scopedStore,\n patchWithRetry,\n isPutIfMatchConflict,\n validateCollection,\n validateId,\n validatePayloadSize,\n validateWrite,\n} from './state-store';\nexport type {\n AdcpStateStore,\n InMemoryStateStoreOptions,\n ListOptions,\n ListResult,\n PatchWithRetryOptions,\n PutIfMatchResult,\n StateErrorCode,\n VersionedDocument,\n} from './state-store';\n\nexport { PostgresStateStore, getAdcpStateMigration, ADCP_STATE_MIGRATION } from './postgres-state-store';\nexport type { PostgresStateStoreOptions } from './postgres-state-store';\n\nexport { structuredSerialize, structuredDeserialize } from './structured-serialize';\n\nexport { MCP_APP_RESOURCE_MIME_TYPE } from './mcp-app';\nexport type {\n AdcpMcpResourceDefinition,\n McpAppResourceCsp,\n McpAppResourcePermissions,\n McpAppResourceUiMeta,\n McpAppResourceMeta,\n McpAppResourceReadContext,\n} from './mcp-app';\n\n// `createAdcpServer` is NOT re-exported from `@adcp/sdk/server` anymore —\n// LLMs scaffolding from skills consistently latched onto it as the canonical\n// entry point despite the @deprecated JSDoc. Removing the top-level export\n// forces new code to either reach for `createAdcpServerFromPlatform` (the v6\n// canonical) or import from `@adcp/sdk/server/legacy/v5` (mid-migration /\n// escape-hatch only). Breaking change: v5 adopters see a hard import error\n// and update their import path. The migration is one line; the LLM-output\n// quality win is significant. See `docs/migration-5.x-to-6.x.md`.\nexport {\n requireSessionKey,\n ADCP_PRE_TRANSPORT,\n ADCP_SIGNED_REQUESTS_STATE,\n ADCP_INSTRUCTIONS_FN,\n} from './create-adcp-server';\nexport type { SessionContext, OnInstructionsError, MaybePromise, BridgeMarker } from './create-adcp-server';\nexport type {\n AdcpServer,\n AdcpServerComplianceApi,\n AdcpServerTransport,\n AdcpTestRequest,\n AdcpTestToolsCallRequest,\n AdcpTestResponse,\n} from './adcp-server';\n// Handler-bag types describe the raw v5 server surface. Primary-barrel names\n// are explicit Legacy aliases; the legacy/v5 subpath retains the originals.\nexport type {\n AdcpServerConfig as LegacyAdcpServerConfig,\n WebhooksConfig,\n AdcpToolMap as LegacyAdcpToolMap,\n AdcpServerToolName,\n AdcpCapabilitiesConfig,\n AdcpCapabilitiesOverrides,\n AdcpCustomToolConfig as LegacyAdcpCustomToolConfig,\n McpAppUiMeta,\n McpAppMeta,\n AdcpLogger,\n SignedRequestsConfig,\n AdcpPreTransport,\n AdcpSignedRequestsState,\n HandlerContext as LegacyHandlerContext,\n SessionKeyContext,\n MediaBuyHandlers as LegacyMediaBuyHandlers,\n ProposalNegotiationHandlers as LegacyProposalNegotiationHandlers,\n SignalsHandlers as LegacySignalsHandlers,\n CreativeHandlers as LegacyCreativeHandlers,\n GovernanceHandlers as LegacyGovernanceHandlers,\n AccountHandlers as LegacyAccountHandlers,\n EventTrackingHandlers as LegacyEventTrackingHandlers,\n SponsoredIntelligenceHandlers as LegacySponsoredIntelligenceHandlers,\n ResolveAccountContext as LegacyResolveAccountContext,\n} from './create-adcp-server';\n\nexport { DEFAULT_REPORTING_CAPABILITIES } from './product-defaults';\n\nexport {\n isSandboxRequest,\n mergeSeededProductsIntoResponse,\n filterValidSeededProducts,\n filterValidSeededCreatives,\n filterValidSeededMediaBuys,\n filterValidSeededAccounts,\n filterValidSeededAccountFinancials,\n filterValidSeededCreativeFormats,\n mergeSeededCreativesIntoResponse,\n mergeSeededMediaBuysIntoResponse,\n mergeSeededAccountsIntoResponse,\n mergeSeededCreativeFormatsIntoResponse,\n pickSeededAccountFinancialsForRequest,\n replaceAccountFinancialsIfSeeded,\n bridgeFromTestControllerStore,\n bridgeFromSessionStore,\n} from './test-controller-bridge';\nexport type {\n TestControllerBridge,\n TestControllerBridgeContext,\n BridgeFromSessionStoreOptions,\n SeededCreative,\n SeededMediaBuy,\n SeededAccountFinancials,\n} from './test-controller-bridge';\n\nexport {\n createIdempotencyStore,\n probeIdempotencyStore,\n memoryBackend,\n pgBackend,\n getIdempotencyMigration,\n IDEMPOTENCY_MIGRATION,\n cleanupExpiredIdempotency,\n redisBackend,\n createLazyBackend,\n hashPayload,\n IdempotencyClaimOwnershipError,\n} from './idempotency';\nexport type {\n IdempotencyStore,\n IdempotencyStoreConfig,\n IdempotencyBackend,\n IdempotencyCacheEntry,\n IdempotencyCheckResult,\n MemoryBackendOptions,\n PgBackendOptions,\n RedisBackendOptions,\n RedisBackendClient,\n RedisLikeClient,\n LazyBackendFactory,\n LazyBackendOptions,\n} from './idempotency';\n\nexport { createA2AAdapter, A2AInvocationError } from './a2a-adapter';\nexport type {\n A2AAdapter,\n A2AAdapterOptions,\n A2AAgentCardOverrides,\n A2AMountOptions,\n ExpressAppLike,\n} from './a2a-adapter';\n\nexport { createWebhookEmitter, memoryWebhookDeliveryStore, memoryWebhookKeyStore } from './webhook-emitter';\nexport {\n pgWebhookDeliveryStore,\n pgWebhookDeliveryRecoveryBackend,\n redisWebhookDeliveryStore,\n redisWebhookDeliveryRecoveryBackend,\n getWebhookDeliveryMigration,\n getWebhookDeliveryRecoveryMigration,\n WEBHOOK_DELIVERY_MIGRATION,\n WEBHOOK_DELIVERY_RECOVERY_MIGRATION,\n createWebhookDeliveryRecovery,\n pollWebhookDeliveryRecovery,\n memoryWebhookDeliveryRecoveryBackend,\n WebhookDeliveryTerminalError,\n isWebhookDeliveryTerminalError,\n} from './webhook-delivery';\nexport type {\n PgWebhookDeliveryStoreOptions,\n PgWebhookDeliveryRecoveryOptions,\n RedisWebhookDeliveryStoreOptions,\n RedisWebhookDeliveryRecoveryOptions,\n ProtectedWebhookAuthentication,\n WebhookAuthenticationAdapter,\n WebhookAuthenticationContext,\n StoredWebhookDeliverySnapshot,\n WebhookRecoveryRecord,\n WebhookRecoveryLease,\n WebhookRecoveryCheckpointResult,\n WebhookRecoveryCheckpointOutcome,\n WebhookDeliveryRecoveryBackend,\n DurableWebhookDeliveryRecovery,\n CreateWebhookDeliveryRecoveryOptions,\n PollWebhookDeliveryRecoveryOptions,\n} from './webhook-delivery';\nexport type {\n WebhookEmitter,\n RecoverableWebhookEmitter,\n WebhookEmitterOptions,\n WebhookEmitParams,\n WebhookEmitResult,\n WebhookRecoveredDelivery,\n WebhookEmitAttempt,\n WebhookEmitAttemptResult,\n WebhookDeliveryBinding,\n WebhookDeliveryRetired,\n WebhookDeliveryRecord,\n WebhookDeliveryKey,\n WebhookDeliveryProposal,\n WebhookDeliverySnapshot,\n WebhookDeliveryRecovery,\n WebhookDeliveryRecoveryClaim,\n WebhookDeliveryStore,\n WebhookIdempotencyKeyStore,\n WebhookRetryOptions,\n WebhookAuthentication,\n} from './webhook-emitter';\nexport type { SigningProvider } from '../signing/provider';\n\nexport { createPinAndBindFetch, WEBHOOK_SSRF_POLICY, LOOPBACK_OK_WEBHOOK_SSRF_POLICY } from './pin-and-bind-fetch';\nexport type { PinAndBindFetchOptions, DnsLookupAll } from './pin-and-bind-fetch';\n\nexport {\n checkGovernance,\n createAdcpGovernanceEnforcementMiddleware,\n governanceDeniedError,\n governanceUnavailableError,\n} from './governance';\nexport type {\n AdcpGovernanceEnforcementMiddleware,\n CheckGovernanceOptions,\n GovernanceCallResult,\n GovernanceApproved,\n GovernanceDenied,\n GovernanceConditions,\n} from './governance';\n\nexport {\n GovernanceAuthorizationError,\n GovernanceReplayStoreAdapter,\n InMemoryGovernanceReplayStore,\n buildGovernanceExecutionCommitment,\n buildGovernanceExecutionRequest,\n computeGovernedPayloadHash,\n createGovernanceEnforcementMiddleware,\n verifyGovernanceAuthorization,\n} from '../governance';\nexport type {\n BuildGovernanceExecutionRequestInput,\n GovernanceAuthorizationClaims,\n GovernanceAuthorizationErrorCode,\n GovernanceAuthorizationResult,\n GovernanceAuthorizationSuccess,\n GovernanceCommitment,\n GovernanceEnforcementMiddleware,\n GovernanceEnforcementMiddlewareConfig,\n GovernanceEnforcementMiddlewareInput,\n GovernanceReplayStore,\n GovernanceReplayBinding,\n GovernanceRevocationResolver,\n GovernanceRevocationStatus,\n VerifyGovernanceAuthorizationOptions,\n} from '../governance';\n\nexport {\n clearDefaultResolvedListCache,\n createResolvedListCache,\n DEFAULT_RESOLVE_LIST_PAGE_SIZE,\n defaultResolvedListCache,\n resolvePropertyList,\n resolveCollectionList,\n resolvedListCacheKey,\n matchesPropertyList,\n matchesCollectionList,\n} from './targeting-helpers';\nexport type {\n ResolvedListCache,\n ResolvedListCacheEntry,\n ResolvedListCacheValue,\n ResolvedListKind,\n ResolvedPropertyList,\n ResolvedCollectionList,\n ResolvedCollection,\n ResolveListCallTool,\n ResolveListOptions,\n} from './targeting-helpers';\n\n// ---------------------------------------------------------------------------\n// Platform-shaped server entry point (recommended for new agents)\n// ---------------------------------------------------------------------------\n//\n// `createAdcpServerFromPlatform` wraps `createAdcpServer` (the lower-level\n// handler-bag entry above) with compile-time specialism enforcement\n// (`RequiredPlatformsFor<S>`), capability projection, idempotency wiring,\n// async tasks, status normalization, multi-tenant routing, and async task\n// completion webhooks. Synchronous terminal responses remain inline by\n// default. Adopters declare a typed `DecisioningPlatform` per-specialism\n// and the framework wires the rest. See `docs/migration-5.x-to-6.x.md` and\n// `skills/build-decisioning-platform/` for the full walkthrough.\n//\n// Both `createAdcpServer` and `createAdcpServerFromPlatform` live on the\n// same import path so adopters discover them as siblings; pick the\n// function shape that matches your agent. The platform path internally\n// builds an `AdcpServerConfig` and calls `createAdcpServer` — they're\n// not adjacent surfaces, they're parent-child layers of the same SDK.\n//\n// **Pin to v5 long-term?** Import from `@adcp/sdk/server/legacy/v5`\n// instead. The subpath is the stable home for the v5 handler-bag\n// constructor; the top-level re-export here may be removed in a\n// future major. New code should not pin against `legacy/v5` either —\n// reach for `createAdcpServerFromPlatform` first.\nexport * from './decisioning';\nexport {\n createProposalRefinementHandler,\n createProposalSuccessor,\n proposalRefinementScopeFromContext,\n classifyProposalRefinementFailure,\n defineProposalRefinementCapabilities,\n ProposalSellerPreflightError,\n} from '../negotiation/seller';\nexport { proposalTermsDigest, verifyProposalTermsDigest } from '../negotiation/verification';\nexport type {\n ProposalCommercialEvaluator,\n ProposalFailureClassification,\n ProposalEvaluationContext,\n ProposalRefinementHandler,\n ProposalRefinementHandlerOptions,\n ProposalRefinementStore,\n ProposalRefinementTransaction,\n ProposalRefinementScope,\n ProposalSourceExpectation,\n ProposalSourceSnapshot,\n ProposalSuccessorInput,\n} from '../negotiation/seller';\nexport type {\n CanonicalProposal,\n ProposalCommercialTerms,\n ProposalRefinementCapabilities,\n ProposalRefinementResult,\n RefineProposalsRequest,\n RefineProposalsResponse,\n} from '../negotiation/types';\n\n// ---------------------------------------------------------------------------\n// Ctx-metadata store — opaque-blob round-trip for adapter-internal state\n// ---------------------------------------------------------------------------\n//\n// Publishers attach platform-specific opaque blobs to any returned resource\n// (product, media_buy, package, creative, audience, signal, rights_grant);\n// the framework persists by `(account_id, kind, id)`, strips from buyer-\n// facing wire payloads, threads back into the publisher's request context\n// on subsequent calls referencing the same resource ID. See\n// `docs/proposals/decisioning-platform-v6-1-ctx-metadata.md`.\nexport {\n createCtxMetadataStore,\n memoryCtxMetadataStore,\n pgCtxMetadataStore,\n redisCtxMetadataStore,\n getCtxMetadataMigration,\n cleanupExpiredCtxMetadata,\n CTX_METADATA_MIGRATION,\n CtxMetadataValidationError,\n ADCP_INTERNAL_TAG,\n DEFAULT_MAX_VALUE_BYTES,\n MAX_TTL_SECONDS,\n stripCtxMetadata,\n hasCtxMetadata,\n stripImplementationConfig,\n hasImplementationConfig,\n ctxMetadataResultKey,\n scopeCtxMetadataKey,\n} from './ctx-metadata';\nexport type {\n CtxMetadataStore,\n CtxMetadataStoreConfig,\n CtxMetadataBackend,\n CtxMetadataEntry,\n CtxMetadataRef,\n ResourceKind as CtxMetadataResourceKind,\n MemoryCtxMetadataStoreOptions,\n PgCtxMetadataBackendOptions,\n RedisCtxMetadataBackendOptions,\n CtxMetadataRedisBackendClient,\n CtxMetadataRedisLikeClient,\n WireShape,\n} from './ctx-metadata';\n\nexport { createTranslationMap, createUpstreamHttpClient } from './upstream-helpers';\nexport type {\n TranslationMap,\n UpstreamAuth,\n AuthContext,\n UpstreamCallOptions,\n UpstreamHttpClientOptions,\n UpstreamHttpClient,\n UpstreamHttpResult,\n} from './upstream-helpers';\n\n// ---------------------------------------------------------------------------\n// Server-side adapters\n// ---------------------------------------------------------------------------\nexport {\n InMemoryImplicitAccountStore,\n defaultImplicitKeyFn,\n type ImplicitAccountStoreOptions,\n} from '../adapters/implicit-account-store';\n\nexport {\n createOAuthPassthroughResolver,\n type OAuthPassthroughResolverOptions,\n} from '../adapters/oauth-passthrough-resolver';\n\nexport { createRosterAccountStore, type RosterAccountStoreOptions } from '../adapters/roster-account-store';\n\nexport { createDerivedAccountStore, type DerivedAccountStoreOptions } from '../adapters/derived-account-store';\n\n// ---------------------------------------------------------------------------\n// Socket Mode — outbound WebSocket bridge for adopter dev environments\n// ---------------------------------------------------------------------------\nexport {\n ConformanceClient,\n WebSocketTransport,\n type ConformanceClientOptions,\n type ConformanceStatus,\n} from './socket-mode';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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B,gCAKO;AAEP,+BAAoE;AAQpE,8BAAsC;AAStC,kCAA0C;AAG1C,uBAAsE;AA6EtE,+BAAoC;AAMpC,uBAsCO;AAGP,+BAAsC;AAEtC,+BAA4C;AAG5C,6BAAwE;AAUxE,2BAOO;AAEP,0BAA6E;AAG7E,mBAMO;AAcP,iCAKO;AAGP,6BAaO;AAUP,mBAAuF;AAGvF,6BAAqC;AAGrC,kBAkBO;AAWP,gCAAoC;AAOpC,4BAKO;AAOP,yBAcO;AAYP,kCAAgF;AAGhF,kCAA2D;AAE3D,qBAA2C;AAkB3C,gCAKO;AAuCP,8BAA+C;AAE/C,oCAiBO;AAUP,yBAYO;AAgBP,yBAAqD;AASrD,6BAAwF;AACxF,8BAcO;AA2CP,gCAA4F;AAG5F,wBAKO;AAUP,IAAAA,qBASO;AAkBP,+BAUO;AAqCP,2BAAc,0BA5lBd;AA6lBA,oBAOO;AACP,0BAA+D;AAiC/D,0BAkBO;AAgBP,8BAA+D;AAc/D,oCAIO;AAEP,wCAGO;AAEP,kCAAyE;AAEzE,mCAA2E;AAK3E,yBAKO;","names":["import_governance"]}
1
+ {"version":3,"sources":["../../../src/lib/server/index.ts"],"sourcesContent":["export { adcpError } from './errors';\nexport type { AdcpErrorOptions, AdcpErrorPayload, AdcpErrorResponse } from './errors';\n\nexport { normalizeError, normalizeErrors } from './normalize-errors';\nexport type { NormalizedError } from './normalize-errors';\n\nexport { pickSafeDetails } from './pick-safe-details';\nexport type { PickSafeDetailsOptions } from './pick-safe-details';\n\nexport { wrapEnvelope } from './wrap-envelope';\nexport type { WrapEnvelopeOptions } from './wrap-envelope';\n\nexport {\n ERROR_ENVELOPE_FIELD_ALLOWLIST,\n DEFAULT_ERROR_ENVELOPE_FIELDS,\n ADCP_ERROR_FIELD_ALLOWLIST,\n CONFLICT_ADCP_ERROR_ALLOWLIST,\n} from './envelope-allowlist';\n\nexport { scanArgsForCredentials, DEFAULT_CREDENTIAL_PATTERNS } from './credential-policy';\nexport type {\n CredentialPolicy,\n CredentialPolicyMode,\n CredentialPolicyConfig,\n CredentialPatternsConfig,\n} from './credential-policy';\n\nexport { createDynamicRegistry } from './dynamic-registry';\nexport type {\n DynamicRegistry,\n DynamicRegistryConfig,\n DynamicRegistryRegisterOptions,\n PendingRegistries,\n RegistryShape,\n} from './dynamic-registry';\n\nexport { defineOperationalPlatform } from './operational-platform';\nexport type { OperationalPlatform, OperationalContext } from './operational-platform';\n\nexport { pickWireSpecFields, scrubExtensions, WIRE_SPEC_FIELDS } from './wire-safe';\nexport type { WireSafe, WireSpecRequestName, ScrubExtensionsOptions } from './wire-safe';\nexport type { RequireCacheScopeWhenProducts, ServerPayload } from '../types/server-payload';\nexport type {\n ActivateSignalPayload,\n AcquireRightsAcquiredPayload as LegacyAcquireRightsAcquiredPayload,\n AcquireRightsPayload as LegacyAcquireRightsPayload,\n AcquireRightsPendingApprovalPayload as LegacyAcquireRightsPendingApprovalPayload,\n AcquireRightsRejectedPayload as LegacyAcquireRightsRejectedPayload,\n BuildCreativeMultiPayload as LegacyBuildCreativeMultiPayload,\n BuildCreativePayload as LegacyBuildCreativePayload,\n CalibrateContentPayload as LegacyCalibrateContentPayload,\n CheckGovernancePayload,\n CreateCollectionListPayload,\n CreateContentStandardsPayload as LegacyCreateContentStandardsPayload,\n CreateMediaBuyPayload as LegacyCreateMediaBuyPayload,\n CreatePropertyListPayload,\n CreativeApprovalPayload,\n CreativeApprovedPayload,\n CreativePendingReviewPayload,\n CreativeRejectedPayload,\n DeleteCollectionListPayload,\n DeletePropertyListPayload,\n GetAccountFinancialsPayload,\n GetAccountFinancialsSuccessPayload,\n GetAdCPCapabilitiesPayload,\n GetBrandIdentityPayload,\n GetCollectionListPayload,\n GetContentStandardsPayload as LegacyGetContentStandardsPayload,\n GetCreativeDeliveryPayload as LegacyGetCreativeDeliveryPayload,\n GetCreativeFeaturesPayload as LegacyGetCreativeFeaturesPayload,\n GetMediaBuyArtifactsPayload as LegacyGetMediaBuyArtifactsPayload,\n GetMediaBuyDeliveryPayload as LegacyGetMediaBuyDeliveryPayload,\n GetMediaBuysPayload as LegacyGetMediaBuysPayload,\n GetPlanAuditLogsPayload,\n GetProductsPayload as LegacyGetProductsPayload,\n GetPropertyListPayload,\n GetRightsPayload as LegacyGetRightsPayload,\n GetRightsResponsePayload as LegacyGetRightsResponsePayload,\n GetSignalsPayload,\n ListAccountsPayload,\n ListCollectionListsPayload,\n ListContentStandardsPayload as LegacyListContentStandardsPayload,\n ListCreativeFormatsPayload as LegacyListCreativeFormatsPayload,\n ListCreativeFormatsResponsePayload as LegacyListCreativeFormatsResponsePayload,\n ListCreativeFormatsServerPayload as LegacyListCreativeFormatsServerPayload,\n ListCreativesPayload as LegacyListCreativesPayload,\n ListPropertyListsPayload,\n LogEventPayload,\n CanonicalPreviewCreativePayload,\n PreviewCreativePayload as LegacyPreviewCreativePayload,\n ProvidePerformanceFeedbackPayload,\n ReportPlanOutcomePayload,\n ReportUsagePayload,\n SIGetOfferingPayload,\n SIInitiateSessionPayload,\n SISendMessagePayload,\n SITerminateSessionPayload,\n SyncAccountsPayload,\n SyncAccountsSuccessPayload,\n SyncAudiencesPayload,\n SyncCatalogsPayload,\n SyncCreativesErrorPayload,\n SyncCreativesPayload,\n SyncCreativesSuccessPayload,\n SyncEventSourcesPayload,\n SyncGovernancePayload,\n SyncGovernanceSuccessPayload,\n SyncPlansPayload,\n UpdateCollectionListPayload,\n UpdateContentStandardsPayload as LegacyUpdateContentStandardsPayload,\n UpdateMediaBuyPayload as LegacyUpdateMediaBuyPayload,\n UpdatePropertyListPayload,\n UpdateRightsPayload as LegacyUpdateRightsPayload,\n ValidateContentDeliveryPayload as LegacyValidateContentDeliveryPayload,\n} from '../types/server-payload-aliases';\n\nexport { assertNoExampleTlds } from './example-tld-guard';\nexport type { AssertNoExampleTldsOptions } from './example-tld-guard';\n\n// Raw wire response builders remain available only through explicit\n// `legacy*` aliases on this primary barrel. The legacy/v5 subpath preserves\n// their historical names for handler-bag adopters.\nexport {\n capabilitiesResponse as legacyCapabilitiesResponse,\n productsResponse as legacyProductsResponse,\n mediaBuyResponse as legacyMediaBuyResponse,\n deliveryResponse as legacyDeliveryResponse,\n listAccountsResponse as legacyListAccountsResponse,\n listCreativeFormatsResponse as legacyListCreativeFormatsResponse,\n updateMediaBuyResponse as legacyUpdateMediaBuyResponse,\n getMediaBuysResponse as legacyGetMediaBuysResponse,\n performanceFeedbackResponse as legacyPerformanceFeedbackResponse,\n buildCreativeResponse as legacyBuildCreativeResponse,\n buildCreativeMultiResponse as legacyBuildCreativeMultiResponse,\n previewCreativeResponse as legacyPreviewCreativeResponse,\n creativeDeliveryResponse as legacyCreativeDeliveryResponse,\n listCreativesResponse as legacyListCreativesResponse,\n listPropertyListsResponse as legacyListPropertyListsResponse,\n listCollectionListsResponse as legacyListCollectionListsResponse,\n listContentStandardsResponse as legacyListContentStandardsResponse,\n getPlanAuditLogsResponse as legacyGetPlanAuditLogsResponse,\n syncCreativesResponse as legacySyncCreativesResponse,\n getSignalsResponse as legacyGetSignalsResponse,\n activateSignalResponse as legacyActivateSignalResponse,\n cancelMediaBuyResponse as legacyCancelMediaBuyResponse,\n acquireRightsResponse as legacyAcquireRightsResponse,\n acquireRightsAcquired as legacyAcquireRightsAcquired,\n acquireRightsPendingApproval as legacyAcquireRightsPendingApproval,\n acquireRightsRejected as legacyAcquireRightsRejected,\n updateRightsResponse as legacyUpdateRightsResponse,\n updateRightsSuccess as legacyUpdateRightsSuccess,\n creativeApprovalResponse as legacyCreativeApprovalResponse,\n creativeApprovalApproved as legacyCreativeApprovalApproved,\n creativeApprovalRejected as legacyCreativeApprovalRejected,\n creativeApprovalPendingReview as legacyCreativeApprovalPendingReview,\n creativeApprovalError as legacyCreativeApprovalError,\n syncAccountsResponse as legacySyncAccountsResponse,\n syncGovernanceResponse as legacySyncGovernanceResponse,\n reportUsageResponse as legacyReportUsageResponse,\n toStructuredContent,\n} from './responses';\nexport type { McpToolResponse } from './responses';\n\nexport { validActionsForStatus } from './media-buy-helpers';\nexport type { ValidAction, CancelMediaBuyInput } from './media-buy-helpers';\nexport { assertUpdateMediaBuyAllowed } from './media-buy-actions';\nexport type { AssertUpdateMediaBuyAllowedOptions } from './media-buy-actions';\n\nexport { createMediaBuyStore, DEFAULT_MEDIA_BUY_STORE_COLLECTION } from './media-buy-store';\nexport type {\n MediaBuyStore,\n CreateMediaBuyStoreOptions,\n CreateMediaBuyInputForStore,\n CreateMediaBuyResultForStore,\n UpdateMediaBuyInputForStore,\n GetMediaBuysResultForStore,\n} from './media-buy-store';\n\nexport {\n MEDIA_BUY_TRANSITIONS,\n CREATIVE_ASSET_TRANSITIONS,\n isLegalMediaBuyTransition,\n isLegalCreativeTransition,\n assertMediaBuyTransition,\n assertCreativeTransition,\n} from './state-machine';\n\nexport { getAccountMode, isSandboxOrMockAccount, assertSandboxAccount } from './account-mode';\nexport type { AccountMode } from './account-mode';\n\nexport {\n taskToolResponse,\n registerAdcpTaskTool,\n createTaskCapableServer,\n InMemoryTaskStore,\n isTerminal,\n} from './tasks';\nexport type {\n AdcpTaskToolConfig,\n TaskStore,\n TaskMessageQueue,\n CreateTaskOptions,\n ToolTaskHandler,\n CreateTaskRequestHandlerExtra,\n TaskRequestHandlerExtra,\n CreateTaskResult,\n GetTaskResult,\n Task,\n} from './tasks';\n\nexport {\n PostgresTaskStore,\n cleanupExpiredTasks,\n getMcpTasksMigration,\n MCP_TASKS_MIGRATION,\n} from './postgres-task-store';\nexport type { PgQueryable, PostgresTaskStoreOptions } from './postgres-task-store';\n\nexport {\n registerTestController,\n handleTestControllerRequest,\n TestControllerError,\n toMcpResponse,\n TOOL_INPUT_SHAPE,\n CONTROLLER_SCENARIOS,\n DISCOVERY_ARM_SCENARIOS,\n SEED_SCENARIOS,\n SEED_MESSAGES,\n SESSION_ENTRY_CAP,\n enforceMapCap,\n createSeedFixtureCache,\n} from './test-controller';\nexport type {\n TestControllerStore,\n TestControllerStoreFactory,\n TestControllerStoreOrFactory,\n ControllerScenario,\n SeedScenario,\n SeedFixtureCache,\n} from './test-controller';\n\nexport { serve, taskScopeFromPrincipal, UnknownHostError, hostname, resolveHost } from './serve';\nexport type { ServeContext, ServeOptions, ProtectedResourceMetadata } from './serve';\n\nexport { createExpressAdapter } from './express-adapter';\nexport type { ExpressAdapter, ExpressAdapterOptions } from './express-adapter';\n\nexport {\n verifyApiKey,\n verifyBearer,\n anyOf,\n extractBearerToken,\n respondUnauthorized,\n signatureErrorCodeFromCause,\n AuthError,\n AUTH_NEEDS_RAW_BODY,\n tagAuthenticatorNeedsRawBody,\n authenticatorNeedsRawBody,\n AUTH_PRESENCE_GATED,\n tagAuthenticatorPresenceGated,\n isAuthenticatorPresenceGated,\n ADCP_SERVE_REQUEST_CONTEXT,\n getServeRequestContext,\n DEFAULT_JWT_ALGORITHMS,\n DEFAULT_JWT_CLOCK_TOLERANCE_SECONDS,\n} from './auth';\nexport type {\n Authenticator,\n AuthPrincipal,\n AuthResult,\n VerifyApiKeyOptions,\n VerifyBearerOptions,\n RespondUnauthorizedOptions,\n ServeRequestContext,\n} from './auth';\n\nexport { verifyIntrospection } from './auth-introspection';\nexport type {\n VerifyIntrospectionOptions,\n IntrospectionCacheOptions,\n IntrospectionResponse,\n} from './auth-introspection';\n\nexport {\n verifySignatureAsAuthenticator,\n requireSignatureWhenPresent,\n requireAuthenticatedOrSigned,\n mcpToolNameResolver,\n} from './auth-signature';\nexport type {\n VerifySignatureAsAuthenticatorOptions,\n RequireSignatureWhenPresentOptions,\n RequireAuthenticatedOrSignedOptions,\n} from './auth-signature';\n\nexport {\n InMemoryStateStore,\n StateError,\n PatchConflictError,\n DEFAULT_MAX_DOCUMENT_BYTES,\n SESSION_KEY_FIELD,\n createSessionedStore,\n scopedStore,\n patchWithRetry,\n isPutIfMatchConflict,\n validateCollection,\n validateId,\n validatePayloadSize,\n validateWrite,\n} from './state-store';\nexport type {\n AdcpStateStore,\n InMemoryStateStoreOptions,\n ListOptions,\n ListResult,\n PatchWithRetryOptions,\n PutIfMatchResult,\n StateErrorCode,\n VersionedDocument,\n} from './state-store';\n\nexport { PostgresStateStore, getAdcpStateMigration, ADCP_STATE_MIGRATION } from './postgres-state-store';\nexport type { PostgresStateStoreOptions } from './postgres-state-store';\n\nexport { structuredSerialize, structuredDeserialize } from './structured-serialize';\n\nexport { MCP_APP_RESOURCE_MIME_TYPE } from './mcp-app';\nexport type {\n AdcpMcpResourceDefinition,\n McpAppResourceCsp,\n McpAppResourcePermissions,\n McpAppResourceUiMeta,\n McpAppResourceMeta,\n McpAppResourceReadContext,\n} from './mcp-app';\n\n// `createAdcpServer` is NOT re-exported from `@adcp/sdk/server` anymore —\n// LLMs scaffolding from skills consistently latched onto it as the canonical\n// entry point despite the @deprecated JSDoc. Removing the top-level export\n// forces new code to either reach for `createAdcpServerFromPlatform` (the v6\n// canonical) or import from `@adcp/sdk/server/legacy/v5` (mid-migration /\n// escape-hatch only). Breaking change: v5 adopters see a hard import error\n// and update their import path. The migration is one line; the LLM-output\n// quality win is significant. See `docs/migration-5.x-to-6.x.md`.\nexport {\n requireSessionKey,\n ADCP_PRE_TRANSPORT,\n ADCP_SIGNED_REQUESTS_STATE,\n ADCP_INSTRUCTIONS_FN,\n} from './create-adcp-server';\nexport type { SessionContext, OnInstructionsError, MaybePromise, BridgeMarker } from './create-adcp-server';\nexport type {\n AdcpServer,\n AdcpServerComplianceApi,\n AdcpServerTransport,\n AdcpTestRequest,\n AdcpTestToolsCallRequest,\n AdcpTestResponse,\n} from './adcp-server';\n// Handler-bag types describe the raw v5 server surface. Primary-barrel names\n// are explicit Legacy aliases; the legacy/v5 subpath retains the originals.\nexport type {\n AdcpServerConfig as LegacyAdcpServerConfig,\n WebhooksConfig,\n AdcpToolMap as LegacyAdcpToolMap,\n AdcpServerToolName,\n AdcpCapabilitiesConfig,\n AdcpCapabilitiesOverrides,\n AdcpCustomToolConfig as LegacyAdcpCustomToolConfig,\n McpAppUiMeta,\n McpAppMeta,\n AdcpLogger,\n SignedRequestsConfig,\n AdcpPreTransport,\n AdcpSignedRequestsState,\n HandlerContext as LegacyHandlerContext,\n SessionKeyContext,\n MediaBuyHandlers as LegacyMediaBuyHandlers,\n ProposalNegotiationHandlers as LegacyProposalNegotiationHandlers,\n SignalsHandlers as LegacySignalsHandlers,\n CreativeHandlers as LegacyCreativeHandlers,\n GovernanceHandlers as LegacyGovernanceHandlers,\n AccountHandlers as LegacyAccountHandlers,\n EventTrackingHandlers as LegacyEventTrackingHandlers,\n SponsoredIntelligenceHandlers as LegacySponsoredIntelligenceHandlers,\n ResolveAccountContext as LegacyResolveAccountContext,\n} from './create-adcp-server';\n\nexport { DEFAULT_REPORTING_CAPABILITIES } from './product-defaults';\n\nexport {\n isSandboxRequest,\n mergeSeededProductsIntoResponse,\n filterValidSeededProducts,\n filterValidSeededCreatives,\n filterValidSeededMediaBuys,\n filterValidSeededAccounts,\n filterValidSeededAccountFinancials,\n filterValidSeededCreativeFormats,\n mergeSeededCreativesIntoResponse,\n mergeSeededMediaBuysIntoResponse,\n mergeSeededAccountsIntoResponse,\n mergeSeededCreativeFormatsIntoResponse,\n pickSeededAccountFinancialsForRequest,\n replaceAccountFinancialsIfSeeded,\n bridgeFromTestControllerStore,\n bridgeFromSessionStore,\n} from './test-controller-bridge';\nexport type {\n TestControllerBridge,\n TestControllerBridgeContext,\n BridgeFromSessionStoreOptions,\n SeededCreative,\n SeededMediaBuy,\n SeededAccountFinancials,\n} from './test-controller-bridge';\n\nexport {\n createIdempotencyStore,\n probeIdempotencyStore,\n memoryBackend,\n pgBackend,\n getIdempotencyMigration,\n IDEMPOTENCY_MIGRATION,\n cleanupExpiredIdempotency,\n redisBackend,\n createLazyBackend,\n hashPayload,\n IdempotencyClaimOwnershipError,\n} from './idempotency';\nexport type {\n IdempotencyStore,\n IdempotencyStoreConfig,\n IdempotencyBackend,\n IdempotencyCacheEntry,\n IdempotencyCheckResult,\n MemoryBackendOptions,\n PgBackendOptions,\n RedisBackendOptions,\n RedisBackendClient,\n RedisLikeClient,\n LazyBackendFactory,\n LazyBackendOptions,\n} from './idempotency';\n\nexport { createA2AAdapter, A2AInvocationError } from './a2a-adapter';\nexport type {\n A2AAdapter,\n A2AAdapterOptions,\n A2AAgentCardOverrides,\n A2AAgentCapabilitiesOverride,\n A2AAgentSkillOverride,\n A2AMountOptions,\n ExpressAppLike,\n LegacyHttpSecurityScheme,\n LegacySecurityScheme,\n} from './a2a-adapter';\n\nexport { createWebhookEmitter, memoryWebhookDeliveryStore, memoryWebhookKeyStore } from './webhook-emitter';\nexport {\n pgWebhookDeliveryStore,\n pgWebhookDeliveryRecoveryBackend,\n redisWebhookDeliveryStore,\n redisWebhookDeliveryRecoveryBackend,\n getWebhookDeliveryMigration,\n getWebhookDeliveryRecoveryMigration,\n WEBHOOK_DELIVERY_MIGRATION,\n WEBHOOK_DELIVERY_RECOVERY_MIGRATION,\n createWebhookDeliveryRecovery,\n pollWebhookDeliveryRecovery,\n memoryWebhookDeliveryRecoveryBackend,\n WebhookDeliveryTerminalError,\n isWebhookDeliveryTerminalError,\n} from './webhook-delivery';\nexport type {\n PgWebhookDeliveryStoreOptions,\n PgWebhookDeliveryRecoveryOptions,\n RedisWebhookDeliveryStoreOptions,\n RedisWebhookDeliveryRecoveryOptions,\n ProtectedWebhookAuthentication,\n WebhookAuthenticationAdapter,\n WebhookAuthenticationContext,\n StoredWebhookDeliverySnapshot,\n WebhookRecoveryRecord,\n WebhookRecoveryLease,\n WebhookRecoveryCheckpointResult,\n WebhookRecoveryCheckpointOutcome,\n WebhookDeliveryRecoveryBackend,\n DurableWebhookDeliveryRecovery,\n CreateWebhookDeliveryRecoveryOptions,\n PollWebhookDeliveryRecoveryOptions,\n} from './webhook-delivery';\nexport type {\n WebhookEmitter,\n RecoverableWebhookEmitter,\n WebhookEmitterOptions,\n WebhookEmitParams,\n WebhookEmitResult,\n WebhookRecoveredDelivery,\n WebhookEmitAttempt,\n WebhookEmitAttemptResult,\n WebhookDeliveryBinding,\n WebhookDeliveryRetired,\n WebhookDeliveryRecord,\n WebhookDeliveryKey,\n WebhookDeliveryProposal,\n WebhookDeliverySnapshot,\n WebhookDeliveryRecovery,\n WebhookDeliveryRecoveryClaim,\n WebhookDeliveryStore,\n WebhookIdempotencyKeyStore,\n WebhookRetryOptions,\n WebhookAuthentication,\n} from './webhook-emitter';\nexport type { SigningProvider } from '../signing/provider';\n\nexport { createPinAndBindFetch, WEBHOOK_SSRF_POLICY, LOOPBACK_OK_WEBHOOK_SSRF_POLICY } from './pin-and-bind-fetch';\nexport type { PinAndBindFetchOptions, DnsLookupAll } from './pin-and-bind-fetch';\n\nexport {\n checkGovernance,\n createAdcpGovernanceEnforcementMiddleware,\n governanceDeniedError,\n governanceUnavailableError,\n} from './governance';\nexport type {\n AdcpGovernanceEnforcementMiddleware,\n CheckGovernanceOptions,\n GovernanceCallResult,\n GovernanceApproved,\n GovernanceDenied,\n GovernanceConditions,\n} from './governance';\n\nexport {\n GovernanceAuthorizationError,\n GovernanceReplayStoreAdapter,\n InMemoryGovernanceReplayStore,\n buildGovernanceExecutionCommitment,\n buildGovernanceExecutionRequest,\n computeGovernedPayloadHash,\n createGovernanceEnforcementMiddleware,\n verifyGovernanceAuthorization,\n} from '../governance';\nexport type {\n BuildGovernanceExecutionRequestInput,\n GovernanceAuthorizationClaims,\n GovernanceAuthorizationErrorCode,\n GovernanceAuthorizationResult,\n GovernanceAuthorizationSuccess,\n GovernanceCommitment,\n GovernanceEnforcementMiddleware,\n GovernanceEnforcementMiddlewareConfig,\n GovernanceEnforcementMiddlewareInput,\n GovernanceReplayStore,\n GovernanceReplayBinding,\n GovernanceRevocationResolver,\n GovernanceRevocationStatus,\n VerifyGovernanceAuthorizationOptions,\n} from '../governance';\n\nexport {\n clearDefaultResolvedListCache,\n createResolvedListCache,\n DEFAULT_RESOLVE_LIST_PAGE_SIZE,\n defaultResolvedListCache,\n resolvePropertyList,\n resolveCollectionList,\n resolvedListCacheKey,\n matchesPropertyList,\n matchesCollectionList,\n} from './targeting-helpers';\nexport type {\n ResolvedListCache,\n ResolvedListCacheEntry,\n ResolvedListCacheValue,\n ResolvedListKind,\n ResolvedPropertyList,\n ResolvedCollectionList,\n ResolvedCollection,\n ResolveListCallTool,\n ResolveListOptions,\n} from './targeting-helpers';\n\n// ---------------------------------------------------------------------------\n// Platform-shaped server entry point (recommended for new agents)\n// ---------------------------------------------------------------------------\n//\n// `createAdcpServerFromPlatform` wraps `createAdcpServer` (the lower-level\n// handler-bag entry above) with compile-time specialism enforcement\n// (`RequiredPlatformsFor<S>`), capability projection, idempotency wiring,\n// async tasks, status normalization, multi-tenant routing, and async task\n// completion webhooks. Synchronous terminal responses remain inline by\n// default. Adopters declare a typed `DecisioningPlatform` per-specialism\n// and the framework wires the rest. See `docs/migration-5.x-to-6.x.md` and\n// `skills/build-decisioning-platform/` for the full walkthrough.\n//\n// Both `createAdcpServer` and `createAdcpServerFromPlatform` live on the\n// same import path so adopters discover them as siblings; pick the\n// function shape that matches your agent. The platform path internally\n// builds an `AdcpServerConfig` and calls `createAdcpServer` — they're\n// not adjacent surfaces, they're parent-child layers of the same SDK.\n//\n// **Pin to v5 long-term?** Import from `@adcp/sdk/server/legacy/v5`\n// instead. The subpath is the stable home for the v5 handler-bag\n// constructor; the top-level re-export here may be removed in a\n// future major. New code should not pin against `legacy/v5` either —\n// reach for `createAdcpServerFromPlatform` first.\nexport * from './decisioning';\nexport {\n createProposalRefinementHandler,\n createProposalSuccessor,\n proposalRefinementScopeFromContext,\n classifyProposalRefinementFailure,\n defineProposalRefinementCapabilities,\n ProposalSellerPreflightError,\n} from '../negotiation/seller';\nexport { proposalTermsDigest, verifyProposalTermsDigest } from '../negotiation/verification';\nexport type {\n ProposalCommercialEvaluator,\n ProposalFailureClassification,\n ProposalEvaluationContext,\n ProposalRefinementHandler,\n ProposalRefinementHandlerOptions,\n ProposalRefinementStore,\n ProposalRefinementTransaction,\n ProposalRefinementScope,\n ProposalSourceExpectation,\n ProposalSourceSnapshot,\n ProposalSuccessorInput,\n} from '../negotiation/seller';\nexport type {\n CanonicalProposal,\n ProposalCommercialTerms,\n ProposalRefinementCapabilities,\n ProposalRefinementResult,\n RefineProposalsRequest,\n RefineProposalsResponse,\n} from '../negotiation/types';\n\n// ---------------------------------------------------------------------------\n// Ctx-metadata store — opaque-blob round-trip for adapter-internal state\n// ---------------------------------------------------------------------------\n//\n// Publishers attach platform-specific opaque blobs to any returned resource\n// (product, media_buy, package, creative, audience, signal, rights_grant);\n// the framework persists by `(account_id, kind, id)`, strips from buyer-\n// facing wire payloads, threads back into the publisher's request context\n// on subsequent calls referencing the same resource ID. See\n// `docs/proposals/decisioning-platform-v6-1-ctx-metadata.md`.\nexport {\n createCtxMetadataStore,\n memoryCtxMetadataStore,\n pgCtxMetadataStore,\n redisCtxMetadataStore,\n getCtxMetadataMigration,\n cleanupExpiredCtxMetadata,\n CTX_METADATA_MIGRATION,\n CtxMetadataValidationError,\n ADCP_INTERNAL_TAG,\n DEFAULT_MAX_VALUE_BYTES,\n MAX_TTL_SECONDS,\n stripCtxMetadata,\n hasCtxMetadata,\n stripImplementationConfig,\n hasImplementationConfig,\n ctxMetadataResultKey,\n scopeCtxMetadataKey,\n} from './ctx-metadata';\nexport type {\n CtxMetadataStore,\n CtxMetadataStoreConfig,\n CtxMetadataBackend,\n CtxMetadataEntry,\n CtxMetadataRef,\n ResourceKind as CtxMetadataResourceKind,\n MemoryCtxMetadataStoreOptions,\n PgCtxMetadataBackendOptions,\n RedisCtxMetadataBackendOptions,\n CtxMetadataRedisBackendClient,\n CtxMetadataRedisLikeClient,\n WireShape,\n} from './ctx-metadata';\n\nexport { createTranslationMap, createUpstreamHttpClient } from './upstream-helpers';\nexport type {\n TranslationMap,\n UpstreamAuth,\n AuthContext,\n UpstreamCallOptions,\n UpstreamHttpClientOptions,\n UpstreamHttpClient,\n UpstreamHttpResult,\n} from './upstream-helpers';\n\n// ---------------------------------------------------------------------------\n// Server-side adapters\n// ---------------------------------------------------------------------------\nexport {\n InMemoryImplicitAccountStore,\n defaultImplicitKeyFn,\n type ImplicitAccountStoreOptions,\n} from '../adapters/implicit-account-store';\n\nexport {\n createOAuthPassthroughResolver,\n type OAuthPassthroughResolverOptions,\n} from '../adapters/oauth-passthrough-resolver';\n\nexport { createRosterAccountStore, type RosterAccountStoreOptions } from '../adapters/roster-account-store';\n\nexport { createDerivedAccountStore, type DerivedAccountStoreOptions } from '../adapters/derived-account-store';\n\n// ---------------------------------------------------------------------------\n// Socket Mode — outbound WebSocket bridge for adopter dev environments\n// ---------------------------------------------------------------------------\nexport {\n ConformanceClient,\n WebSocketTransport,\n type ConformanceClientOptions,\n type ConformanceStatus,\n} from './socket-mode';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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