@adcp/sdk 12.1.0 → 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/authorization-required.d.mts +3 -0
- package/dist/lib/auth/oauth/authorization-required.d.ts +3 -0
- package/dist/lib/auth/oauth/authorization-required.d.ts.map +1 -1
- package/dist/lib/auth/oauth/authorization-required.js +12 -9
- package/dist/lib/auth/oauth/authorization-required.js.map +1 -1
- package/dist/lib/auth/oauth/authorization-required.mjs +12 -9
- package/dist/lib/auth/oauth/authorization-required.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 +129 -52
- package/dist/lib/core/SingleAgentClient.d.ts +129 -52
- package/dist/lib/core/SingleAgentClient.d.ts.map +1 -1
- package/dist/lib/core/SingleAgentClient.js +1748 -218
- package/dist/lib/core/SingleAgentClient.js.map +1 -1
- package/dist/lib/core/SingleAgentClient.mjs +1758 -218
- 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 +137 -44
- package/dist/lib/core/TaskExecutor.js.map +1 -1
- package/dist/lib/core/TaskExecutor.mjs +137 -44
- 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/net/ssrf-fetch.d.mts +13 -1
- package/dist/lib/net/ssrf-fetch.d.ts +13 -1
- package/dist/lib/net/ssrf-fetch.d.ts.map +1 -1
- package/dist/lib/net/ssrf-fetch.js +14 -7
- package/dist/lib/net/ssrf-fetch.js.map +1 -1
- package/dist/lib/net/ssrf-fetch.mjs +14 -7
- package/dist/lib/net/ssrf-fetch.mjs.map +1 -1
- package/dist/lib/protocols/a2a.d.mts +2 -2
- package/dist/lib/protocols/a2a.d.ts +2 -2
- package/dist/lib/protocols/a2a.d.ts.map +1 -1
- package/dist/lib/protocols/a2a.js +14 -9
- package/dist/lib/protocols/a2a.js.map +1 -1
- package/dist/lib/protocols/a2a.mjs +14 -9
- package/dist/lib/protocols/a2a.mjs.map +1 -1
- package/dist/lib/protocols/index.d.mts +20 -3
- package/dist/lib/protocols/index.d.ts +20 -3
- package/dist/lib/protocols/index.d.ts.map +1 -1
- package/dist/lib/protocols/index.js +44 -31
- package/dist/lib/protocols/index.js.map +1 -1
- package/dist/lib/protocols/index.mjs +44 -32
- 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/protocols/mcp-tasks.d.mts +3 -0
- package/dist/lib/protocols/mcp-tasks.d.ts +3 -0
- package/dist/lib/protocols/mcp-tasks.d.ts.map +1 -1
- package/dist/lib/protocols/mcp-tasks.js +21 -11
- package/dist/lib/protocols/mcp-tasks.js.map +1 -1
- package/dist/lib/protocols/mcp-tasks.mjs +21 -11
- package/dist/lib/protocols/mcp-tasks.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.d.ts.map +1 -1
- package/dist/lib/testing/client.js +13 -5
- package/dist/lib/testing/client.js.map +1 -1
- package/dist/lib/testing/client.mjs +13 -5
- package/dist/lib/testing/client.mjs.map +1 -1
- package/dist/lib/testing/compliance/comply.d.mts +1 -1
- package/dist/lib/testing/compliance/comply.d.ts +1 -1
- package/dist/lib/testing/compliance/comply.d.ts.map +1 -1
- package/dist/lib/testing/compliance/comply.js +16 -6
- package/dist/lib/testing/compliance/comply.js.map +1 -1
- package/dist/lib/testing/compliance/comply.mjs +16 -6
- package/dist/lib/testing/compliance/comply.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/probes.d.mts +6 -0
- package/dist/lib/testing/storyboard/probes.d.ts +6 -0
- package/dist/lib/testing/storyboard/probes.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/probes.js +16 -5
- package/dist/lib/testing/storyboard/probes.js.map +1 -1
- package/dist/lib/testing/storyboard/probes.mjs +16 -5
- package/dist/lib/testing/storyboard/probes.mjs.map +1 -1
- package/dist/lib/testing/storyboard/runner.d.ts.map +1 -1
- package/dist/lib/testing/storyboard/runner.js +6 -2
- package/dist/lib/testing/storyboard/runner.js.map +1 -1
- package/dist/lib/testing/storyboard/runner.mjs +6 -2
- package/dist/lib/testing/storyboard/runner.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/testing/types.d.mts +7 -1
- package/dist/lib/testing/types.d.ts +7 -1
- package/dist/lib/testing/types.d.ts.map +1 -1
- package/dist/lib/testing/types.js.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
|
@@ -23,7 +23,6 @@ __export(AgentClient_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(AgentClient_exports);
|
|
24
24
|
var import_node_crypto = require("node:crypto");
|
|
25
25
|
var import_SingleAgentClient = require('./SingleAgentClient.js');
|
|
26
|
-
var import_augment_response = require('../v2/projection/augment-response.js');
|
|
27
26
|
const NON_TERMINAL_STATES = /* @__PURE__ */ new Set([
|
|
28
27
|
"working",
|
|
29
28
|
"input-required",
|
|
@@ -223,90 +222,91 @@ class AgentClient {
|
|
|
223
222
|
verifyWebhookSignature(rawBodyOrPayload, signature, timestamp) {
|
|
224
223
|
return this.client.verifyWebhookSignature(rawBodyOrPayload, signature, timestamp);
|
|
225
224
|
}
|
|
225
|
+
// ====== MEDIA BUY TASKS ======
|
|
226
|
+
/**
|
|
227
|
+
* Discover available advertising products.
|
|
228
|
+
*
|
|
229
|
+
* Response products expose only canonical `format_options[]`, regardless of
|
|
230
|
+
* the seller's negotiated wire version. The SDK performs any required legacy
|
|
231
|
+
* translation below this public boundary.
|
|
232
|
+
*
|
|
233
|
+
* Projection failures surface portably on `result.data.errors[]` and are
|
|
234
|
+
* also mirrored on `result.data.projection.diagnostics` (structured
|
|
235
|
+
* `source: 'sdk'` markers; codes mirror the spec's error-code
|
|
236
|
+
* vocabulary plus three SDK-local codes — see the projection
|
|
237
|
+
* module's `ProjectionDiagnostic` type for the full set).
|
|
238
|
+
*
|
|
239
|
+
* Protocol tooling that must inspect raw seller emission uses the explicit
|
|
240
|
+
* deprecated `getProductsLegacy()` method.
|
|
241
|
+
*/
|
|
226
242
|
async getProducts(params, inputHandler, options) {
|
|
227
|
-
const { project, ...sessionOptions } = options ?? {};
|
|
228
243
|
const result = await this.client.getProducts(params, inputHandler, {
|
|
229
|
-
...
|
|
244
|
+
...options,
|
|
245
|
+
...this.withSession("get_products", options)
|
|
230
246
|
});
|
|
231
247
|
this.retainSession(result);
|
|
232
|
-
if (project === false) {
|
|
233
|
-
return result;
|
|
234
|
-
}
|
|
235
|
-
if (result.success && result.status === "completed" && result.data) {
|
|
236
|
-
const { response, diagnostics } = (0, import_augment_response.withFormatOptions)(result.data);
|
|
237
|
-
const augmented = {
|
|
238
|
-
...response,
|
|
239
|
-
projection: { diagnostics }
|
|
240
|
-
};
|
|
241
|
-
return {
|
|
242
|
-
...result,
|
|
243
|
-
data: augmented
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
248
|
return result;
|
|
247
249
|
}
|
|
248
|
-
/**
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
/** @deprecated Explicit raw-wire escape hatch for migration tooling. */
|
|
251
|
+
async getProductsLegacy(params, inputHandler, options) {
|
|
252
|
+
const result = await this.client.getProductsLegacy(params, inputHandler, {
|
|
253
|
+
...this.withSession("get_products", options)
|
|
254
|
+
});
|
|
255
|
+
this.retainSession(result);
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
258
|
+
/** @deprecated Migration-only access to a legacy named-format catalog. */
|
|
259
|
+
async listCreativeFormatsLegacy(params, inputHandler, options) {
|
|
260
|
+
const result = await this.client.listCreativeFormatsLegacy(params, inputHandler, {
|
|
253
261
|
...this.withSession("list_creative_formats", options)
|
|
254
262
|
});
|
|
255
263
|
this.retainSession(result);
|
|
256
264
|
return result;
|
|
257
265
|
}
|
|
266
|
+
/** @deprecated Migration-only access to legacy creative transformer declarations. */
|
|
267
|
+
async listTransformersLegacy(params, inputHandler, options) {
|
|
268
|
+
const result = await this.client.listTransformersLegacy(params, inputHandler, {
|
|
269
|
+
...this.withSession("list_transformers", options)
|
|
270
|
+
});
|
|
271
|
+
this.retainSession(result);
|
|
272
|
+
return result;
|
|
273
|
+
}
|
|
258
274
|
/**
|
|
259
275
|
* Create a new media buy.
|
|
260
276
|
*
|
|
261
|
-
*
|
|
262
|
-
* `
|
|
263
|
-
*
|
|
264
|
-
* `packageRefsForFormatOptions` to author the package. The helper emits
|
|
265
|
-
* BOTH `format_option_refs[]` (the 3.1+ path) AND `format_ids[]`
|
|
266
|
-
* (legacy named-format dual emission) so a single request works against
|
|
267
|
-
* both format-option-aware and legacy sellers.
|
|
277
|
+
* Discover canonical `format_options[]` with `getProducts()`, select a
|
|
278
|
+
* `format_option_id`, and send only canonical package and creative fields.
|
|
279
|
+
* Compatibility translation for an older seller happens below this method.
|
|
268
280
|
*
|
|
269
281
|
* ```ts
|
|
270
|
-
* import { packageRefsForFormatOptions } from '@adcp/sdk/v2/projection';
|
|
271
|
-
*
|
|
272
282
|
* const { data: { products } } = await agent.getProducts({ brief: '...' });
|
|
273
283
|
* const product = products[0];
|
|
284
|
+
* const format = product.format_options[0];
|
|
274
285
|
*
|
|
275
286
|
* await agent.createMediaBuy({
|
|
276
287
|
* packages: [{
|
|
277
288
|
* package_id: 'pkg-1',
|
|
278
289
|
* product_id: product.product_id,
|
|
279
290
|
* pricing_option_id: product.pricing_options[0].pricing_option_id,
|
|
280
|
-
*
|
|
281
|
-
*
|
|
291
|
+
* format_option_refs: [{
|
|
292
|
+
* scope: 'product',
|
|
293
|
+
* format_option_id: format.format_option_id
|
|
294
|
+
* }],
|
|
295
|
+
* creatives: [{
|
|
296
|
+
* creative_id: 'hero',
|
|
297
|
+
* format_kind: format.format_kind,
|
|
298
|
+
* format_option_ref: {
|
|
299
|
+
* scope: 'product',
|
|
300
|
+
* format_option_id: format.format_option_id
|
|
301
|
+
* },
|
|
302
|
+
* assets: { image: { url: 'https://cdn.example/hero.png' } }
|
|
303
|
+
* }],
|
|
282
304
|
* budget: { currency: 'USD', total: 5000 },
|
|
283
305
|
* }],
|
|
284
306
|
* // ...
|
|
285
307
|
* });
|
|
286
308
|
* ```
|
|
287
309
|
*
|
|
288
|
-
* The resulting wire payload for the package looks like:
|
|
289
|
-
*
|
|
290
|
-
* ```json
|
|
291
|
-
* {
|
|
292
|
-
* "package_id": "pkg-1",
|
|
293
|
-
* "product_id": "...",
|
|
294
|
-
* "pricing_option_id": "...",
|
|
295
|
-
* "format_option_refs": [
|
|
296
|
-
* {"scope": "product", "format_option_id": "nytimes_mrec"},
|
|
297
|
-
* {"scope": "product", "format_option_id": "nytimes_video_30s"}
|
|
298
|
-
* ],
|
|
299
|
-
* "format_ids": [
|
|
300
|
-
* {"agent_url": "https://creative.adcontextprotocol.org/", "id": "display_300x250_image"},
|
|
301
|
-
* {"agent_url": "https://creative.adcontextprotocol.org/", "id": "video_standard_30s"}
|
|
302
|
-
* ],
|
|
303
|
-
* "budget": {"currency": "USD", "total": 5000}
|
|
304
|
-
* }
|
|
305
|
-
* ```
|
|
306
|
-
*
|
|
307
|
-
* `format_ids` is omitted entirely when every chosen format option is V2-only
|
|
308
|
-
* (the spec's "neither present" fallback fires for v1 sellers in that case).
|
|
309
|
-
*
|
|
310
310
|
* **Inline creative fallback.** Sellers that do not advertise a creative
|
|
311
311
|
* library (`supportsSyncCreatives(await agent.getCapabilities()) === false`)
|
|
312
312
|
* can still accept package-scoped creative uploads when they advertise
|
|
@@ -317,17 +317,8 @@ class AgentClient {
|
|
|
317
317
|
* assignments for create payloads, give each package a stable key such as
|
|
318
318
|
* `context.buyer_ref`, or pass a custom `packageId` resolver.
|
|
319
319
|
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
* `legacyFormatIdsFromOptions` / `tryLegacyFormatIdsFromOptions` /
|
|
323
|
-
* `legacyFormatIdsForFormatOption` helpers in `@adcp/sdk/v2/projection`.
|
|
324
|
-
*
|
|
325
|
-
* `packageRefsForFormatOptions` throws `FormatOptionRefsLookupError`
|
|
326
|
-
* with a normalized `.code` in `{ 'unknown_format_option_id' |
|
|
327
|
-
* 'format_option_refs_not_published' | 'empty_input' | 'invalid_product' }`
|
|
328
|
-
* — branch on `.code` to fall back to the `legacy*` helpers when the
|
|
329
|
-
* product is V1-shape only. See the helper JSDoc for the full
|
|
330
|
-
* recovery example.
|
|
320
|
+
* Existing applications that still hold old named-format payloads must opt
|
|
321
|
+
* into `createMediaBuyLegacy()` explicitly.
|
|
331
322
|
*/
|
|
332
323
|
async createMediaBuy(params, inputHandler, options) {
|
|
333
324
|
const result = await this.client.createMediaBuy(params, inputHandler, {
|
|
@@ -336,6 +327,14 @@ class AgentClient {
|
|
|
336
327
|
this.retainSession(result);
|
|
337
328
|
return result;
|
|
338
329
|
}
|
|
330
|
+
/** @deprecated Use `createMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
|
|
331
|
+
async createMediaBuyLegacy(params, inputHandler, options) {
|
|
332
|
+
const result = await this.client.createMediaBuyLegacy(params, inputHandler, {
|
|
333
|
+
...this.withSession("create_media_buy", options)
|
|
334
|
+
});
|
|
335
|
+
this.retainSession(result);
|
|
336
|
+
return result;
|
|
337
|
+
}
|
|
339
338
|
/**
|
|
340
339
|
* Update an existing media buy.
|
|
341
340
|
*
|
|
@@ -345,6 +344,8 @@ class AgentClient {
|
|
|
345
344
|
* request. Build the package patch with `inlineCreativesForPackages()` and
|
|
346
345
|
* preflight it with `preflightUpdateMediaBuy(currentBuy, patch)` so
|
|
347
346
|
* `available_actions[]` allows `replace_creative` before dispatch.
|
|
347
|
+
* Use `format_kind` and `format_option_ref` for every creative in the patch;
|
|
348
|
+
* the SDK handles any negotiated compatibility conversion.
|
|
348
349
|
*/
|
|
349
350
|
async updateMediaBuy(params, inputHandler, options) {
|
|
350
351
|
const result = await this.client.updateMediaBuy(params, inputHandler, {
|
|
@@ -353,6 +354,14 @@ class AgentClient {
|
|
|
353
354
|
this.retainSession(result);
|
|
354
355
|
return result;
|
|
355
356
|
}
|
|
357
|
+
/** @deprecated Use `updateMediaBuy`; this explicit compatibility surface accepts legacy creative `format_id`. */
|
|
358
|
+
async updateMediaBuyLegacy(params, inputHandler, options) {
|
|
359
|
+
const result = await this.client.updateMediaBuyLegacy(params, inputHandler, {
|
|
360
|
+
...this.withSession("update_media_buy", options)
|
|
361
|
+
});
|
|
362
|
+
this.retainSession(result);
|
|
363
|
+
return result;
|
|
364
|
+
}
|
|
356
365
|
/**
|
|
357
366
|
* Sync creative assets into the seller's reusable creative library.
|
|
358
367
|
*
|
|
@@ -365,6 +374,11 @@ class AgentClient {
|
|
|
365
374
|
* send a separate `create_media_buy` or `update_media_buy` request with its
|
|
366
375
|
* own idempotency key. If neither capability is advertised, creative upload
|
|
367
376
|
* is not available through this SDK helper surface.
|
|
377
|
+
*
|
|
378
|
+
* A sync request does not carry product declarations. When compatibility
|
|
379
|
+
* translation needs seller selection metadata, pass
|
|
380
|
+
* `options.creativeFormatProjection.selectorContainers` with the routed
|
|
381
|
+
* package/product selectors. Assignments scope each creative to its package.
|
|
368
382
|
*/
|
|
369
383
|
async syncCreatives(params, inputHandler, options) {
|
|
370
384
|
const result = await this.client.syncCreatives(params, inputHandler, {
|
|
@@ -373,11 +387,32 @@ class AgentClient {
|
|
|
373
387
|
this.retainSession(result);
|
|
374
388
|
return result;
|
|
375
389
|
}
|
|
390
|
+
/** @deprecated Use `syncCreatives`; this explicit compatibility surface accepts legacy creative `format_id`. */
|
|
391
|
+
async syncCreativesLegacy(params, inputHandler, options) {
|
|
392
|
+
const result = await this.client.syncCreativesLegacy(params, inputHandler, {
|
|
393
|
+
...this.withSession("sync_creatives", options)
|
|
394
|
+
});
|
|
395
|
+
this.retainSession(result);
|
|
396
|
+
return result;
|
|
397
|
+
}
|
|
376
398
|
/**
|
|
377
399
|
* List creative assets
|
|
378
400
|
*/
|
|
379
401
|
async listCreatives(params, inputHandler, options) {
|
|
380
402
|
const result = await this.client.listCreatives(params, inputHandler, {
|
|
403
|
+
...options,
|
|
404
|
+
...this.withSession("list_creatives", options)
|
|
405
|
+
});
|
|
406
|
+
this.retainSession(result);
|
|
407
|
+
return result;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Return the unprojected `list_creatives` wire response.
|
|
411
|
+
*
|
|
412
|
+
* @deprecated Compatibility-only escape hatch for migration and protocol tooling.
|
|
413
|
+
*/
|
|
414
|
+
async listCreativesLegacy(params, inputHandler, options) {
|
|
415
|
+
const result = await this.client.listCreativesLegacy(params, inputHandler, {
|
|
381
416
|
...this.withSession("list_creatives", options)
|
|
382
417
|
});
|
|
383
418
|
this.retainSession(result);
|
|
@@ -403,6 +438,15 @@ class AgentClient {
|
|
|
403
438
|
this.retainSession(result);
|
|
404
439
|
return result;
|
|
405
440
|
}
|
|
441
|
+
/** Retrieve canonical creative-level and variant-level delivery metrics. */
|
|
442
|
+
async getCreativeDelivery(params, inputHandler, options) {
|
|
443
|
+
const result = await this.client.getCreativeDelivery(params, inputHandler, {
|
|
444
|
+
...options,
|
|
445
|
+
...this.withSession("get_creative_delivery", options)
|
|
446
|
+
});
|
|
447
|
+
this.retainSession(result);
|
|
448
|
+
return result;
|
|
449
|
+
}
|
|
406
450
|
/**
|
|
407
451
|
* Provide performance feedback
|
|
408
452
|
*/
|
|
@@ -476,21 +520,17 @@ class AgentClient {
|
|
|
476
520
|
async requireV3(taskType = "request") {
|
|
477
521
|
return this.client.requireSupportedMajor(taskType);
|
|
478
522
|
}
|
|
479
|
-
/**
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
async previewCreative(params, inputHandler, options) {
|
|
483
|
-
const result = await this.client.previewCreative(params, inputHandler, {
|
|
523
|
+
/** @deprecated Migration-only access to legacy `format_id`-based creative preview. */
|
|
524
|
+
async previewCreativeLegacy(params, inputHandler, options) {
|
|
525
|
+
const result = await this.client.previewCreativeLegacy(params, inputHandler, {
|
|
484
526
|
...this.withSession("preview_creative", options)
|
|
485
527
|
});
|
|
486
528
|
this.retainSession(result);
|
|
487
529
|
return result;
|
|
488
530
|
}
|
|
489
|
-
/**
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
async buildCreative(params, inputHandler, options) {
|
|
493
|
-
const result = await this.client.buildCreative(params, inputHandler, {
|
|
531
|
+
/** @deprecated Migration-only access to legacy `target_format_id`-based creative building. */
|
|
532
|
+
async buildCreativeLegacy(params, inputHandler, options) {
|
|
533
|
+
const result = await this.client.buildCreativeLegacy(params, inputHandler, {
|
|
494
534
|
...this.withSession("build_creative", options)
|
|
495
535
|
});
|
|
496
536
|
this.retainSession(result);
|
|
@@ -581,8 +621,8 @@ class AgentClient {
|
|
|
581
621
|
/**
|
|
582
622
|
* List content standards
|
|
583
623
|
*/
|
|
584
|
-
async
|
|
585
|
-
const result = await this.client.
|
|
624
|
+
async listContentStandardsLegacy(params, inputHandler, options) {
|
|
625
|
+
const result = await this.client.listContentStandardsLegacy(params, inputHandler, {
|
|
586
626
|
...this.withSession("list_content_standards", options)
|
|
587
627
|
});
|
|
588
628
|
this.retainSession(result);
|
|
@@ -591,8 +631,8 @@ class AgentClient {
|
|
|
591
631
|
/**
|
|
592
632
|
* Get content standards
|
|
593
633
|
*/
|
|
594
|
-
async
|
|
595
|
-
const result = await this.client.
|
|
634
|
+
async getContentStandardsLegacy(params, inputHandler, options) {
|
|
635
|
+
const result = await this.client.getContentStandardsLegacy(params, inputHandler, {
|
|
596
636
|
...this.withSession("get_content_standards", options)
|
|
597
637
|
});
|
|
598
638
|
this.retainSession(result);
|
|
@@ -601,8 +641,8 @@ class AgentClient {
|
|
|
601
641
|
/**
|
|
602
642
|
* Calibrate content against standards
|
|
603
643
|
*/
|
|
604
|
-
async
|
|
605
|
-
const result = await this.client.
|
|
644
|
+
async calibrateContentLegacy(params, inputHandler, options) {
|
|
645
|
+
const result = await this.client.calibrateContentLegacy(params, inputHandler, {
|
|
606
646
|
...this.withSession("calibrate_content", options)
|
|
607
647
|
});
|
|
608
648
|
this.retainSession(result);
|
|
@@ -611,8 +651,8 @@ class AgentClient {
|
|
|
611
651
|
/**
|
|
612
652
|
* Validate content delivery
|
|
613
653
|
*/
|
|
614
|
-
async
|
|
615
|
-
const result = await this.client.
|
|
654
|
+
async validateContentDeliveryLegacy(params, inputHandler, options) {
|
|
655
|
+
const result = await this.client.validateContentDeliveryLegacy(params, inputHandler, {
|
|
616
656
|
...this.withSession("validate_content_delivery", options)
|
|
617
657
|
});
|
|
618
658
|
this.retainSession(result);
|
|
@@ -845,7 +885,56 @@ class AgentClient {
|
|
|
845
885
|
return this.client.getActiveTasks();
|
|
846
886
|
}
|
|
847
887
|
async executeTask(taskName, params, inputHandler, options) {
|
|
848
|
-
|
|
888
|
+
switch (taskName) {
|
|
889
|
+
case "get_products":
|
|
890
|
+
return this.getProducts(params, inputHandler, options);
|
|
891
|
+
case "create_media_buy":
|
|
892
|
+
return await this.createMediaBuy(
|
|
893
|
+
params,
|
|
894
|
+
inputHandler,
|
|
895
|
+
options
|
|
896
|
+
);
|
|
897
|
+
case "update_media_buy":
|
|
898
|
+
return await this.updateMediaBuy(
|
|
899
|
+
params,
|
|
900
|
+
inputHandler,
|
|
901
|
+
options
|
|
902
|
+
);
|
|
903
|
+
case "sync_creatives":
|
|
904
|
+
return await this.syncCreatives(
|
|
905
|
+
params,
|
|
906
|
+
inputHandler,
|
|
907
|
+
options
|
|
908
|
+
);
|
|
909
|
+
case "list_creatives":
|
|
910
|
+
return this.listCreatives(params, inputHandler, options);
|
|
911
|
+
case "get_media_buys":
|
|
912
|
+
return this.getMediaBuys(params, inputHandler, options);
|
|
913
|
+
case "get_media_buy_delivery":
|
|
914
|
+
return this.getMediaBuyDelivery(params, inputHandler, options);
|
|
915
|
+
case "get_creative_delivery":
|
|
916
|
+
return this.getCreativeDelivery(params, inputHandler, options);
|
|
917
|
+
}
|
|
918
|
+
const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
|
|
919
|
+
...this.withSession(taskName, options)
|
|
920
|
+
});
|
|
921
|
+
this.retainSession(result);
|
|
922
|
+
return result;
|
|
923
|
+
}
|
|
924
|
+
/** Execute an extension task that is not part of the standard AdCP task set. */
|
|
925
|
+
async executeCustomTask(taskName, params, inputHandler, options) {
|
|
926
|
+
const result = await this.client.executeCustomTask(taskName, params, inputHandler, {
|
|
927
|
+
...this.withSession(taskName, options)
|
|
928
|
+
});
|
|
929
|
+
this.retainSession(result);
|
|
930
|
+
return result;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Explicit raw-task compatibility escape hatch for conformance and migration tooling.
|
|
934
|
+
* @deprecated Application code should use typed primary methods or `executeTask()`.
|
|
935
|
+
*/
|
|
936
|
+
async executeTaskLegacy(taskName, params, inputHandler, options) {
|
|
937
|
+
const result = await this.client.executeTaskLegacy(taskName, params, inputHandler, {
|
|
849
938
|
...this.withSession(taskName, options)
|
|
850
939
|
});
|
|
851
940
|
this.retainSession(result);
|