| 24 | |
| 25 | // Modelled on a Security Scheme Object https://spec.openapis.org/oas/v3.1.0#security-scheme-object |
| 26 | export interface Authentication { |
| 27 | // So there is a straightforward way of identifying the type |
| 28 | authType: AuthTypeString; |
| 29 | // One of: 'apiKey' | 'http' | 'oauth2' | 'openIdConnect' |
| 30 | type: SecuritySchemeType; |
| 31 | // Could potentially generate some form of description from token values |
| 32 | description?: string; |
| 33 | // The name of the header, query or cookie parameter to be used. Used only with apiKey |
| 34 | name?: string; |
| 35 | // The location of the API key, "query", "header" or "cookie" |
| 36 | in: "query" | "header" | "cookie"; |
| 37 | // A valid HTTP auth scheme defined in RFC9110. Only used when type = http |
| 38 | scheme?: "Basic" | "Bearer" | "Digest"; |
| 39 | } |
| 40 | |
| 41 | // A Leaf stores data about an endpoint |
| 42 | export type Leaf = { |
nothing calls this directly
no outgoing calls
no test coverage detected