| 84 | /// Capability registry for an API (e.g., GitHub REST API). |
| 85 | #[derive(Debug, Clone)] |
| 86 | pub struct ApiCapability { |
| 87 | pub api: String, |
| 88 | pub host: String, |
| 89 | pub port: u32, |
| 90 | pub credential_type: String, |
| 91 | pub scope_capabilities: HashMap<String, Vec<ApiAction>>, |
| 92 | pub action_risk: HashMap<String, String>, |
| 93 | } |
| 94 | |
| 95 | impl ApiCapability { |
| 96 | /// All actions enabled by the given scopes. |
nothing calls this directly
no outgoing calls
no test coverage detected