@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Type Alias SyncAccountsResponseRow

    SyncAccountsResponseRow: SyncAccountsSuccess["accounts"][number]

    One result row in a sync_accounts response. Carries the action discriminator (created / updated / unchanged / failed) the spec requires. Use as the element type when assembling the response.

    Field-level documentation lives on the inline shape in SyncAccountsSuccess.accounts[] — TS indexed-access types don't propagate per-field JSDoc into the consumer's IDE. Hover the underlying interface to read the spec text on each field.

    Use:

    const rows: SyncAccountsResponseRow[] = upstream.map((u) => ({
    account_id: u.id,
    brand: { domain: u.brand_domain },
    operator: u.operator,
    action: u.is_new ? 'created' : 'updated',
    status: u.active ? 'active' : 'pending_approval',
    }));
    return { accounts: rows };

    Returning a row without action fails to compile.