/* tslint:disable */ /* eslint-disable */ // Generated using typescript-generator version 4.2.1 on 2026-11-19 14:13:50. export interface AuditedClientRepresentation extends ClientRepresentation { realm: string; lastLogin: string; } export interface AuditedUserRepresentation extends UserRepresentation { lastLogin: string; realm: string; clientLogins: { [index: string]: string }; } export interface ClientLoginDetails { kcLogin: Date; } export interface UserLoginDetails { kcLogin: Date; clientLogins: { [index: string]: Date }; } export interface ProtocolMapperRepresentation { id: string; name: string; protocol: string; protocolMapper: string; /** * @deprecated */ consentRequired: boolean; /** * @deprecated */ consentText: string; config: { [index: string]: string }; } export interface ResourceServerRepresentation { id: string; clientId: string; name: string; allowRemoteResourceManagement: boolean; policyEnforcementMode: PolicyEnforcementMode; resources: ResourceRepresentation[]; policies: PolicyRepresentation[]; scopes: ScopeRepresentation[]; decisionStrategy: DecisionStrategy; authorizationSchema: AuthorizationSchema; } export interface ClientRepresentation { id: string; clientId: string; name: string; description: string; type: string; rootUrl: string; adminUrl: string; baseUrl: string; surrogateAuthRequired: boolean; enabled: boolean; alwaysDisplayInConsole: boolean; clientAuthenticatorType: string; secret: string; registrationAccessToken: string; /** * @deprecated */ defaultRoles: string[]; redirectUris: string[]; webOrigins: string[]; notBefore: number; bearerOnly: boolean; consentRequired: boolean; standardFlowEnabled: boolean; implicitFlowEnabled: boolean; directAccessGrantsEnabled: boolean; serviceAccountsEnabled: boolean; authorizationServicesEnabled: boolean; /** * @deprecated */ directGrantsOnly: boolean; publicClient: boolean; frontchannelLogout: boolean; protocol: string; attributes: { [index: string]: string }; authenticationFlowBindingOverrides: { [index: string]: string }; fullScopeAllowed: boolean; nodeReRegistrationTimeout: number; registeredNodes: { [index: string]: number }; protocolMappers: ProtocolMapperRepresentation[]; /** * @deprecated */ clientTemplate: string; /** * @deprecated */ useTemplateConfig: boolean; /** * @deprecated */ useTemplateScope: boolean; /** * @deprecated */ useTemplateMappers: boolean; defaultClientScopes: string[]; optionalClientScopes: string[]; authorizationSettings: ResourceServerRepresentation; access: { [index: string]: boolean }; origin: string; } export interface UserProfileMetadata { attributes: UserProfileAttributeMetadata[]; groups: UserProfileAttributeGroupMetadata[]; } export interface CredentialRepresentation { id: string; type: string; userLabel: string; createdDate: number; secretData: string; credentialData: string; priority: number; value: string; temporary: boolean; /** * @deprecated */ device: string; /** * @deprecated */ hashedSaltedValue: string; /** * @deprecated */ salt: string; /** * @deprecated */ hashIterations: number; /** * @deprecated */ counter: number; /** * @deprecated */ algorithm: string; /** * @deprecated */ digits: number; /** * @deprecated */ period: number; /** * @deprecated */ config: { [index: string]: string[] }; federationLink: string; } export interface FederatedIdentityRepresentation { identityProvider: string; userId: string; userName: string; } export interface UserConsentRepresentation { clientId: string; grantedClientScopes: string[]; createdDate: number; lastUpdatedDate: number; /** * @deprecated */ grantedRealmRoles: string[]; } export interface UserVerifiableCredentialRepresentation { credentialScopeName: string; credentialConfigurationId: string; revision: string; createdDate: number; updatedDate: number; userAttributes: { [index: string]: string[] }; } export interface IssuedVerifiableCredentialRepresentation { id: string; userId: string; credentialType: string; issuedAt: number; expiresAt: number; clientId: string; clientName: string; clientBaseUrl: string; revision: string; } export interface SocialLinkRepresentation { socialProvider: string; socialUserId: string; socialUsername: string; } export interface UserRepresentation extends AbstractUserRepresentation { self: string; /** * @deprecated */ origin: string; createdTimestamp: number; /** * @deprecated */ totp: boolean; federationLink: string; serviceAccountClientId: string; credentials: CredentialRepresentation[]; disableableCredentialTypes: string[]; requiredActions: string[]; federatedIdentities: FederatedIdentityRepresentation[]; realmRoles: string[]; clientRoles: { [index: string]: string[] }; clientConsents: UserConsentRepresentation[]; notBefore: number; verifiableCredentials: UserVerifiableCredentialRepresentation[]; issuedVerifiableCredentials: IssuedVerifiableCredentialRepresentation[]; /** * @deprecated */ applicationRoles: { [index: string]: string[] }; socialLinks: SocialLinkRepresentation[]; groups: string[]; access: { [index: string]: boolean }; } export interface ResourceRepresentation { name: string; type: string; owner: ResourceOwnerRepresentation; ownerManagedAccess: boolean; displayName: string; attributes: { [index: string]: string[] }; _id: string; uris: string[]; scopes: ScopeRepresentation[]; icon_uri: string; /** * @deprecated */ uri: string; resource_scopes: ScopeRepresentation[]; } export interface PolicyRepresentation extends AbstractPolicyRepresentation { config: { [index: string]: string }; } export interface ScopeRepresentation { id: string; name: string; iconUri: string; policies: PolicyRepresentation[]; resources: ResourceRepresentation[]; displayName: string; } export interface AuthorizationSchema { resourceTypes: { [index: string]: ResourceType }; } export interface UserProfileAttributeMetadata { name: string; displayName: string; required: boolean; readOnly: boolean; annotations: { [index: string]: any }; validators: { [index: string]: { [index: string]: any } }; group: string; multivalued: boolean; defaultValue: string; } export interface UserProfileAttributeGroupMetadata { name: string; displayHeader: string; displayDescription: string; annotations: { [index: string]: any }; } export interface AbstractUserRepresentation { id: string; username: string; firstName: string; lastName: string; email: string; emailVerified: boolean; attributes: { [index: string]: string[] }; userProfileMetadata: UserProfileMetadata; enabled: boolean; } export interface ResourceOwnerRepresentation { id: string; name: string; } export interface AbstractPolicyRepresentation { id: string; name: string; description: string; type: string; policies: string[]; resources: string[]; scopes: string[]; logic: Logic; decisionStrategy: DecisionStrategy; owner: string; resourceType: string; resourcesData: ResourceRepresentation[]; scopesData: ScopeRepresentation[]; } export interface ResourceType { type: string; scopes: string[]; scopeAliases: { [index: string]: string[] }; groupType: string; } export const enum ConfigConstants { DISABLE_EXTERNAL_ACCESS = "KC_AUD_DISABLE_EXTERNAL_ACCESS", DISABLE_ROLE_CHECK = "KC_AUD_DISABLE_ROLE_CHECK", GLOBAL_MASTER_ACCESS = "KC_AUD_GLOBAL_MASTER_ACCESS", DEFAULT_ROLE = "KC_AUD_DEFAULT_ROLE", DEFAULT_TIMEZONE = "KC_AUD_DEFAULT_TIMEZONE", ALLOW_ADMIN_EDIT = "KC_AUD_ALLOW_ADMIN_EDIT", } export const enum Constants { USER_EVENT_PREFIX = "aud_usr", CLIENT_EVENT_PREFIX = "aud_cls", ADMIN_EVENT_PREFIX = "aud_adm", LAST_LOGIN_INFIX = "last-login", } export const enum PolicyEnforcementMode { ENFORCING = "ENFORCING", PERMISSIVE = "PERMISSIVE", DISABLED = "DISABLED", } export const enum DecisionStrategy { AFFIRMATIVE = "AFFIRMATIVE", UNANIMOUS = "UNANIMOUS", CONSENSUS = "CONSENSUS", } export const enum Logic { POSITIVE = "POSITIVE", NEGATIVE = "NEGATIVE", }