def activate_config
import cswap-bend-cli@0.1.0.0/swbase.bend as Swbaseimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
102# The live config after activating a target: its oauthAccount, and primaryApiKey
103# either set (target is an API key) or dropped (target is OAuth).
104def activate_config(+cfg: Json.Json, +oauth: Json.Json, +target_creds: String) -> Json.Json:
105 activate2(SBase.looks_like_api_key(target_creds), cfg, oauth, target_creds)