@adcp/sdk 12.1.1 → 13.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -3
- package/bin/adcp-fuzz.js +3 -1
- package/dist/lib/adapters/content-standards-adapter.d.mts +9 -9
- package/dist/lib/adapters/content-standards-adapter.d.ts +9 -9
- package/dist/lib/adapters/content-standards-adapter.d.ts.map +1 -1
- package/dist/lib/adapters/content-standards-adapter.js +22 -22
- package/dist/lib/adapters/content-standards-adapter.js.map +1 -1
- package/dist/lib/adapters/content-standards-adapter.mjs +18 -18
- package/dist/lib/adapters/content-standards-adapter.mjs.map +1 -1
- package/dist/lib/adapters/index.d.mts +2 -2
- package/dist/lib/adapters/index.d.ts +2 -2
- package/dist/lib/adapters/index.d.ts.map +1 -1
- package/dist/lib/adapters/index.js +10 -10
- package/dist/lib/adapters/index.js.map +1 -1
- package/dist/lib/adapters/index.mjs +9 -9
- package/dist/lib/adapters/index.mjs.map +1 -1
- package/dist/lib/auth/oauth/provider-cache.d.mts +7 -0
- package/dist/lib/auth/oauth/provider-cache.d.ts +8 -0
- package/dist/lib/auth/oauth/provider-cache.d.ts.map +1 -0
- package/dist/lib/auth/oauth/provider-cache.js +44 -0
- package/dist/lib/auth/oauth/provider-cache.js.map +1 -0
- package/dist/lib/auth/oauth/provider-cache.mjs +19 -0
- package/dist/lib/auth/oauth/provider-cache.mjs.map +1 -0
- package/dist/lib/conformance/invariants/uniformError.js +1 -1
- package/dist/lib/conformance/invariants/uniformError.js.map +1 -1
- package/dist/lib/conformance/invariants/uniformError.mjs +1 -1
- package/dist/lib/conformance/invariants/uniformError.mjs.map +1 -1
- package/dist/lib/conformance/runners.js +1 -1
- package/dist/lib/conformance/runners.js.map +1 -1
- package/dist/lib/conformance/runners.mjs +1 -1
- package/dist/lib/conformance/runners.mjs.map +1 -1
- package/dist/lib/conformance/seeder.js +5 -5
- package/dist/lib/conformance/seeder.js.map +1 -1
- package/dist/lib/conformance/seeder.mjs +5 -5
- package/dist/lib/conformance/seeder.mjs.map +1 -1
- package/dist/lib/core/ADCPMultiAgentClient.d.mts +26 -29
- package/dist/lib/core/ADCPMultiAgentClient.d.ts +26 -29
- package/dist/lib/core/ADCPMultiAgentClient.d.ts.map +1 -1
- package/dist/lib/core/ADCPMultiAgentClient.js +27 -19
- package/dist/lib/core/ADCPMultiAgentClient.js.map +1 -1
- package/dist/lib/core/ADCPMultiAgentClient.mjs +27 -19
- package/dist/lib/core/ADCPMultiAgentClient.mjs.map +1 -1
- package/dist/lib/core/AgentClient.d.mts +148 -138
- package/dist/lib/core/AgentClient.d.ts +148 -138
- package/dist/lib/core/AgentClient.d.ts.map +1 -1
- package/dist/lib/core/AgentClient.js +174 -85
- package/dist/lib/core/AgentClient.js.map +1 -1
- package/dist/lib/core/AgentClient.mjs +174 -85
- package/dist/lib/core/AgentClient.mjs.map +1 -1
- package/dist/lib/core/AsyncHandler.d.mts +18 -16
- package/dist/lib/core/AsyncHandler.d.ts +18 -16
- package/dist/lib/core/AsyncHandler.d.ts.map +1 -1
- package/dist/lib/core/AsyncHandler.js +22 -1
- package/dist/lib/core/AsyncHandler.js.map +1 -1
- package/dist/lib/core/AsyncHandler.mjs +22 -1
- package/dist/lib/core/AsyncHandler.mjs.map +1 -1
- package/dist/lib/core/ConversationTypes.d.mts +6 -2
- package/dist/lib/core/ConversationTypes.d.ts +6 -2
- package/dist/lib/core/ConversationTypes.d.ts.map +1 -1
- package/dist/lib/core/ConversationTypes.js.map +1 -1
- package/dist/lib/core/CreativeAgentClient.d.mts +41 -17
- package/dist/lib/core/CreativeAgentClient.d.ts +41 -17
- package/dist/lib/core/CreativeAgentClient.d.ts.map +1 -1
- package/dist/lib/core/CreativeAgentClient.js +39 -12
- package/dist/lib/core/CreativeAgentClient.js.map +1 -1
- package/dist/lib/core/CreativeAgentClient.mjs +39 -12
- package/dist/lib/core/CreativeAgentClient.mjs.map +1 -1
- package/dist/lib/core/SingleAgentClient.d.mts +127 -50
- package/dist/lib/core/SingleAgentClient.d.ts +127 -50
- package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
- package/dist/lib/core/SingleAgentClient.js +1617 -177
- package/dist/lib/core/SingleAgentClient.js.map +1 -1
- package/dist/lib/core/SingleAgentClient.mjs +1627 -177
- package/dist/lib/core/SingleAgentClient.mjs.map +1 -1
- package/dist/lib/core/TaskExecutor.d.mts +9 -0
- package/dist/lib/core/TaskExecutor.d.ts +9 -0
- package/dist/lib/core/TaskExecutor.d.ts.map +1 -1
- package/dist/lib/core/TaskExecutor.js +136 -43
- package/dist/lib/core/TaskExecutor.js.map +1 -1
- package/dist/lib/core/TaskExecutor.mjs +136 -43
- package/dist/lib/core/TaskExecutor.mjs.map +1 -1
- package/dist/lib/index.d.mts +111 -17
- package/dist/lib/index.d.ts +111 -17
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +94 -94
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/index.mjs +93 -94
- package/dist/lib/index.mjs.map +1 -1
- package/dist/lib/protocols/index.d.ts.map +1 -1
- package/dist/lib/protocols/index.js +6 -15
- package/dist/lib/protocols/index.js.map +1 -1
- package/dist/lib/protocols/index.mjs +6 -16
- package/dist/lib/protocols/index.mjs.map +1 -1
- package/dist/lib/protocols/mcp-modern.d.ts.map +1 -1
- package/dist/lib/protocols/mcp-modern.js +87 -12
- package/dist/lib/protocols/mcp-modern.js.map +1 -1
- package/dist/lib/protocols/mcp-modern.mjs +89 -12
- package/dist/lib/protocols/mcp-modern.mjs.map +1 -1
- package/dist/lib/schemas-data/v2.5/_provenance.json +1 -1
- package/dist/lib/server/create-adcp-server.d.mts +6 -0
- package/dist/lib/server/create-adcp-server.d.ts +6 -0
- package/dist/lib/server/create-adcp-server.d.ts.map +1 -1
- package/dist/lib/server/create-adcp-server.js +295 -48
- package/dist/lib/server/create-adcp-server.js.map +1 -1
- package/dist/lib/server/create-adcp-server.mjs +301 -50
- package/dist/lib/server/create-adcp-server.mjs.map +1 -1
- package/dist/lib/server/decisioning/assembly-helpers.d.mts +27 -13
- package/dist/lib/server/decisioning/assembly-helpers.d.ts +27 -13
- package/dist/lib/server/decisioning/assembly-helpers.d.ts.map +1 -1
- package/dist/lib/server/decisioning/assembly-helpers.js +136 -14
- package/dist/lib/server/decisioning/assembly-helpers.js.map +1 -1
- package/dist/lib/server/decisioning/assembly-helpers.mjs +134 -13
- package/dist/lib/server/decisioning/assembly-helpers.mjs.map +1 -1
- package/dist/lib/server/decisioning/index.d.mts +13 -12
- package/dist/lib/server/decisioning/index.d.ts +13 -12
- package/dist/lib/server/decisioning/index.d.ts.map +1 -1
- package/dist/lib/server/decisioning/index.js +6 -0
- package/dist/lib/server/decisioning/index.js.map +1 -1
- package/dist/lib/server/decisioning/index.mjs +9 -3
- package/dist/lib/server/decisioning/index.mjs.map +1 -1
- package/dist/lib/server/decisioning/list-helpers.d.mts +13 -3
- package/dist/lib/server/decisioning/list-helpers.d.ts +13 -3
- package/dist/lib/server/decisioning/list-helpers.d.ts.map +1 -1
- package/dist/lib/server/decisioning/list-helpers.js +13 -3
- package/dist/lib/server/decisioning/list-helpers.js.map +1 -1
- package/dist/lib/server/decisioning/list-helpers.mjs +11 -2
- package/dist/lib/server/decisioning/list-helpers.mjs.map +1 -1
- package/dist/lib/server/decisioning/manifest-helpers.d.mts +5 -3
- package/dist/lib/server/decisioning/manifest-helpers.d.ts +5 -3
- package/dist/lib/server/decisioning/manifest-helpers.d.ts.map +1 -1
- package/dist/lib/server/decisioning/manifest-helpers.js.map +1 -1
- package/dist/lib/server/decisioning/manifest-helpers.mjs.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.d.mts +2 -2
- package/dist/lib/server/decisioning/proposal/dispatch.d.ts +2 -2
- package/dist/lib/server/decisioning/proposal/dispatch.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/dispatch.mjs.map +1 -1
- package/dist/lib/server/decisioning/proposal/index.d.mts +1 -1
- package/dist/lib/server/decisioning/proposal/index.d.ts +1 -1
- package/dist/lib/server/decisioning/proposal/index.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/index.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/index.mjs.map +1 -1
- package/dist/lib/server/decisioning/proposal/lifecycle.d.mts +3 -2
- package/dist/lib/server/decisioning/proposal/lifecycle.d.ts +3 -2
- package/dist/lib/server/decisioning/proposal/lifecycle.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/lifecycle.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/lifecycle.mjs.map +1 -1
- package/dist/lib/server/decisioning/proposal/mock-manager.d.mts +3 -3
- package/dist/lib/server/decisioning/proposal/mock-manager.d.ts +3 -3
- package/dist/lib/server/decisioning/proposal/mock-manager.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/mock-manager.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/mock-manager.mjs.map +1 -1
- package/dist/lib/server/decisioning/proposal/types.d.mts +10 -6
- package/dist/lib/server/decisioning/proposal/types.d.ts +10 -6
- package/dist/lib/server/decisioning/proposal/types.d.ts.map +1 -1
- package/dist/lib/server/decisioning/proposal/types.js.map +1 -1
- package/dist/lib/server/decisioning/proposal/types.mjs.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.d.mts +21 -2
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts +21 -2
- package/dist/lib/server/decisioning/runtime/from-platform.d.ts.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.js +754 -81
- package/dist/lib/server/decisioning/runtime/from-platform.js.map +1 -1
- package/dist/lib/server/decisioning/runtime/from-platform.mjs +763 -81
- package/dist/lib/server/decisioning/runtime/from-platform.mjs.map +1 -1
- package/dist/lib/server/decisioning/specialisms/brand-rights.d.mts +9 -9
- package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts +9 -9
- package/dist/lib/server/decisioning/specialisms/brand-rights.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/brand-rights.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/content-standards.d.mts +16 -16
- package/dist/lib/server/decisioning/specialisms/content-standards.d.ts +16 -16
- package/dist/lib/server/decisioning/specialisms/content-standards.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/content-standards.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.mts +15 -13
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts +15 -13
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative-ad-server.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative.d.mts +12 -11
- package/dist/lib/server/decisioning/specialisms/creative.d.ts +12 -11
- package/dist/lib/server/decisioning/specialisms/creative.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/creative.js.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sales.d.mts +25 -15
- package/dist/lib/server/decisioning/specialisms/sales.d.ts +25 -15
- package/dist/lib/server/decisioning/specialisms/sales.d.ts.map +1 -1
- package/dist/lib/server/decisioning/specialisms/sales.js.map +1 -1
- package/dist/lib/server/index.d.mts +3 -3
- package/dist/lib/server/index.d.ts +3 -3
- package/dist/lib/server/index.d.ts.map +1 -1
- package/dist/lib/server/index.js +72 -72
- package/dist/lib/server/index.js.map +1 -1
- package/dist/lib/server/index.mjs +36 -36
- package/dist/lib/server/index.mjs.map +1 -1
- package/dist/lib/server/legacy/v5/index.d.mts +1 -0
- package/dist/lib/server/legacy/v5/index.d.ts +1 -0
- package/dist/lib/server/legacy/v5/index.d.ts.map +1 -1
- package/dist/lib/server/legacy/v5/index.js +74 -1
- package/dist/lib/server/legacy/v5/index.js.map +1 -1
- package/dist/lib/server/legacy/v5/index.mjs +75 -1
- package/dist/lib/server/legacy/v5/index.mjs.map +1 -1
- package/dist/lib/server/responses.d.mts +2 -2
- package/dist/lib/server/responses.d.ts +2 -2
- package/dist/lib/server/responses.js.map +1 -1
- package/dist/lib/server/responses.mjs.map +1 -1
- package/dist/lib/testing/client.js +1 -1
- package/dist/lib/testing/client.js.map +1 -1
- package/dist/lib/testing/client.mjs +1 -1
- package/dist/lib/testing/client.mjs.map +1 -1
- package/dist/lib/testing/scenarios/brand-rights.js +6 -6
- package/dist/lib/testing/scenarios/brand-rights.js.map +1 -1
- package/dist/lib/testing/scenarios/brand-rights.mjs +6 -6
- package/dist/lib/testing/scenarios/brand-rights.mjs.map +1 -1
- package/dist/lib/testing/scenarios/creative.js +7 -7
- package/dist/lib/testing/scenarios/creative.js.map +1 -1
- package/dist/lib/testing/scenarios/creative.mjs +7 -7
- package/dist/lib/testing/scenarios/creative.mjs.map +1 -1
- package/dist/lib/testing/scenarios/discovery.js +2 -2
- package/dist/lib/testing/scenarios/discovery.js.map +1 -1
- package/dist/lib/testing/scenarios/discovery.mjs +2 -2
- package/dist/lib/testing/scenarios/discovery.mjs.map +1 -1
- package/dist/lib/testing/scenarios/edge-cases.js +11 -11
- package/dist/lib/testing/scenarios/edge-cases.js.map +1 -1
- package/dist/lib/testing/scenarios/edge-cases.mjs +11 -11
- package/dist/lib/testing/scenarios/edge-cases.mjs.map +1 -1
- package/dist/lib/testing/scenarios/governance.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/governance.js +16 -22
- package/dist/lib/testing/scenarios/governance.js.map +1 -1
- package/dist/lib/testing/scenarios/governance.mjs +16 -22
- package/dist/lib/testing/scenarios/governance.mjs.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.js +5 -5
- package/dist/lib/testing/scenarios/media-buy.js.map +1 -1
- package/dist/lib/testing/scenarios/media-buy.mjs +5 -5
- package/dist/lib/testing/scenarios/media-buy.mjs.map +1 -1
- package/dist/lib/testing/scenarios/schema-compliance.js +1 -1
- package/dist/lib/testing/scenarios/schema-compliance.js.map +1 -1
- package/dist/lib/testing/scenarios/schema-compliance.mjs +1 -1
- package/dist/lib/testing/scenarios/schema-compliance.mjs.map +1 -1
- package/dist/lib/testing/scenarios/trusted-match.d.ts.map +1 -1
- package/dist/lib/testing/scenarios/trusted-match.js +4 -3
- package/dist/lib/testing/scenarios/trusted-match.js.map +1 -1
- package/dist/lib/testing/scenarios/trusted-match.mjs +4 -3
- package/dist/lib/testing/scenarios/trusted-match.mjs.map +1 -1
- package/dist/lib/testing/storyboard/shape-drift-hints.d.mts +3 -4
- package/dist/lib/testing/storyboard/shape-drift-hints.d.ts +3 -4
- package/dist/lib/testing/storyboard/shape-drift-hints.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/shape-drift-hints.js +27 -27
- package/dist/lib/testing/storyboard/shape-drift-hints.js.map +1 -1
- package/dist/lib/testing/storyboard/shape-drift-hints.mjs +27 -27
- package/dist/lib/testing/storyboard/shape-drift-hints.mjs.map +1 -1
- package/dist/lib/testing/storyboard/task-map.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/task-map.js +43 -5
- package/dist/lib/testing/storyboard/task-map.js.map +1 -1
- package/dist/lib/testing/storyboard/task-map.mjs +43 -5
- package/dist/lib/testing/storyboard/task-map.mjs.map +1 -1
- package/dist/lib/testing/test-helpers.d.mts +2 -2
- package/dist/lib/testing/test-helpers.d.ts +2 -2
- package/dist/lib/testing/test-helpers.js.map +1 -1
- package/dist/lib/testing/test-helpers.mjs.map +1 -1
- package/dist/lib/types/adcp.d.mts +14 -14
- package/dist/lib/types/adcp.d.ts +14 -14
- package/dist/lib/types/adcp.d.ts.map +1 -1
- package/dist/lib/types/adcp.js.map +1 -1
- package/dist/lib/types/adcp.mjs.map +1 -1
- package/dist/lib/types/index.d.mts +2 -2
- package/dist/lib/types/index.d.ts +2 -2
- package/dist/lib/types/index.d.ts.map +1 -1
- package/dist/lib/types/index.js.map +1 -1
- package/dist/lib/types/index.mjs.map +1 -1
- package/dist/lib/utils/capabilities.d.mts +6 -0
- package/dist/lib/utils/capabilities.d.ts +6 -0
- package/dist/lib/utils/capabilities.d.ts.map +1 -1
- package/dist/lib/utils/capabilities.js +4 -0
- package/dist/lib/utils/capabilities.js.map +1 -1
- package/dist/lib/utils/capabilities.mjs +4 -0
- package/dist/lib/utils/capabilities.mjs.map +1 -1
- package/dist/lib/utils/creative-delivery.d.mts +52 -10
- package/dist/lib/utils/creative-delivery.d.ts +52 -10
- package/dist/lib/utils/creative-delivery.d.ts.map +1 -1
- package/dist/lib/utils/creative-delivery.js +104 -9
- package/dist/lib/utils/creative-delivery.js.map +1 -1
- package/dist/lib/utils/creative-delivery.mjs +104 -8
- package/dist/lib/utils/creative-delivery.mjs.map +1 -1
- package/dist/lib/utils/format-assets.d.mts +41 -38
- package/dist/lib/utils/format-assets.d.ts +41 -38
- package/dist/lib/utils/format-assets.d.ts.map +1 -1
- package/dist/lib/utils/format-assets.js +3 -1
- package/dist/lib/utils/format-assets.js.map +1 -1
- package/dist/lib/utils/format-assets.mjs +3 -1
- package/dist/lib/utils/format-assets.mjs.map +1 -1
- package/dist/lib/utils/index.d.mts +8 -8
- package/dist/lib/utils/index.d.ts +8 -8
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +11 -9
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/index.mjs +9 -8
- package/dist/lib/utils/index.mjs.map +1 -1
- package/dist/lib/utils/preview-utils.d.mts +11 -8
- package/dist/lib/utils/preview-utils.d.ts +11 -8
- package/dist/lib/utils/preview-utils.d.ts.map +1 -1
- package/dist/lib/utils/preview-utils.js +4 -4
- package/dist/lib/utils/preview-utils.js.map +1 -1
- package/dist/lib/utils/preview-utils.mjs +3 -3
- package/dist/lib/utils/preview-utils.mjs.map +1 -1
- package/dist/lib/utils/tool-request-schemas.d.mts +2 -2
- package/dist/lib/utils/tool-request-schemas.d.ts +2 -2
- package/dist/lib/v2/projection/aao-reference-formats.json +492 -0
- package/dist/lib/v2/projection/augment-response.d.mts +31 -11
- package/dist/lib/v2/projection/augment-response.d.ts +31 -11
- package/dist/lib/v2/projection/augment-response.d.ts.map +1 -1
- package/dist/lib/v2/projection/augment-response.js +233 -27
- package/dist/lib/v2/projection/augment-response.js.map +1 -1
- package/dist/lib/v2/projection/augment-response.mjs +232 -27
- package/dist/lib/v2/projection/augment-response.mjs.map +1 -1
- package/dist/lib/v2/projection/builders.d.mts +7 -6
- package/dist/lib/v2/projection/builders.d.ts +7 -6
- package/dist/lib/v2/projection/builders.d.ts.map +1 -1
- package/dist/lib/v2/projection/builders.js +11 -8
- package/dist/lib/v2/projection/builders.js.map +1 -1
- package/dist/lib/v2/projection/builders.mjs +9 -6
- package/dist/lib/v2/projection/builders.mjs.map +1 -1
- package/dist/lib/v2/projection/catalog-snapshot.d.mts +47 -0
- package/dist/lib/v2/projection/catalog-snapshot.d.ts +48 -0
- package/dist/lib/v2/projection/catalog-snapshot.d.ts.map +1 -0
- package/dist/lib/v2/projection/catalog-snapshot.js +291 -0
- package/dist/lib/v2/projection/catalog-snapshot.js.map +1 -0
- package/dist/lib/v2/projection/catalog-snapshot.mjs +265 -0
- package/dist/lib/v2/projection/catalog-snapshot.mjs.map +1 -0
- package/dist/lib/v2/projection/catalog.d.mts +23 -2
- package/dist/lib/v2/projection/catalog.d.ts +23 -2
- package/dist/lib/v2/projection/catalog.d.ts.map +1 -1
- package/dist/lib/v2/projection/catalog.js +34 -10
- package/dist/lib/v2/projection/catalog.js.map +1 -1
- package/dist/lib/v2/projection/catalog.mjs +33 -10
- package/dist/lib/v2/projection/catalog.mjs.map +1 -1
- package/dist/lib/v2/projection/creative-delivery.d.mts +157 -0
- package/dist/lib/v2/projection/creative-delivery.d.ts +158 -0
- package/dist/lib/v2/projection/creative-delivery.d.ts.map +1 -0
- package/dist/lib/v2/projection/creative-delivery.js +967 -0
- package/dist/lib/v2/projection/creative-delivery.js.map +1 -0
- package/dist/lib/v2/projection/creative-delivery.mjs +941 -0
- package/dist/lib/v2/projection/creative-delivery.mjs.map +1 -0
- package/dist/lib/v2/projection/index.d.mts +8 -6
- package/dist/lib/v2/projection/index.d.ts +8 -6
- package/dist/lib/v2/projection/index.d.ts.map +1 -1
- package/dist/lib/v2/projection/index.js +26 -4
- package/dist/lib/v2/projection/index.js.map +1 -1
- package/dist/lib/v2/projection/index.mjs +28 -4
- package/dist/lib/v2/projection/index.mjs.map +1 -1
- package/dist/lib/v2/projection/legacy-metadata.d.mts +21 -0
- package/dist/lib/v2/projection/legacy-metadata.d.ts +22 -0
- package/dist/lib/v2/projection/legacy-metadata.d.ts.map +1 -0
- package/dist/lib/v2/projection/legacy-metadata.js +73 -0
- package/dist/lib/v2/projection/legacy-metadata.js.map +1 -0
- package/dist/lib/v2/projection/legacy-metadata.mjs +45 -0
- package/dist/lib/v2/projection/legacy-metadata.mjs.map +1 -0
- package/dist/lib/v2/projection/types.d.mts +29 -23
- package/dist/lib/v2/projection/types.d.ts +29 -23
- package/dist/lib/v2/projection/types.d.ts.map +1 -1
- package/dist/lib/v2/projection/types.js.map +1 -1
- package/dist/lib/v2/projection/v1-to-v2.d.mts +29 -6
- package/dist/lib/v2/projection/v1-to-v2.d.ts +29 -6
- package/dist/lib/v2/projection/v1-to-v2.d.ts.map +1 -1
- package/dist/lib/v2/projection/v1-to-v2.js +218 -9
- package/dist/lib/v2/projection/v1-to-v2.js.map +1 -1
- package/dist/lib/v2/projection/v1-to-v2.mjs +219 -10
- package/dist/lib/v2/projection/v1-to-v2.mjs.map +1 -1
- package/dist/lib/v2/projection/v2-to-v1.d.mts +31 -2
- package/dist/lib/v2/projection/v2-to-v1.d.ts +31 -2
- package/dist/lib/v2/projection/v2-to-v1.d.ts.map +1 -1
- package/dist/lib/v2/projection/v2-to-v1.js +138 -7
- package/dist/lib/v2/projection/v2-to-v1.js.map +1 -1
- package/dist/lib/v2/projection/v2-to-v1.mjs +135 -6
- package/dist/lib/v2/projection/v2-to-v1.mjs.map +1 -1
- package/dist/lib/v2/projection/write-side.d.mts +12 -13
- package/dist/lib/v2/projection/write-side.d.ts +12 -13
- package/dist/lib/v2/projection/write-side.d.ts.map +1 -1
- package/dist/lib/v2/projection/write-side.js +16 -12
- package/dist/lib/v2/projection/write-side.js.map +1 -1
- package/dist/lib/v2/projection/write-side.mjs +16 -12
- package/dist/lib/v2/projection/write-side.mjs.map +1 -1
- package/dist/lib/version.d.mts +3 -3
- package/dist/lib/version.d.ts +3 -3
- package/dist/lib/version.d.ts.map +1 -1
- package/dist/lib/version.js +3 -3
- package/dist/lib/version.js.map +1 -1
- package/dist/lib/version.mjs +3 -3
- package/dist/lib/version.mjs.map +1 -1
- package/docs/guides/BUILD-AN-AGENT.md +7 -2
- package/docs/guides/PREVIEW-ASSET-DURABILITY.md +6 -2
- package/docs/llms.txt +1 -0
- package/examples/README.md +1 -1
- package/examples/batch-preview-test.ts +3 -3
- package/examples/conversation-client.ts +2 -2
- package/examples/debug-preview-response.ts +1 -1
- package/examples/decisioning-platform-broadcast-tv.ts +10 -4
- package/examples/decisioning-platform-mock-seller.ts +16 -9
- package/examples/decisioning-platform-programmatic.ts +18 -7
- package/examples/error-compliant-server.ts +26 -16
- package/examples/generative-creative-demo.ts +7 -19
- package/examples/hello_creative_adapter_ad_server.ts +37 -16
- package/examples/hello_creative_adapter_template.ts +12 -10
- package/examples/hello_seller_adapter_guaranteed.ts +52 -23
- package/examples/hello_seller_adapter_multi_tenant.ts +6 -3
- package/examples/hello_seller_adapter_non_guaranteed.ts +54 -26
- package/examples/hello_seller_adapter_proposal_mode.ts +40 -14
- package/examples/hello_seller_adapter_social.ts +2 -7
- package/examples/inspect-card-formats.ts +1 -1
- package/examples/simple-getting-started.ts +1 -1
- package/examples/test-helpers-demo.ts +1 -1
- package/package.json +2 -2
- package/skills/build-decisioning-creative-template/SKILL.md +11 -11
- package/skills/build-decisioning-platform/advanced/REFERENCE.md +8 -2
|
@@ -2,7 +2,6 @@ import { randomUUID } from "node:crypto";
|
|
|
2
2
|
import {
|
|
3
3
|
SingleAgentClient
|
|
4
4
|
} from "./SingleAgentClient.mjs";
|
|
5
|
-
import { withFormatOptions } from "../v2/projection/augment-response.mjs";
|
|
6
5
|
const NON_TERMINAL_STATES = /* @__PURE__ */ new Set([
|
|
7
6
|
"working",
|
|
8
7
|
"input-required",
|
|
@@ -202,90 +201,91 @@ class AgentClient {
|
|
|
202
201
|
verifyWebhookSignature(rawBodyOrPayload, signature, timestamp) {
|
|
203
202
|
return this.client.verifyWebhookSignature(rawBodyOrPayload, signature, timestamp);
|
|
204
203
|
}
|
|
204
|
+
// ====== MEDIA BUY TASKS ======
|
|
205
|
+
/**
|
|
206
|
+
* Discover available advertising products.
|
|
207
|
+
*
|
|
208
|
+
* Response products expose only canonical `format_options[]`, regardless of
|
|
209
|
+
* the seller's negotiated wire version. The SDK performs any required legacy
|
|
210
|
+
* translation below this public boundary.
|
|
211
|
+
*
|
|
212
|
+
* Projection failures surface portably on `result.data.errors[]` and are
|
|
213
|
+
* also mirrored on `result.data.projection.diagnostics` (structured
|
|
214
|
+
* `source: 'sdk'` markers; codes mirror the spec's error-code
|
|
215
|
+
* vocabulary plus three SDK-local codes — see the projection
|
|
216
|
+
* module's `ProjectionDiagnostic` type for the full set).
|
|
217
|
+
*
|
|
218
|
+
* Protocol tooling that must inspect raw seller emission uses the explicit
|
|
219
|
+
* deprecated `getProductsLegacy()` method.
|
|
220
|
+
*/
|
|
205
221
|
async getProducts(params, inputHandler, options) {
|
|
206
|
-
const { project, ...sessionOptions } = options ?? {};
|
|
207
222
|
const result = await this.client.getProducts(params, inputHandler, {
|
|
208
|
-
...
|
|
223
|
+
...options,
|
|
224
|
+
...this.withSession("get_products", options)
|
|
209
225
|
});
|
|
210
226
|
this.retainSession(result);
|
|
211
|
-
if (project === false) {
|
|
212
|
-
return result;
|
|
213
|
-
}
|
|
214
|
-
if (result.success && result.status === "completed" && result.data) {
|
|
215
|
-
const { response, diagnostics } = withFormatOptions(result.data);
|
|
216
|
-
const augmented = {
|
|
217
|
-
...response,
|
|
218
|
-
projection: { diagnostics }
|
|
219
|
-
};
|
|
220
|
-
return {
|
|
221
|
-
...result,
|
|
222
|
-
data: augmented
|
|
223
|
-
};
|
|
224
|
-
}
|
|
225
227
|
return result;
|
|
226
228
|
}
|
|
227
|
-
/**
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
/** @deprecated Explicit raw-wire escape hatch for migration tooling. */
|
|
230
|
+
async getProductsLegacy(params, inputHandler, options) {
|
|
231
|
+
const result = await this.client.getProductsLegacy(params, inputHandler, {
|
|
232
|
+
...this.withSession("get_products", options)
|
|
233
|
+
});
|
|
234
|
+
this.retainSession(result);
|
|
235
|
+
return result;
|
|
236
|
+
}
|
|
237
|
+
/** @deprecated Migration-only access to a legacy named-format catalog. */
|
|
238
|
+
async listCreativeFormatsLegacy(params, inputHandler, options) {
|
|
239
|
+
const result = await this.client.listCreativeFormatsLegacy(params, inputHandler, {
|
|
232
240
|
...this.withSession("list_creative_formats", options)
|
|
233
241
|
});
|
|
234
242
|
this.retainSession(result);
|
|
235
243
|
return result;
|
|
236
244
|
}
|
|
245
|
+
/** @deprecated Migration-only access to legacy creative transformer declarations. */
|
|
246
|
+
async listTransformersLegacy(params, inputHandler, options) {
|
|
247
|
+
const result = await this.client.listTransformersLegacy(params, inputHandler, {
|
|
248
|
+
...this.withSession("list_transformers", options)
|
|
249
|
+
});
|
|
250
|
+
this.retainSession(result);
|
|
251
|
+
return result;
|
|
252
|
+
}
|
|
237
253
|
/**
|
|
238
254
|
* Create a new media buy.
|
|
239
255
|
*
|
|
240
|
-
*
|
|
241
|
-
* `
|
|
242
|
-
*
|
|
243
|
-
* `packageRefsForFormatOptions` to author the package. The helper emits
|
|
244
|
-
* BOTH `format_option_refs[]` (the 3.1+ path) AND `format_ids[]`
|
|
245
|
-
* (legacy named-format dual emission) so a single request works against
|
|
246
|
-
* both format-option-aware and legacy sellers.
|
|
256
|
+
* Discover canonical `format_options[]` with `getProducts()`, select a
|
|
257
|
+
* `format_option_id`, and send only canonical package and creative fields.
|
|
258
|
+
* Compatibility translation for an older seller happens below this method.
|
|
247
259
|
*
|
|
248
260
|
* ```ts
|
|
249
|
-
* import { packageRefsForFormatOptions } from '@adcp/sdk/v2/projection';
|
|
250
|
-
*
|
|
251
261
|
* const { data: { products } } = await agent.getProducts({ brief: '...' });
|
|
252
262
|
* const product = products[0];
|
|
263
|
+
* const format = product.format_options[0];
|
|
253
264
|
*
|
|
254
265
|
* await agent.createMediaBuy({
|
|
255
266
|
* packages: [{
|
|
256
267
|
* package_id: 'pkg-1',
|
|
257
268
|
* product_id: product.product_id,
|
|
258
269
|
* pricing_option_id: product.pricing_options[0].pricing_option_id,
|
|
259
|
-
*
|
|
260
|
-
*
|
|
270
|
+
* format_option_refs: [{
|
|
271
|
+
* scope: 'product',
|
|
272
|
+
* format_option_id: format.format_option_id
|
|
273
|
+
* }],
|
|
274
|
+
* creatives: [{
|
|
275
|
+
* creative_id: 'hero',
|
|
276
|
+
* format_kind: format.format_kind,
|
|
277
|
+
* format_option_ref: {
|
|
278
|
+
* scope: 'product',
|
|
279
|
+
* format_option_id: format.format_option_id
|
|
280
|
+
* },
|
|
281
|
+
* assets: { image: { url: 'https://cdn.example/hero.png' } }
|
|
282
|
+
* }],
|
|
261
283
|
* budget: { currency: 'USD', total: 5000 },
|
|
262
284
|
* }],
|
|
263
285
|
* // ...
|
|
264
286
|
* });
|
|
265
287
|
* ```
|
|
266
288
|
*
|
|
267
|
-
* The resulting wire payload for the package looks like:
|
|
268
|
-
*
|
|
269
|
-
* ```json
|
|
270
|
-
* {
|
|
271
|
-
* "package_id": "pkg-1",
|
|
272
|
-
* "product_id": "...",
|
|
273
|
-
* "pricing_option_id": "...",
|
|
274
|
-
* "format_option_refs": [
|
|
275
|
-
* {"scope": "product", "format_option_id": "nytimes_mrec"},
|
|
276
|
-
* {"scope": "product", "format_option_id": "nytimes_video_30s"}
|
|
277
|
-
* ],
|
|
278
|
-
* "format_ids": [
|
|
279
|
-
* {"agent_url": "https://creative.adcontextprotocol.org/", "id": "display_300x250_image"},
|
|
280
|
-
* {"agent_url": "https://creative.adcontextprotocol.org/", "id": "video_standard_30s"}
|
|
281
|
-
* ],
|
|
282
|
-
* "budget": {"currency": "USD", "total": 5000}
|
|
283
|
-
* }
|
|
284
|
-
* ```
|
|
285
|
-
*
|
|
286
|
-
* `format_ids` is omitted entirely when every chosen format option is V2-only
|
|
287
|
-
* (the spec's "neither present" fallback fires for v1 sellers in that case).
|
|
288
|
-
*
|
|
289
289
|
* **Inline creative fallback.** Sellers that do not advertise a creative
|
|
290
290
|
* library (`supportsSyncCreatives(await agent.getCapabilities()) === false`)
|
|
291
291
|
* can still accept package-scoped creative uploads when they advertise
|
|
@@ -296,17 +296,8 @@ class AgentClient {
|
|
|
296
296
|
* assignments for create payloads, give each package a stable key such as
|
|
297
297
|
* `context.buyer_ref`, or pass a custom `packageId` resolver.
|
|
298
298
|
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
* `legacyFormatIdsFromOptions` / `tryLegacyFormatIdsFromOptions` /
|
|
302
|
-
* `legacyFormatIdsForFormatOption` helpers in `@adcp/sdk/v2/projection`.
|
|
303
|
-
*
|
|
304
|
-
* `packageRefsForFormatOptions` throws `FormatOptionRefsLookupError`
|
|
305
|
-
* with a normalized `.code` in `{ 'unknown_format_option_id' |
|
|
306
|
-
* 'format_option_refs_not_published' | 'empty_input' | 'invalid_product' }`
|
|
307
|
-
* — branch on `.code` to fall back to the `legacy*` helpers when the
|
|
308
|
-
* product is V1-shape only. See the helper JSDoc for the full
|
|
309
|
-
* recovery example.
|
|
299
|
+
* Existing applications that still hold old named-format payloads must opt
|
|
300
|
+
* into `createMediaBuyLegacy()` explicitly.
|
|
310
301
|
*/
|
|
311
302
|
async createMediaBuy(params, inputHandler, options) {
|
|
312
303
|
const result = await this.client.createMediaBuy(params, inputHandler, {
|
|
@@ -315,6 +306,14 @@ class AgentClient {
|
|
|
315
306
|
this.retainSession(result);
|
|
316
307
|
return result;
|
|
317
308
|
}
|
|
309
|
+
/** @deprecated Use `createMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
|
|
310
|
+
async createMediaBuyLegacy(params, inputHandler, options) {
|
|
311
|
+
const result = await this.client.createMediaBuyLegacy(params, inputHandler, {
|
|
312
|
+
...this.withSession("create_media_buy", options)
|
|
313
|
+
});
|
|
314
|
+
this.retainSession(result);
|
|
315
|
+
return result;
|
|
316
|
+
}
|
|
318
317
|
/**
|
|
319
318
|
* Update an existing media buy.
|
|
320
319
|
*
|
|
@@ -324,6 +323,8 @@ class AgentClient {
|
|
|
324
323
|
* request. Build the package patch with `inlineCreativesForPackages()` and
|
|
325
324
|
* preflight it with `preflightUpdateMediaBuy(currentBuy, patch)` so
|
|
326
325
|
* `available_actions[]` allows `replace_creative` before dispatch.
|
|
326
|
+
* Use `format_kind` and `format_option_ref` for every creative in the patch;
|
|
327
|
+
* the SDK handles any negotiated compatibility conversion.
|
|
327
328
|
*/
|
|
328
329
|
async updateMediaBuy(params, inputHandler, options) {
|
|
329
330
|
const result = await this.client.updateMediaBuy(params, inputHandler, {
|
|
@@ -332,6 +333,14 @@ class AgentClient {
|
|
|
332
333
|
this.retainSession(result);
|
|
333
334
|
return result;
|
|
334
335
|
}
|
|
336
|
+
/** @deprecated Use `updateMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
|
|
337
|
+
async updateMediaBuyLegacy(params, inputHandler, options) {
|
|
338
|
+
const result = await this.client.updateMediaBuyLegacy(params, inputHandler, {
|
|
339
|
+
...this.withSession("update_media_buy", options)
|
|
340
|
+
});
|
|
341
|
+
this.retainSession(result);
|
|
342
|
+
return result;
|
|
343
|
+
}
|
|
335
344
|
/**
|
|
336
345
|
* Sync creative assets into the seller's reusable creative library.
|
|
337
346
|
*
|
|
@@ -344,6 +353,11 @@ class AgentClient {
|
|
|
344
353
|
* send a separate `create_media_buy` or `update_media_buy` request with its
|
|
345
354
|
* own idempotency key. If neither capability is advertised, creative upload
|
|
346
355
|
* is not available through this SDK helper surface.
|
|
356
|
+
*
|
|
357
|
+
* A sync request does not carry product declarations. When compatibility
|
|
358
|
+
* translation needs seller selection metadata, pass
|
|
359
|
+
* `options.creativeFormatProjection.selectorContainers` with the routed
|
|
360
|
+
* package/product selectors. Assignments scope each creative to its package.
|
|
347
361
|
*/
|
|
348
362
|
async syncCreatives(params, inputHandler, options) {
|
|
349
363
|
const result = await this.client.syncCreatives(params, inputHandler, {
|
|
@@ -352,11 +366,32 @@ class AgentClient {
|
|
|
352
366
|
this.retainSession(result);
|
|
353
367
|
return result;
|
|
354
368
|
}
|
|
369
|
+
/** @deprecated Use `syncCreatives`; this explicit compatibility surface accepts legacy creative `format_id`. */
|
|
370
|
+
async syncCreativesLegacy(params, inputHandler, options) {
|
|
371
|
+
const result = await this.client.syncCreativesLegacy(params, inputHandler, {
|
|
372
|
+
...this.withSession("sync_creatives", options)
|
|
373
|
+
});
|
|
374
|
+
this.retainSession(result);
|
|
375
|
+
return result;
|
|
376
|
+
}
|
|
355
377
|
/**
|
|
356
378
|
* List creative assets
|
|
357
379
|
*/
|
|
358
380
|
async listCreatives(params, inputHandler, options) {
|
|
359
381
|
const result = await this.client.listCreatives(params, inputHandler, {
|
|
382
|
+
...options,
|
|
383
|
+
...this.withSession("list_creatives", options)
|
|
384
|
+
});
|
|
385
|
+
this.retainSession(result);
|
|
386
|
+
return result;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Return the unprojected `list_creatives` wire response.
|
|
390
|
+
*
|
|
391
|
+
* @deprecated Compatibility-only escape hatch for migration and protocol tooling.
|
|
392
|
+
*/
|
|
393
|
+
async listCreativesLegacy(params, inputHandler, options) {
|
|
394
|
+
const result = await this.client.listCreativesLegacy(params, inputHandler, {
|
|
360
395
|
...this.withSession("list_creatives", options)
|
|
361
396
|
});
|
|
362
397
|
this.retainSession(result);
|
|
@@ -382,6 +417,15 @@ class AgentClient {
|
|
|
382
417
|
this.retainSession(result);
|
|
383
418
|
return result;
|
|
384
419
|
}
|
|
420
|
+
/** Retrieve canonical creative-level and variant-level delivery metrics. */
|
|
421
|
+
async getCreativeDelivery(params, inputHandler, options) {
|
|
422
|
+
const result = await this.client.getCreativeDelivery(params, inputHandler, {
|
|
423
|
+
...options,
|
|
424
|
+
...this.withSession("get_creative_delivery", options)
|
|
425
|
+
});
|
|
426
|
+
this.retainSession(result);
|
|
427
|
+
return result;
|
|
428
|
+
}
|
|
385
429
|
/**
|
|
386
430
|
* Provide performance feedback
|
|
387
431
|
*/
|
|
@@ -455,21 +499,17 @@ class AgentClient {
|
|
|
455
499
|
async requireV3(taskType = "request") {
|
|
456
500
|
return this.client.requireSupportedMajor(taskType);
|
|
457
501
|
}
|
|
458
|
-
/**
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
async previewCreative(params, inputHandler, options) {
|
|
462
|
-
const result = await this.client.previewCreative(params, inputHandler, {
|
|
502
|
+
/** @deprecated Migration-only access to legacy `format_id`-based creative preview. */
|
|
503
|
+
async previewCreativeLegacy(params, inputHandler, options) {
|
|
504
|
+
const result = await this.client.previewCreativeLegacy(params, inputHandler, {
|
|
463
505
|
...this.withSession("preview_creative", options)
|
|
464
506
|
});
|
|
465
507
|
this.retainSession(result);
|
|
466
508
|
return result;
|
|
467
509
|
}
|
|
468
|
-
/**
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
async buildCreative(params, inputHandler, options) {
|
|
472
|
-
const result = await this.client.buildCreative(params, inputHandler, {
|
|
510
|
+
/** @deprecated Migration-only access to legacy `target_format_id`-based creative building. */
|
|
511
|
+
async buildCreativeLegacy(params, inputHandler, options) {
|
|
512
|
+
const result = await this.client.buildCreativeLegacy(params, inputHandler, {
|
|
473
513
|
...this.withSession("build_creative", options)
|
|
474
514
|
});
|
|
475
515
|
this.retainSession(result);
|
|
@@ -560,8 +600,8 @@ class AgentClient {
|
|
|
560
600
|
/**
|
|
561
601
|
* List content standards
|
|
562
602
|
*/
|
|
563
|
-
async
|
|
564
|
-
const result = await this.client.
|
|
603
|
+
async listContentStandardsLegacy(params, inputHandler, options) {
|
|
604
|
+
const result = await this.client.listContentStandardsLegacy(params, inputHandler, {
|
|
565
605
|
...this.withSession("list_content_standards", options)
|
|
566
606
|
});
|
|
567
607
|
this.retainSession(result);
|
|
@@ -570,8 +610,8 @@ class AgentClient {
|
|
|
570
610
|
/**
|
|
571
611
|
* Get content standards
|
|
572
612
|
*/
|
|
573
|
-
async
|
|
574
|
-
const result = await this.client.
|
|
613
|
+
async getContentStandardsLegacy(params, inputHandler, options) {
|
|
614
|
+
const result = await this.client.getContentStandardsLegacy(params, inputHandler, {
|
|
575
615
|
...this.withSession("get_content_standards", options)
|
|
576
616
|
});
|
|
577
617
|
this.retainSession(result);
|
|
@@ -580,8 +620,8 @@ class AgentClient {
|
|
|
580
620
|
/**
|
|
581
621
|
* Calibrate content against standards
|
|
582
622
|
*/
|
|
583
|
-
async
|
|
584
|
-
const result = await this.client.
|
|
623
|
+
async calibrateContentLegacy(params, inputHandler, options) {
|
|
624
|
+
const result = await this.client.calibrateContentLegacy(params, inputHandler, {
|
|
585
625
|
...this.withSession("calibrate_content", options)
|
|
586
626
|
});
|
|
587
627
|
this.retainSession(result);
|
|
@@ -590,8 +630,8 @@ class AgentClient {
|
|
|
590
630
|
/**
|
|
591
631
|
* Validate content delivery
|
|
592
632
|
*/
|
|
593
|
-
async
|
|
594
|
-
const result = await this.client.
|
|
633
|
+
async validateContentDeliveryLegacy(params, inputHandler, options) {
|
|
634
|
+
const result = await this.client.validateContentDeliveryLegacy(params, inputHandler, {
|
|
595
635
|
...this.withSession("validate_content_delivery", options)
|
|
596
636
|
});
|
|
597
637
|
this.retainSession(result);
|
|
@@ -824,7 +864,56 @@ class AgentClient {
|
|
|
824
864
|
return this.client.getActiveTasks();
|
|
825
865
|
}
|
|
826
866
|
async executeTask(taskName, params, inputHandler, options) {
|
|
827
|
-
|
|
867
|
+
switch (taskName) {
|
|
868
|
+
case "get_products":
|
|
869
|
+
return this.getProducts(params, inputHandler, options);
|
|
870
|
+
case "create_media_buy":
|
|
871
|
+
return await this.createMediaBuy(
|
|
872
|
+
params,
|
|
873
|
+
inputHandler,
|
|
874
|
+
options
|
|
875
|
+
);
|
|
876
|
+
case "update_media_buy":
|
|
877
|
+
return await this.updateMediaBuy(
|
|
878
|
+
params,
|
|
879
|
+
inputHandler,
|
|
880
|
+
options
|
|
881
|
+
);
|
|
882
|
+
case "sync_creatives":
|
|
883
|
+
return await this.syncCreatives(
|
|
884
|
+
params,
|
|
885
|
+
inputHandler,
|
|
886
|
+
options
|
|
887
|
+
);
|
|
888
|
+
case "list_creatives":
|
|
889
|
+
return this.listCreatives(params, inputHandler, options);
|
|
890
|
+
case "get_media_buys":
|
|
891
|
+
return this.getMediaBuys(params, inputHandler, options);
|
|
892
|
+
case "get_media_buy_delivery":
|
|
893
|
+
return this.getMediaBuyDelivery(params, inputHandler, options);
|
|
894
|
+
case "get_creative_delivery":
|
|
895
|
+
return this.getCreativeDelivery(params, inputHandler, options);
|
|
896
|
+
}
|
|
897
|
+
const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
|
|
898
|
+
...this.withSession(taskName, options)
|
|
899
|
+
});
|
|
900
|
+
this.retainSession(result);
|
|
901
|
+
return result;
|
|
902
|
+
}
|
|
903
|
+
/** Execute an extension task that is not part of the standard AdCP task set. */
|
|
904
|
+
async executeCustomTask(taskName, params, inputHandler, options) {
|
|
905
|
+
const result = await this.client.executeCustomTask(taskName, params, inputHandler, {
|
|
906
|
+
...this.withSession(taskName, options)
|
|
907
|
+
});
|
|
908
|
+
this.retainSession(result);
|
|
909
|
+
return result;
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Explicit raw-task compatibility escape hatch for conformance and migration tooling.
|
|
913
|
+
* @deprecated Application code should use typed primary methods or `executeTask()`.
|
|
914
|
+
*/
|
|
915
|
+
async executeTaskLegacy(taskName, params, inputHandler, options) {
|
|
916
|
+
const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
|
|
828
917
|
...this.withSession(taskName, options)
|
|
829
918
|
});
|
|
830
919
|
this.retainSession(result);
|