@adcp/sdk 6.7.0 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ADCP_VERSION +1 -1
- package/bin/adcp.js +15 -3
- package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/inventory_list_targeting.yaml +5 -0
- package/compliance/cache/{3.0.5 → 3.0.6}/index.json +2 -2
- package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/inventory_list_targeting.yaml +5 -0
- package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/sales-guaranteed/index.yaml +1 -1
- package/compliance/cache/{3.0.5 → 3.0.6}/universal/storyboard-schema.yaml +15 -0
- package/dist/lib/adapters/derived-account-store.d.ts +152 -0
- package/dist/lib/adapters/derived-account-store.d.ts.map +1 -0
- package/dist/lib/adapters/derived-account-store.js +135 -0
- package/dist/lib/adapters/derived-account-store.js.map +1 -0
- package/dist/lib/adapters/implicit-account-store.d.ts +3 -1
- package/dist/lib/adapters/implicit-account-store.d.ts.map +1 -1
- package/dist/lib/adapters/implicit-account-store.js +3 -1
- package/dist/lib/adapters/implicit-account-store.js.map +1 -1
- package/dist/lib/adapters/index.d.ts +1 -0
- package/dist/lib/adapters/index.d.ts.map +1 -1
- package/dist/lib/adapters/index.js +7 -1
- package/dist/lib/adapters/index.js.map +1 -1
- package/dist/lib/adapters/oauth-passthrough-resolver.d.ts +3 -1
- package/dist/lib/adapters/oauth-passthrough-resolver.d.ts.map +1 -1
- package/dist/lib/adapters/oauth-passthrough-resolver.js +3 -1
- package/dist/lib/adapters/oauth-passthrough-resolver.js.map +1 -1
- package/dist/lib/adapters/roster-account-store.d.ts +85 -24
- package/dist/lib/adapters/roster-account-store.d.ts.map +1 -1
- package/dist/lib/adapters/roster-account-store.js +52 -30
- package/dist/lib/adapters/roster-account-store.js.map +1 -1
- package/dist/lib/core/AgentClient.d.ts.map +1 -1
- package/dist/lib/core/AgentClient.js +20 -0
- package/dist/lib/core/AgentClient.js.map +1 -1
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +13 -8
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/mock-server/creative-ad-server/seed-data.d.ts +81 -0
- package/dist/lib/mock-server/creative-ad-server/seed-data.d.ts.map +1 -0
- package/dist/lib/mock-server/creative-ad-server/seed-data.js +200 -0
- package/dist/lib/mock-server/creative-ad-server/seed-data.js.map +1 -0
- package/dist/lib/mock-server/creative-ad-server/server.d.ts +39 -0
- package/dist/lib/mock-server/creative-ad-server/server.d.ts.map +1 -0
- package/dist/lib/mock-server/creative-ad-server/server.js +618 -0
- package/dist/lib/mock-server/creative-ad-server/server.js.map +1 -0
- package/dist/lib/mock-server/creative-template/seed-data.d.ts +1 -1
- package/dist/lib/mock-server/creative-template/seed-data.d.ts.map +1 -1
- package/dist/lib/mock-server/creative-template/seed-data.js +53 -0
- package/dist/lib/mock-server/creative-template/seed-data.js.map +1 -1
- package/dist/lib/mock-server/creative-template/server.d.ts.map +1 -1
- package/dist/lib/mock-server/creative-template/server.js +12 -0
- package/dist/lib/mock-server/creative-template/server.js.map +1 -1
- package/dist/lib/mock-server/index.d.ts.map +1 -1
- package/dist/lib/mock-server/index.js +180 -24
- package/dist/lib/mock-server/index.js.map +1 -1
- package/dist/lib/mock-server/sales-non-guaranteed/seed-data.d.ts +66 -0
- package/dist/lib/mock-server/sales-non-guaranteed/seed-data.d.ts.map +1 -0
- package/dist/lib/mock-server/sales-non-guaranteed/seed-data.js +193 -0
- package/dist/lib/mock-server/sales-non-guaranteed/seed-data.js.map +1 -0
- package/dist/lib/mock-server/sales-non-guaranteed/server.d.ts +33 -0
- package/dist/lib/mock-server/sales-non-guaranteed/server.d.ts.map +1 -0
- package/dist/lib/mock-server/sales-non-guaranteed/server.js +782 -0
- package/dist/lib/mock-server/sales-non-guaranteed/server.js.map +1 -0
- package/dist/lib/mock-server/sponsored-intelligence/seed-data.d.ts +50 -0
- package/dist/lib/mock-server/sponsored-intelligence/seed-data.d.ts.map +1 -0
- package/dist/lib/mock-server/sponsored-intelligence/seed-data.js +133 -0
- package/dist/lib/mock-server/sponsored-intelligence/seed-data.js.map +1 -0
- package/dist/lib/mock-server/sponsored-intelligence/server.d.ts +13 -0
- package/dist/lib/mock-server/sponsored-intelligence/server.d.ts.map +1 -0
- package/dist/lib/mock-server/sponsored-intelligence/server.js +609 -0
- package/dist/lib/mock-server/sponsored-intelligence/server.js.map +1 -0
- package/dist/lib/protocols/mcp.d.ts.map +1 -1
- package/dist/lib/protocols/mcp.js +1 -41
- package/dist/lib/protocols/mcp.js.map +1 -1
- package/dist/lib/schemas-data/3.0/a2ui/bound-value.json +1 -1
- package/dist/lib/schemas-data/3.0/a2ui/component.json +1 -1
- package/dist/lib/schemas-data/3.0/a2ui/si-catalog.json +25 -25
- package/dist/lib/schemas-data/3.0/a2ui/surface.json +2 -2
- package/dist/lib/schemas-data/3.0/a2ui/user-action.json +1 -1
- package/dist/lib/schemas-data/3.0/account/get-account-financials-request.json +5 -5
- package/dist/lib/schemas-data/3.0/account/get-account-financials-response.json +10 -10
- package/dist/lib/schemas-data/3.0/account/list-accounts-request.json +4 -4
- package/dist/lib/schemas-data/3.0/account/list-accounts-response.json +6 -6
- package/dist/lib/schemas-data/3.0/account/report-usage-request.json +5 -5
- package/dist/lib/schemas-data/3.0/account/report-usage-response.json +4 -4
- package/dist/lib/schemas-data/3.0/account/sync-accounts-request.json +9 -9
- package/dist/lib/schemas-data/3.0/account/sync-accounts-response.json +12 -12
- package/dist/lib/schemas-data/3.0/account/sync-governance-request.json +5 -5
- package/dist/lib/schemas-data/3.0/account/sync-governance-response.json +8 -8
- package/dist/lib/schemas-data/3.0/adagents.json +32 -32
- package/dist/lib/schemas-data/3.0/brand/acquire-rights-request.json +8 -8
- package/dist/lib/schemas-data/3.0/brand/acquire-rights-response.json +14 -14
- package/dist/lib/schemas-data/3.0/brand/creative-approval-request.json +4 -4
- package/dist/lib/schemas-data/3.0/brand/creative-approval-response.json +10 -10
- package/dist/lib/schemas-data/3.0/brand/get-brand-identity-request.json +3 -3
- package/dist/lib/schemas-data/3.0/brand/get-brand-identity-response.json +8 -8
- package/dist/lib/schemas-data/3.0/brand/get-rights-request.json +7 -7
- package/dist/lib/schemas-data/3.0/brand/get-rights-response.json +9 -9
- package/dist/lib/schemas-data/3.0/brand/revocation-notification.json +4 -4
- package/dist/lib/schemas-data/3.0/brand/rights-pricing-option.json +5 -5
- package/dist/lib/schemas-data/3.0/brand/rights-terms.json +3 -3
- package/dist/lib/schemas-data/3.0/brand/update-rights-request.json +4 -4
- package/dist/lib/schemas-data/3.0/brand/update-rights-response.json +9 -9
- package/dist/lib/schemas-data/3.0/brand.json +14 -14
- package/dist/lib/schemas-data/3.0/bundled/content-standards/calibrate-content-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/calibrate-content-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/create-content-standards-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/create-content-standards-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/get-content-standards-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/get-content-standards-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/get-media-buy-artifacts-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/get-media-buy-artifacts-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/list-content-standards-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/list-content-standards-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/update-content-standards-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/update-content-standards-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/validate-content-delivery-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/content-standards/validate-content-delivery-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/core/tasks-get-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/core/tasks-get-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/core/tasks-list-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/core/tasks-list-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/get-creative-delivery-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/get-creative-delivery-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/get-creative-features-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/get-creative-features-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/list-creative-formats-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/list-creative-formats-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/list-creatives-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/list-creatives-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/preview-creative-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/preview-creative-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/sync-creatives-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/creative/sync-creatives-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/build-creative-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/build-creative-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/create-media-buy-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/create-media-buy-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/get-media-buy-delivery-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/get-media-buy-delivery-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/get-media-buys-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/get-media-buys-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/get-products-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/get-products-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/list-creative-formats-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/list-creative-formats-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/log-event-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/log-event-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/package-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/provide-performance-feedback-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/provide-performance-feedback-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/sync-audiences-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/sync-audiences-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/sync-catalogs-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/sync-catalogs-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/sync-event-sources-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/sync-event-sources-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/update-media-buy-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/media-buy/update-media-buy-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/create-property-list-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/create-property-list-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/delete-property-list-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/delete-property-list-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/get-property-list-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/get-property-list-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/list-property-lists-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/list-property-lists-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/update-property-list-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/update-property-list-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/validate-property-delivery-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/property/validate-property-delivery-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/protocol/get-adcp-capabilities-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/protocol/get-adcp-capabilities-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/signals/activate-signal-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/signals/activate-signal-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/signals/get-signals-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/signals/get-signals-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-get-offering-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-get-offering-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-initiate-session-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-initiate-session-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-send-message-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-send-message-response.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-terminate-session-request.json +2 -2
- package/dist/lib/schemas-data/3.0/bundled/sponsored-intelligence/si-terminate-session-response.json +2 -2
- package/dist/lib/schemas-data/3.0/collection/base-collection-source.json +3 -3
- package/dist/lib/schemas-data/3.0/collection/collection-list-changed-webhook.json +2 -2
- package/dist/lib/schemas-data/3.0/collection/collection-list-filters.json +7 -7
- package/dist/lib/schemas-data/3.0/collection/collection-list.json +5 -5
- package/dist/lib/schemas-data/3.0/collection/create-collection-list-request.json +7 -7
- package/dist/lib/schemas-data/3.0/collection/create-collection-list-response.json +4 -4
- package/dist/lib/schemas-data/3.0/collection/delete-collection-list-request.json +4 -4
- package/dist/lib/schemas-data/3.0/collection/delete-collection-list-response.json +3 -3
- package/dist/lib/schemas-data/3.0/collection/get-collection-list-request.json +4 -4
- package/dist/lib/schemas-data/3.0/collection/get-collection-list-response.json +10 -10
- package/dist/lib/schemas-data/3.0/collection/list-collection-lists-request.json +5 -5
- package/dist/lib/schemas-data/3.0/collection/list-collection-lists-response.json +5 -5
- package/dist/lib/schemas-data/3.0/collection/update-collection-list-request.json +7 -7
- package/dist/lib/schemas-data/3.0/collection/update-collection-list-response.json +4 -4
- package/dist/lib/schemas-data/3.0/content-standards/artifact-webhook-payload.json +3 -3
- package/dist/lib/schemas-data/3.0/content-standards/artifact.json +7 -7
- package/dist/lib/schemas-data/3.0/content-standards/calibrate-content-request.json +4 -4
- package/dist/lib/schemas-data/3.0/content-standards/calibrate-content-response.json +8 -8
- package/dist/lib/schemas-data/3.0/content-standards/content-standards.json +7 -7
- package/dist/lib/schemas-data/3.0/content-standards/create-content-standards-request.json +7 -7
- package/dist/lib/schemas-data/3.0/content-standards/create-content-standards-response.json +6 -6
- package/dist/lib/schemas-data/3.0/content-standards/get-content-standards-request.json +3 -3
- package/dist/lib/schemas-data/3.0/content-standards/get-content-standards-response.json +7 -7
- package/dist/lib/schemas-data/3.0/content-standards/get-media-buy-artifacts-request.json +4 -4
- package/dist/lib/schemas-data/3.0/content-standards/get-media-buy-artifacts-response.json +8 -8
- package/dist/lib/schemas-data/3.0/content-standards/list-content-standards-request.json +5 -5
- package/dist/lib/schemas-data/3.0/content-standards/list-content-standards-response.json +8 -8
- package/dist/lib/schemas-data/3.0/content-standards/update-content-standards-request.json +7 -7
- package/dist/lib/schemas-data/3.0/content-standards/update-content-standards-response.json +6 -6
- package/dist/lib/schemas-data/3.0/content-standards/validate-content-delivery-request.json +4 -4
- package/dist/lib/schemas-data/3.0/content-standards/validate-content-delivery-response.json +8 -8
- package/dist/lib/schemas-data/3.0/core/account-ref.json +2 -2
- package/dist/lib/schemas-data/3.0/core/account.json +9 -9
- package/dist/lib/schemas-data/3.0/core/activation-key.json +1 -1
- package/dist/lib/schemas-data/3.0/core/ad-inventory-config.json +1 -1
- package/dist/lib/schemas-data/3.0/core/agent-encryption-key.json +1 -1
- package/dist/lib/schemas-data/3.0/core/agent-signing-key.json +1 -1
- package/dist/lib/schemas-data/3.0/core/app-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/assets/asset-union.json +15 -15
- package/dist/lib/schemas-data/3.0/core/assets/audio-asset.json +3 -3
- package/dist/lib/schemas-data/3.0/core/assets/brief-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/catalog-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/css-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/daast-asset.json +4 -4
- package/dist/lib/schemas-data/3.0/core/assets/html-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/image-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/javascript-asset.json +3 -3
- package/dist/lib/schemas-data/3.0/core/assets/markdown-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/text-asset.json +2 -2
- package/dist/lib/schemas-data/3.0/core/assets/url-asset.json +3 -3
- package/dist/lib/schemas-data/3.0/core/assets/vast-asset.json +4 -4
- package/dist/lib/schemas-data/3.0/core/assets/video-asset.json +7 -7
- package/dist/lib/schemas-data/3.0/core/assets/webhook-asset.json +7 -7
- package/dist/lib/schemas-data/3.0/core/async-response-data.json +25 -25
- package/dist/lib/schemas-data/3.0/core/attribution-window.json +4 -4
- package/dist/lib/schemas-data/3.0/core/audience-member.json +3 -3
- package/dist/lib/schemas-data/3.0/core/audience-selector.json +4 -4
- package/dist/lib/schemas-data/3.0/core/brand-id.json +1 -1
- package/dist/lib/schemas-data/3.0/core/brand-ref.json +2 -2
- package/dist/lib/schemas-data/3.0/core/business-entity.json +2 -2
- package/dist/lib/schemas-data/3.0/core/cancellation-policy.json +2 -2
- package/dist/lib/schemas-data/3.0/core/catalog-field-mapping.json +2 -2
- package/dist/lib/schemas-data/3.0/core/catalog.json +7 -7
- package/dist/lib/schemas-data/3.0/core/catchment.json +5 -5
- package/dist/lib/schemas-data/3.0/core/collection-distribution.json +2 -2
- package/dist/lib/schemas-data/3.0/core/collection-list-ref.json +1 -1
- package/dist/lib/schemas-data/3.0/core/collection-selector.json +1 -1
- package/dist/lib/schemas-data/3.0/core/collection.json +13 -13
- package/dist/lib/schemas-data/3.0/core/content-rating.json +2 -2
- package/dist/lib/schemas-data/3.0/core/context.json +1 -1
- package/dist/lib/schemas-data/3.0/core/creative-asset.json +6 -6
- package/dist/lib/schemas-data/3.0/core/creative-assignment.json +1 -1
- package/dist/lib/schemas-data/3.0/core/creative-brief.json +4 -4
- package/dist/lib/schemas-data/3.0/core/creative-consumption.json +1 -1
- package/dist/lib/schemas-data/3.0/core/creative-filters.json +4 -4
- package/dist/lib/schemas-data/3.0/core/creative-item.json +1 -1
- package/dist/lib/schemas-data/3.0/core/creative-manifest.json +7 -7
- package/dist/lib/schemas-data/3.0/core/creative-policy.json +3 -3
- package/dist/lib/schemas-data/3.0/core/creative-variable.json +1 -1
- package/dist/lib/schemas-data/3.0/core/creative-variant.json +5 -5
- package/dist/lib/schemas-data/3.0/core/data-provider-signal-selector.json +1 -1
- package/dist/lib/schemas-data/3.0/core/date-range.json +1 -1
- package/dist/lib/schemas-data/3.0/core/datetime-range.json +1 -1
- package/dist/lib/schemas-data/3.0/core/daypart-target.json +2 -2
- package/dist/lib/schemas-data/3.0/core/deadline-policy.json +1 -1
- package/dist/lib/schemas-data/3.0/core/delivery-forecast.json +7 -7
- package/dist/lib/schemas-data/3.0/core/delivery-metrics.json +5 -5
- package/dist/lib/schemas-data/3.0/core/deployment.json +3 -3
- package/dist/lib/schemas-data/3.0/core/destination-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/destination.json +1 -1
- package/dist/lib/schemas-data/3.0/core/diagnostic-issue.json +1 -1
- package/dist/lib/schemas-data/3.0/core/duration.json +1 -1
- package/dist/lib/schemas-data/3.0/core/education-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/error.json +1 -1
- package/dist/lib/schemas-data/3.0/core/event-custom-data.json +2 -2
- package/dist/lib/schemas-data/3.0/core/event-source-health.json +3 -3
- package/dist/lib/schemas-data/3.0/core/event.json +6 -6
- package/dist/lib/schemas-data/3.0/core/ext.json +1 -1
- package/dist/lib/schemas-data/3.0/core/feature-requirement.json +1 -1
- package/dist/lib/schemas-data/3.0/core/flight-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/forecast-point.json +18 -18
- package/dist/lib/schemas-data/3.0/core/forecast-range.json +1 -1
- package/dist/lib/schemas-data/3.0/core/format-id.json +1 -1
- package/dist/lib/schemas-data/3.0/core/format.json +42 -42
- package/dist/lib/schemas-data/3.0/core/frequency-cap.json +4 -4
- package/dist/lib/schemas-data/3.0/core/generation-credential.json +3 -3
- package/dist/lib/schemas-data/3.0/core/geo-breakdown-support.json +3 -3
- package/dist/lib/schemas-data/3.0/core/hotel-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/identifier.json +2 -2
- package/dist/lib/schemas-data/3.0/core/industry-identifier.json +2 -2
- package/dist/lib/schemas-data/3.0/core/insertion-order.json +1 -1
- package/dist/lib/schemas-data/3.0/core/installment-deadlines.json +2 -2
- package/dist/lib/schemas-data/3.0/core/installment.json +9 -9
- package/dist/lib/schemas-data/3.0/core/job-item.json +3 -3
- package/dist/lib/schemas-data/3.0/core/limited-series.json +1 -1
- package/dist/lib/schemas-data/3.0/core/material-deadline.json +1 -1
- package/dist/lib/schemas-data/3.0/core/mcp-webhook-payload.json +5 -5
- package/dist/lib/schemas-data/3.0/core/measurement-readiness.json +5 -5
- package/dist/lib/schemas-data/3.0/core/measurement-terms.json +3 -3
- package/dist/lib/schemas-data/3.0/core/measurement-window.json +1 -1
- package/dist/lib/schemas-data/3.0/core/media-buy-features.json +1 -1
- package/dist/lib/schemas-data/3.0/core/media-buy.json +7 -7
- package/dist/lib/schemas-data/3.0/core/offering-asset-group.json +15 -15
- package/dist/lib/schemas-data/3.0/core/offering.json +5 -5
- package/dist/lib/schemas-data/3.0/core/optimization-goal.json +6 -6
- package/dist/lib/schemas-data/3.0/core/outcome-measurement.json +2 -2
- package/dist/lib/schemas-data/3.0/core/overlay.json +1 -1
- package/dist/lib/schemas-data/3.0/core/package.json +14 -14
- package/dist/lib/schemas-data/3.0/core/pagination-request.json +1 -1
- package/dist/lib/schemas-data/3.0/core/pagination-response.json +1 -1
- package/dist/lib/schemas-data/3.0/core/performance-feedback.json +3 -3
- package/dist/lib/schemas-data/3.0/core/performance-standard.json +4 -4
- package/dist/lib/schemas-data/3.0/core/placement-definition.json +5 -5
- package/dist/lib/schemas-data/3.0/core/placement.json +2 -2
- package/dist/lib/schemas-data/3.0/core/planned-delivery.json +5 -5
- package/dist/lib/schemas-data/3.0/core/price.json +1 -1
- package/dist/lib/schemas-data/3.0/core/pricing-option.json +10 -10
- package/dist/lib/schemas-data/3.0/core/product-allocation.json +4 -4
- package/dist/lib/schemas-data/3.0/core/product-filters.json +16 -16
- package/dist/lib/schemas-data/3.0/core/product.json +28 -28
- package/dist/lib/schemas-data/3.0/core/property-id.json +1 -1
- package/dist/lib/schemas-data/3.0/core/property-list-ref.json +1 -1
- package/dist/lib/schemas-data/3.0/core/property-tag.json +1 -1
- package/dist/lib/schemas-data/3.0/core/property.json +6 -6
- package/dist/lib/schemas-data/3.0/core/proposal.json +6 -6
- package/dist/lib/schemas-data/3.0/core/protocol-envelope.json +3 -3
- package/dist/lib/schemas-data/3.0/core/provenance.json +6 -6
- package/dist/lib/schemas-data/3.0/core/publisher-property-selector.json +3 -3
- package/dist/lib/schemas-data/3.0/core/push-notification-config.json +2 -2
- package/dist/lib/schemas-data/3.0/core/real-estate-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/reference-asset.json +1 -1
- package/dist/lib/schemas-data/3.0/core/reporting-capabilities.json +5 -5
- package/dist/lib/schemas-data/3.0/core/reporting-webhook.json +3 -3
- package/dist/lib/schemas-data/3.0/core/requirements/asset-requirements.json +13 -13
- package/dist/lib/schemas-data/3.0/core/requirements/audio-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/catalog-field-binding.json +4 -4
- package/dist/lib/schemas-data/3.0/core/requirements/catalog-requirements.json +5 -5
- package/dist/lib/schemas-data/3.0/core/requirements/css-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/daast-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/html-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/image-asset-requirements.json +2 -2
- package/dist/lib/schemas-data/3.0/core/requirements/javascript-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/markdown-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/offering-asset-constraint.json +4 -4
- package/dist/lib/schemas-data/3.0/core/requirements/text-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/url-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/vast-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/requirements/video-asset-requirements.json +6 -6
- package/dist/lib/schemas-data/3.0/core/requirements/webhook-asset-requirements.json +1 -1
- package/dist/lib/schemas-data/3.0/core/response.json +1 -1
- package/dist/lib/schemas-data/3.0/core/rights-constraint.json +4 -4
- package/dist/lib/schemas-data/3.0/core/seller-agent-ref.json +1 -1
- package/dist/lib/schemas-data/3.0/core/signal-definition.json +3 -3
- package/dist/lib/schemas-data/3.0/core/signal-filters.json +2 -2
- package/dist/lib/schemas-data/3.0/core/signal-id.json +1 -1
- package/dist/lib/schemas-data/3.0/core/signal-pricing-option.json +2 -2
- package/dist/lib/schemas-data/3.0/core/signal-pricing.json +6 -6
- package/dist/lib/schemas-data/3.0/core/signal-targeting.json +4 -4
- package/dist/lib/schemas-data/3.0/core/special.json +2 -2
- package/dist/lib/schemas-data/3.0/core/start-timing.json +1 -1
- package/dist/lib/schemas-data/3.0/core/store-item.json +3 -3
- package/dist/lib/schemas-data/3.0/core/talent.json +2 -2
- package/dist/lib/schemas-data/3.0/core/targeting.json +20 -20
- package/dist/lib/schemas-data/3.0/core/tasks-get-request.json +3 -3
- package/dist/lib/schemas-data/3.0/core/tasks-get-response.json +7 -7
- package/dist/lib/schemas-data/3.0/core/tasks-list-request.json +11 -11
- package/dist/lib/schemas-data/3.0/core/tasks-list-response.json +6 -6
- package/dist/lib/schemas-data/3.0/core/user-match.json +3 -3
- package/dist/lib/schemas-data/3.0/core/vehicle-item.json +4 -4
- package/dist/lib/schemas-data/3.0/core/vendor-pricing-option.json +2 -2
- package/dist/lib/schemas-data/3.0/core/x-entity-types.json +1 -1
- package/dist/lib/schemas-data/3.0/creative/asset-types/index.json +5 -5
- package/dist/lib/schemas-data/3.0/creative/creative-feature-result.json +2 -2
- package/dist/lib/schemas-data/3.0/creative/get-creative-delivery-request.json +5 -5
- package/dist/lib/schemas-data/3.0/creative/get-creative-delivery-response.json +7 -7
- package/dist/lib/schemas-data/3.0/creative/get-creative-features-request.json +5 -5
- package/dist/lib/schemas-data/3.0/creative/get-creative-features-response.json +8 -8
- package/dist/lib/schemas-data/3.0/creative/list-creative-formats-request.json +11 -11
- package/dist/lib/schemas-data/3.0/creative/list-creative-formats-response.json +7 -7
- package/dist/lib/schemas-data/3.0/creative/list-creatives-request.json +8 -8
- package/dist/lib/schemas-data/3.0/creative/list-creatives-response.json +14 -14
- package/dist/lib/schemas-data/3.0/creative/preview-creative-request.json +11 -11
- package/dist/lib/schemas-data/3.0/creative/preview-creative-response.json +12 -12
- package/dist/lib/schemas-data/3.0/creative/preview-render.json +1 -1
- package/dist/lib/schemas-data/3.0/creative/sync-creatives-async-response-input-required.json +3 -3
- package/dist/lib/schemas-data/3.0/creative/sync-creatives-async-response-submitted.json +3 -3
- package/dist/lib/schemas-data/3.0/creative/sync-creatives-async-response-working.json +3 -3
- package/dist/lib/schemas-data/3.0/creative/sync-creatives-request.json +7 -7
- package/dist/lib/schemas-data/3.0/creative/sync-creatives-response.json +13 -13
- package/dist/lib/schemas-data/3.0/enums/account-scope.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/account-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/action-source.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/adcp-protocol.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/adjustment-kind.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/advertiser-industry.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/age-verification-method.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/assessment-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/asset-content-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/attribution-model.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/audience-source.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/audience-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/audio-channel-layout.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/auth-scheme.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/available-metric.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/billing-party.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/binary-verdict.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/brand-agent-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/canceled-by.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/catalog-action.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/catalog-item-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/catalog-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/channels.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/cloud-storage-protocol.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/co-branding-requirement.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/collection-cadence.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/collection-kind.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/collection-relationship.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/collection-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/consent-basis.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/content-id-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/content-rating-system.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-action.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-agent-capability.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-approval-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-identifier-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-quality.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-sort-field.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/creative-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/daast-tracking-event.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/daast-version.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/day-of-week.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/delegation-authority.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/delivery-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/demographic-system.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/derivative-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/device-platform.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/device-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/digital-source-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/dimension-unit.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/disclosure-persistence.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/disclosure-position.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/distance-unit.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/distribution-identifier-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/error-code.json +3 -3
- package/dist/lib/schemas-data/3.0/enums/escalation-severity.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/event-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/exclusivity.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/feature-check-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/feed-format.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/feedback-source.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/forecast-method.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/forecast-range-unit.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/forecastable-metric.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/format-id-parameter.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/frame-rate-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/frequency-cap-scope.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/genre-taxonomy.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/geo-level.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/gop-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/governance-decision.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/governance-domain.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/governance-mode.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/governance-phase.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/history-entry-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/http-method.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/identifier-types.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/installment-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/javascript-module-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/landing-page-requirement.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/makegood-remedy.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/markdown-flavor.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/match-id-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/match-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/media-buy-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/media-buy-valid-action.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/metric-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/metro-system.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/moov-atom-position.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/notification-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/outcome-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/pacing.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/payment-terms.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/performance-standard-metric.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/policy-category.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/policy-enforcement.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/postal-system.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/preview-output-format.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/pricing-model.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/production-quality.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/property-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/proposal-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/publisher-identifier-types.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/purchase-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/reach-unit.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/reporting-frequency.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/response-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/restricted-attribute.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/right-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/right-use.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/rights-billing-period.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/scan-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/si-session-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/signal-catalog-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/signal-source.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/signal-value-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/snapshot-unavailable-reason.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/sort-direction.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/sort-metric.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/special-category.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/specialism.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/talent-role.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/task-status.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/task-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/transport-mode.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/travel-time-unit.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/uid-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/universal-macro.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/update-frequency.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/url-asset-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/validation-mode.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/vast-tracking-event.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/vast-version.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/viewability-standard.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/wcag-level.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/webhook-response-type.json +1 -1
- package/dist/lib/schemas-data/3.0/enums/webhook-security-method.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/account-setup-required.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/audience-too-small.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/budget-too-low.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/conflict.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/creative-rejected.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/policy-violation.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/rate-limited.json +1 -1
- package/dist/lib/schemas-data/3.0/error-details/vendor-error-codes.json +1 -1
- package/dist/lib/schemas-data/3.0/extensions/extension-meta.json +1 -1
- package/dist/lib/schemas-data/3.0/extensions/index.json +2 -2
- package/dist/lib/schemas-data/3.0/governance/attribute-definition.json +1 -1
- package/dist/lib/schemas-data/3.0/governance/audience-constraints.json +3 -3
- package/dist/lib/schemas-data/3.0/governance/check-governance-request.json +7 -7
- package/dist/lib/schemas-data/3.0/governance/check-governance-response.json +6 -6
- package/dist/lib/schemas-data/3.0/governance/get-plan-audit-logs-request.json +4 -4
- package/dist/lib/schemas-data/3.0/governance/get-plan-audit-logs-response.json +9 -9
- package/dist/lib/schemas-data/3.0/governance/policy-category-definition.json +2 -2
- package/dist/lib/schemas-data/3.0/governance/policy-entry.json +6 -6
- package/dist/lib/schemas-data/3.0/governance/policy-ref.json +1 -1
- package/dist/lib/schemas-data/3.0/governance/report-plan-outcome-request.json +6 -6
- package/dist/lib/schemas-data/3.0/governance/report-plan-outcome-response.json +4 -4
- package/dist/lib/schemas-data/3.0/governance/sync-plans-request.json +13 -13
- package/dist/lib/schemas-data/3.0/governance/sync-plans-response.json +4 -4
- package/dist/lib/schemas-data/3.0/index.json +364 -364
- package/dist/lib/schemas-data/3.0/manifest.json +5 -5
- package/dist/lib/schemas-data/3.0/manifest.schema.json +1 -1
- package/dist/lib/schemas-data/3.0/media-buy/build-creative-async-response-input-required.json +4 -4
- package/dist/lib/schemas-data/3.0/media-buy/build-creative-async-response-submitted.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/build-creative-async-response-working.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/build-creative-request.json +11 -11
- package/dist/lib/schemas-data/3.0/media-buy/build-creative-response.json +17 -17
- package/dist/lib/schemas-data/3.0/media-buy/create-media-buy-async-response-input-required.json +4 -4
- package/dist/lib/schemas-data/3.0/media-buy/create-media-buy-async-response-submitted.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/create-media-buy-async-response-working.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/create-media-buy-request.json +12 -12
- package/dist/lib/schemas-data/3.0/media-buy/create-media-buy-response.json +15 -15
- package/dist/lib/schemas-data/3.0/media-buy/get-media-buy-delivery-request.json +17 -17
- package/dist/lib/schemas-data/3.0/media-buy/get-media-buy-delivery-response.json +24 -24
- package/dist/lib/schemas-data/3.0/media-buy/get-media-buys-request.json +7 -7
- package/dist/lib/schemas-data/3.0/media-buy/get-media-buys-response.json +19 -19
- package/dist/lib/schemas-data/3.0/media-buy/get-products-async-response-input-required.json +4 -4
- package/dist/lib/schemas-data/3.0/media-buy/get-products-async-response-submitted.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/get-products-async-response-working.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/get-products-request.json +11 -11
- package/dist/lib/schemas-data/3.0/media-buy/get-products-response.json +8 -8
- package/dist/lib/schemas-data/3.0/media-buy/list-creative-formats-request.json +11 -11
- package/dist/lib/schemas-data/3.0/media-buy/list-creative-formats-response.json +7 -7
- package/dist/lib/schemas-data/3.0/media-buy/log-event-request.json +4 -4
- package/dist/lib/schemas-data/3.0/media-buy/log-event-response.json +6 -6
- package/dist/lib/schemas-data/3.0/media-buy/package-request.json +12 -12
- package/dist/lib/schemas-data/3.0/media-buy/package-update.json +13 -13
- package/dist/lib/schemas-data/3.0/media-buy/provide-performance-feedback-request.json +6 -6
- package/dist/lib/schemas-data/3.0/media-buy/provide-performance-feedback-response.json +6 -6
- package/dist/lib/schemas-data/3.0/media-buy/sync-audiences-request.json +7 -7
- package/dist/lib/schemas-data/3.0/media-buy/sync-audiences-response.json +9 -9
- package/dist/lib/schemas-data/3.0/media-buy/sync-catalogs-async-response-input-required.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/sync-catalogs-async-response-submitted.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/sync-catalogs-async-response-working.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/sync-catalogs-request.json +7 -7
- package/dist/lib/schemas-data/3.0/media-buy/sync-catalogs-response.json +9 -9
- package/dist/lib/schemas-data/3.0/media-buy/sync-event-sources-request.json +5 -5
- package/dist/lib/schemas-data/3.0/media-buy/sync-event-sources-response.json +10 -10
- package/dist/lib/schemas-data/3.0/media-buy/update-media-buy-async-response-input-required.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/update-media-buy-async-response-submitted.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/update-media-buy-async-response-working.json +3 -3
- package/dist/lib/schemas-data/3.0/media-buy/update-media-buy-request.json +10 -10
- package/dist/lib/schemas-data/3.0/media-buy/update-media-buy-response.json +10 -10
- package/dist/lib/schemas-data/3.0/pricing-options/cpa-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/cpc-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/cpcv-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/cpm-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/cpp-option.json +5 -5
- package/dist/lib/schemas-data/3.0/pricing-options/cpv-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/flat-rate-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/price-breakdown.json +2 -2
- package/dist/lib/schemas-data/3.0/pricing-options/price-guidance.json +1 -1
- package/dist/lib/schemas-data/3.0/pricing-options/time-option.json +4 -4
- package/dist/lib/schemas-data/3.0/pricing-options/vcpm-option.json +4 -4
- package/dist/lib/schemas-data/3.0/property/authorization-result.json +1 -1
- package/dist/lib/schemas-data/3.0/property/base-property-source.json +4 -4
- package/dist/lib/schemas-data/3.0/property/create-property-list-request.json +7 -7
- package/dist/lib/schemas-data/3.0/property/create-property-list-response.json +4 -4
- package/dist/lib/schemas-data/3.0/property/delete-property-list-request.json +4 -4
- package/dist/lib/schemas-data/3.0/property/delete-property-list-response.json +3 -3
- package/dist/lib/schemas-data/3.0/property/delivery-record.json +3 -3
- package/dist/lib/schemas-data/3.0/property/get-property-list-request.json +4 -4
- package/dist/lib/schemas-data/3.0/property/get-property-list-response.json +7 -7
- package/dist/lib/schemas-data/3.0/property/list-property-lists-request.json +5 -5
- package/dist/lib/schemas-data/3.0/property/list-property-lists-response.json +5 -5
- package/dist/lib/schemas-data/3.0/property/property-error.json +2 -2
- package/dist/lib/schemas-data/3.0/property/property-feature-definition.json +2 -2
- package/dist/lib/schemas-data/3.0/property/property-feature-result.json +4 -4
- package/dist/lib/schemas-data/3.0/property/property-feature-value.json +2 -2
- package/dist/lib/schemas-data/3.0/property/property-feature.json +1 -1
- package/dist/lib/schemas-data/3.0/property/property-list-changed-webhook.json +2 -2
- package/dist/lib/schemas-data/3.0/property/property-list-filters.json +5 -5
- package/dist/lib/schemas-data/3.0/property/property-list.json +6 -6
- package/dist/lib/schemas-data/3.0/property/update-property-list-request.json +7 -7
- package/dist/lib/schemas-data/3.0/property/update-property-list-response.json +4 -4
- package/dist/lib/schemas-data/3.0/property/validate-property-delivery-request.json +5 -5
- package/dist/lib/schemas-data/3.0/property/validate-property-delivery-response.json +4 -4
- package/dist/lib/schemas-data/3.0/property/validation-result.json +5 -5
- package/dist/lib/schemas-data/3.0/protocol/get-adcp-capabilities-request.json +3 -3
- package/dist/lib/schemas-data/3.0/protocol/get-adcp-capabilities-response.json +25 -25
- package/dist/lib/schemas-data/3.0/signals/activate-signal-request.json +5 -5
- package/dist/lib/schemas-data/3.0/signals/activate-signal-response.json +7 -7
- package/dist/lib/schemas-data/3.0/signals/get-signals-request.json +8 -8
- package/dist/lib/schemas-data/3.0/signals/get-signals-response.json +10 -10
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-capabilities.json +1 -1
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-get-offering-request.json +3 -3
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-get-offering-response.json +4 -4
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-identity.json +1 -1
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-initiate-session-request.json +5 -5
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-initiate-session-response.json +7 -7
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-send-message-request.json +3 -3
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-send-message-response.json +7 -7
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-terminate-session-request.json +3 -3
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-terminate-session-response.json +5 -5
- package/dist/lib/schemas-data/3.0/sponsored-intelligence/si-ui-element.json +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/account-mode.d.ts +113 -0
- package/dist/lib/server/account-mode.d.ts.map +1 -0
- package/dist/lib/server/account-mode.js +125 -0
- package/dist/lib/server/account-mode.js.map +1 -0
- package/dist/lib/server/adcp-server.js +41 -0
- package/dist/lib/server/adcp-server.js.map +1 -1
- package/dist/lib/server/auth.d.ts +35 -0
- package/dist/lib/server/auth.d.ts.map +1 -1
- package/dist/lib/server/auth.js.map +1 -1
- package/dist/lib/server/create-adcp-server.d.ts +26 -9
- package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
- package/dist/lib/server/create-adcp-server.js +46 -20
- package/dist/lib/server/create-adcp-server.js.map +1 -1
- package/dist/lib/server/ctx-metadata/store.d.ts +1 -1
- package/dist/lib/server/ctx-metadata/store.d.ts.map +1 -1
- package/dist/lib/server/ctx-metadata/store.js +1 -0
- package/dist/lib/server/ctx-metadata/store.js.map +1 -1
- package/dist/lib/server/decisioning/account.d.ts +19 -0
- package/dist/lib/server/decisioning/account.d.ts.map +1 -1
- package/dist/lib/server/decisioning/account.js.map +1 -1
- package/dist/lib/server/decisioning/buyer-agent.d.ts +37 -4
- package/dist/lib/server/decisioning/buyer-agent.d.ts.map +1 -1
- package/dist/lib/server/decisioning/buyer-agent.js +12 -2
- package/dist/lib/server/decisioning/buyer-agent.js.map +1 -1
- package/dist/lib/server/decisioning/compose.d.ts +33 -2
- package/dist/lib/server/decisioning/compose.d.ts.map +1 -1
- package/dist/lib/server/decisioning/compose.js +13 -46
- package/dist/lib/server/decisioning/compose.js.map +1 -1
- package/dist/lib/server/decisioning/index.d.ts +2 -1
- package/dist/lib/server/decisioning/index.d.ts.map +1 -1
- package/dist/lib/server/decisioning/index.js +2 -1
- package/dist/lib/server/decisioning/index.js.map +1 -1
- package/dist/lib/server/decisioning/platform-helpers.d.ts +18 -0
- package/dist/lib/server/decisioning/platform-helpers.d.ts.map +1 -1
- package/dist/lib/server/decisioning/platform-helpers.js +20 -0
- package/dist/lib/server/decisioning/platform-helpers.js.map +1 -1
- package/dist/lib/server/decisioning/platform.d.ts +19 -21
- package/dist/lib/server/decisioning/platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/platform.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/entity-hydration.generated.js +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js +369 -54
- package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/observed-modes.d.ts +40 -0
- package/dist/lib/server/decisioning/runtime/observed-modes.d.ts.map +1 -0
- package/dist/lib/server/decisioning/runtime/observed-modes.js +82 -0
- package/dist/lib/server/decisioning/runtime/observed-modes.js.map +1 -0
- package/dist/lib/server/decisioning/runtime/protocol-for-tool.js +2 -2
- package/dist/lib/server/decisioning/runtime/protocol-for-tool.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/validate-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/validate-platform.js +9 -1
- package/dist/lib/server/decisioning/runtime/validate-platform.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.d.ts +125 -0
- package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.d.ts.map +1 -0
- package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.js +52 -0
- package/dist/lib/server/decisioning/specialisms/sponsored-intelligence.js.map +1 -0
- package/dist/lib/server/decisioning/tenant-registry.d.ts +16 -0
- package/dist/lib/server/decisioning/tenant-registry.d.ts.map +1 -1
- package/dist/lib/server/decisioning/tenant-registry.js.map +1 -1
- package/dist/lib/server/index.d.ts +5 -1
- package/dist/lib/server/index.d.ts.map +1 -1
- package/dist/lib/server/index.js +15 -3
- package/dist/lib/server/index.js.map +1 -1
- package/dist/lib/server/serve.js +20 -2
- package/dist/lib/server/serve.js.map +1 -1
- package/dist/lib/server/socket-mode/conformance-client.d.ts +83 -0
- package/dist/lib/server/socket-mode/conformance-client.d.ts.map +1 -0
- package/dist/lib/server/socket-mode/conformance-client.js +117 -0
- package/dist/lib/server/socket-mode/conformance-client.js.map +1 -0
- package/dist/lib/server/socket-mode/index.d.ts +15 -0
- package/dist/lib/server/socket-mode/index.d.ts.map +1 -0
- package/dist/lib/server/socket-mode/index.js +20 -0
- package/dist/lib/server/socket-mode/index.js.map +1 -0
- package/dist/lib/server/socket-mode/ws-transport.d.ts +26 -0
- package/dist/lib/server/socket-mode/ws-transport.d.ts.map +1 -0
- package/dist/lib/server/socket-mode/ws-transport.js +93 -0
- package/dist/lib/server/socket-mode/ws-transport.js.map +1 -0
- package/dist/lib/server/test-controller.d.ts +3 -0
- package/dist/lib/server/test-controller.d.ts.map +1 -1
- package/dist/lib/server/test-controller.js +23 -20
- package/dist/lib/server/test-controller.js.map +1 -1
- package/dist/lib/testing/comply-controller.d.ts +65 -3
- package/dist/lib/testing/comply-controller.d.ts.map +1 -1
- package/dist/lib/testing/comply-controller.js +32 -3
- package/dist/lib/testing/comply-controller.js.map +1 -1
- package/dist/lib/testing/index.d.ts +1 -1
- package/dist/lib/testing/index.d.ts.map +1 -1
- package/dist/lib/testing/index.js.map +1 -1
- package/dist/lib/testing/storyboard/request-builder.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/request-builder.js +63 -40
- package/dist/lib/testing/storyboard/request-builder.js.map +1 -1
- package/dist/lib/testing/storyboard/validations.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/validations.js +36 -54
- package/dist/lib/testing/storyboard/validations.js.map +1 -1
- package/dist/lib/testing/test-controller.d.ts +10 -4
- package/dist/lib/testing/test-controller.d.ts.map +1 -1
- package/dist/lib/testing/test-controller.js +9 -3
- package/dist/lib/testing/test-controller.js.map +1 -1
- package/dist/lib/types/core.generated.d.ts +54 -14
- package/dist/lib/types/core.generated.d.ts.map +1 -1
- package/dist/lib/types/core.generated.js +2 -2
- package/dist/lib/types/error-codes.d.ts +2 -2
- package/dist/lib/types/index.d.ts +4 -3
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/index.js +3 -0
- package/dist/lib/types/index.js.map +1 -1
- package/dist/lib/types/manifest.generated.d.ts +5 -5
- package/dist/lib/types/manifest.generated.js +3 -3
- package/dist/lib/types/manifest.generated.js.map +1 -1
- package/dist/lib/types/schemas.generated.d.ts +465 -381
- package/dist/lib/types/schemas.generated.d.ts.map +1 -1
- package/dist/lib/types/schemas.generated.js +171 -143
- package/dist/lib/types/schemas.generated.js.map +1 -1
- package/dist/lib/types/tools.generated.d.ts +42 -14
- package/dist/lib/types/tools.generated.d.ts.map +1 -1
- package/dist/lib/utils/glob.d.ts +4 -2
- package/dist/lib/utils/glob.d.ts.map +1 -1
- package/dist/lib/utils/glob.js +4 -2
- package/dist/lib/utils/glob.js.map +1 -1
- package/dist/lib/version.d.ts +7 -7
- package/dist/lib/version.d.ts.map +1 -1
- package/dist/lib/version.js +6 -5
- package/dist/lib/version.js.map +1 -1
- package/docs/llms.txt +5 -4
- package/examples/README.md +29 -13
- package/examples/hello-cluster.ts +62 -23
- package/examples/hello_creative_adapter_ad_server.ts +809 -0
- package/examples/hello_creative_adapter_template.ts +61 -6
- package/examples/hello_seller_adapter_guaranteed.ts +158 -25
- package/examples/hello_seller_adapter_multi_tenant.ts +39 -5
- package/examples/hello_seller_adapter_non_guaranteed.ts +1071 -0
- package/examples/hello_seller_adapter_social.ts +1 -1
- package/examples/hello_si_adapter_brand.ts +572 -0
- package/examples/hello_signals_adapter_marketplace.ts +34 -29
- package/package.json +7 -5
- package/skills/SHAPE-GOTCHAS.md +18 -0
- package/skills/build-brand-rights-agent/SKILL.md +61 -597
- package/skills/build-creative-agent/SKILL.md +69 -830
- package/skills/build-generative-seller-agent/SKILL.md +43 -577
- package/skills/build-governance-agent/SKILL.md +63 -950
- package/skills/build-holdco-agent/SKILL.md +8 -0
- package/skills/build-retail-media-agent/SKILL.md +46 -478
- package/skills/build-seller-agent/SKILL.md +53 -1795
- package/skills/build-seller-agent/specialisms/sales-non-guaranteed.md +9 -31
- package/skills/build-si-agent/SKILL.md +55 -318
- package/skills/build-signals-agent/SKILL.md +49 -537
- package/skills/call-adcp-agent/SKILL.md +7 -1
- package/skills/cross-cutting.md +84 -0
- package/skills/call-adcp-agent.previous/SKILL.md +0 -261
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/brand/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/creative/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/governance/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/creative-reception.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/create_media_buy_async.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/creative_fate_after_cancellation.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/delivery_reporting.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/governance_approved.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/governance_conditions.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/governance_denied.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/governance_denied_recovery.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/invalid_transitions.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/inventory_list_no_match.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/measurement_terms_rejected.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/pending_creatives_to_start.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/proposal_finalize.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/scenarios/refine_products.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/media-buy/state-machine.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/signals/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/domains/sponsored-intelligence/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/brand/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/creative/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/governance/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/creative-reception.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/create_media_buy_async.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/creative_fate_after_cancellation.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/delivery_reporting.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/governance_approved.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/governance_conditions.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/governance_denied.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/governance_denied_recovery.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/invalid_transitions.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/inventory_list_no_match.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/measurement_terms_rejected.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/pending_creatives_to_start.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/proposal_finalize.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/scenarios/refine_products.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/media-buy/state-machine.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/signals/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/protocols/sponsored-intelligence/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/audience-sync/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/brand-rights/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/brand-rights/scenarios/governance_denied.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/collection-lists/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/content-standards/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/creative-ad-server/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/creative-generative/generative-seller.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/creative-generative/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/creative-template/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/governance-aware-seller/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/governance-delivery-monitor/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/governance-spend-authority/denied.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/governance-spend-authority/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/property-lists/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/sales-broadcast-tv/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/sales-catalog-driven/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/sales-non-guaranteed/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/sales-proposal-mode/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/sales-social/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/signal-marketplace/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/signal-marketplace/scenarios/governance_denied.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/specialisms/signal-owned/index.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/acme-outdoor.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/bistro-oranje.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/nova-motors.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/osei-natural.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/signed-requests-runner.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/substitution-observer-runner.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/summit-foods.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-kits/webhook-receiver-runner.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/001-minimal-plan.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/002-full-plan.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/003-bookkeeping-stripped.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/004a-human-review-omitted.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/004b-human-review-explicit-null.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/005a-policy-categories-order-1.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/005b-policy-categories-order-2.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/006a-ext-trace-v1.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/006b-ext-trace-v2.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/007-unicode-objectives.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/plan-hash/008-numeric-canonicalization.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/README.md +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/canonicalization.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/keys.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/001-no-signature-header.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/002-wrong-tag.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/003-expired-signature.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/004-window-too-long.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/005-alg-not-allowed.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/006-missing-covered-component.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/007-missing-content-digest.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/008-unknown-keyid.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/009-key-ops-missing-verify.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/010-content-digest-mismatch.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/011-malformed-header.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/012-missing-expires-param.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/013-expires-le-created.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/014-missing-nonce-param.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/015-signature-invalid.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/016-replayed-nonce.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/017-key-revoked.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/018-digest-covered-when-forbidden.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/019-signature-without-signature-input.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/020-rate-abuse.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/021-duplicate-signature-input-label.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/022-multi-valued-content-type.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/023-multi-valued-content-digest.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/024-unquoted-string-param.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/025-jwk-alg-crv-mismatch.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/026-non-ascii-host.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/negative/027-webhook-registration-authentication-unsigned.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/001-basic-post.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/002-post-with-content-digest.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/003-es256-post.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/004-multiple-signature-labels.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/005-default-port-stripped.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/006-dot-segment-path.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/007-query-byte-preserved.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/008-percent-encoded-path.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/009-percent-encoded-unreserved-decoded.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/010-percent-encoded-slash-preserved.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/011-ipv6-authority.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/request-signing/positive/012-ipv6-authority-default-port-stripped.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/README.md +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/keys.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/001-wrong-tag.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/002-expired-signature.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/003-window-too-long.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/004-alg-not-allowed.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/005-missing-authority-component.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/006-missing-content-digest.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/007-unknown-keyid.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/008-wrong-adcp-use.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/009-content-digest-mismatch.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/010-malformed-signature-input.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/011-signature-without-input.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/012-missing-expires-param.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/013-expires-le-created.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/014-missing-nonce-param.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/015-signature-invalid.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/016-replayed-nonce.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/017-key-revoked.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/018-rate-abuse.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/019-revocation-stale.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/020-key-ops-missing-verify.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/negative/021-base64-alphabet-mixing.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/001-basic-post.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/002-es256-post.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/003-multiple-signature-labels.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/004-default-port-stripped.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/005-percent-encoded-path.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/006-query-byte-preserved.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/test-vectors/webhook-signing/positive/007-body-without-idempotency-key.json +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/capability-discovery.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/collection-lists-pagination-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/content-standards-pagination-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/deterministic-testing.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/error-compliance.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/fictional-entities.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/get-media-buys-pagination-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/get-signals-pagination-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/idempotency.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/pagination-integrity-creative-formats.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/pagination-integrity-list-accounts.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/pagination-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/property-lists-pagination-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/runner-output-contract.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/schema-validation.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/security.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/signed-requests.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/v3-envelope-integrity.yaml +0 -0
- /package/compliance/cache/{3.0.5 → 3.0.6}/universal/webhook-emission.yaml +0 -0
|
@@ -0,0 +1,809 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* hello_creative_adapter_ad_server — worked starting point for an
|
|
3
|
+
* AdCP creative agent (specialism `creative-ad-server`) that wraps an
|
|
4
|
+
* upstream stateful creative library + tag generation platform.
|
|
5
|
+
*
|
|
6
|
+
* Closes #1460 (sub-issue of #1381 hello-adapter-family completion).
|
|
7
|
+
* Closest neighbor: `hello_creative_adapter_template.ts`. The structural
|
|
8
|
+
* delta is *additive*: promote `CreativeBuilderPlatform` to
|
|
9
|
+
* `CreativeAdServerPlatform` (adds `listCreatives` + `getCreativeDelivery`),
|
|
10
|
+
* stateful `syncCreatives` library, replace template-driven `buildCreative`
|
|
11
|
+
* with tag-generation flow against a stored snippet template.
|
|
12
|
+
*
|
|
13
|
+
* Headline behavior:
|
|
14
|
+
* - `buildCreative` pulls a stored creative from the upstream library by
|
|
15
|
+
* id, calls `POST /v1/creatives/{id}/render` for macro substitution,
|
|
16
|
+
* and returns a `BuildCreativeSuccess` with `tag_url` pointing at a
|
|
17
|
+
* real iframe-embeddable `/serve/{id}` URL.
|
|
18
|
+
* - `previewCreative` (no-account tool) returns the same `tag_url` as a
|
|
19
|
+
* `preview_url` — adopters get a true URL they can iframe into the
|
|
20
|
+
* storyboard's preview pane.
|
|
21
|
+
* - `syncCreatives` writes to the upstream library; idempotency_key
|
|
22
|
+
* round-trips to upstream `client_request_id`.
|
|
23
|
+
* - `listCreatives` reads with cursor pagination, multi-id pass-through.
|
|
24
|
+
* - `getCreativeDelivery` synthesizes per-creative impressions/clicks.
|
|
25
|
+
*
|
|
26
|
+
* Fork this. Replace `upstream` with calls to your real backend. The
|
|
27
|
+
* AdCP-facing platform methods stay the same.
|
|
28
|
+
*
|
|
29
|
+
* FORK CHECKLIST
|
|
30
|
+
* 1. Replace every `// SWAP:` marker with calls to your backend.
|
|
31
|
+
* 2. Replace `KNOWN_PUBLISHERS` with your tenant directory.
|
|
32
|
+
* 3. Replace the `accounts.resolve(undefined)` fallback with the workspace
|
|
33
|
+
* tied to your principal (the env-driven default is a multi-tenant
|
|
34
|
+
* footgun in production; see recipe #11 in 6.7 migration guide).
|
|
35
|
+
* 4. Replace `projectFormat()` defaults with the format catalog your
|
|
36
|
+
* platform actually exposes (closed-shape `Format.renders[]` per #1325).
|
|
37
|
+
* 5. Validate: `node --test test/examples/hello-creative-adapter-ad-server.test.js`
|
|
38
|
+
* 6. **DELETE the `// TEST-ONLY` blocks** before deploying:
|
|
39
|
+
* - sandbox-arm in `accounts.resolve` (resolves storyboard runner's
|
|
40
|
+
* synthetic `{publisher: …, sandbox: true}` refs to a known network
|
|
41
|
+
* and stamps `mode: 'sandbox'` so the framework gate admits the
|
|
42
|
+
* comply controller)
|
|
43
|
+
* - `complyTest:` config block (seeds storyboard creatives via
|
|
44
|
+
* `comply_test_controller`)
|
|
45
|
+
*
|
|
46
|
+
* Demo:
|
|
47
|
+
* npx @adcp/sdk@latest mock-server creative-ad-server --port 4452
|
|
48
|
+
* UPSTREAM_URL=http://127.0.0.1:4452 \
|
|
49
|
+
* npx tsx examples/hello_creative_adapter_ad_server.ts
|
|
50
|
+
* adcp storyboard run http://127.0.0.1:3008/mcp creative_ad_server \
|
|
51
|
+
* --auth sk_harness_do_not_use_in_prod
|
|
52
|
+
* curl http://127.0.0.1:4452/_debug/traffic
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
import {
|
|
56
|
+
AdcpError,
|
|
57
|
+
createAdcpServerFromPlatform,
|
|
58
|
+
createIdempotencyStore,
|
|
59
|
+
createUpstreamHttpClient,
|
|
60
|
+
memoryBackend,
|
|
61
|
+
serve,
|
|
62
|
+
verifyApiKey,
|
|
63
|
+
type AccountStore,
|
|
64
|
+
type Account,
|
|
65
|
+
type CreativeAdServerPlatform,
|
|
66
|
+
type DecisioningPlatform,
|
|
67
|
+
type SyncCreativesRow,
|
|
68
|
+
} from '@adcp/sdk/server';
|
|
69
|
+
import { FormatAsset } from '@adcp/sdk';
|
|
70
|
+
import type {
|
|
71
|
+
BuildCreativeRequest,
|
|
72
|
+
BuildCreativeSuccess,
|
|
73
|
+
CreativeAsset,
|
|
74
|
+
GetCreativeDeliveryRequest,
|
|
75
|
+
GetCreativeDeliveryResponse,
|
|
76
|
+
ListCreativeFormatsResponse,
|
|
77
|
+
ListCreativesResponse,
|
|
78
|
+
PreviewCreativeRequest,
|
|
79
|
+
PreviewCreativeResponse,
|
|
80
|
+
} from '@adcp/sdk/types';
|
|
81
|
+
|
|
82
|
+
const UPSTREAM_URL = process.env['UPSTREAM_URL'] ?? 'http://127.0.0.1:4452';
|
|
83
|
+
const UPSTREAM_API_KEY = process.env['UPSTREAM_API_KEY'] ?? 'mock_creative_ad_server_key_do_not_use_in_prod';
|
|
84
|
+
const PORT = Number(process.env['PORT'] ?? 3008);
|
|
85
|
+
const ADCP_AUTH_TOKEN = process.env['ADCP_AUTH_TOKEN'] ?? 'sk_harness_do_not_use_in_prod';
|
|
86
|
+
const PUBLIC_AGENT_URL = process.env['PUBLIC_AGENT_URL'] ?? `http://127.0.0.1:${PORT}`;
|
|
87
|
+
|
|
88
|
+
const KNOWN_PUBLISHERS = ['creative-network.example', 'acmeoutdoor.example', 'pinnacle-agency.example'];
|
|
89
|
+
const SANDBOX_ID_PREFIX = 'sandbox_';
|
|
90
|
+
|
|
91
|
+
// ---------------------------------------------------------------------------
|
|
92
|
+
// Upstream client — SWAP for production.
|
|
93
|
+
// ---------------------------------------------------------------------------
|
|
94
|
+
|
|
95
|
+
interface UpstreamNetwork {
|
|
96
|
+
network_code: string;
|
|
97
|
+
display_name: string;
|
|
98
|
+
adcp_publisher: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface UpstreamFormat {
|
|
102
|
+
format_id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
channel: 'display' | 'video' | 'ctv' | 'audio';
|
|
105
|
+
render_kind: 'fixed' | 'parameterized';
|
|
106
|
+
width?: number;
|
|
107
|
+
height?: number;
|
|
108
|
+
duration_seconds?: number;
|
|
109
|
+
accepted_mimes: string[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
interface UpstreamCreative {
|
|
113
|
+
creative_id: string;
|
|
114
|
+
network_code: string;
|
|
115
|
+
advertiser_id: string;
|
|
116
|
+
format_id: string;
|
|
117
|
+
name: string;
|
|
118
|
+
snippet?: string;
|
|
119
|
+
click_url?: string;
|
|
120
|
+
status: 'active' | 'paused' | 'archived' | 'rejected';
|
|
121
|
+
created_at: string;
|
|
122
|
+
updated_at: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
interface UpstreamRenderResponse {
|
|
126
|
+
creative_id: string;
|
|
127
|
+
format_id: string;
|
|
128
|
+
tag_html: string;
|
|
129
|
+
tag_url: string;
|
|
130
|
+
preview_url: string;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
interface UpstreamDelivery {
|
|
134
|
+
creative_id: string;
|
|
135
|
+
reporting_period: { start: string; end: string };
|
|
136
|
+
totals: { impressions: number; clicks: number; ctr: number };
|
|
137
|
+
breakdown: Array<{ date: string; impressions: number; clicks: number }>;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const http = createUpstreamHttpClient({
|
|
141
|
+
baseUrl: UPSTREAM_URL,
|
|
142
|
+
auth: { kind: 'static_bearer', token: UPSTREAM_API_KEY },
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const networkHeader = (networkCode: string): Record<string, string> => ({ 'X-Network-Code': networkCode });
|
|
146
|
+
|
|
147
|
+
const upstream = {
|
|
148
|
+
async lookupNetwork(publisherDomain: string): Promise<UpstreamNetwork | null> {
|
|
149
|
+
const { body } = await http.get<UpstreamNetwork>('/_lookup/network', { adcp_publisher: publisherDomain });
|
|
150
|
+
return body;
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
async listFormats(networkCode: string): Promise<UpstreamFormat[]> {
|
|
154
|
+
const { body } = await http.get<{ formats: UpstreamFormat[] }>(
|
|
155
|
+
'/v1/formats',
|
|
156
|
+
undefined,
|
|
157
|
+
networkHeader(networkCode)
|
|
158
|
+
);
|
|
159
|
+
return body?.formats ?? [];
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
async listCreatives(
|
|
163
|
+
networkCode: string,
|
|
164
|
+
opts?: {
|
|
165
|
+
advertiser_id?: string;
|
|
166
|
+
format_id?: string;
|
|
167
|
+
status?: string;
|
|
168
|
+
created_after?: string;
|
|
169
|
+
creative_ids?: string[];
|
|
170
|
+
cursor?: string;
|
|
171
|
+
limit?: number;
|
|
172
|
+
}
|
|
173
|
+
): Promise<{ creatives: UpstreamCreative[]; next_cursor?: string }> {
|
|
174
|
+
const params: Record<string, string> = {};
|
|
175
|
+
if (opts?.advertiser_id) params['advertiser_id'] = opts.advertiser_id;
|
|
176
|
+
if (opts?.format_id) params['format_id'] = opts.format_id;
|
|
177
|
+
if (opts?.status) params['status'] = opts.status;
|
|
178
|
+
if (opts?.created_after) params['created_after'] = opts.created_after;
|
|
179
|
+
if (opts?.creative_ids?.length) params['creative_ids'] = opts.creative_ids.join(',');
|
|
180
|
+
if (opts?.cursor) params['cursor'] = opts.cursor;
|
|
181
|
+
if (opts?.limit !== undefined) params['limit'] = String(opts.limit);
|
|
182
|
+
const { body } = await http.get<{ creatives: UpstreamCreative[]; next_cursor?: string }>(
|
|
183
|
+
'/v1/creatives',
|
|
184
|
+
params,
|
|
185
|
+
networkHeader(networkCode)
|
|
186
|
+
);
|
|
187
|
+
return { creatives: body?.creatives ?? [], ...(body?.next_cursor && { next_cursor: body.next_cursor }) };
|
|
188
|
+
},
|
|
189
|
+
|
|
190
|
+
async getCreative(networkCode: string, creativeId: string): Promise<UpstreamCreative | null> {
|
|
191
|
+
const { body } = await http.get<UpstreamCreative>(
|
|
192
|
+
`/v1/creatives/${encodeURIComponent(creativeId)}`,
|
|
193
|
+
undefined,
|
|
194
|
+
networkHeader(networkCode)
|
|
195
|
+
);
|
|
196
|
+
return body;
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
async createCreative(
|
|
200
|
+
networkCode: string,
|
|
201
|
+
body: {
|
|
202
|
+
name: string;
|
|
203
|
+
advertiser_id: string;
|
|
204
|
+
format_id?: string;
|
|
205
|
+
upload_mime?: string;
|
|
206
|
+
width?: number;
|
|
207
|
+
height?: number;
|
|
208
|
+
snippet?: string;
|
|
209
|
+
click_url?: string;
|
|
210
|
+
client_request_id?: string;
|
|
211
|
+
/** Caller-supplied id override — TEST-ONLY path used by the comply
|
|
212
|
+
* seeder so storyboard fixtures can reference creatives by their
|
|
213
|
+
* declared alias. Production servers don't allow this. */
|
|
214
|
+
creative_id?: string;
|
|
215
|
+
}
|
|
216
|
+
): Promise<UpstreamCreative> {
|
|
217
|
+
const r = await http.post<UpstreamCreative>('/v1/creatives', body, networkHeader(networkCode));
|
|
218
|
+
if (r.body === null) {
|
|
219
|
+
throw new AdcpError('CREATIVE_REJECTED', { message: 'upstream creative creation rejected' });
|
|
220
|
+
}
|
|
221
|
+
return r.body;
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
async renderCreative(
|
|
225
|
+
networkCode: string,
|
|
226
|
+
creativeId: string,
|
|
227
|
+
context: Record<string, unknown>
|
|
228
|
+
): Promise<UpstreamRenderResponse> {
|
|
229
|
+
const r = await http.post<UpstreamRenderResponse>(
|
|
230
|
+
`/v1/creatives/${encodeURIComponent(creativeId)}/render`,
|
|
231
|
+
{ context },
|
|
232
|
+
networkHeader(networkCode)
|
|
233
|
+
);
|
|
234
|
+
if (r.body === null) {
|
|
235
|
+
throw new AdcpError('INVALID_REQUEST', { message: 'upstream render returned no body' });
|
|
236
|
+
}
|
|
237
|
+
return r.body;
|
|
238
|
+
},
|
|
239
|
+
|
|
240
|
+
async getDelivery(
|
|
241
|
+
networkCode: string,
|
|
242
|
+
creativeId: string,
|
|
243
|
+
range: { start?: string; end?: string }
|
|
244
|
+
): Promise<UpstreamDelivery | null> {
|
|
245
|
+
const params: Record<string, string> = {};
|
|
246
|
+
if (range.start) params['start'] = range.start;
|
|
247
|
+
if (range.end) params['end'] = range.end;
|
|
248
|
+
const { body } = await http.get<UpstreamDelivery>(
|
|
249
|
+
`/v1/creatives/${encodeURIComponent(creativeId)}/delivery`,
|
|
250
|
+
params,
|
|
251
|
+
networkHeader(networkCode)
|
|
252
|
+
);
|
|
253
|
+
return body;
|
|
254
|
+
},
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
// ---------------------------------------------------------------------------
|
|
258
|
+
// AdCP-side adapter — typed against CreativeAdServerPlatform.
|
|
259
|
+
// ---------------------------------------------------------------------------
|
|
260
|
+
|
|
261
|
+
interface NetworkMeta {
|
|
262
|
+
network_code: string;
|
|
263
|
+
publisher_domain: string;
|
|
264
|
+
[key: string]: unknown;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const FORMAT_AGENT_URL = PUBLIC_AGENT_URL;
|
|
268
|
+
|
|
269
|
+
/** Project upstream format → AdCP `Format` shape with closed-shape
|
|
270
|
+
* `renders[]` per #1325. Adapter consumes `GET /v1/formats` then
|
|
271
|
+
* projects each entry. */
|
|
272
|
+
function projectFormat(f: UpstreamFormat): ListCreativeFormatsResponse['formats'][number] {
|
|
273
|
+
// Output slot declared on every format so build_creative's response key
|
|
274
|
+
// (`assets['serving_tag']`) matches a declared asset_id per
|
|
275
|
+
// creative-manifest.json:14. `required: false` because the buyer doesn't
|
|
276
|
+
// supply this — buildCreative generates and returns it. asset_type: 'html'
|
|
277
|
+
// mirrors the buildCreative response (always renders to an HTML serving
|
|
278
|
+
// tag in this worked example); video/CTV adapters emitting VAST should
|
|
279
|
+
// declare `FormatAsset.vast({ asset_id: 'serving_tag', required: false })` instead.
|
|
280
|
+
// Asset_id `serving_tag` is shared with hello_creative_adapter_template.ts
|
|
281
|
+
// — keeping the same id across both worked examples teaches adopters that
|
|
282
|
+
// the asset_id is contractual (declared by the format), not platform-flavored.
|
|
283
|
+
const outputAssets = [FormatAsset.html({ asset_id: 'serving_tag', required: false })];
|
|
284
|
+
|
|
285
|
+
// Display fixed formats: emit dimensions on a single 'main' render.
|
|
286
|
+
if (f.render_kind === 'fixed' && f.channel === 'display' && f.width !== undefined && f.height !== undefined) {
|
|
287
|
+
return {
|
|
288
|
+
format_id: { agent_url: FORMAT_AGENT_URL, id: f.format_id },
|
|
289
|
+
name: f.name,
|
|
290
|
+
renders: [
|
|
291
|
+
{
|
|
292
|
+
role: 'main',
|
|
293
|
+
dimensions: { width: f.width, height: f.height, unit: 'px' as const },
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
assets: outputAssets,
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
// Video / CTV: project at 1080p baseline.
|
|
300
|
+
if (f.render_kind === 'fixed' && (f.channel === 'video' || f.channel === 'ctv')) {
|
|
301
|
+
return {
|
|
302
|
+
format_id: { agent_url: FORMAT_AGENT_URL, id: f.format_id },
|
|
303
|
+
name: f.name,
|
|
304
|
+
renders: [
|
|
305
|
+
{
|
|
306
|
+
role: 'main',
|
|
307
|
+
dimensions: { width: 1920, height: 1080, unit: 'px' as const },
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
assets: outputAssets,
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
// Parameterized — placeholder dimensions for the worked example. Real
|
|
314
|
+
// adopters populate `accepts_parameters[]` (typed via the
|
|
315
|
+
// `parameterizedRender(...)` builder from `@adcp/sdk` per #1325) and
|
|
316
|
+
// surface dimensions per instantiation. The 1x1 baseline keeps the
|
|
317
|
+
// wire response schema-valid (`width`/`height` are exclusiveMinimum 0).
|
|
318
|
+
return {
|
|
319
|
+
format_id: { agent_url: FORMAT_AGENT_URL, id: f.format_id },
|
|
320
|
+
name: f.name,
|
|
321
|
+
renders: [{ role: 'main', dimensions: { width: 1, height: 1, unit: 'px' as const } }],
|
|
322
|
+
assets: outputAssets,
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** Project upstream creative → AdCP `CreativeAsset`. The list-creatives
|
|
327
|
+
* response schema requires `creative_id`, `name`, `format_id`, `status`,
|
|
328
|
+
* `created_date`, `updated_date`. We wrap the upstream snippet as a single
|
|
329
|
+
* inline html asset so adopters see how `assets` is keyed; production
|
|
330
|
+
* sellers project the upstream's structured asset graph (image_url,
|
|
331
|
+
* video_url, click_url, headline, etc.) here. */
|
|
332
|
+
function projectCreative(c: UpstreamCreative): CreativeAsset {
|
|
333
|
+
return {
|
|
334
|
+
creative_id: c.creative_id,
|
|
335
|
+
name: c.name,
|
|
336
|
+
format_id: { agent_url: FORMAT_AGENT_URL, id: c.format_id },
|
|
337
|
+
status: mapCreativeStatus(c.status),
|
|
338
|
+
created_date: c.created_at,
|
|
339
|
+
updated_date: c.updated_at,
|
|
340
|
+
assets: {
|
|
341
|
+
...(c.snippet !== undefined && {
|
|
342
|
+
snippet: { asset_type: 'html', content: c.snippet },
|
|
343
|
+
}),
|
|
344
|
+
...(c.click_url !== undefined && {
|
|
345
|
+
click_url: { asset_type: 'url', url: c.click_url },
|
|
346
|
+
}),
|
|
347
|
+
},
|
|
348
|
+
// CAST: schema-pickiness — `CreativeAsset` requires `assets` keys to
|
|
349
|
+
// satisfy the discriminated `AssetVariant` union. The `html` and `url`
|
|
350
|
+
// variants we emit ARE valid (asset_type: 'html' + content; asset_type:
|
|
351
|
+
// 'url' + url), but TS's structural inference can't prove it through
|
|
352
|
+
// the spread. Adopters who project richer asset graphs can drop the cast.
|
|
353
|
+
} as unknown as CreativeAsset;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
function mapCreativeStatus(s: UpstreamCreative['status']): 'approved' | 'pending_review' | 'rejected' {
|
|
357
|
+
if (s === 'rejected') return 'rejected';
|
|
358
|
+
// active / paused / archived all surface as approved for the buyer's view —
|
|
359
|
+
// pause/archive are seller-side library hygiene, not buyer review state.
|
|
360
|
+
return 'approved';
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
class CreativeAdServerAdapter implements DecisioningPlatform<Record<string, never>, NetworkMeta> {
|
|
364
|
+
capabilities = {
|
|
365
|
+
specialisms: ['creative-ad-server'] as const,
|
|
366
|
+
channels: ['display', 'olv', 'ctv'] as const,
|
|
367
|
+
pricingModels: [] as const,
|
|
368
|
+
config: {},
|
|
369
|
+
// Empty discovery block — `complyTest:` config below wires the seed.creative
|
|
370
|
+
// handler. The framework auto-derives the `scenarios` projection from the
|
|
371
|
+
// supplied adapters, so the explicit `scenarios: [...]` list isn't needed.
|
|
372
|
+
compliance_testing: {},
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
accounts: AccountStore<NetworkMeta> = {
|
|
376
|
+
resolve: async ref => {
|
|
377
|
+
// No-account tools (`previewCreative`, `listCreativeFormats`) hand
|
|
378
|
+
// `undefined` to resolve. Return the default-listing network so
|
|
379
|
+
// the format catalog query has tenant context.
|
|
380
|
+
if (!ref) {
|
|
381
|
+
const network = await upstream.lookupNetwork(KNOWN_PUBLISHERS[0] ?? 'creative-network.example');
|
|
382
|
+
if (!network) return null;
|
|
383
|
+
return {
|
|
384
|
+
id: network.network_code,
|
|
385
|
+
name: network.display_name,
|
|
386
|
+
status: 'active',
|
|
387
|
+
brand: { domain: network.adcp_publisher },
|
|
388
|
+
ctx_metadata: { network_code: network.network_code, publisher_domain: network.adcp_publisher },
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
if ('account_id' in ref) {
|
|
392
|
+
// ─── TEST-ONLY: opaque account_id → sandbox network ─────────────
|
|
393
|
+
// DELETE BEFORE DEPLOYING. The storyboard runner sends
|
|
394
|
+
// `account: { account_id: 'acct_acme_creative' }` for cascade
|
|
395
|
+
// scenarios; we route any account_id to the ACME sandbox network
|
|
396
|
+
// and stamp `mode: 'sandbox'` so the framework's comply gate
|
|
397
|
+
// admits the seeder. Production sellers replace this with a real
|
|
398
|
+
// `account_id → network_code` directory persisted from
|
|
399
|
+
// `sync_accounts`, and MUST NOT stamp `mode: 'sandbox'` — that
|
|
400
|
+
// flag exists exclusively for sandboxed test traffic.
|
|
401
|
+
const network = await upstream.lookupNetwork('acmeoutdoor.example');
|
|
402
|
+
if (!network) return null;
|
|
403
|
+
return {
|
|
404
|
+
id: ref.account_id,
|
|
405
|
+
name: network.display_name,
|
|
406
|
+
status: 'active',
|
|
407
|
+
mode: 'sandbox',
|
|
408
|
+
brand: { domain: network.adcp_publisher },
|
|
409
|
+
ctx_metadata: { network_code: network.network_code, publisher_domain: network.adcp_publisher },
|
|
410
|
+
};
|
|
411
|
+
// ─── /TEST-ONLY ──────────────────────────────────────────────────
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// ─── TEST-ONLY: cascade-scenario sandbox-arm ─────────────────────
|
|
415
|
+
// DELETE BEFORE DEPLOYING. Stamps `mode: 'sandbox'` to admit the
|
|
416
|
+
// framework's comply_test_controller gate (#1435 phase 3).
|
|
417
|
+
if (ref.sandbox === true) {
|
|
418
|
+
const sandboxDomain = 'acmeoutdoor.example';
|
|
419
|
+
const network = await upstream.lookupNetwork(sandboxDomain);
|
|
420
|
+
if (!network) return null;
|
|
421
|
+
return {
|
|
422
|
+
id: `${SANDBOX_ID_PREFIX}${network.network_code}`,
|
|
423
|
+
name: `Sandbox: ${network.display_name}`,
|
|
424
|
+
status: 'active',
|
|
425
|
+
mode: 'sandbox',
|
|
426
|
+
...(ref.operator !== undefined && { operator: ref.operator }),
|
|
427
|
+
brand: { domain: ref.brand?.domain ?? sandboxDomain },
|
|
428
|
+
ctx_metadata: { network_code: network.network_code, publisher_domain: network.adcp_publisher },
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
// ─── /TEST-ONLY ──────────────────────────────────────────────────
|
|
432
|
+
|
|
433
|
+
const publisherDomain = ref.brand?.domain;
|
|
434
|
+
if (!publisherDomain) return null;
|
|
435
|
+
const network = await upstream.lookupNetwork(publisherDomain);
|
|
436
|
+
if (!network) return null;
|
|
437
|
+
return {
|
|
438
|
+
id: network.network_code,
|
|
439
|
+
name: network.display_name,
|
|
440
|
+
status: 'active',
|
|
441
|
+
...(ref.operator !== undefined && { operator: ref.operator }),
|
|
442
|
+
brand: { domain: network.adcp_publisher },
|
|
443
|
+
ctx_metadata: { network_code: network.network_code, publisher_domain: network.adcp_publisher },
|
|
444
|
+
};
|
|
445
|
+
},
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
creative: CreativeAdServerPlatform<NetworkMeta> = {
|
|
449
|
+
/**
|
|
450
|
+
* Build / retrieve creative tags. Two invocation modes per the spec:
|
|
451
|
+
* - Library lookup: `req.creative_id` references an existing creative
|
|
452
|
+
* - Inline build: `req.creative_manifest` carries a fresh asset
|
|
453
|
+
*
|
|
454
|
+
* The worked example handles library-lookup mode; inline-build registers
|
|
455
|
+
* the creative first (push to upstream) then renders. SWAP for adapters
|
|
456
|
+
* that don't support inline build to throw INVALID_REQUEST instead.
|
|
457
|
+
*/
|
|
458
|
+
buildCreative: async (req: BuildCreativeRequest, ctx): Promise<BuildCreativeSuccess> => {
|
|
459
|
+
const networkCode = ctx.account.ctx_metadata.network_code;
|
|
460
|
+
const creativeId = (req as { creative_id?: string }).creative_id;
|
|
461
|
+
const creativeManifest = (req as { creative_manifest?: { creative_id?: string; assets?: unknown } })
|
|
462
|
+
.creative_manifest;
|
|
463
|
+
const mediaBuyId = (req as { media_buy_id?: string }).media_buy_id;
|
|
464
|
+
const packageId = (req as { package_id?: string }).package_id;
|
|
465
|
+
|
|
466
|
+
let creative: UpstreamCreative | null;
|
|
467
|
+
if (creativeId) {
|
|
468
|
+
creative = await upstream.getCreative(networkCode, creativeId);
|
|
469
|
+
if (!creative) {
|
|
470
|
+
throw new AdcpError('CREATIVE_NOT_FOUND', {
|
|
471
|
+
message: `creative ${creativeId} not found in this seller's network`,
|
|
472
|
+
field: 'creative_id',
|
|
473
|
+
recovery: 'terminal',
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
} else if (creativeManifest) {
|
|
477
|
+
// Inline-build path: register the creative first.
|
|
478
|
+
const advertiserId = ctx.account.id;
|
|
479
|
+
const targetFormatId = (req as { target_format_id?: { id?: string } }).target_format_id?.id;
|
|
480
|
+
const created = await upstream.createCreative(networkCode, {
|
|
481
|
+
name: creativeManifest.creative_id ?? 'Inline build',
|
|
482
|
+
advertiser_id: advertiserId,
|
|
483
|
+
...(targetFormatId !== undefined && { format_id: targetFormatId }),
|
|
484
|
+
});
|
|
485
|
+
creative = created;
|
|
486
|
+
} else {
|
|
487
|
+
throw new AdcpError('INVALID_REQUEST', {
|
|
488
|
+
message: 'either creative_id or creative_manifest is required',
|
|
489
|
+
recovery: 'correctable',
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// Tag generation — substitutes macros into the stored snippet.
|
|
494
|
+
// Production adopters thread placement-specific context here:
|
|
495
|
+
// click_url derived from media_buy + package, impression pixel from
|
|
496
|
+
// viewability vendor, cb (cache-buster) random.
|
|
497
|
+
const ctxMacros: Record<string, unknown> = {
|
|
498
|
+
...(mediaBuyId && { media_buy_id: mediaBuyId }),
|
|
499
|
+
...(packageId && { package_id: packageId }),
|
|
500
|
+
};
|
|
501
|
+
const rendered = await upstream.renderCreative(networkCode, creative.creative_id, ctxMacros);
|
|
502
|
+
|
|
503
|
+
// BuildCreativeResponse is a oneOf — variant 0 wraps a single
|
|
504
|
+
// `creative_manifest`, variant 1 carries `creative_manifests[]`,
|
|
505
|
+
// variant 2 is errors. We always emit single. The manifest's
|
|
506
|
+
// `additionalProperties: false` constraint excludes `creative_id`
|
|
507
|
+
// and `name` from the manifest body — only `format_id`, `assets`,
|
|
508
|
+
// `rights`, `industry_identifiers`, `provenance`, `ext` are allowed.
|
|
509
|
+
// The `tag` asset_id matches the output slot declared in
|
|
510
|
+
// `projectFormat` (FormatAsset.html({ asset_id: 'serving_tag', ... })),
|
|
511
|
+
// satisfying creative-manifest.json:14. Each `assets[key]` is a
|
|
512
|
+
// discriminated AssetVariant — `asset_type` selects the matching
|
|
513
|
+
// schema (html requires `content`, etc.).
|
|
514
|
+
return {
|
|
515
|
+
creative_manifest: {
|
|
516
|
+
format_id: { agent_url: FORMAT_AGENT_URL, id: creative.format_id },
|
|
517
|
+
assets: {
|
|
518
|
+
serving_tag: { asset_type: 'html', content: rendered.tag_html },
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
// CAST: oneOf-emitter — picking variant 0 (single creative_manifest)
|
|
522
|
+
// of the BuildCreativeResponse oneOf. Adopters keep this cast.
|
|
523
|
+
} as unknown as BuildCreativeSuccess;
|
|
524
|
+
},
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Preview-only — sandbox URL. NoAccountCtx narrow because the wire
|
|
528
|
+
* request doesn't carry `account`. Resolver synthesizes a fallback
|
|
529
|
+
* (KNOWN_PUBLISHERS[0]) so we have tenant context.
|
|
530
|
+
*/
|
|
531
|
+
previewCreative: async (req: PreviewCreativeRequest, ctx): Promise<PreviewCreativeResponse> => {
|
|
532
|
+
// No-account narrow: ctx.account is `Account<NetworkMeta> | undefined`
|
|
533
|
+
// per the type. Defensive guard per migration recipe #11.
|
|
534
|
+
const acct = ctx.account as Account<NetworkMeta> | undefined;
|
|
535
|
+
if (!acct) {
|
|
536
|
+
throw new AdcpError('INVALID_REQUEST', {
|
|
537
|
+
message: 'preview requires a default workspace; account resolution returned null',
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
const networkCode = acct.ctx_metadata.network_code;
|
|
541
|
+
const creativeId = (req as { creative_id?: string }).creative_id;
|
|
542
|
+
if (!creativeId) {
|
|
543
|
+
throw new AdcpError('INVALID_REQUEST', {
|
|
544
|
+
message: 'creative_id is required for preview',
|
|
545
|
+
field: 'creative_id',
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
const creative = await upstream.getCreative(networkCode, creativeId);
|
|
549
|
+
if (!creative) {
|
|
550
|
+
throw new AdcpError('CREATIVE_NOT_FOUND', {
|
|
551
|
+
message: `creative ${creativeId} not found`,
|
|
552
|
+
field: 'creative_id',
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
const rendered = await upstream.renderCreative(networkCode, creativeId, {});
|
|
556
|
+
return {
|
|
557
|
+
response_type: 'single',
|
|
558
|
+
previews: [
|
|
559
|
+
{
|
|
560
|
+
preview_id: `prv_${creative.creative_id}`,
|
|
561
|
+
renders: [
|
|
562
|
+
{
|
|
563
|
+
render_id: `rnd_${creative.creative_id}`,
|
|
564
|
+
preview_url: rendered.preview_url,
|
|
565
|
+
role: 'primary',
|
|
566
|
+
},
|
|
567
|
+
],
|
|
568
|
+
input: { name: 'default' },
|
|
569
|
+
},
|
|
570
|
+
],
|
|
571
|
+
expires_at: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString(),
|
|
572
|
+
// CAST: oneOf-emitter — picking the `single` discriminator branch
|
|
573
|
+
// of the PreviewCreativeResponse 3-way union (single | batch | variant).
|
|
574
|
+
// See SHAPE-GOTCHAS §4. Adopters keep this cast.
|
|
575
|
+
} as unknown as PreviewCreativeResponse;
|
|
576
|
+
},
|
|
577
|
+
|
|
578
|
+
listCreativeFormats: async (_req, _ctx): Promise<ListCreativeFormatsResponse> => {
|
|
579
|
+
// No-account tool. Use the default workspace's catalog. Production
|
|
580
|
+
// sellers expose a global format catalog or the workspace tied to
|
|
581
|
+
// the API key's principal.
|
|
582
|
+
const networkCode = NETWORK_DEFAULT_CODE;
|
|
583
|
+
const upstreamFormats = await upstream.listFormats(networkCode);
|
|
584
|
+
return { formats: upstreamFormats.map(projectFormat) };
|
|
585
|
+
},
|
|
586
|
+
|
|
587
|
+
syncCreatives: async (creatives: CreativeAsset[], ctx): Promise<SyncCreativesRow[]> => {
|
|
588
|
+
const networkCode = ctx.account.ctx_metadata.network_code;
|
|
589
|
+
const advertiserId = ctx.account.id;
|
|
590
|
+
const rows: SyncCreativesRow[] = [];
|
|
591
|
+
for (const c of creatives) {
|
|
592
|
+
const opaque = c as unknown as Record<string, unknown>;
|
|
593
|
+
const fmtRef = opaque['format_id'] as { id?: string } | string | undefined;
|
|
594
|
+
const formatId = typeof fmtRef === 'string' ? fmtRef : fmtRef?.id;
|
|
595
|
+
const idempotencyHint =
|
|
596
|
+
typeof opaque['creative_id'] === 'string' ? (opaque['creative_id'] as string) : undefined;
|
|
597
|
+
// Extract upstream-specific fields the AdCP `CreativeAsset` shape
|
|
598
|
+
// doesn't carry directly. Adopters whose backend takes the structured
|
|
599
|
+
// assets[] map should project differently; this worked example wires
|
|
600
|
+
// a single inline html snippet + click_url for storyboard simplicity.
|
|
601
|
+
const snippet = typeof opaque['snippet'] === 'string' ? (opaque['snippet'] as string) : undefined;
|
|
602
|
+
const clickUrl = typeof opaque['click_url'] === 'string' ? (opaque['click_url'] as string) : undefined;
|
|
603
|
+
try {
|
|
604
|
+
const created = await upstream.createCreative(networkCode, {
|
|
605
|
+
name: typeof opaque['name'] === 'string' ? (opaque['name'] as string) : 'Untitled',
|
|
606
|
+
advertiser_id: advertiserId,
|
|
607
|
+
...(formatId !== undefined && { format_id: formatId }),
|
|
608
|
+
...(snippet !== undefined && { snippet }),
|
|
609
|
+
...(clickUrl !== undefined && { click_url: clickUrl }),
|
|
610
|
+
...(idempotencyHint !== undefined && { client_request_id: idempotencyHint }),
|
|
611
|
+
});
|
|
612
|
+
rows.push({
|
|
613
|
+
creative_id: created.creative_id,
|
|
614
|
+
action: 'created',
|
|
615
|
+
status: 'approved',
|
|
616
|
+
});
|
|
617
|
+
} catch (e) {
|
|
618
|
+
rows.push({
|
|
619
|
+
creative_id: idempotencyHint ?? 'unknown',
|
|
620
|
+
action: 'failed',
|
|
621
|
+
status: 'rejected',
|
|
622
|
+
errors: [
|
|
623
|
+
{
|
|
624
|
+
code: e instanceof AdcpError ? e.code : 'CREATIVE_REJECTED',
|
|
625
|
+
message: e instanceof Error ? e.message : 'creative sync failed',
|
|
626
|
+
},
|
|
627
|
+
],
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
return rows;
|
|
632
|
+
},
|
|
633
|
+
|
|
634
|
+
listCreatives: async (req, ctx) => {
|
|
635
|
+
const networkCode = ctx.account.ctx_metadata.network_code;
|
|
636
|
+
// Multi-id pass-through per #1342: `filter.creative_ids` arrays must
|
|
637
|
+
// round-trip every id, not just the first.
|
|
638
|
+
const filter = (
|
|
639
|
+
req as { filter?: { creative_ids?: string[]; advertiser_id?: string; format_id?: string; status?: string } }
|
|
640
|
+
).filter;
|
|
641
|
+
const cursor = (req as { cursor?: string }).cursor;
|
|
642
|
+
const limit = (req as { limit?: number }).limit;
|
|
643
|
+
const result = await upstream.listCreatives(networkCode, {
|
|
644
|
+
...(filter?.creative_ids?.length && { creative_ids: filter.creative_ids }),
|
|
645
|
+
...(filter?.advertiser_id && { advertiser_id: filter.advertiser_id }),
|
|
646
|
+
...(filter?.format_id && { format_id: filter.format_id }),
|
|
647
|
+
...(filter?.status && { status: filter.status }),
|
|
648
|
+
...(cursor && { cursor }),
|
|
649
|
+
...(limit !== undefined && { limit }),
|
|
650
|
+
});
|
|
651
|
+
// CAST: schema-drift — `@adcp/sdk/types`'s `ListCreativesResponse`
|
|
652
|
+
// re-export resolves to `adcp.ts`'s legacy shape (no `query_summary`),
|
|
653
|
+
// while the platform interface requires `tools.generated`'s shape
|
|
654
|
+
// (with `query_summary` + `pagination`). The Awaited<ReturnType<>>
|
|
655
|
+
// dance pulls the platform-required type so both wire shapes stay
|
|
656
|
+
// schema-valid. Drop when codegen lands on a single canonical type.
|
|
657
|
+
type R = Awaited<ReturnType<NonNullable<CreativeAdServerPlatform<NetworkMeta>['listCreatives']>>>;
|
|
658
|
+
const projected = result.creatives.map(projectCreative);
|
|
659
|
+
const response: R = {
|
|
660
|
+
query_summary: {
|
|
661
|
+
total_matching: projected.length,
|
|
662
|
+
returned: projected.length,
|
|
663
|
+
},
|
|
664
|
+
pagination: {
|
|
665
|
+
has_more: result.next_cursor !== undefined,
|
|
666
|
+
...(result.next_cursor !== undefined && { cursor: result.next_cursor }),
|
|
667
|
+
total_count: projected.length,
|
|
668
|
+
},
|
|
669
|
+
creatives: projected,
|
|
670
|
+
} as unknown as R;
|
|
671
|
+
return response;
|
|
672
|
+
},
|
|
673
|
+
|
|
674
|
+
getCreativeDelivery: async (req: GetCreativeDeliveryRequest, ctx): Promise<GetCreativeDeliveryResponse> => {
|
|
675
|
+
const networkCode = ctx.account.ctx_metadata.network_code;
|
|
676
|
+
// Multi-id pass-through per #1342 + #1410. `filter.creative_ids` arrays
|
|
677
|
+
// must fan out per id; truncating to ids[0] is a correctness bug the
|
|
678
|
+
// framework dev-mode warns on. When `creative_ids` is omitted, the
|
|
679
|
+
// buyer is asking for all creatives in scope — the worked example
|
|
680
|
+
// returns an empty rows list (no fan-out target) so the storyboard
|
|
681
|
+
// sees a valid response shape; production sellers with paginated
|
|
682
|
+
// libraries iterate ALL creatives in the network (potentially
|
|
683
|
+
// expensive — most platforms require an explicit `creative_ids`
|
|
684
|
+
// filter or `media_buy_ids` filter).
|
|
685
|
+
const creativeIds = (req as { filter?: { creative_ids?: string[] } }).filter?.creative_ids ?? [];
|
|
686
|
+
const start = (req as { reporting_period?: { start?: string } }).reporting_period?.start;
|
|
687
|
+
const end = (req as { reporting_period?: { end?: string } }).reporting_period?.end;
|
|
688
|
+
|
|
689
|
+
const deliveries = await Promise.all(
|
|
690
|
+
creativeIds.map(async id => {
|
|
691
|
+
const d = await upstream.getDelivery(networkCode, id, {
|
|
692
|
+
...(start !== undefined && { start }),
|
|
693
|
+
...(end !== undefined && { end }),
|
|
694
|
+
});
|
|
695
|
+
if (!d) return null;
|
|
696
|
+
return d;
|
|
697
|
+
})
|
|
698
|
+
);
|
|
699
|
+
const present = deliveries.filter((d): d is UpstreamDelivery => d !== null);
|
|
700
|
+
// Reporting-period aggregation: take min(start) / max(end) across rows
|
|
701
|
+
// so the response window covers all returned creatives. SWAP if your
|
|
702
|
+
// backend ships heterogeneous windows per creative (some platforms do
|
|
703
|
+
// — surface the per-creative window inside `creatives[i].reporting_period`).
|
|
704
|
+
const earliest = present
|
|
705
|
+
.map(d => d.reporting_period.start)
|
|
706
|
+
.reduce((a, b) => (a < b ? a : b), present[0]?.reporting_period.start ?? new Date().toISOString());
|
|
707
|
+
const latest = present
|
|
708
|
+
.map(d => d.reporting_period.end)
|
|
709
|
+
.reduce((a, b) => (a > b ? a : b), present[0]?.reporting_period.end ?? new Date().toISOString());
|
|
710
|
+
return {
|
|
711
|
+
currency: 'USD',
|
|
712
|
+
reporting_period: { start: earliest, end: latest },
|
|
713
|
+
creatives: present.map(d => ({
|
|
714
|
+
creative_id: d.creative_id,
|
|
715
|
+
impressions: d.totals.impressions,
|
|
716
|
+
clicks: d.totals.clicks,
|
|
717
|
+
})),
|
|
718
|
+
// CAST: schema-drift — same `tools.generated` vs `adcp.ts` mismatch
|
|
719
|
+
// as `listCreatives` above. Drop when codegen converges. The wire
|
|
720
|
+
// shape is correct (currency + reporting_period + creatives[]).
|
|
721
|
+
} as unknown as GetCreativeDeliveryResponse;
|
|
722
|
+
},
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// Default network used by no-account tools (`listCreativeFormats`).
|
|
727
|
+
// SWAP: real platforms either expose a global format catalog or derive
|
|
728
|
+
// the listing workspace from the API key's principal — a runtime env var
|
|
729
|
+
// is a multi-tenant footgun. See migration guide §11 (NoAccountCtx).
|
|
730
|
+
const NETWORK_DEFAULT_CODE = process.env['DEFAULT_LISTING_NETWORK'] ?? 'net_creative_us';
|
|
731
|
+
|
|
732
|
+
// ---------------------------------------------------------------------------
|
|
733
|
+
// Bootstrap
|
|
734
|
+
// ---------------------------------------------------------------------------
|
|
735
|
+
|
|
736
|
+
const platform = new CreativeAdServerAdapter();
|
|
737
|
+
const idempotencyStore = createIdempotencyStore({ backend: memoryBackend(), ttlSeconds: 86_400 });
|
|
738
|
+
|
|
739
|
+
// ─── TEST-ONLY: comply_test_controller seed adapter ────────────────────
|
|
740
|
+
// DELETE BEFORE DEPLOYING. The storyboard's `controller_seeding: true`
|
|
741
|
+
// fires `seed.creative` for each fixture entry; we forward to the upstream
|
|
742
|
+
// mock's POST /v1/creatives so the seeded creative is real in the library.
|
|
743
|
+
// Production sellers ship without this — their library state is owned by
|
|
744
|
+
// their UI / API ingestion, not the comply controller.
|
|
745
|
+
//
|
|
746
|
+
// Belt-and-suspenders: the framework gates `comply_test_controller` on
|
|
747
|
+
// `account.mode === 'sandbox'` (#1435 phase 3), so this seeder only runs
|
|
748
|
+
// when the buyer's request resolved to a sandbox-stamped account. The
|
|
749
|
+
// upstream mock additionally requires `MOCK_ALLOW_CREATIVE_ID_OVERRIDE=1`
|
|
750
|
+
// before honoring the `creative_id` field below — without that env, the
|
|
751
|
+
// mock generates a fresh server-side id and the seeder's alias is dropped
|
|
752
|
+
// (storyboard fails loudly, not silently). The compliance runner sets the
|
|
753
|
+
// env via this adapter's process; production deploys never set it.
|
|
754
|
+
async function seedCreativeOnUpstream(creativeId: string, fixture: Record<string, unknown>): Promise<void> {
|
|
755
|
+
// Pick the first known network — storyboard fixtures aren't network-scoped,
|
|
756
|
+
// so we route them to the default sandbox network.
|
|
757
|
+
const network = await upstream.lookupNetwork('acmeoutdoor.example');
|
|
758
|
+
if (!network) return;
|
|
759
|
+
try {
|
|
760
|
+
await upstream.createCreative(network.network_code, {
|
|
761
|
+
name: typeof fixture['name'] === 'string' ? fixture['name'] : creativeId,
|
|
762
|
+
advertiser_id: typeof fixture['advertiser_id'] === 'string' ? fixture['advertiser_id'] : 'adv_seeded',
|
|
763
|
+
format_id:
|
|
764
|
+
typeof fixture['format_id'] === 'object' &&
|
|
765
|
+
fixture['format_id'] !== null &&
|
|
766
|
+
typeof (fixture['format_id'] as { id?: string }).id === 'string'
|
|
767
|
+
? (fixture['format_id'] as { id: string }).id
|
|
768
|
+
: 'display_300x250', // fallback when fixture omits format_id; sandbox-test only
|
|
769
|
+
client_request_id: creativeId,
|
|
770
|
+
// Pass the storyboard-declared id through — the upstream mock honors
|
|
771
|
+
// it ONLY when `MOCK_ALLOW_CREATIVE_ID_OVERRIDE=1` is set in the
|
|
772
|
+
// mock's env. Production servers reject this field outright (the
|
|
773
|
+
// platform owns the id namespace).
|
|
774
|
+
creative_id: creativeId,
|
|
775
|
+
});
|
|
776
|
+
} catch {
|
|
777
|
+
// Idempotent — already seeded is fine.
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
// ─── /TEST-ONLY ────────────────────────────────────────────────────────
|
|
781
|
+
|
|
782
|
+
serve(
|
|
783
|
+
({ taskStore }) =>
|
|
784
|
+
createAdcpServerFromPlatform(platform, {
|
|
785
|
+
name: 'hello-creative-adapter-ad-server',
|
|
786
|
+
version: '1.0.0',
|
|
787
|
+
taskStore,
|
|
788
|
+
idempotency: idempotencyStore,
|
|
789
|
+
resolveSessionKey: ctx => {
|
|
790
|
+
const acct = ctx.account as Account<NetworkMeta> | undefined;
|
|
791
|
+
return acct?.id ?? 'anonymous';
|
|
792
|
+
},
|
|
793
|
+
complyTest: {
|
|
794
|
+
seed: {
|
|
795
|
+
creative: async ({ creative_id, fixture }) => {
|
|
796
|
+
await seedCreativeOnUpstream(creative_id, fixture);
|
|
797
|
+
},
|
|
798
|
+
},
|
|
799
|
+
},
|
|
800
|
+
}),
|
|
801
|
+
{
|
|
802
|
+
port: PORT,
|
|
803
|
+
authenticate: verifyApiKey({
|
|
804
|
+
keys: { [ADCP_AUTH_TOKEN]: { principal: 'compliance-runner' } },
|
|
805
|
+
}),
|
|
806
|
+
}
|
|
807
|
+
);
|
|
808
|
+
|
|
809
|
+
console.log(`creative-ad-server adapter on http://127.0.0.1:${PORT}/mcp · upstream: ${UPSTREAM_URL}`);
|