def shared_hosting_ok
import near-architecture@0.9.1.0/arc.bend as Arcimport Base
638# A data API may also host the app only while it is private.
639def shared_hosting_ok(c: Container) -> Bool:
640 match c:
641 case Container{_, _, kind, _, _, +exposure, +cs, _, _, _, _, _}:
642 Bool.not(Nat.is_gt(count_in(Hosting{}, cs), 0n) && is_data_api(kind)) || is_tailnet(exposure) || is_local(exposure)