(method: McpCanonicalAuthMethodInput)
| 174 | * methods have always had — so the shorthand, UI, and migration paths all |
| 175 | * converge on the same names. */ |
| 176 | const defaultMcpAuthSlug = (method: McpCanonicalAuthMethodInput): string => { |
| 177 | if (method.kind !== "apikey") return method.kind; |
| 178 | if (method.placements.length === 1) { |
| 179 | return method.placements[0]!.carrier === "header" ? "header" : "query"; |
| 180 | } |
| 181 | return "apikey"; |
| 182 | }; |
| 183 | |
| 184 | /** Expand request-shaped dialect entries into canonical placements; canonical |
| 185 | * entries pass through. Slug backfill is the caller's concern |
nothing calls this directly
no outgoing calls
no test coverage detected