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

    Interface CanonicalFormatLegacyRoute

    Serializable canonical-to-legacy routing identity.

    Persist this sidecar next to a canonical product or selection when the selected format may later need to cross a legacy creative wire. Unlike the SDK's WeakMap metadata, every owner and dimensional discriminator survives JSON serialization.

    interface CanonicalFormatLegacyRoute {
        product_id: string;
        format_option_ref: FormatOptionReference;
        format_ids: V1FormatId[];
        seller_declared?: boolean;
        canonical_selector?: { format_kind: string; params?: unknown };
        inferred_from_id?: true;
    }
    Index
    product_id: string
    format_option_ref: FormatOptionReference
    format_ids: V1FormatId[]
    seller_declared?: boolean

    Whether the seller declared this option in its own format_options[]. false means the SDK derived the option from the seller's legacy format_ids, so the seller cannot resolve its format_option_id and a canonical-wire write addresses it by canonical_selector instead. Absent when the origin is unknown; such routes leave canonical writes unchanged.

    canonical_selector?: { format_kind: string; params?: unknown }

    The direct format_kind + params selector for an option the seller did not declare. Absent when no direct selector keeps the option's identity, such as a custom or schema-backed format, so a write selecting it fails before dispatch.

    inferred_from_id?: true

    true when the SDK guessed this option's format_kind and params from the legacy id's name (an AAO id alias or a registry id glob) at an agent URL other than the AAO reference creative agent. That agent owns its ids, so the guess may be wrong: display_300x250 can be a third-party tag, not an image. Absent when a catalog entry, catalog snapshot or legacyFormatConverter declared the option. Compare a guessed option against the seller's own format_options[] only as a hint, or project with authoritativeOnly: true to skip guesses.