Function
internalMethod
(
value: IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod,
)
Source from the content-addressed store, hash-verified
| 250 | } |
| 251 | |
| 252 | function internalMethod( |
| 253 | value: IntegrationOAuthMethod | IntegrationKeyMethod | IntegrationEnvMethod, |
| 254 | ): Integration.Method { |
| 255 | if (value.type === "env") return value |
| 256 | if (value.type === "key") return value |
| 257 | return { |
| 258 | ...value, |
| 259 | id: Integration.MethodID.make(value.id), |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | function agentInfo(value: AgentV2.Info) { |
| 264 | return { |
Tested by
no test coverage detected