Stone duality may be understood as providing a duality between syntax and semantics for propositional logic, so that a theory may be recovered from its models. In order to do likewise for first-order logic, Mihaly Makkai in Stone duality for first-order logic, Adv. Math. 65 (1987) no. 2, 97–170 (doi:10.1016/0001-8708(87)90020-X), constructed an adjunction between pretoposes (syntactic categories of first-order theories) and ultracategories. Jacob Lurie recently used a slightly different notion of ultracategory and different proof strategy in his paper Ultracategories. A further scheme-theoretic approach to this duality is provided by Steve Awodey and students, see Sheaf Representations and Duality in Logic (arXiv:2001.09195).
In Appendix A of Spectral Algebraic Geometry, Lurie develops a higher-categorical version of the theory above:
the theory of bounded ∞-pretopoi ... seems to provide a good language for extending concepts of first-order logic to the ∞-categorical setting.
Hence the question:
Does any known kind of ‘logical’ theory have bounded ∞-pretopoi as syntactic categories?
Might homotopy type theory have something to do with this?