import type { MapOfStringsObject } from './map-of-strings.js' /** * Oauth Flow object * * Configuration details for a supported OAuth Flow * * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.2.0.md#oauth-flow-object} */ export type AuthorizationCodeObject = { /** **REQUIRED**. The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */ authorizationUrl: string /** **REQUIRED**. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */ tokenUrl: string /** The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS. */ refreshUrl?: string /** **REQUIRED**. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty. */ scopes: MapOfStringsObject } & Record<`x-${string}`, unknown>