/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.8.0-rc7 * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export */ export const GrantTypeEnum = { AuthorizationCode: 'authorization_code', Implicit: 'implicit', Hybrid: 'hybrid', RefreshToken: 'refresh_token', ClientCredentials: 'client_credentials', Password: 'password', UrnIetfParamsOauthGrantTypeDeviceCode: 'urn:ietf:params:oauth:grant-type:device_code', UrnIetfParamsOauthGrantTypeTokenExchange: 'urn:ietf:params:oauth:grant-type:token-exchange', UnknownDefaultOpenApi: '11184809' } as const; export type GrantTypeEnum = typeof GrantTypeEnum[keyof typeof GrantTypeEnum]; export function instanceOfGrantTypeEnum(value: any): boolean { for (const key in GrantTypeEnum) { if (Object.prototype.hasOwnProperty.call(GrantTypeEnum, key)) { if (GrantTypeEnum[key as keyof typeof GrantTypeEnum] === value) { return true; } } } return false; } export function GrantTypeEnumFromJSON(json: any): GrantTypeEnum { return GrantTypeEnumFromJSONTyped(json, false); } export function GrantTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GrantTypeEnum { return json as GrantTypeEnum; } export function GrantTypeEnumToJSON(value?: GrantTypeEnum | null): any { return value as any; } export function GrantTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): GrantTypeEnum { return value as GrantTypeEnum; }