pub async fn by_did( executor_url: String, cap_token: String, did: String, ) -> Result<Option<ByDidAgentByDid>>