batch_define_canonical_entity
Batch-create canonical registry entities in one atomic call (the migration counterpart to `define_canonical_entity`). Validates every entity up front (valid type, unique id) then writes all and flushes once, so a registry stand-up is a handful of batches, not one call per canonical.
Workspace & Portfoliosvalidate-all-then-write. A single invalid entity rejects the whole batch.
Arguments
entitiesarrayrequiredUp to 50 canonical entities.
Returns
Shape
{ defined: [{ canonical_id, qualified_id, type, title }], count, portfolio_file }