@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias EntityRefs

    EntityRefs:
        | { identityId: string; identityReferenceId: string }
        | { organizationId: string; organizationReferenceId: string }
        | Record<never, never>

    An envelope carries at most one entity reference pair, never both: the publisher branches on whether the entity id starts with id_ and sets one pair or the other.