def lv_creds
import cswap-bend-cli@0.1.0.0/swlive.bend as Swliveimport Base
import cswap-bend-cli@0.1.0.0/swbase.bend as B
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq
129# The live credential: the file, else a managed key in the config.
130def lv_creds(+l: Live) -> String:
131 SBase.sel.s(B.is_some_str(lv_creds_text(l)), B.text_or(lv_creds_text(l)), SSeq.field_str(lv_cfg(l), "primaryApiKey"))