@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface ValidateInputRequest

    Request payload for the validate_input task. Lets buyers preflight a creative manifest against canonical formats and/or specific products before committing to a render or other expensive creative-production step. It validates manifest structure and target format constraints only: slot counts, asset types, parameter ranges, and format-shape constraints. It does not rehearse a seller's library mutation, creative_id upsert semantics, package assignments, account authorization, active-delivery protections, or other trafficking-time gates. When the question is final seller acceptance for a creative that is ready to traffic, call sync_creatives directly; use dry_run: true for a non-mutating rehearsal of that operation. Used by build_creative internally to validate inputs before producing output. For genuinely nondeterministic generative systems where predictive validation is impossible, the platform's own post-synthesis QA loop applies — validate_input is the predictable-case primitive.

    The targets[] array is a discriminated list of validation targets, mirroring the response shape on validate-input-result.json#target. Each entry has a kind (canonical | product | third_party_format | capability) plus a kind-specific identifier. The capability kind is the canonical agent-local route for an advertised supported_formats entry whose operations contains validate; the other target kinds remain portable contract identifiers. Discriminated-by-kind on both sides eliminates a wire-shape mismatch: a previous draft used format_ids: string[] for canonical names alongside product_ids: string[], which collided with Product.format_ids: FormatId[] ({agent_url, id}) — codegen would emit the same field name with two different types. Discriminated targets[] makes the intent explicit and codegen-clean.

    interface ValidateInputRequest {
        account?: AccountReference;
        brand?: BrandReference;
        manifest: LegacyCreativeManifest;
        targets?: (
            | CanonicalFormatTarget
            | ProductTarget
            | ThirdPartyFormatTarget
            | CreativeCapabilityTarget
        )[];
    }
    Index
    targets?: (
        | CanonicalFormatTarget
        | ProductTarget
        | ThirdPartyFormatTarget
        | CreativeCapabilityTarget
    )[]

    Discriminated list of validation targets. Each entry mirrors the target shape on validate-input-result.json so the request/response wire shapes match exactly. Multi-target requests enable universal-creative scenarios where one manifest targets multiple sellers' format declarations in a single round-trip; the response carries one result per target in the same order.

    50