Categorical notions of fibration
Fosco Loregian, Emily Riehl
Fibrations over a category B, introduced to category theory by Grothendieck, encode pseudo-functors B^op⇝Cat, while the special case of discrete fibrations encode presheaves B^op→Set.
A two-sided discrete variation encodes functors B^op×A→Set, which are also known as profunctors from A to B.
By work of Street, all of these fibration notions can be defined internally to an arbitrary 2-category or bicategory.
While the two-sided discrete fibrations model profunctors internally to Cat, unexpectedly, the dual two-sided codiscrete cofibrations are necessary to model V-profunctors internally to V-Cat.
https://arxiv.org/abs/1806.06129#paper