/* tslint:disable */ /* eslint-disable */ /** * Keycloak Admin REST API * This is a REST API reference for the Keycloak Admin * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { AuthenticationFlowRepresentation, AuthenticationFlowRepresentationFromJSON, AuthenticationFlowRepresentationFromJSONTyped, AuthenticationFlowRepresentationToJSON, AuthenticatorConfigRepresentation, AuthenticatorConfigRepresentationFromJSON, AuthenticatorConfigRepresentationFromJSONTyped, AuthenticatorConfigRepresentationToJSON, ClientRepresentation, ClientRepresentationFromJSON, ClientRepresentationFromJSONTyped, ClientRepresentationToJSON, ClientScopeRepresentation, ClientScopeRepresentationFromJSON, ClientScopeRepresentationFromJSONTyped, ClientScopeRepresentationToJSON, GroupRepresentation, GroupRepresentationFromJSON, GroupRepresentationFromJSONTyped, GroupRepresentationToJSON, IdentityProviderMapperRepresentation, IdentityProviderMapperRepresentationFromJSON, IdentityProviderMapperRepresentationFromJSONTyped, IdentityProviderMapperRepresentationToJSON, IdentityProviderRepresentation, IdentityProviderRepresentationFromJSON, IdentityProviderRepresentationFromJSONTyped, IdentityProviderRepresentationToJSON, JsonNode, JsonNodeFromJSON, JsonNodeFromJSONTyped, JsonNodeToJSON, MultivaluedHashMap, MultivaluedHashMapFromJSON, MultivaluedHashMapFromJSONTyped, MultivaluedHashMapToJSON, ProtocolMapperRepresentation, ProtocolMapperRepresentationFromJSON, ProtocolMapperRepresentationFromJSONTyped, ProtocolMapperRepresentationToJSON, RequiredActionProviderRepresentation, RequiredActionProviderRepresentationFromJSON, RequiredActionProviderRepresentationFromJSONTyped, RequiredActionProviderRepresentationToJSON, RoleRepresentation, RoleRepresentationFromJSON, RoleRepresentationFromJSONTyped, RoleRepresentationToJSON, RolesRepresentation, RolesRepresentationFromJSON, RolesRepresentationFromJSONTyped, RolesRepresentationToJSON, ScopeMappingRepresentation, ScopeMappingRepresentationFromJSON, ScopeMappingRepresentationFromJSONTyped, ScopeMappingRepresentationToJSON, UserFederationMapperRepresentation, UserFederationMapperRepresentationFromJSON, UserFederationMapperRepresentationFromJSONTyped, UserFederationMapperRepresentationToJSON, UserFederationProviderRepresentation, UserFederationProviderRepresentationFromJSON, UserFederationProviderRepresentationFromJSONTyped, UserFederationProviderRepresentationToJSON, UserRepresentation, UserRepresentationFromJSON, UserRepresentationFromJSONTyped, UserRepresentationToJSON, } from './'; /** * * @export * @interface RealmRepresentation */ export interface RealmRepresentation { /** * * @type {number} * @memberof RealmRepresentation */ accessCodeLifespan?: number; /** * * @type {number} * @memberof RealmRepresentation */ accessCodeLifespanLogin?: number; /** * * @type {number} * @memberof RealmRepresentation */ accessCodeLifespanUserAction?: number; /** * * @type {number} * @memberof RealmRepresentation */ accessTokenLifespan?: number; /** * * @type {number} * @memberof RealmRepresentation */ accessTokenLifespanForImplicitFlow?: number; /** * * @type {string} * @memberof RealmRepresentation */ accountTheme?: string; /** * * @type {number} * @memberof RealmRepresentation */ actionTokenGeneratedByAdminLifespan?: number; /** * * @type {number} * @memberof RealmRepresentation */ actionTokenGeneratedByUserLifespan?: number; /** * * @type {boolean} * @memberof RealmRepresentation */ adminEventsDetailsEnabled?: boolean; /** * * @type {boolean} * @memberof RealmRepresentation */ adminEventsEnabled?: boolean; /** * * @type {string} * @memberof RealmRepresentation */ adminTheme?: string; /** * * @type {{ [key: string]: object; }} * @memberof RealmRepresentation */ attributes?: { [key: string]: object; }; /** * * @type {Array} * @memberof RealmRepresentation */ authenticationFlows?: Array; /** * * @type {Array} * @memberof RealmRepresentation */ authenticatorConfig?: Array; /** * * @type {string} * @memberof RealmRepresentation */ browserFlow?: string; /** * * @type {{ [key: string]: object; }} * @memberof RealmRepresentation */ browserSecurityHeaders?: { [key: string]: object; }; /** * * @type {boolean} * @memberof RealmRepresentation */ bruteForceProtected?: boolean; /** * * @type {string} * @memberof RealmRepresentation */ clientAuthenticationFlow?: string; /** * * @type {number} * @memberof RealmRepresentation */ clientOfflineSessionIdleTimeout?: number; /** * * @type {number} * @memberof RealmRepresentation */ clientOfflineSessionMaxLifespan?: number; /** * * @type {JsonNode} * @memberof RealmRepresentation */ clientPolicies?: JsonNode; /** * * @type {JsonNode} * @memberof RealmRepresentation */ clientProfiles?: JsonNode; /** * * @type {{ [key: string]: object; }} * @memberof RealmRepresentation */ clientScopeMappings?: { [key: string]: object; }; /** * * @type {Array} * @memberof RealmRepresentation */ clientScopes?: Array; /** * * @type {number} * @memberof RealmRepresentation */ clientSessionIdleTimeout?: number; /** * * @type {number} * @memberof RealmRepresentation */ clientSessionMaxLifespan?: number; /** * * @type {Array} * @memberof RealmRepresentation */ clients?: Array; /** * * @type {MultivaluedHashMap} * @memberof RealmRepresentation */ components?: MultivaluedHashMap; /** * * @type {Array} * @memberof RealmRepresentation */ defaultDefaultClientScopes?: Array; /** * * @type {Array} * @memberof RealmRepresentation */ defaultGroups?: Array; /** * * @type {string} * @memberof RealmRepresentation */ defaultLocale?: string; /** * * @type {Array} * @memberof RealmRepresentation */ defaultOptionalClientScopes?: Array; /** * * @type {RoleRepresentation} * @memberof RealmRepresentation */ defaultRole?: RoleRepresentation; /** * * @type {string} * @memberof RealmRepresentation */ defaultSignatureAlgorithm?: string; /** * * @type {string} * @memberof RealmRepresentation */ directGrantFlow?: string; /** * * @type {string} * @memberof RealmRepresentation */ displayName?: string; /** * * @type {string} * @memberof RealmRepresentation */ displayNameHtml?: string; /** * * @type {string} * @memberof RealmRepresentation */ dockerAuthenticationFlow?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ duplicateEmailsAllowed?: boolean; /** * * @type {boolean} * @memberof RealmRepresentation */ editUsernameAllowed?: boolean; /** * * @type {string} * @memberof RealmRepresentation */ emailTheme?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ enabled?: boolean; /** * * @type {Array} * @memberof RealmRepresentation */ enabledEventTypes?: Array; /** * * @type {boolean} * @memberof RealmRepresentation */ eventsEnabled?: boolean; /** * * @type {number} * @memberof RealmRepresentation */ eventsExpiration?: number; /** * * @type {Array} * @memberof RealmRepresentation */ eventsListeners?: Array; /** * * @type {number} * @memberof RealmRepresentation */ failureFactor?: number; /** * * @type {Array} * @memberof RealmRepresentation */ federatedUsers?: Array; /** * * @type {Array} * @memberof RealmRepresentation */ groups?: Array; /** * * @type {string} * @memberof RealmRepresentation */ id?: string; /** * * @type {Array} * @memberof RealmRepresentation */ identityProviderMappers?: Array; /** * * @type {Array} * @memberof RealmRepresentation */ identityProviders?: Array; /** * * @type {boolean} * @memberof RealmRepresentation */ internationalizationEnabled?: boolean; /** * * @type {string} * @memberof RealmRepresentation */ keycloakVersion?: string; /** * * @type {string} * @memberof RealmRepresentation */ loginTheme?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ loginWithEmailAllowed?: boolean; /** * * @type {number} * @memberof RealmRepresentation */ maxDeltaTimeSeconds?: number; /** * * @type {number} * @memberof RealmRepresentation */ maxFailureWaitSeconds?: number; /** * * @type {number} * @memberof RealmRepresentation */ minimumQuickLoginWaitSeconds?: number; /** * * @type {number} * @memberof RealmRepresentation */ notBefore?: number; /** * * @type {number} * @memberof RealmRepresentation */ oAuth2DeviceCodeLifespan?: number; /** * * @type {number} * @memberof RealmRepresentation */ oAuth2DevicePollingInterval?: number; /** * * @type {number} * @memberof RealmRepresentation */ oauth2DeviceCodeLifespan?: number; /** * * @type {number} * @memberof RealmRepresentation */ oauth2DevicePollingInterval?: number; /** * * @type {number} * @memberof RealmRepresentation */ offlineSessionIdleTimeout?: number; /** * * @type {number} * @memberof RealmRepresentation */ offlineSessionMaxLifespan?: number; /** * * @type {boolean} * @memberof RealmRepresentation */ offlineSessionMaxLifespanEnabled?: boolean; /** * * @type {string} * @memberof RealmRepresentation */ otpPolicyAlgorithm?: string; /** * * @type {number} * @memberof RealmRepresentation */ otpPolicyDigits?: number; /** * * @type {number} * @memberof RealmRepresentation */ otpPolicyInitialCounter?: number; /** * * @type {number} * @memberof RealmRepresentation */ otpPolicyLookAheadWindow?: number; /** * * @type {number} * @memberof RealmRepresentation */ otpPolicyPeriod?: number; /** * * @type {string} * @memberof RealmRepresentation */ otpPolicyType?: string; /** * * @type {Array} * @memberof RealmRepresentation */ otpSupportedApplications?: Array; /** * * @type {string} * @memberof RealmRepresentation */ passwordPolicy?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ permanentLockout?: boolean; /** * * @type {Array} * @memberof RealmRepresentation */ protocolMappers?: Array; /** * * @type {number} * @memberof RealmRepresentation */ quickLoginCheckMilliSeconds?: number; /** * * @type {string} * @memberof RealmRepresentation */ realm?: string; /** * * @type {number} * @memberof RealmRepresentation */ refreshTokenMaxReuse?: number; /** * * @type {boolean} * @memberof RealmRepresentation */ registrationAllowed?: boolean; /** * * @type {boolean} * @memberof RealmRepresentation */ registrationEmailAsUsername?: boolean; /** * * @type {string} * @memberof RealmRepresentation */ registrationFlow?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ rememberMe?: boolean; /** * * @type {Array} * @memberof RealmRepresentation */ requiredActions?: Array; /** * * @type {string} * @memberof RealmRepresentation */ resetCredentialsFlow?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ resetPasswordAllowed?: boolean; /** * * @type {boolean} * @memberof RealmRepresentation */ revokeRefreshToken?: boolean; /** * * @type {RolesRepresentation} * @memberof RealmRepresentation */ roles?: RolesRepresentation; /** * * @type {Array} * @memberof RealmRepresentation */ scopeMappings?: Array; /** * * @type {{ [key: string]: object; }} * @memberof RealmRepresentation */ smtpServer?: { [key: string]: object; }; /** * * @type {string} * @memberof RealmRepresentation */ sslRequired?: string; /** * * @type {number} * @memberof RealmRepresentation */ ssoSessionIdleTimeout?: number; /** * * @type {number} * @memberof RealmRepresentation */ ssoSessionIdleTimeoutRememberMe?: number; /** * * @type {number} * @memberof RealmRepresentation */ ssoSessionMaxLifespan?: number; /** * * @type {number} * @memberof RealmRepresentation */ ssoSessionMaxLifespanRememberMe?: number; /** * * @type {Array} * @memberof RealmRepresentation */ supportedLocales?: Array; /** * * @type {Array} * @memberof RealmRepresentation */ userFederationMappers?: Array; /** * * @type {Array} * @memberof RealmRepresentation */ userFederationProviders?: Array; /** * * @type {boolean} * @memberof RealmRepresentation */ userManagedAccessAllowed?: boolean; /** * * @type {Array} * @memberof RealmRepresentation */ users?: Array; /** * * @type {boolean} * @memberof RealmRepresentation */ verifyEmail?: boolean; /** * * @type {number} * @memberof RealmRepresentation */ waitIncrementSeconds?: number; /** * * @type {Array} * @memberof RealmRepresentation */ webAuthnPolicyAcceptableAaguids?: Array; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyAttestationConveyancePreference?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyAuthenticatorAttachment?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ webAuthnPolicyAvoidSameAuthenticatorRegister?: boolean; /** * * @type {number} * @memberof RealmRepresentation */ webAuthnPolicyCreateTimeout?: number; /** * * @type {Array} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessAcceptableAaguids?: Array; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessAttestationConveyancePreference?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessAuthenticatorAttachment?: string; /** * * @type {boolean} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister?: boolean; /** * * @type {number} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessCreateTimeout?: number; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessRequireResidentKey?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessRpEntityName?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessRpId?: string; /** * * @type {Array} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessSignatureAlgorithms?: Array; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyPasswordlessUserVerificationRequirement?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyRequireResidentKey?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyRpEntityName?: string; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyRpId?: string; /** * * @type {Array} * @memberof RealmRepresentation */ webAuthnPolicySignatureAlgorithms?: Array; /** * * @type {string} * @memberof RealmRepresentation */ webAuthnPolicyUserVerificationRequirement?: string; } export function RealmRepresentationFromJSON(json: any): RealmRepresentation { return RealmRepresentationFromJSONTyped(json, false); } export function RealmRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RealmRepresentation { if ((json === undefined) || (json === null)) { return json; } return { 'accessCodeLifespan': !exists(json, 'accessCodeLifespan') ? undefined : json['accessCodeLifespan'], 'accessCodeLifespanLogin': !exists(json, 'accessCodeLifespanLogin') ? undefined : json['accessCodeLifespanLogin'], 'accessCodeLifespanUserAction': !exists(json, 'accessCodeLifespanUserAction') ? undefined : json['accessCodeLifespanUserAction'], 'accessTokenLifespan': !exists(json, 'accessTokenLifespan') ? undefined : json['accessTokenLifespan'], 'accessTokenLifespanForImplicitFlow': !exists(json, 'accessTokenLifespanForImplicitFlow') ? undefined : json['accessTokenLifespanForImplicitFlow'], 'accountTheme': !exists(json, 'accountTheme') ? undefined : json['accountTheme'], 'actionTokenGeneratedByAdminLifespan': !exists(json, 'actionTokenGeneratedByAdminLifespan') ? undefined : json['actionTokenGeneratedByAdminLifespan'], 'actionTokenGeneratedByUserLifespan': !exists(json, 'actionTokenGeneratedByUserLifespan') ? undefined : json['actionTokenGeneratedByUserLifespan'], 'adminEventsDetailsEnabled': !exists(json, 'adminEventsDetailsEnabled') ? undefined : json['adminEventsDetailsEnabled'], 'adminEventsEnabled': !exists(json, 'adminEventsEnabled') ? undefined : json['adminEventsEnabled'], 'adminTheme': !exists(json, 'adminTheme') ? undefined : json['adminTheme'], 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'], 'authenticationFlows': !exists(json, 'authenticationFlows') ? undefined : ((json['authenticationFlows'] as Array).map(AuthenticationFlowRepresentationFromJSON)), 'authenticatorConfig': !exists(json, 'authenticatorConfig') ? undefined : ((json['authenticatorConfig'] as Array).map(AuthenticatorConfigRepresentationFromJSON)), 'browserFlow': !exists(json, 'browserFlow') ? undefined : json['browserFlow'], 'browserSecurityHeaders': !exists(json, 'browserSecurityHeaders') ? undefined : json['browserSecurityHeaders'], 'bruteForceProtected': !exists(json, 'bruteForceProtected') ? undefined : json['bruteForceProtected'], 'clientAuthenticationFlow': !exists(json, 'clientAuthenticationFlow') ? undefined : json['clientAuthenticationFlow'], 'clientOfflineSessionIdleTimeout': !exists(json, 'clientOfflineSessionIdleTimeout') ? undefined : json['clientOfflineSessionIdleTimeout'], 'clientOfflineSessionMaxLifespan': !exists(json, 'clientOfflineSessionMaxLifespan') ? undefined : json['clientOfflineSessionMaxLifespan'], 'clientPolicies': !exists(json, 'clientPolicies') ? undefined : JsonNodeFromJSON(json['clientPolicies']), 'clientProfiles': !exists(json, 'clientProfiles') ? undefined : JsonNodeFromJSON(json['clientProfiles']), 'clientScopeMappings': !exists(json, 'clientScopeMappings') ? undefined : json['clientScopeMappings'], 'clientScopes': !exists(json, 'clientScopes') ? undefined : ((json['clientScopes'] as Array).map(ClientScopeRepresentationFromJSON)), 'clientSessionIdleTimeout': !exists(json, 'clientSessionIdleTimeout') ? undefined : json['clientSessionIdleTimeout'], 'clientSessionMaxLifespan': !exists(json, 'clientSessionMaxLifespan') ? undefined : json['clientSessionMaxLifespan'], 'clients': !exists(json, 'clients') ? undefined : ((json['clients'] as Array).map(ClientRepresentationFromJSON)), 'components': !exists(json, 'components') ? undefined : MultivaluedHashMapFromJSON(json['components']), 'defaultDefaultClientScopes': !exists(json, 'defaultDefaultClientScopes') ? undefined : json['defaultDefaultClientScopes'], 'defaultGroups': !exists(json, 'defaultGroups') ? undefined : json['defaultGroups'], 'defaultLocale': !exists(json, 'defaultLocale') ? undefined : json['defaultLocale'], 'defaultOptionalClientScopes': !exists(json, 'defaultOptionalClientScopes') ? undefined : json['defaultOptionalClientScopes'], 'defaultRole': !exists(json, 'defaultRole') ? undefined : RoleRepresentationFromJSON(json['defaultRole']), 'defaultSignatureAlgorithm': !exists(json, 'defaultSignatureAlgorithm') ? undefined : json['defaultSignatureAlgorithm'], 'directGrantFlow': !exists(json, 'directGrantFlow') ? undefined : json['directGrantFlow'], 'displayName': !exists(json, 'displayName') ? undefined : json['displayName'], 'displayNameHtml': !exists(json, 'displayNameHtml') ? undefined : json['displayNameHtml'], 'dockerAuthenticationFlow': !exists(json, 'dockerAuthenticationFlow') ? undefined : json['dockerAuthenticationFlow'], 'duplicateEmailsAllowed': !exists(json, 'duplicateEmailsAllowed') ? undefined : json['duplicateEmailsAllowed'], 'editUsernameAllowed': !exists(json, 'editUsernameAllowed') ? undefined : json['editUsernameAllowed'], 'emailTheme': !exists(json, 'emailTheme') ? undefined : json['emailTheme'], 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'], 'enabledEventTypes': !exists(json, 'enabledEventTypes') ? undefined : json['enabledEventTypes'], 'eventsEnabled': !exists(json, 'eventsEnabled') ? undefined : json['eventsEnabled'], 'eventsExpiration': !exists(json, 'eventsExpiration') ? undefined : json['eventsExpiration'], 'eventsListeners': !exists(json, 'eventsListeners') ? undefined : json['eventsListeners'], 'failureFactor': !exists(json, 'failureFactor') ? undefined : json['failureFactor'], 'federatedUsers': !exists(json, 'federatedUsers') ? undefined : ((json['federatedUsers'] as Array).map(UserRepresentationFromJSON)), 'groups': !exists(json, 'groups') ? undefined : ((json['groups'] as Array).map(GroupRepresentationFromJSON)), 'id': !exists(json, 'id') ? undefined : json['id'], 'identityProviderMappers': !exists(json, 'identityProviderMappers') ? undefined : ((json['identityProviderMappers'] as Array).map(IdentityProviderMapperRepresentationFromJSON)), 'identityProviders': !exists(json, 'identityProviders') ? undefined : ((json['identityProviders'] as Array).map(IdentityProviderRepresentationFromJSON)), 'internationalizationEnabled': !exists(json, 'internationalizationEnabled') ? undefined : json['internationalizationEnabled'], 'keycloakVersion': !exists(json, 'keycloakVersion') ? undefined : json['keycloakVersion'], 'loginTheme': !exists(json, 'loginTheme') ? undefined : json['loginTheme'], 'loginWithEmailAllowed': !exists(json, 'loginWithEmailAllowed') ? undefined : json['loginWithEmailAllowed'], 'maxDeltaTimeSeconds': !exists(json, 'maxDeltaTimeSeconds') ? undefined : json['maxDeltaTimeSeconds'], 'maxFailureWaitSeconds': !exists(json, 'maxFailureWaitSeconds') ? undefined : json['maxFailureWaitSeconds'], 'minimumQuickLoginWaitSeconds': !exists(json, 'minimumQuickLoginWaitSeconds') ? undefined : json['minimumQuickLoginWaitSeconds'], 'notBefore': !exists(json, 'notBefore') ? undefined : json['notBefore'], 'oAuth2DeviceCodeLifespan': !exists(json, 'oAuth2DeviceCodeLifespan') ? undefined : json['oAuth2DeviceCodeLifespan'], 'oAuth2DevicePollingInterval': !exists(json, 'oAuth2DevicePollingInterval') ? undefined : json['oAuth2DevicePollingInterval'], 'oauth2DeviceCodeLifespan': !exists(json, 'oauth2DeviceCodeLifespan') ? undefined : json['oauth2DeviceCodeLifespan'], 'oauth2DevicePollingInterval': !exists(json, 'oauth2DevicePollingInterval') ? undefined : json['oauth2DevicePollingInterval'], 'offlineSessionIdleTimeout': !exists(json, 'offlineSessionIdleTimeout') ? undefined : json['offlineSessionIdleTimeout'], 'offlineSessionMaxLifespan': !exists(json, 'offlineSessionMaxLifespan') ? undefined : json['offlineSessionMaxLifespan'], 'offlineSessionMaxLifespanEnabled': !exists(json, 'offlineSessionMaxLifespanEnabled') ? undefined : json['offlineSessionMaxLifespanEnabled'], 'otpPolicyAlgorithm': !exists(json, 'otpPolicyAlgorithm') ? undefined : json['otpPolicyAlgorithm'], 'otpPolicyDigits': !exists(json, 'otpPolicyDigits') ? undefined : json['otpPolicyDigits'], 'otpPolicyInitialCounter': !exists(json, 'otpPolicyInitialCounter') ? undefined : json['otpPolicyInitialCounter'], 'otpPolicyLookAheadWindow': !exists(json, 'otpPolicyLookAheadWindow') ? undefined : json['otpPolicyLookAheadWindow'], 'otpPolicyPeriod': !exists(json, 'otpPolicyPeriod') ? undefined : json['otpPolicyPeriod'], 'otpPolicyType': !exists(json, 'otpPolicyType') ? undefined : json['otpPolicyType'], 'otpSupportedApplications': !exists(json, 'otpSupportedApplications') ? undefined : json['otpSupportedApplications'], 'passwordPolicy': !exists(json, 'passwordPolicy') ? undefined : json['passwordPolicy'], 'permanentLockout': !exists(json, 'permanentLockout') ? undefined : json['permanentLockout'], 'protocolMappers': !exists(json, 'protocolMappers') ? undefined : ((json['protocolMappers'] as Array).map(ProtocolMapperRepresentationFromJSON)), 'quickLoginCheckMilliSeconds': !exists(json, 'quickLoginCheckMilliSeconds') ? undefined : json['quickLoginCheckMilliSeconds'], 'realm': !exists(json, 'realm') ? undefined : json['realm'], 'refreshTokenMaxReuse': !exists(json, 'refreshTokenMaxReuse') ? undefined : json['refreshTokenMaxReuse'], 'registrationAllowed': !exists(json, 'registrationAllowed') ? undefined : json['registrationAllowed'], 'registrationEmailAsUsername': !exists(json, 'registrationEmailAsUsername') ? undefined : json['registrationEmailAsUsername'], 'registrationFlow': !exists(json, 'registrationFlow') ? undefined : json['registrationFlow'], 'rememberMe': !exists(json, 'rememberMe') ? undefined : json['rememberMe'], 'requiredActions': !exists(json, 'requiredActions') ? undefined : ((json['requiredActions'] as Array).map(RequiredActionProviderRepresentationFromJSON)), 'resetCredentialsFlow': !exists(json, 'resetCredentialsFlow') ? undefined : json['resetCredentialsFlow'], 'resetPasswordAllowed': !exists(json, 'resetPasswordAllowed') ? undefined : json['resetPasswordAllowed'], 'revokeRefreshToken': !exists(json, 'revokeRefreshToken') ? undefined : json['revokeRefreshToken'], 'roles': !exists(json, 'roles') ? undefined : RolesRepresentationFromJSON(json['roles']), 'scopeMappings': !exists(json, 'scopeMappings') ? undefined : ((json['scopeMappings'] as Array).map(ScopeMappingRepresentationFromJSON)), 'smtpServer': !exists(json, 'smtpServer') ? undefined : json['smtpServer'], 'sslRequired': !exists(json, 'sslRequired') ? undefined : json['sslRequired'], 'ssoSessionIdleTimeout': !exists(json, 'ssoSessionIdleTimeout') ? undefined : json['ssoSessionIdleTimeout'], 'ssoSessionIdleTimeoutRememberMe': !exists(json, 'ssoSessionIdleTimeoutRememberMe') ? undefined : json['ssoSessionIdleTimeoutRememberMe'], 'ssoSessionMaxLifespan': !exists(json, 'ssoSessionMaxLifespan') ? undefined : json['ssoSessionMaxLifespan'], 'ssoSessionMaxLifespanRememberMe': !exists(json, 'ssoSessionMaxLifespanRememberMe') ? undefined : json['ssoSessionMaxLifespanRememberMe'], 'supportedLocales': !exists(json, 'supportedLocales') ? undefined : json['supportedLocales'], 'userFederationMappers': !exists(json, 'userFederationMappers') ? undefined : ((json['userFederationMappers'] as Array).map(UserFederationMapperRepresentationFromJSON)), 'userFederationProviders': !exists(json, 'userFederationProviders') ? undefined : ((json['userFederationProviders'] as Array).map(UserFederationProviderRepresentationFromJSON)), 'userManagedAccessAllowed': !exists(json, 'userManagedAccessAllowed') ? undefined : json['userManagedAccessAllowed'], 'users': !exists(json, 'users') ? undefined : ((json['users'] as Array).map(UserRepresentationFromJSON)), 'verifyEmail': !exists(json, 'verifyEmail') ? undefined : json['verifyEmail'], 'waitIncrementSeconds': !exists(json, 'waitIncrementSeconds') ? undefined : json['waitIncrementSeconds'], 'webAuthnPolicyAcceptableAaguids': !exists(json, 'webAuthnPolicyAcceptableAaguids') ? undefined : json['webAuthnPolicyAcceptableAaguids'], 'webAuthnPolicyAttestationConveyancePreference': !exists(json, 'webAuthnPolicyAttestationConveyancePreference') ? undefined : json['webAuthnPolicyAttestationConveyancePreference'], 'webAuthnPolicyAuthenticatorAttachment': !exists(json, 'webAuthnPolicyAuthenticatorAttachment') ? undefined : json['webAuthnPolicyAuthenticatorAttachment'], 'webAuthnPolicyAvoidSameAuthenticatorRegister': !exists(json, 'webAuthnPolicyAvoidSameAuthenticatorRegister') ? undefined : json['webAuthnPolicyAvoidSameAuthenticatorRegister'], 'webAuthnPolicyCreateTimeout': !exists(json, 'webAuthnPolicyCreateTimeout') ? undefined : json['webAuthnPolicyCreateTimeout'], 'webAuthnPolicyPasswordlessAcceptableAaguids': !exists(json, 'webAuthnPolicyPasswordlessAcceptableAaguids') ? undefined : json['webAuthnPolicyPasswordlessAcceptableAaguids'], 'webAuthnPolicyPasswordlessAttestationConveyancePreference': !exists(json, 'webAuthnPolicyPasswordlessAttestationConveyancePreference') ? undefined : json['webAuthnPolicyPasswordlessAttestationConveyancePreference'], 'webAuthnPolicyPasswordlessAuthenticatorAttachment': !exists(json, 'webAuthnPolicyPasswordlessAuthenticatorAttachment') ? undefined : json['webAuthnPolicyPasswordlessAuthenticatorAttachment'], 'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister': !exists(json, 'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister') ? undefined : json['webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister'], 'webAuthnPolicyPasswordlessCreateTimeout': !exists(json, 'webAuthnPolicyPasswordlessCreateTimeout') ? undefined : json['webAuthnPolicyPasswordlessCreateTimeout'], 'webAuthnPolicyPasswordlessRequireResidentKey': !exists(json, 'webAuthnPolicyPasswordlessRequireResidentKey') ? undefined : json['webAuthnPolicyPasswordlessRequireResidentKey'], 'webAuthnPolicyPasswordlessRpEntityName': !exists(json, 'webAuthnPolicyPasswordlessRpEntityName') ? undefined : json['webAuthnPolicyPasswordlessRpEntityName'], 'webAuthnPolicyPasswordlessRpId': !exists(json, 'webAuthnPolicyPasswordlessRpId') ? undefined : json['webAuthnPolicyPasswordlessRpId'], 'webAuthnPolicyPasswordlessSignatureAlgorithms': !exists(json, 'webAuthnPolicyPasswordlessSignatureAlgorithms') ? undefined : json['webAuthnPolicyPasswordlessSignatureAlgorithms'], 'webAuthnPolicyPasswordlessUserVerificationRequirement': !exists(json, 'webAuthnPolicyPasswordlessUserVerificationRequirement') ? undefined : json['webAuthnPolicyPasswordlessUserVerificationRequirement'], 'webAuthnPolicyRequireResidentKey': !exists(json, 'webAuthnPolicyRequireResidentKey') ? undefined : json['webAuthnPolicyRequireResidentKey'], 'webAuthnPolicyRpEntityName': !exists(json, 'webAuthnPolicyRpEntityName') ? undefined : json['webAuthnPolicyRpEntityName'], 'webAuthnPolicyRpId': !exists(json, 'webAuthnPolicyRpId') ? undefined : json['webAuthnPolicyRpId'], 'webAuthnPolicySignatureAlgorithms': !exists(json, 'webAuthnPolicySignatureAlgorithms') ? undefined : json['webAuthnPolicySignatureAlgorithms'], 'webAuthnPolicyUserVerificationRequirement': !exists(json, 'webAuthnPolicyUserVerificationRequirement') ? undefined : json['webAuthnPolicyUserVerificationRequirement'], }; } export function RealmRepresentationToJSON(value?: RealmRepresentation | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'accessCodeLifespan': value.accessCodeLifespan, 'accessCodeLifespanLogin': value.accessCodeLifespanLogin, 'accessCodeLifespanUserAction': value.accessCodeLifespanUserAction, 'accessTokenLifespan': value.accessTokenLifespan, 'accessTokenLifespanForImplicitFlow': value.accessTokenLifespanForImplicitFlow, 'accountTheme': value.accountTheme, 'actionTokenGeneratedByAdminLifespan': value.actionTokenGeneratedByAdminLifespan, 'actionTokenGeneratedByUserLifespan': value.actionTokenGeneratedByUserLifespan, 'adminEventsDetailsEnabled': value.adminEventsDetailsEnabled, 'adminEventsEnabled': value.adminEventsEnabled, 'adminTheme': value.adminTheme, 'attributes': value.attributes, 'authenticationFlows': value.authenticationFlows === undefined ? undefined : ((value.authenticationFlows as Array).map(AuthenticationFlowRepresentationToJSON)), 'authenticatorConfig': value.authenticatorConfig === undefined ? undefined : ((value.authenticatorConfig as Array).map(AuthenticatorConfigRepresentationToJSON)), 'browserFlow': value.browserFlow, 'browserSecurityHeaders': value.browserSecurityHeaders, 'bruteForceProtected': value.bruteForceProtected, 'clientAuthenticationFlow': value.clientAuthenticationFlow, 'clientOfflineSessionIdleTimeout': value.clientOfflineSessionIdleTimeout, 'clientOfflineSessionMaxLifespan': value.clientOfflineSessionMaxLifespan, 'clientPolicies': JsonNodeToJSON(value.clientPolicies), 'clientProfiles': JsonNodeToJSON(value.clientProfiles), 'clientScopeMappings': value.clientScopeMappings, 'clientScopes': value.clientScopes === undefined ? undefined : ((value.clientScopes as Array).map(ClientScopeRepresentationToJSON)), 'clientSessionIdleTimeout': value.clientSessionIdleTimeout, 'clientSessionMaxLifespan': value.clientSessionMaxLifespan, 'clients': value.clients === undefined ? undefined : ((value.clients as Array).map(ClientRepresentationToJSON)), 'components': MultivaluedHashMapToJSON(value.components), 'defaultDefaultClientScopes': value.defaultDefaultClientScopes, 'defaultGroups': value.defaultGroups, 'defaultLocale': value.defaultLocale, 'defaultOptionalClientScopes': value.defaultOptionalClientScopes, 'defaultRole': RoleRepresentationToJSON(value.defaultRole), 'defaultSignatureAlgorithm': value.defaultSignatureAlgorithm, 'directGrantFlow': value.directGrantFlow, 'displayName': value.displayName, 'displayNameHtml': value.displayNameHtml, 'dockerAuthenticationFlow': value.dockerAuthenticationFlow, 'duplicateEmailsAllowed': value.duplicateEmailsAllowed, 'editUsernameAllowed': value.editUsernameAllowed, 'emailTheme': value.emailTheme, 'enabled': value.enabled, 'enabledEventTypes': value.enabledEventTypes, 'eventsEnabled': value.eventsEnabled, 'eventsExpiration': value.eventsExpiration, 'eventsListeners': value.eventsListeners, 'failureFactor': value.failureFactor, 'federatedUsers': value.federatedUsers === undefined ? undefined : ((value.federatedUsers as Array).map(UserRepresentationToJSON)), 'groups': value.groups === undefined ? undefined : ((value.groups as Array).map(GroupRepresentationToJSON)), 'id': value.id, 'identityProviderMappers': value.identityProviderMappers === undefined ? undefined : ((value.identityProviderMappers as Array).map(IdentityProviderMapperRepresentationToJSON)), 'identityProviders': value.identityProviders === undefined ? undefined : ((value.identityProviders as Array).map(IdentityProviderRepresentationToJSON)), 'internationalizationEnabled': value.internationalizationEnabled, 'keycloakVersion': value.keycloakVersion, 'loginTheme': value.loginTheme, 'loginWithEmailAllowed': value.loginWithEmailAllowed, 'maxDeltaTimeSeconds': value.maxDeltaTimeSeconds, 'maxFailureWaitSeconds': value.maxFailureWaitSeconds, 'minimumQuickLoginWaitSeconds': value.minimumQuickLoginWaitSeconds, 'notBefore': value.notBefore, 'oAuth2DeviceCodeLifespan': value.oAuth2DeviceCodeLifespan, 'oAuth2DevicePollingInterval': value.oAuth2DevicePollingInterval, 'oauth2DeviceCodeLifespan': value.oauth2DeviceCodeLifespan, 'oauth2DevicePollingInterval': value.oauth2DevicePollingInterval, 'offlineSessionIdleTimeout': value.offlineSessionIdleTimeout, 'offlineSessionMaxLifespan': value.offlineSessionMaxLifespan, 'offlineSessionMaxLifespanEnabled': value.offlineSessionMaxLifespanEnabled, 'otpPolicyAlgorithm': value.otpPolicyAlgorithm, 'otpPolicyDigits': value.otpPolicyDigits, 'otpPolicyInitialCounter': value.otpPolicyInitialCounter, 'otpPolicyLookAheadWindow': value.otpPolicyLookAheadWindow, 'otpPolicyPeriod': value.otpPolicyPeriod, 'otpPolicyType': value.otpPolicyType, 'otpSupportedApplications': value.otpSupportedApplications, 'passwordPolicy': value.passwordPolicy, 'permanentLockout': value.permanentLockout, 'protocolMappers': value.protocolMappers === undefined ? undefined : ((value.protocolMappers as Array).map(ProtocolMapperRepresentationToJSON)), 'quickLoginCheckMilliSeconds': value.quickLoginCheckMilliSeconds, 'realm': value.realm, 'refreshTokenMaxReuse': value.refreshTokenMaxReuse, 'registrationAllowed': value.registrationAllowed, 'registrationEmailAsUsername': value.registrationEmailAsUsername, 'registrationFlow': value.registrationFlow, 'rememberMe': value.rememberMe, 'requiredActions': value.requiredActions === undefined ? undefined : ((value.requiredActions as Array).map(RequiredActionProviderRepresentationToJSON)), 'resetCredentialsFlow': value.resetCredentialsFlow, 'resetPasswordAllowed': value.resetPasswordAllowed, 'revokeRefreshToken': value.revokeRefreshToken, 'roles': RolesRepresentationToJSON(value.roles), 'scopeMappings': value.scopeMappings === undefined ? undefined : ((value.scopeMappings as Array).map(ScopeMappingRepresentationToJSON)), 'smtpServer': value.smtpServer, 'sslRequired': value.sslRequired, 'ssoSessionIdleTimeout': value.ssoSessionIdleTimeout, 'ssoSessionIdleTimeoutRememberMe': value.ssoSessionIdleTimeoutRememberMe, 'ssoSessionMaxLifespan': value.ssoSessionMaxLifespan, 'ssoSessionMaxLifespanRememberMe': value.ssoSessionMaxLifespanRememberMe, 'supportedLocales': value.supportedLocales, 'userFederationMappers': value.userFederationMappers === undefined ? undefined : ((value.userFederationMappers as Array).map(UserFederationMapperRepresentationToJSON)), 'userFederationProviders': value.userFederationProviders === undefined ? undefined : ((value.userFederationProviders as Array).map(UserFederationProviderRepresentationToJSON)), 'userManagedAccessAllowed': value.userManagedAccessAllowed, 'users': value.users === undefined ? undefined : ((value.users as Array).map(UserRepresentationToJSON)), 'verifyEmail': value.verifyEmail, 'waitIncrementSeconds': value.waitIncrementSeconds, 'webAuthnPolicyAcceptableAaguids': value.webAuthnPolicyAcceptableAaguids, 'webAuthnPolicyAttestationConveyancePreference': value.webAuthnPolicyAttestationConveyancePreference, 'webAuthnPolicyAuthenticatorAttachment': value.webAuthnPolicyAuthenticatorAttachment, 'webAuthnPolicyAvoidSameAuthenticatorRegister': value.webAuthnPolicyAvoidSameAuthenticatorRegister, 'webAuthnPolicyCreateTimeout': value.webAuthnPolicyCreateTimeout, 'webAuthnPolicyPasswordlessAcceptableAaguids': value.webAuthnPolicyPasswordlessAcceptableAaguids, 'webAuthnPolicyPasswordlessAttestationConveyancePreference': value.webAuthnPolicyPasswordlessAttestationConveyancePreference, 'webAuthnPolicyPasswordlessAuthenticatorAttachment': value.webAuthnPolicyPasswordlessAuthenticatorAttachment, 'webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister': value.webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister, 'webAuthnPolicyPasswordlessCreateTimeout': value.webAuthnPolicyPasswordlessCreateTimeout, 'webAuthnPolicyPasswordlessRequireResidentKey': value.webAuthnPolicyPasswordlessRequireResidentKey, 'webAuthnPolicyPasswordlessRpEntityName': value.webAuthnPolicyPasswordlessRpEntityName, 'webAuthnPolicyPasswordlessRpId': value.webAuthnPolicyPasswordlessRpId, 'webAuthnPolicyPasswordlessSignatureAlgorithms': value.webAuthnPolicyPasswordlessSignatureAlgorithms, 'webAuthnPolicyPasswordlessUserVerificationRequirement': value.webAuthnPolicyPasswordlessUserVerificationRequirement, 'webAuthnPolicyRequireResidentKey': value.webAuthnPolicyRequireResidentKey, 'webAuthnPolicyRpEntityName': value.webAuthnPolicyRpEntityName, 'webAuthnPolicyRpId': value.webAuthnPolicyRpId, 'webAuthnPolicySignatureAlgorithms': value.webAuthnPolicySignatureAlgorithms, 'webAuthnPolicyUserVerificationRequirement': value.webAuthnPolicyUserVerificationRequirement, }; }