Switched kc_sdk to fetch
This commit is contained in:
434
backend/keycloak/kc-client/models/AccessToken.ts
Normal file
434
backend/keycloak/kc-client/models/AccessToken.ts
Normal file
@@ -0,0 +1,434 @@
|
||||
/* 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 {
|
||||
AccessTokenAccess,
|
||||
AccessTokenAccessFromJSON,
|
||||
AccessTokenAccessFromJSONTyped,
|
||||
AccessTokenAccessToJSON,
|
||||
AccessTokenAuthorization,
|
||||
AccessTokenAuthorizationFromJSON,
|
||||
AccessTokenAuthorizationFromJSONTyped,
|
||||
AccessTokenAuthorizationToJSON,
|
||||
AccessTokenCertConf,
|
||||
AccessTokenCertConfFromJSON,
|
||||
AccessTokenCertConfFromJSONTyped,
|
||||
AccessTokenCertConfToJSON,
|
||||
AddressClaimSet,
|
||||
AddressClaimSetFromJSON,
|
||||
AddressClaimSetFromJSONTyped,
|
||||
AddressClaimSetToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AccessToken
|
||||
*/
|
||||
export interface AccessToken {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
acr?: string;
|
||||
/**
|
||||
*
|
||||
* @type {AddressClaimSet}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
address?: AddressClaimSet;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
allowedOrigins?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
atHash?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
authTime?: number;
|
||||
/**
|
||||
*
|
||||
* @type {AccessTokenAuthorization}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
authorization?: AccessTokenAuthorization;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
azp?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
birthdate?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
cHash?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
category?: AccessTokenCategoryEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
claimsLocales?: string;
|
||||
/**
|
||||
*
|
||||
* @type {AccessTokenCertConf}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
cnf?: AccessTokenCertConf;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
emailVerified?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
exp?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
familyName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
gender?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
givenName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
iat?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
iss?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
jti?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
locale?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
middleName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
nbf?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
nickname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
nonce?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
otherClaims?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
phoneNumber?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
phoneNumberVerified?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
picture?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
preferredUsername?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
profile?: string;
|
||||
/**
|
||||
*
|
||||
* @type {AccessTokenAccess}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
realmAccess?: AccessTokenAccess;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
sHash?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
scope?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
sessionState?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
sid?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
sub?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
trustedCerts?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
typ?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
updatedAt?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
website?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
zoneinfo?: string;
|
||||
}
|
||||
|
||||
export function AccessTokenFromJSON(json: any): AccessToken {
|
||||
return AccessTokenFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessToken {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'acr': !exists(json, 'acr') ? undefined : json['acr'],
|
||||
'address': !exists(json, 'address') ? undefined : AddressClaimSetFromJSON(json['address']),
|
||||
'allowedOrigins': !exists(json, 'allowed-origins') ? undefined : json['allowed-origins'],
|
||||
'atHash': !exists(json, 'at_hash') ? undefined : json['at_hash'],
|
||||
'authTime': !exists(json, 'auth_time') ? undefined : json['auth_time'],
|
||||
'authorization': !exists(json, 'authorization') ? undefined : AccessTokenAuthorizationFromJSON(json['authorization']),
|
||||
'azp': !exists(json, 'azp') ? undefined : json['azp'],
|
||||
'birthdate': !exists(json, 'birthdate') ? undefined : json['birthdate'],
|
||||
'cHash': !exists(json, 'c_hash') ? undefined : json['c_hash'],
|
||||
'category': !exists(json, 'category') ? undefined : json['category'],
|
||||
'claimsLocales': !exists(json, 'claims_locales') ? undefined : json['claims_locales'],
|
||||
'cnf': !exists(json, 'cnf') ? undefined : AccessTokenCertConfFromJSON(json['cnf']),
|
||||
'email': !exists(json, 'email') ? undefined : json['email'],
|
||||
'emailVerified': !exists(json, 'email_verified') ? undefined : json['email_verified'],
|
||||
'exp': !exists(json, 'exp') ? undefined : json['exp'],
|
||||
'familyName': !exists(json, 'family_name') ? undefined : json['family_name'],
|
||||
'gender': !exists(json, 'gender') ? undefined : json['gender'],
|
||||
'givenName': !exists(json, 'given_name') ? undefined : json['given_name'],
|
||||
'iat': !exists(json, 'iat') ? undefined : json['iat'],
|
||||
'iss': !exists(json, 'iss') ? undefined : json['iss'],
|
||||
'jti': !exists(json, 'jti') ? undefined : json['jti'],
|
||||
'locale': !exists(json, 'locale') ? undefined : json['locale'],
|
||||
'middleName': !exists(json, 'middle_name') ? undefined : json['middle_name'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'nbf': !exists(json, 'nbf') ? undefined : json['nbf'],
|
||||
'nickname': !exists(json, 'nickname') ? undefined : json['nickname'],
|
||||
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
||||
'otherClaims': !exists(json, 'otherClaims') ? undefined : json['otherClaims'],
|
||||
'phoneNumber': !exists(json, 'phone_number') ? undefined : json['phone_number'],
|
||||
'phoneNumberVerified': !exists(json, 'phone_number_verified') ? undefined : json['phone_number_verified'],
|
||||
'picture': !exists(json, 'picture') ? undefined : json['picture'],
|
||||
'preferredUsername': !exists(json, 'preferred_username') ? undefined : json['preferred_username'],
|
||||
'profile': !exists(json, 'profile') ? undefined : json['profile'],
|
||||
'realmAccess': !exists(json, 'realm_access') ? undefined : AccessTokenAccessFromJSON(json['realm_access']),
|
||||
'sHash': !exists(json, 's_hash') ? undefined : json['s_hash'],
|
||||
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
||||
'sessionState': !exists(json, 'session_state') ? undefined : json['session_state'],
|
||||
'sid': !exists(json, 'sid') ? undefined : json['sid'],
|
||||
'sub': !exists(json, 'sub') ? undefined : json['sub'],
|
||||
'trustedCerts': !exists(json, 'trusted-certs') ? undefined : json['trusted-certs'],
|
||||
'typ': !exists(json, 'typ') ? undefined : json['typ'],
|
||||
'updatedAt': !exists(json, 'updated_at') ? undefined : json['updated_at'],
|
||||
'website': !exists(json, 'website') ? undefined : json['website'],
|
||||
'zoneinfo': !exists(json, 'zoneinfo') ? undefined : json['zoneinfo'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AccessTokenToJSON(value?: AccessToken | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'acr': value.acr,
|
||||
'address': AddressClaimSetToJSON(value.address),
|
||||
'allowed-origins': value.allowedOrigins,
|
||||
'at_hash': value.atHash,
|
||||
'auth_time': value.authTime,
|
||||
'authorization': AccessTokenAuthorizationToJSON(value.authorization),
|
||||
'azp': value.azp,
|
||||
'birthdate': value.birthdate,
|
||||
'c_hash': value.cHash,
|
||||
'category': value.category,
|
||||
'claims_locales': value.claimsLocales,
|
||||
'cnf': AccessTokenCertConfToJSON(value.cnf),
|
||||
'email': value.email,
|
||||
'email_verified': value.emailVerified,
|
||||
'exp': value.exp,
|
||||
'family_name': value.familyName,
|
||||
'gender': value.gender,
|
||||
'given_name': value.givenName,
|
||||
'iat': value.iat,
|
||||
'iss': value.iss,
|
||||
'jti': value.jti,
|
||||
'locale': value.locale,
|
||||
'middle_name': value.middleName,
|
||||
'name': value.name,
|
||||
'nbf': value.nbf,
|
||||
'nickname': value.nickname,
|
||||
'nonce': value.nonce,
|
||||
'otherClaims': value.otherClaims,
|
||||
'phone_number': value.phoneNumber,
|
||||
'phone_number_verified': value.phoneNumberVerified,
|
||||
'picture': value.picture,
|
||||
'preferred_username': value.preferredUsername,
|
||||
'profile': value.profile,
|
||||
'realm_access': AccessTokenAccessToJSON(value.realmAccess),
|
||||
's_hash': value.sHash,
|
||||
'scope': value.scope,
|
||||
'session_state': value.sessionState,
|
||||
'sid': value.sid,
|
||||
'sub': value.sub,
|
||||
'trusted-certs': value.trustedCerts,
|
||||
'typ': value.typ,
|
||||
'updated_at': value.updatedAt,
|
||||
'website': value.website,
|
||||
'zoneinfo': value.zoneinfo,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum AccessTokenCategoryEnum {
|
||||
INTERNAL = 'INTERNAL',
|
||||
ACCESS = 'ACCESS',
|
||||
ID = 'ID',
|
||||
ADMIN = 'ADMIN',
|
||||
USERINFO = 'USERINFO',
|
||||
LOGOUT = 'LOGOUT',
|
||||
AUTHORIZATIONRESPONSE = 'AUTHORIZATION_RESPONSE'
|
||||
}
|
||||
|
||||
|
||||
65
backend/keycloak/kc-client/models/AccessTokenAccess.ts
Normal file
65
backend/keycloak/kc-client/models/AccessTokenAccess.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AccessTokenAccess
|
||||
*/
|
||||
export interface AccessTokenAccess {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AccessTokenAccess
|
||||
*/
|
||||
roles?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AccessTokenAccess
|
||||
*/
|
||||
verifyCaller?: boolean;
|
||||
}
|
||||
|
||||
export function AccessTokenAccessFromJSON(json: any): AccessTokenAccess {
|
||||
return AccessTokenAccessFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AccessTokenAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokenAccess {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'roles': !exists(json, 'roles') ? undefined : json['roles'],
|
||||
'verifyCaller': !exists(json, 'verify_caller') ? undefined : json['verify_caller'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AccessTokenAccessToJSON(value?: AccessTokenAccess | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'roles': value.roles,
|
||||
'verify_caller': value.verifyCaller,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* 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 {
|
||||
Permission,
|
||||
PermissionFromJSON,
|
||||
PermissionFromJSONTyped,
|
||||
PermissionToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AccessTokenAuthorization
|
||||
*/
|
||||
export interface AccessTokenAuthorization {
|
||||
/**
|
||||
*
|
||||
* @type {Array<Permission>}
|
||||
* @memberof AccessTokenAuthorization
|
||||
*/
|
||||
permissions?: Array<Permission>;
|
||||
}
|
||||
|
||||
export function AccessTokenAuthorizationFromJSON(json: any): AccessTokenAuthorization {
|
||||
return AccessTokenAuthorizationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AccessTokenAuthorizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokenAuthorization {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'permissions': !exists(json, 'permissions') ? undefined : ((json['permissions'] as Array<any>).map(PermissionFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function AccessTokenAuthorizationToJSON(value?: AccessTokenAuthorization | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'permissions': value.permissions === undefined ? undefined : ((value.permissions as Array<any>).map(PermissionToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
57
backend/keycloak/kc-client/models/AccessTokenCertConf.ts
Normal file
57
backend/keycloak/kc-client/models/AccessTokenCertConf.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AccessTokenCertConf
|
||||
*/
|
||||
export interface AccessTokenCertConf {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessTokenCertConf
|
||||
*/
|
||||
x5tS256?: string;
|
||||
}
|
||||
|
||||
export function AccessTokenCertConfFromJSON(json: any): AccessTokenCertConf {
|
||||
return AccessTokenCertConfFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AccessTokenCertConfFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccessTokenCertConf {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'x5tS256': !exists(json, 'x5t#S256') ? undefined : json['x5t#S256'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AccessTokenCertConfToJSON(value?: AccessTokenCertConf | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'x5t#S256': value.x5tS256,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
97
backend/keycloak/kc-client/models/AddressClaimSet.ts
Normal file
97
backend/keycloak/kc-client/models/AddressClaimSet.ts
Normal file
@@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AddressClaimSet
|
||||
*/
|
||||
export interface AddressClaimSet {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddressClaimSet
|
||||
*/
|
||||
country?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddressClaimSet
|
||||
*/
|
||||
formatted?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddressClaimSet
|
||||
*/
|
||||
locality?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddressClaimSet
|
||||
*/
|
||||
postalCode?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddressClaimSet
|
||||
*/
|
||||
region?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AddressClaimSet
|
||||
*/
|
||||
streetAddress?: string;
|
||||
}
|
||||
|
||||
export function AddressClaimSetFromJSON(json: any): AddressClaimSet {
|
||||
return AddressClaimSetFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AddressClaimSetFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressClaimSet {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'country': !exists(json, 'country') ? undefined : json['country'],
|
||||
'formatted': !exists(json, 'formatted') ? undefined : json['formatted'],
|
||||
'locality': !exists(json, 'locality') ? undefined : json['locality'],
|
||||
'postalCode': !exists(json, 'postal_code') ? undefined : json['postal_code'],
|
||||
'region': !exists(json, 'region') ? undefined : json['region'],
|
||||
'streetAddress': !exists(json, 'street_address') ? undefined : json['street_address'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AddressClaimSetToJSON(value?: AddressClaimSet | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'country': value.country,
|
||||
'formatted': value.formatted,
|
||||
'locality': value.locality,
|
||||
'postal_code': value.postalCode,
|
||||
'region': value.region,
|
||||
'street_address': value.streetAddress,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
export interface AuthenticationExecutionExportRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
authenticator?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
authenticatorConfig?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
authenticatorFlow?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
flowAlias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
requirement?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationExecutionExportRepresentation
|
||||
*/
|
||||
userSetupAllowed?: boolean;
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionExportRepresentationFromJSON(json: any): AuthenticationExecutionExportRepresentation {
|
||||
return AuthenticationExecutionExportRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionExportRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationExecutionExportRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'authenticator': !exists(json, 'authenticator') ? undefined : json['authenticator'],
|
||||
'authenticatorConfig': !exists(json, 'authenticatorConfig') ? undefined : json['authenticatorConfig'],
|
||||
'authenticatorFlow': !exists(json, 'authenticatorFlow') ? undefined : json['authenticatorFlow'],
|
||||
'flowAlias': !exists(json, 'flowAlias') ? undefined : json['flowAlias'],
|
||||
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
||||
'requirement': !exists(json, 'requirement') ? undefined : json['requirement'],
|
||||
'userSetupAllowed': !exists(json, 'userSetupAllowed') ? undefined : json['userSetupAllowed'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionExportRepresentationToJSON(value?: AuthenticationExecutionExportRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'authenticator': value.authenticator,
|
||||
'authenticatorConfig': value.authenticatorConfig,
|
||||
'authenticatorFlow': value.authenticatorFlow,
|
||||
'flowAlias': value.flowAlias,
|
||||
'priority': value.priority,
|
||||
'requirement': value.requirement,
|
||||
'userSetupAllowed': value.userSetupAllowed,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
export interface AuthenticationExecutionInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
authenticationConfig?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
authenticationFlow?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
configurable?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
flowId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
index?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
level?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
requirement?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof AuthenticationExecutionInfoRepresentation
|
||||
*/
|
||||
requirementChoices?: Array<string>;
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionInfoRepresentationFromJSON(json: any): AuthenticationExecutionInfoRepresentation {
|
||||
return AuthenticationExecutionInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationExecutionInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
||||
'authenticationConfig': !exists(json, 'authenticationConfig') ? undefined : json['authenticationConfig'],
|
||||
'authenticationFlow': !exists(json, 'authenticationFlow') ? undefined : json['authenticationFlow'],
|
||||
'configurable': !exists(json, 'configurable') ? undefined : json['configurable'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
||||
'flowId': !exists(json, 'flowId') ? undefined : json['flowId'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'index': !exists(json, 'index') ? undefined : json['index'],
|
||||
'level': !exists(json, 'level') ? undefined : json['level'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
'requirement': !exists(json, 'requirement') ? undefined : json['requirement'],
|
||||
'requirementChoices': !exists(json, 'requirementChoices') ? undefined : json['requirementChoices'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionInfoRepresentationToJSON(value?: AuthenticationExecutionInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': value.alias,
|
||||
'authenticationConfig': value.authenticationConfig,
|
||||
'authenticationFlow': value.authenticationFlow,
|
||||
'configurable': value.configurable,
|
||||
'description': value.description,
|
||||
'displayName': value.displayName,
|
||||
'flowId': value.flowId,
|
||||
'id': value.id,
|
||||
'index': value.index,
|
||||
'level': value.level,
|
||||
'providerId': value.providerId,
|
||||
'requirement': value.requirement,
|
||||
'requirementChoices': value.requirementChoices,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationExecutionRepresentation
|
||||
*/
|
||||
export interface AuthenticationExecutionRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
authenticator?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
authenticatorConfig?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
authenticatorFlow?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
flowId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
parentFlow?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationExecutionRepresentation
|
||||
*/
|
||||
requirement?: string;
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionRepresentationFromJSON(json: any): AuthenticationExecutionRepresentation {
|
||||
return AuthenticationExecutionRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationExecutionRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'authenticator': !exists(json, 'authenticator') ? undefined : json['authenticator'],
|
||||
'authenticatorConfig': !exists(json, 'authenticatorConfig') ? undefined : json['authenticatorConfig'],
|
||||
'authenticatorFlow': !exists(json, 'authenticatorFlow') ? undefined : json['authenticatorFlow'],
|
||||
'flowId': !exists(json, 'flowId') ? undefined : json['flowId'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'parentFlow': !exists(json, 'parentFlow') ? undefined : json['parentFlow'],
|
||||
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
||||
'requirement': !exists(json, 'requirement') ? undefined : json['requirement'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationExecutionRepresentationToJSON(value?: AuthenticationExecutionRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'authenticator': value.authenticator,
|
||||
'authenticatorConfig': value.authenticatorConfig,
|
||||
'authenticatorFlow': value.authenticatorFlow,
|
||||
'flowId': value.flowId,
|
||||
'id': value.id,
|
||||
'parentFlow': value.parentFlow,
|
||||
'priority': value.priority,
|
||||
'requirement': value.requirement,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/* 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 {
|
||||
AuthenticationExecutionExportRepresentation,
|
||||
AuthenticationExecutionExportRepresentationFromJSON,
|
||||
AuthenticationExecutionExportRepresentationFromJSONTyped,
|
||||
AuthenticationExecutionExportRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticationFlowRepresentation
|
||||
*/
|
||||
export interface AuthenticationFlowRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<AuthenticationExecutionExportRepresentation>}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
authenticationExecutions?: Array<AuthenticationExecutionExportRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
builtIn?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof AuthenticationFlowRepresentation
|
||||
*/
|
||||
topLevel?: boolean;
|
||||
}
|
||||
|
||||
export function AuthenticationFlowRepresentationFromJSON(json: any): AuthenticationFlowRepresentation {
|
||||
return AuthenticationFlowRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticationFlowRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationFlowRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
||||
'authenticationExecutions': !exists(json, 'authenticationExecutions') ? undefined : ((json['authenticationExecutions'] as Array<any>).map(AuthenticationExecutionExportRepresentationFromJSON)),
|
||||
'builtIn': !exists(json, 'builtIn') ? undefined : json['builtIn'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
'topLevel': !exists(json, 'topLevel') ? undefined : json['topLevel'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticationFlowRepresentationToJSON(value?: AuthenticationFlowRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': value.alias,
|
||||
'authenticationExecutions': value.authenticationExecutions === undefined ? undefined : ((value.authenticationExecutions as Array<any>).map(AuthenticationExecutionExportRepresentationToJSON)),
|
||||
'builtIn': value.builtIn,
|
||||
'description': value.description,
|
||||
'id': value.id,
|
||||
'providerId': value.providerId,
|
||||
'topLevel': value.topLevel,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,88 @@
|
||||
/* 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 {
|
||||
ConfigPropertyRepresentation,
|
||||
ConfigPropertyRepresentationFromJSON,
|
||||
ConfigPropertyRepresentationFromJSONTyped,
|
||||
ConfigPropertyRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticatorConfigInfoRepresentation
|
||||
*/
|
||||
export interface AuthenticatorConfigInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticatorConfigInfoRepresentation
|
||||
*/
|
||||
helpText?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticatorConfigInfoRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ConfigPropertyRepresentation>}
|
||||
* @memberof AuthenticatorConfigInfoRepresentation
|
||||
*/
|
||||
properties?: Array<ConfigPropertyRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticatorConfigInfoRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
}
|
||||
|
||||
export function AuthenticatorConfigInfoRepresentationFromJSON(json: any): AuthenticatorConfigInfoRepresentation {
|
||||
return AuthenticatorConfigInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticatorConfigInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorConfigInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'helpText': !exists(json, 'helpText') ? undefined : json['helpText'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'properties': !exists(json, 'properties') ? undefined : ((json['properties'] as Array<any>).map(ConfigPropertyRepresentationFromJSON)),
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticatorConfigInfoRepresentationToJSON(value?: AuthenticatorConfigInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'helpText': value.helpText,
|
||||
'name': value.name,
|
||||
'properties': value.properties === undefined ? undefined : ((value.properties as Array<any>).map(ConfigPropertyRepresentationToJSON)),
|
||||
'providerId': value.providerId,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface AuthenticatorConfigRepresentation
|
||||
*/
|
||||
export interface AuthenticatorConfigRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticatorConfigRepresentation
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof AuthenticatorConfigRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AuthenticatorConfigRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export function AuthenticatorConfigRepresentationFromJSON(json: any): AuthenticatorConfigRepresentation {
|
||||
return AuthenticatorConfigRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function AuthenticatorConfigRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorConfigRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
};
|
||||
}
|
||||
|
||||
export function AuthenticatorConfigRepresentationToJSON(value?: AuthenticatorConfigRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': value.alias,
|
||||
'config': value.config,
|
||||
'id': value.id,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CertificateRepresentation
|
||||
*/
|
||||
export interface CertificateRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CertificateRepresentation
|
||||
*/
|
||||
certificate?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CertificateRepresentation
|
||||
*/
|
||||
kid?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CertificateRepresentation
|
||||
*/
|
||||
privateKey?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CertificateRepresentation
|
||||
*/
|
||||
publicKey?: string;
|
||||
}
|
||||
|
||||
export function CertificateRepresentationFromJSON(json: any): CertificateRepresentation {
|
||||
return CertificateRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CertificateRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'certificate': !exists(json, 'certificate') ? undefined : json['certificate'],
|
||||
'kid': !exists(json, 'kid') ? undefined : json['kid'],
|
||||
'privateKey': !exists(json, 'privateKey') ? undefined : json['privateKey'],
|
||||
'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CertificateRepresentationToJSON(value?: CertificateRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'certificate': value.certificate,
|
||||
'kid': value.kid,
|
||||
'privateKey': value.privateKey,
|
||||
'publicKey': value.publicKey,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientInitialAccessCreatePresentation
|
||||
*/
|
||||
export interface ClientInitialAccessCreatePresentation {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientInitialAccessCreatePresentation
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientInitialAccessCreatePresentation
|
||||
*/
|
||||
expiration?: number;
|
||||
}
|
||||
|
||||
export function ClientInitialAccessCreatePresentationFromJSON(json: any): ClientInitialAccessCreatePresentation {
|
||||
return ClientInitialAccessCreatePresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientInitialAccessCreatePresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientInitialAccessCreatePresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
||||
'expiration': !exists(json, 'expiration') ? undefined : json['expiration'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientInitialAccessCreatePresentationToJSON(value?: ClientInitialAccessCreatePresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value.count,
|
||||
'expiration': value.expiration,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientInitialAccessPresentation
|
||||
*/
|
||||
export interface ClientInitialAccessPresentation {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientInitialAccessPresentation
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientInitialAccessPresentation
|
||||
*/
|
||||
expiration?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientInitialAccessPresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientInitialAccessPresentation
|
||||
*/
|
||||
remainingCount?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientInitialAccessPresentation
|
||||
*/
|
||||
timestamp?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientInitialAccessPresentation
|
||||
*/
|
||||
token?: string;
|
||||
}
|
||||
|
||||
export function ClientInitialAccessPresentationFromJSON(json: any): ClientInitialAccessPresentation {
|
||||
return ClientInitialAccessPresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientInitialAccessPresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientInitialAccessPresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
||||
'expiration': !exists(json, 'expiration') ? undefined : json['expiration'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'remainingCount': !exists(json, 'remainingCount') ? undefined : json['remainingCount'],
|
||||
'timestamp': !exists(json, 'timestamp') ? undefined : json['timestamp'],
|
||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientInitialAccessPresentationToJSON(value?: ClientInitialAccessPresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value.count,
|
||||
'expiration': value.expiration,
|
||||
'id': value.id,
|
||||
'remainingCount': value.remainingCount,
|
||||
'timestamp': value.timestamp,
|
||||
'token': value.token,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* 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 {
|
||||
RoleRepresentation,
|
||||
RoleRepresentationFromJSON,
|
||||
RoleRepresentationFromJSONTyped,
|
||||
RoleRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientMappingsRepresentation
|
||||
*/
|
||||
export interface ClientMappingsRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientMappingsRepresentation
|
||||
*/
|
||||
client?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientMappingsRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RoleRepresentation>}
|
||||
* @memberof ClientMappingsRepresentation
|
||||
*/
|
||||
mappings?: Array<RoleRepresentation>;
|
||||
}
|
||||
|
||||
export function ClientMappingsRepresentationFromJSON(json: any): ClientMappingsRepresentation {
|
||||
return ClientMappingsRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientMappingsRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientMappingsRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': !exists(json, 'client') ? undefined : json['client'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'mappings': !exists(json, 'mappings') ? undefined : ((json['mappings'] as Array<any>).map(RoleRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientMappingsRepresentationToJSON(value?: ClientMappingsRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': value.client,
|
||||
'id': value.id,
|
||||
'mappings': value.mappings === undefined ? undefined : ((value.mappings as Array<any>).map(RoleRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/* 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 {
|
||||
ClientPolicyRepresentation,
|
||||
ClientPolicyRepresentationFromJSON,
|
||||
ClientPolicyRepresentationFromJSONTyped,
|
||||
ClientPolicyRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientPoliciesRepresentation
|
||||
*/
|
||||
export interface ClientPoliciesRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientPolicyRepresentation>}
|
||||
* @memberof ClientPoliciesRepresentation
|
||||
*/
|
||||
policies?: Array<ClientPolicyRepresentation>;
|
||||
}
|
||||
|
||||
export function ClientPoliciesRepresentationFromJSON(json: any): ClientPoliciesRepresentation {
|
||||
return ClientPoliciesRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientPoliciesRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientPoliciesRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'policies': !exists(json, 'policies') ? undefined : ((json['policies'] as Array<any>).map(ClientPolicyRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientPoliciesRepresentationToJSON(value?: ClientPoliciesRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'policies': value.policies === undefined ? undefined : ((value.policies as Array<any>).map(ClientPolicyRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
JsonNode,
|
||||
JsonNodeFromJSON,
|
||||
JsonNodeFromJSONTyped,
|
||||
JsonNodeToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientPolicyConditionRepresentation
|
||||
*/
|
||||
export interface ClientPolicyConditionRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientPolicyConditionRepresentation
|
||||
*/
|
||||
condition?: string;
|
||||
/**
|
||||
*
|
||||
* @type {JsonNode}
|
||||
* @memberof ClientPolicyConditionRepresentation
|
||||
*/
|
||||
_configuration?: JsonNode;
|
||||
}
|
||||
|
||||
export function ClientPolicyConditionRepresentationFromJSON(json: any): ClientPolicyConditionRepresentation {
|
||||
return ClientPolicyConditionRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientPolicyConditionRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientPolicyConditionRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'condition': !exists(json, 'condition') ? undefined : json['condition'],
|
||||
'_configuration': !exists(json, 'configuration') ? undefined : JsonNodeFromJSON(json['configuration']),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientPolicyConditionRepresentationToJSON(value?: ClientPolicyConditionRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'condition': value.condition,
|
||||
'configuration': JsonNodeToJSON(value._configuration),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
JsonNode,
|
||||
JsonNodeFromJSON,
|
||||
JsonNodeFromJSONTyped,
|
||||
JsonNodeToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientPolicyExecutorRepresentation
|
||||
*/
|
||||
export interface ClientPolicyExecutorRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {JsonNode}
|
||||
* @memberof ClientPolicyExecutorRepresentation
|
||||
*/
|
||||
_configuration?: JsonNode;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientPolicyExecutorRepresentation
|
||||
*/
|
||||
executor?: string;
|
||||
}
|
||||
|
||||
export function ClientPolicyExecutorRepresentationFromJSON(json: any): ClientPolicyExecutorRepresentation {
|
||||
return ClientPolicyExecutorRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientPolicyExecutorRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientPolicyExecutorRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'_configuration': !exists(json, 'configuration') ? undefined : JsonNodeFromJSON(json['configuration']),
|
||||
'executor': !exists(json, 'executor') ? undefined : json['executor'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientPolicyExecutorRepresentationToJSON(value?: ClientPolicyExecutorRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'configuration': JsonNodeToJSON(value._configuration),
|
||||
'executor': value.executor,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/* 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 {
|
||||
ClientPolicyConditionRepresentation,
|
||||
ClientPolicyConditionRepresentationFromJSON,
|
||||
ClientPolicyConditionRepresentationFromJSONTyped,
|
||||
ClientPolicyConditionRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientPolicyRepresentation
|
||||
*/
|
||||
export interface ClientPolicyRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientPolicyConditionRepresentation>}
|
||||
* @memberof ClientPolicyRepresentation
|
||||
*/
|
||||
conditions?: Array<ClientPolicyConditionRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientPolicyRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientPolicyRepresentation
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientPolicyRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientPolicyRepresentation
|
||||
*/
|
||||
profiles?: Array<string>;
|
||||
}
|
||||
|
||||
export function ClientPolicyRepresentationFromJSON(json: any): ClientPolicyRepresentation {
|
||||
return ClientPolicyRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientPolicyRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientPolicyRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array<any>).map(ClientPolicyConditionRepresentationFromJSON)),
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'profiles': !exists(json, 'profiles') ? undefined : json['profiles'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientPolicyRepresentationToJSON(value?: ClientPolicyRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array<any>).map(ClientPolicyConditionRepresentationToJSON)),
|
||||
'description': value.description,
|
||||
'enabled': value.enabled,
|
||||
'name': value.name,
|
||||
'profiles': value.profiles,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* 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 {
|
||||
ClientPolicyExecutorRepresentation,
|
||||
ClientPolicyExecutorRepresentationFromJSON,
|
||||
ClientPolicyExecutorRepresentationFromJSONTyped,
|
||||
ClientPolicyExecutorRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientProfileRepresentation
|
||||
*/
|
||||
export interface ClientProfileRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientProfileRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientPolicyExecutorRepresentation>}
|
||||
* @memberof ClientProfileRepresentation
|
||||
*/
|
||||
executors?: Array<ClientPolicyExecutorRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientProfileRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function ClientProfileRepresentationFromJSON(json: any): ClientProfileRepresentation {
|
||||
return ClientProfileRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientProfileRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientProfileRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'executors': !exists(json, 'executors') ? undefined : ((json['executors'] as Array<any>).map(ClientPolicyExecutorRepresentationFromJSON)),
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientProfileRepresentationToJSON(value?: ClientProfileRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'description': value.description,
|
||||
'executors': value.executors === undefined ? undefined : ((value.executors as Array<any>).map(ClientPolicyExecutorRepresentationToJSON)),
|
||||
'name': value.name,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
ClientProfileRepresentation,
|
||||
ClientProfileRepresentationFromJSON,
|
||||
ClientProfileRepresentationFromJSONTyped,
|
||||
ClientProfileRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientProfilesRepresentation
|
||||
*/
|
||||
export interface ClientProfilesRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientProfileRepresentation>}
|
||||
* @memberof ClientProfilesRepresentation
|
||||
*/
|
||||
globalProfiles?: Array<ClientProfileRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientProfileRepresentation>}
|
||||
* @memberof ClientProfilesRepresentation
|
||||
*/
|
||||
profiles?: Array<ClientProfileRepresentation>;
|
||||
}
|
||||
|
||||
export function ClientProfilesRepresentationFromJSON(json: any): ClientProfilesRepresentation {
|
||||
return ClientProfilesRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientProfilesRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientProfilesRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'globalProfiles': !exists(json, 'globalProfiles') ? undefined : ((json['globalProfiles'] as Array<any>).map(ClientProfileRepresentationFromJSON)),
|
||||
'profiles': !exists(json, 'profiles') ? undefined : ((json['profiles'] as Array<any>).map(ClientProfileRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientProfilesRepresentationToJSON(value?: ClientProfilesRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'globalProfiles': value.globalProfiles === undefined ? undefined : ((value.globalProfiles as Array<any>).map(ClientProfileRepresentationToJSON)),
|
||||
'profiles': value.profiles === undefined ? undefined : ((value.profiles as Array<any>).map(ClientProfileRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
364
backend/keycloak/kc-client/models/ClientRepresentation.ts
Normal file
364
backend/keycloak/kc-client/models/ClientRepresentation.ts
Normal file
@@ -0,0 +1,364 @@
|
||||
/* 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 {
|
||||
ProtocolMapperRepresentation,
|
||||
ProtocolMapperRepresentationFromJSON,
|
||||
ProtocolMapperRepresentationFromJSONTyped,
|
||||
ProtocolMapperRepresentationToJSON,
|
||||
ResourceServerRepresentation,
|
||||
ResourceServerRepresentationFromJSON,
|
||||
ResourceServerRepresentationFromJSONTyped,
|
||||
ResourceServerRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientRepresentation
|
||||
*/
|
||||
export interface ClientRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
access?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
adminUrl?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
alwaysDisplayInConsole?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
attributes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
authenticationFlowBindingOverrides?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
authorizationServicesEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {ResourceServerRepresentation}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
authorizationSettings?: ResourceServerRepresentation;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
baseUrl?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
bearerOnly?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
clientAuthenticatorType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
clientId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
consentRequired?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
defaultClientScopes?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
directAccessGrantsEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
frontchannelLogout?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
fullScopeAllowed?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
implicitFlowEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
nodeReRegistrationTimeout?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
notBefore?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
oauth2DeviceAuthorizationGrantEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
optionalClientScopes?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
origin?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
protocol?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ProtocolMapperRepresentation>}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
protocolMappers?: Array<ProtocolMapperRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
publicClient?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
redirectUris?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
registeredNodes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
registrationAccessToken?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
rootUrl?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
secret?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
serviceAccountsEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
standardFlowEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
surrogateAuthRequired?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ClientRepresentation
|
||||
*/
|
||||
webOrigins?: Array<string>;
|
||||
}
|
||||
|
||||
export function ClientRepresentationFromJSON(json: any): ClientRepresentation {
|
||||
return ClientRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'access': !exists(json, 'access') ? undefined : json['access'],
|
||||
'adminUrl': !exists(json, 'adminUrl') ? undefined : json['adminUrl'],
|
||||
'alwaysDisplayInConsole': !exists(json, 'alwaysDisplayInConsole') ? undefined : json['alwaysDisplayInConsole'],
|
||||
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
||||
'authenticationFlowBindingOverrides': !exists(json, 'authenticationFlowBindingOverrides') ? undefined : json['authenticationFlowBindingOverrides'],
|
||||
'authorizationServicesEnabled': !exists(json, 'authorizationServicesEnabled') ? undefined : json['authorizationServicesEnabled'],
|
||||
'authorizationSettings': !exists(json, 'authorizationSettings') ? undefined : ResourceServerRepresentationFromJSON(json['authorizationSettings']),
|
||||
'baseUrl': !exists(json, 'baseUrl') ? undefined : json['baseUrl'],
|
||||
'bearerOnly': !exists(json, 'bearerOnly') ? undefined : json['bearerOnly'],
|
||||
'clientAuthenticatorType': !exists(json, 'clientAuthenticatorType') ? undefined : json['clientAuthenticatorType'],
|
||||
'clientId': !exists(json, 'clientId') ? undefined : json['clientId'],
|
||||
'consentRequired': !exists(json, 'consentRequired') ? undefined : json['consentRequired'],
|
||||
'defaultClientScopes': !exists(json, 'defaultClientScopes') ? undefined : json['defaultClientScopes'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'directAccessGrantsEnabled': !exists(json, 'directAccessGrantsEnabled') ? undefined : json['directAccessGrantsEnabled'],
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'frontchannelLogout': !exists(json, 'frontchannelLogout') ? undefined : json['frontchannelLogout'],
|
||||
'fullScopeAllowed': !exists(json, 'fullScopeAllowed') ? undefined : json['fullScopeAllowed'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'implicitFlowEnabled': !exists(json, 'implicitFlowEnabled') ? undefined : json['implicitFlowEnabled'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'nodeReRegistrationTimeout': !exists(json, 'nodeReRegistrationTimeout') ? undefined : json['nodeReRegistrationTimeout'],
|
||||
'notBefore': !exists(json, 'notBefore') ? undefined : json['notBefore'],
|
||||
'oauth2DeviceAuthorizationGrantEnabled': !exists(json, 'oauth2DeviceAuthorizationGrantEnabled') ? undefined : json['oauth2DeviceAuthorizationGrantEnabled'],
|
||||
'optionalClientScopes': !exists(json, 'optionalClientScopes') ? undefined : json['optionalClientScopes'],
|
||||
'origin': !exists(json, 'origin') ? undefined : json['origin'],
|
||||
'protocol': !exists(json, 'protocol') ? undefined : json['protocol'],
|
||||
'protocolMappers': !exists(json, 'protocolMappers') ? undefined : ((json['protocolMappers'] as Array<any>).map(ProtocolMapperRepresentationFromJSON)),
|
||||
'publicClient': !exists(json, 'publicClient') ? undefined : json['publicClient'],
|
||||
'redirectUris': !exists(json, 'redirectUris') ? undefined : json['redirectUris'],
|
||||
'registeredNodes': !exists(json, 'registeredNodes') ? undefined : json['registeredNodes'],
|
||||
'registrationAccessToken': !exists(json, 'registrationAccessToken') ? undefined : json['registrationAccessToken'],
|
||||
'rootUrl': !exists(json, 'rootUrl') ? undefined : json['rootUrl'],
|
||||
'secret': !exists(json, 'secret') ? undefined : json['secret'],
|
||||
'serviceAccountsEnabled': !exists(json, 'serviceAccountsEnabled') ? undefined : json['serviceAccountsEnabled'],
|
||||
'standardFlowEnabled': !exists(json, 'standardFlowEnabled') ? undefined : json['standardFlowEnabled'],
|
||||
'surrogateAuthRequired': !exists(json, 'surrogateAuthRequired') ? undefined : json['surrogateAuthRequired'],
|
||||
'webOrigins': !exists(json, 'webOrigins') ? undefined : json['webOrigins'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientRepresentationToJSON(value?: ClientRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'access': value.access,
|
||||
'adminUrl': value.adminUrl,
|
||||
'alwaysDisplayInConsole': value.alwaysDisplayInConsole,
|
||||
'attributes': value.attributes,
|
||||
'authenticationFlowBindingOverrides': value.authenticationFlowBindingOverrides,
|
||||
'authorizationServicesEnabled': value.authorizationServicesEnabled,
|
||||
'authorizationSettings': ResourceServerRepresentationToJSON(value.authorizationSettings),
|
||||
'baseUrl': value.baseUrl,
|
||||
'bearerOnly': value.bearerOnly,
|
||||
'clientAuthenticatorType': value.clientAuthenticatorType,
|
||||
'clientId': value.clientId,
|
||||
'consentRequired': value.consentRequired,
|
||||
'defaultClientScopes': value.defaultClientScopes,
|
||||
'description': value.description,
|
||||
'directAccessGrantsEnabled': value.directAccessGrantsEnabled,
|
||||
'enabled': value.enabled,
|
||||
'frontchannelLogout': value.frontchannelLogout,
|
||||
'fullScopeAllowed': value.fullScopeAllowed,
|
||||
'id': value.id,
|
||||
'implicitFlowEnabled': value.implicitFlowEnabled,
|
||||
'name': value.name,
|
||||
'nodeReRegistrationTimeout': value.nodeReRegistrationTimeout,
|
||||
'notBefore': value.notBefore,
|
||||
'oauth2DeviceAuthorizationGrantEnabled': value.oauth2DeviceAuthorizationGrantEnabled,
|
||||
'optionalClientScopes': value.optionalClientScopes,
|
||||
'origin': value.origin,
|
||||
'protocol': value.protocol,
|
||||
'protocolMappers': value.protocolMappers === undefined ? undefined : ((value.protocolMappers as Array<any>).map(ProtocolMapperRepresentationToJSON)),
|
||||
'publicClient': value.publicClient,
|
||||
'redirectUris': value.redirectUris,
|
||||
'registeredNodes': value.registeredNodes,
|
||||
'registrationAccessToken': value.registrationAccessToken,
|
||||
'rootUrl': value.rootUrl,
|
||||
'secret': value.secret,
|
||||
'serviceAccountsEnabled': value.serviceAccountsEnabled,
|
||||
'standardFlowEnabled': value.standardFlowEnabled,
|
||||
'surrogateAuthRequired': value.surrogateAuthRequired,
|
||||
'webOrigins': value.webOrigins,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
export interface ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
containerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
containerName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
containerType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
mapperId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
mapperName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation
|
||||
*/
|
||||
protocolMapper?: string;
|
||||
}
|
||||
|
||||
export function ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentationFromJSON(json: any): ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation {
|
||||
return ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'containerId': !exists(json, 'containerId') ? undefined : json['containerId'],
|
||||
'containerName': !exists(json, 'containerName') ? undefined : json['containerName'],
|
||||
'containerType': !exists(json, 'containerType') ? undefined : json['containerType'],
|
||||
'mapperId': !exists(json, 'mapperId') ? undefined : json['mapperId'],
|
||||
'mapperName': !exists(json, 'mapperName') ? undefined : json['mapperName'],
|
||||
'protocolMapper': !exists(json, 'protocolMapper') ? undefined : json['protocolMapper'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentationToJSON(value?: ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'containerId': value.containerId,
|
||||
'containerName': value.containerName,
|
||||
'containerType': value.containerType,
|
||||
'mapperId': value.mapperId,
|
||||
'mapperName': value.mapperName,
|
||||
'protocolMapper': value.protocolMapper,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
104
backend/keycloak/kc-client/models/ClientScopeRepresentation.ts
Normal file
104
backend/keycloak/kc-client/models/ClientScopeRepresentation.ts
Normal file
@@ -0,0 +1,104 @@
|
||||
/* 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 {
|
||||
ProtocolMapperRepresentation,
|
||||
ProtocolMapperRepresentationFromJSON,
|
||||
ProtocolMapperRepresentationFromJSONTyped,
|
||||
ProtocolMapperRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ClientScopeRepresentation
|
||||
*/
|
||||
export interface ClientScopeRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ClientScopeRepresentation
|
||||
*/
|
||||
attributes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ClientScopeRepresentation
|
||||
*/
|
||||
protocol?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ProtocolMapperRepresentation>}
|
||||
* @memberof ClientScopeRepresentation
|
||||
*/
|
||||
protocolMappers?: Array<ProtocolMapperRepresentation>;
|
||||
}
|
||||
|
||||
export function ClientScopeRepresentationFromJSON(json: any): ClientScopeRepresentation {
|
||||
return ClientScopeRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ClientScopeRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClientScopeRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'protocol': !exists(json, 'protocol') ? undefined : json['protocol'],
|
||||
'protocolMappers': !exists(json, 'protocolMappers') ? undefined : ((json['protocolMappers'] as Array<any>).map(ProtocolMapperRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ClientScopeRepresentationToJSON(value?: ClientScopeRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'attributes': value.attributes,
|
||||
'description': value.description,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'protocol': value.protocol,
|
||||
'protocolMappers': value.protocolMappers === undefined ? undefined : ((value.protocolMappers as Array<any>).map(ProtocolMapperRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/* 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 {
|
||||
MultivaluedHashMap,
|
||||
MultivaluedHashMapFromJSON,
|
||||
MultivaluedHashMapFromJSONTyped,
|
||||
MultivaluedHashMapToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ComponentExportRepresentation
|
||||
*/
|
||||
export interface ComponentExportRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {MultivaluedHashMap}
|
||||
* @memberof ComponentExportRepresentation
|
||||
*/
|
||||
config?: MultivaluedHashMap;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentExportRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentExportRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentExportRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {MultivaluedHashMap}
|
||||
* @memberof ComponentExportRepresentation
|
||||
*/
|
||||
subComponents?: MultivaluedHashMap;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentExportRepresentation
|
||||
*/
|
||||
subType?: string;
|
||||
}
|
||||
|
||||
export function ComponentExportRepresentationFromJSON(json: any): ComponentExportRepresentation {
|
||||
return ComponentExportRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ComponentExportRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentExportRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': !exists(json, 'config') ? undefined : MultivaluedHashMapFromJSON(json['config']),
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
'subComponents': !exists(json, 'subComponents') ? undefined : MultivaluedHashMapFromJSON(json['subComponents']),
|
||||
'subType': !exists(json, 'subType') ? undefined : json['subType'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ComponentExportRepresentationToJSON(value?: ComponentExportRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': MultivaluedHashMapToJSON(value.config),
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'providerId': value.providerId,
|
||||
'subComponents': MultivaluedHashMapToJSON(value.subComponents),
|
||||
'subType': value.subType,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
112
backend/keycloak/kc-client/models/ComponentRepresentation.ts
Normal file
112
backend/keycloak/kc-client/models/ComponentRepresentation.ts
Normal file
@@ -0,0 +1,112 @@
|
||||
/* 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 {
|
||||
MultivaluedHashMap,
|
||||
MultivaluedHashMapFromJSON,
|
||||
MultivaluedHashMapFromJSONTyped,
|
||||
MultivaluedHashMapToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ComponentRepresentation
|
||||
*/
|
||||
export interface ComponentRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {MultivaluedHashMap}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
config?: MultivaluedHashMap;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
parentId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
providerType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ComponentRepresentation
|
||||
*/
|
||||
subType?: string;
|
||||
}
|
||||
|
||||
export function ComponentRepresentationFromJSON(json: any): ComponentRepresentation {
|
||||
return ComponentRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ComponentRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComponentRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': !exists(json, 'config') ? undefined : MultivaluedHashMapFromJSON(json['config']),
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'parentId': !exists(json, 'parentId') ? undefined : json['parentId'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
'providerType': !exists(json, 'providerType') ? undefined : json['providerType'],
|
||||
'subType': !exists(json, 'subType') ? undefined : json['subType'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ComponentRepresentationToJSON(value?: ComponentRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': MultivaluedHashMapToJSON(value.config),
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'parentId': value.parentId,
|
||||
'providerId': value.providerId,
|
||||
'providerType': value.providerType,
|
||||
'subType': value.subType,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ConfigPropertyRepresentation
|
||||
*/
|
||||
export interface ConfigPropertyRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {object}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
defaultValue?: object;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
helpText?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
options?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
readOnly?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
secret?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConfigPropertyRepresentation
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export function ConfigPropertyRepresentationFromJSON(json: any): ConfigPropertyRepresentation {
|
||||
return ConfigPropertyRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ConfigPropertyRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConfigPropertyRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'defaultValue': !exists(json, 'defaultValue') ? undefined : json['defaultValue'],
|
||||
'helpText': !exists(json, 'helpText') ? undefined : json['helpText'],
|
||||
'label': !exists(json, 'label') ? undefined : json['label'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'options': !exists(json, 'options') ? undefined : json['options'],
|
||||
'readOnly': !exists(json, 'readOnly') ? undefined : json['readOnly'],
|
||||
'secret': !exists(json, 'secret') ? undefined : json['secret'],
|
||||
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ConfigPropertyRepresentationToJSON(value?: ConfigPropertyRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'defaultValue': value.defaultValue,
|
||||
'helpText': value.helpText,
|
||||
'label': value.label,
|
||||
'name': value.name,
|
||||
'options': value.options,
|
||||
'readOnly': value.readOnly,
|
||||
'secret': value.secret,
|
||||
'type': value.type,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
121
backend/keycloak/kc-client/models/CredentialRepresentation.ts
Normal file
121
backend/keycloak/kc-client/models/CredentialRepresentation.ts
Normal file
@@ -0,0 +1,121 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface CredentialRepresentation
|
||||
*/
|
||||
export interface CredentialRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
createdDate?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
credentialData?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
secretData?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
temporary?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
userLabel?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CredentialRepresentation
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export function CredentialRepresentationFromJSON(json: any): CredentialRepresentation {
|
||||
return CredentialRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function CredentialRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CredentialRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'createdDate': !exists(json, 'createdDate') ? undefined : json['createdDate'],
|
||||
'credentialData': !exists(json, 'credentialData') ? undefined : json['credentialData'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
||||
'secretData': !exists(json, 'secretData') ? undefined : json['secretData'],
|
||||
'temporary': !exists(json, 'temporary') ? undefined : json['temporary'],
|
||||
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||
'userLabel': !exists(json, 'userLabel') ? undefined : json['userLabel'],
|
||||
'value': !exists(json, 'value') ? undefined : json['value'],
|
||||
};
|
||||
}
|
||||
|
||||
export function CredentialRepresentationToJSON(value?: CredentialRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'createdDate': value.createdDate,
|
||||
'credentialData': value.credentialData,
|
||||
'id': value.id,
|
||||
'priority': value.priority,
|
||||
'secretData': value.secretData,
|
||||
'temporary': value.temporary,
|
||||
'type': value.type,
|
||||
'userLabel': value.userLabel,
|
||||
'value': value.value,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface FederatedIdentityRepresentation
|
||||
*/
|
||||
export interface FederatedIdentityRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FederatedIdentityRepresentation
|
||||
*/
|
||||
identityProvider?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FederatedIdentityRepresentation
|
||||
*/
|
||||
userId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof FederatedIdentityRepresentation
|
||||
*/
|
||||
userName?: string;
|
||||
}
|
||||
|
||||
export function FederatedIdentityRepresentationFromJSON(json: any): FederatedIdentityRepresentation {
|
||||
return FederatedIdentityRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function FederatedIdentityRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): FederatedIdentityRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'identityProvider': !exists(json, 'identityProvider') ? undefined : json['identityProvider'],
|
||||
'userId': !exists(json, 'userId') ? undefined : json['userId'],
|
||||
'userName': !exists(json, 'userName') ? undefined : json['userName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function FederatedIdentityRepresentationToJSON(value?: FederatedIdentityRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'identityProvider': value.identityProvider,
|
||||
'userId': value.userId,
|
||||
'userName': value.userName,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
65
backend/keycloak/kc-client/models/GlobalRequestResult.ts
Normal file
65
backend/keycloak/kc-client/models/GlobalRequestResult.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface GlobalRequestResult
|
||||
*/
|
||||
export interface GlobalRequestResult {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof GlobalRequestResult
|
||||
*/
|
||||
failedRequests?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof GlobalRequestResult
|
||||
*/
|
||||
successRequests?: Array<string>;
|
||||
}
|
||||
|
||||
export function GlobalRequestResultFromJSON(json: any): GlobalRequestResult {
|
||||
return GlobalRequestResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GlobalRequestResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalRequestResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'failedRequests': !exists(json, 'failedRequests') ? undefined : json['failedRequests'],
|
||||
'successRequests': !exists(json, 'successRequests') ? undefined : json['successRequests'],
|
||||
};
|
||||
}
|
||||
|
||||
export function GlobalRequestResultToJSON(value?: GlobalRequestResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'failedRequests': value.failedRequests,
|
||||
'successRequests': value.successRequests,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
113
backend/keycloak/kc-client/models/GroupRepresentation.ts
Normal file
113
backend/keycloak/kc-client/models/GroupRepresentation.ts
Normal file
@@ -0,0 +1,113 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface GroupRepresentation
|
||||
*/
|
||||
export interface GroupRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
access?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
attributes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
clientRoles?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
realmRoles?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<GroupRepresentation>}
|
||||
* @memberof GroupRepresentation
|
||||
*/
|
||||
subGroups?: Array<GroupRepresentation>;
|
||||
}
|
||||
|
||||
export function GroupRepresentationFromJSON(json: any): GroupRepresentation {
|
||||
return GroupRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function GroupRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'access': !exists(json, 'access') ? undefined : json['access'],
|
||||
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
||||
'clientRoles': !exists(json, 'clientRoles') ? undefined : json['clientRoles'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'path': !exists(json, 'path') ? undefined : json['path'],
|
||||
'realmRoles': !exists(json, 'realmRoles') ? undefined : json['realmRoles'],
|
||||
'subGroups': !exists(json, 'subGroups') ? undefined : ((json['subGroups'] as Array<any>).map(GroupRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function GroupRepresentationToJSON(value?: GroupRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'access': value.access,
|
||||
'attributes': value.attributes,
|
||||
'clientRoles': value.clientRoles,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'path': value.path,
|
||||
'realmRoles': value.realmRoles,
|
||||
'subGroups': value.subGroups === undefined ? undefined : ((value.subGroups as Array<any>).map(GroupRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
374
backend/keycloak/kc-client/models/IDToken.ts
Normal file
374
backend/keycloak/kc-client/models/IDToken.ts
Normal file
@@ -0,0 +1,374 @@
|
||||
/* 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 {
|
||||
AddressClaimSet,
|
||||
AddressClaimSetFromJSON,
|
||||
AddressClaimSetFromJSONTyped,
|
||||
AddressClaimSetToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface IDToken
|
||||
*/
|
||||
export interface IDToken {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
acr?: string;
|
||||
/**
|
||||
*
|
||||
* @type {AddressClaimSet}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
address?: AddressClaimSet;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
atHash?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
authTime?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
azp?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
birthdate?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
cHash?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
category?: IDTokenCategoryEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
claimsLocales?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
emailVerified?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
exp?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
familyName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
gender?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
givenName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
iat?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
iss?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
jti?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
locale?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
middleName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
nbf?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
nickname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
nonce?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
otherClaims?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
phoneNumber?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
phoneNumberVerified?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
picture?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
preferredUsername?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
profile?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
sHash?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
sessionState?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
sid?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
sub?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
typ?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
updatedAt?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
website?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IDToken
|
||||
*/
|
||||
zoneinfo?: string;
|
||||
}
|
||||
|
||||
export function IDTokenFromJSON(json: any): IDToken {
|
||||
return IDTokenFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function IDTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): IDToken {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'acr': !exists(json, 'acr') ? undefined : json['acr'],
|
||||
'address': !exists(json, 'address') ? undefined : AddressClaimSetFromJSON(json['address']),
|
||||
'atHash': !exists(json, 'at_hash') ? undefined : json['at_hash'],
|
||||
'authTime': !exists(json, 'auth_time') ? undefined : json['auth_time'],
|
||||
'azp': !exists(json, 'azp') ? undefined : json['azp'],
|
||||
'birthdate': !exists(json, 'birthdate') ? undefined : json['birthdate'],
|
||||
'cHash': !exists(json, 'c_hash') ? undefined : json['c_hash'],
|
||||
'category': !exists(json, 'category') ? undefined : json['category'],
|
||||
'claimsLocales': !exists(json, 'claims_locales') ? undefined : json['claims_locales'],
|
||||
'email': !exists(json, 'email') ? undefined : json['email'],
|
||||
'emailVerified': !exists(json, 'email_verified') ? undefined : json['email_verified'],
|
||||
'exp': !exists(json, 'exp') ? undefined : json['exp'],
|
||||
'familyName': !exists(json, 'family_name') ? undefined : json['family_name'],
|
||||
'gender': !exists(json, 'gender') ? undefined : json['gender'],
|
||||
'givenName': !exists(json, 'given_name') ? undefined : json['given_name'],
|
||||
'iat': !exists(json, 'iat') ? undefined : json['iat'],
|
||||
'iss': !exists(json, 'iss') ? undefined : json['iss'],
|
||||
'jti': !exists(json, 'jti') ? undefined : json['jti'],
|
||||
'locale': !exists(json, 'locale') ? undefined : json['locale'],
|
||||
'middleName': !exists(json, 'middle_name') ? undefined : json['middle_name'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'nbf': !exists(json, 'nbf') ? undefined : json['nbf'],
|
||||
'nickname': !exists(json, 'nickname') ? undefined : json['nickname'],
|
||||
'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
|
||||
'otherClaims': !exists(json, 'otherClaims') ? undefined : json['otherClaims'],
|
||||
'phoneNumber': !exists(json, 'phone_number') ? undefined : json['phone_number'],
|
||||
'phoneNumberVerified': !exists(json, 'phone_number_verified') ? undefined : json['phone_number_verified'],
|
||||
'picture': !exists(json, 'picture') ? undefined : json['picture'],
|
||||
'preferredUsername': !exists(json, 'preferred_username') ? undefined : json['preferred_username'],
|
||||
'profile': !exists(json, 'profile') ? undefined : json['profile'],
|
||||
'sHash': !exists(json, 's_hash') ? undefined : json['s_hash'],
|
||||
'sessionState': !exists(json, 'session_state') ? undefined : json['session_state'],
|
||||
'sid': !exists(json, 'sid') ? undefined : json['sid'],
|
||||
'sub': !exists(json, 'sub') ? undefined : json['sub'],
|
||||
'typ': !exists(json, 'typ') ? undefined : json['typ'],
|
||||
'updatedAt': !exists(json, 'updated_at') ? undefined : json['updated_at'],
|
||||
'website': !exists(json, 'website') ? undefined : json['website'],
|
||||
'zoneinfo': !exists(json, 'zoneinfo') ? undefined : json['zoneinfo'],
|
||||
};
|
||||
}
|
||||
|
||||
export function IDTokenToJSON(value?: IDToken | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'acr': value.acr,
|
||||
'address': AddressClaimSetToJSON(value.address),
|
||||
'at_hash': value.atHash,
|
||||
'auth_time': value.authTime,
|
||||
'azp': value.azp,
|
||||
'birthdate': value.birthdate,
|
||||
'c_hash': value.cHash,
|
||||
'category': value.category,
|
||||
'claims_locales': value.claimsLocales,
|
||||
'email': value.email,
|
||||
'email_verified': value.emailVerified,
|
||||
'exp': value.exp,
|
||||
'family_name': value.familyName,
|
||||
'gender': value.gender,
|
||||
'given_name': value.givenName,
|
||||
'iat': value.iat,
|
||||
'iss': value.iss,
|
||||
'jti': value.jti,
|
||||
'locale': value.locale,
|
||||
'middle_name': value.middleName,
|
||||
'name': value.name,
|
||||
'nbf': value.nbf,
|
||||
'nickname': value.nickname,
|
||||
'nonce': value.nonce,
|
||||
'otherClaims': value.otherClaims,
|
||||
'phone_number': value.phoneNumber,
|
||||
'phone_number_verified': value.phoneNumberVerified,
|
||||
'picture': value.picture,
|
||||
'preferred_username': value.preferredUsername,
|
||||
'profile': value.profile,
|
||||
's_hash': value.sHash,
|
||||
'session_state': value.sessionState,
|
||||
'sid': value.sid,
|
||||
'sub': value.sub,
|
||||
'typ': value.typ,
|
||||
'updated_at': value.updatedAt,
|
||||
'website': value.website,
|
||||
'zoneinfo': value.zoneinfo,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum IDTokenCategoryEnum {
|
||||
INTERNAL = 'INTERNAL',
|
||||
ACCESS = 'ACCESS',
|
||||
ID = 'ID',
|
||||
ADMIN = 'ADMIN',
|
||||
USERINFO = 'USERINFO',
|
||||
LOGOUT = 'LOGOUT',
|
||||
AUTHORIZATIONRESPONSE = 'AUTHORIZATION_RESPONSE'
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface IdentityProviderMapperRepresentation
|
||||
*/
|
||||
export interface IdentityProviderMapperRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof IdentityProviderMapperRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderMapperRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderMapperRepresentation
|
||||
*/
|
||||
identityProviderAlias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderMapperRepresentation
|
||||
*/
|
||||
identityProviderMapper?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderMapperRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function IdentityProviderMapperRepresentationFromJSON(json: any): IdentityProviderMapperRepresentation {
|
||||
return IdentityProviderMapperRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function IdentityProviderMapperRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityProviderMapperRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'identityProviderAlias': !exists(json, 'identityProviderAlias') ? undefined : json['identityProviderAlias'],
|
||||
'identityProviderMapper': !exists(json, 'identityProviderMapper') ? undefined : json['identityProviderMapper'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function IdentityProviderMapperRepresentationToJSON(value?: IdentityProviderMapperRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': value.config,
|
||||
'id': value.id,
|
||||
'identityProviderAlias': value.identityProviderAlias,
|
||||
'identityProviderMapper': value.identityProviderMapper,
|
||||
'name': value.name,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface IdentityProviderRepresentation
|
||||
*/
|
||||
export interface IdentityProviderRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
addReadTokenRoleOnCreate?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
firstBrokerLoginFlowAlias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
internalId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
linkOnly?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
postBrokerLoginFlowAlias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
storeToken?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof IdentityProviderRepresentation
|
||||
*/
|
||||
trustEmail?: boolean;
|
||||
}
|
||||
|
||||
export function IdentityProviderRepresentationFromJSON(json: any): IdentityProviderRepresentation {
|
||||
return IdentityProviderRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function IdentityProviderRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityProviderRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'addReadTokenRoleOnCreate': !exists(json, 'addReadTokenRoleOnCreate') ? undefined : json['addReadTokenRoleOnCreate'],
|
||||
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'firstBrokerLoginFlowAlias': !exists(json, 'firstBrokerLoginFlowAlias') ? undefined : json['firstBrokerLoginFlowAlias'],
|
||||
'internalId': !exists(json, 'internalId') ? undefined : json['internalId'],
|
||||
'linkOnly': !exists(json, 'linkOnly') ? undefined : json['linkOnly'],
|
||||
'postBrokerLoginFlowAlias': !exists(json, 'postBrokerLoginFlowAlias') ? undefined : json['postBrokerLoginFlowAlias'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
'storeToken': !exists(json, 'storeToken') ? undefined : json['storeToken'],
|
||||
'trustEmail': !exists(json, 'trustEmail') ? undefined : json['trustEmail'],
|
||||
};
|
||||
}
|
||||
|
||||
export function IdentityProviderRepresentationToJSON(value?: IdentityProviderRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'addReadTokenRoleOnCreate': value.addReadTokenRoleOnCreate,
|
||||
'alias': value.alias,
|
||||
'config': value.config,
|
||||
'displayName': value.displayName,
|
||||
'enabled': value.enabled,
|
||||
'firstBrokerLoginFlowAlias': value.firstBrokerLoginFlowAlias,
|
||||
'internalId': value.internalId,
|
||||
'linkOnly': value.linkOnly,
|
||||
'postBrokerLoginFlowAlias': value.postBrokerLoginFlowAlias,
|
||||
'providerId': value.providerId,
|
||||
'storeToken': value.storeToken,
|
||||
'trustEmail': value.trustEmail,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
241
backend/keycloak/kc-client/models/JsonNode.ts
Normal file
241
backend/keycloak/kc-client/models/JsonNode.ts
Normal file
@@ -0,0 +1,241 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface JsonNode
|
||||
*/
|
||||
export interface JsonNode {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
array?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
bigDecimal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
bigInteger?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
binary?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_boolean?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
containerNode?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_double?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
empty?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_float?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
floatingPointNumber?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_int?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
integralNumber?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_long?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
missingNode?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
nodeType?: JsonNodeNodeTypeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_null?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
number?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
object?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
pojo?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
_short?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
textual?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof JsonNode
|
||||
*/
|
||||
valueNode?: boolean;
|
||||
}
|
||||
|
||||
export function JsonNodeFromJSON(json: any): JsonNode {
|
||||
return JsonNodeFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function JsonNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): JsonNode {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'array': !exists(json, 'array') ? undefined : json['array'],
|
||||
'bigDecimal': !exists(json, 'bigDecimal') ? undefined : json['bigDecimal'],
|
||||
'bigInteger': !exists(json, 'bigInteger') ? undefined : json['bigInteger'],
|
||||
'binary': !exists(json, 'binary') ? undefined : json['binary'],
|
||||
'_boolean': !exists(json, 'boolean') ? undefined : json['boolean'],
|
||||
'containerNode': !exists(json, 'containerNode') ? undefined : json['containerNode'],
|
||||
'_double': !exists(json, 'double') ? undefined : json['double'],
|
||||
'empty': !exists(json, 'empty') ? undefined : json['empty'],
|
||||
'_float': !exists(json, 'float') ? undefined : json['float'],
|
||||
'floatingPointNumber': !exists(json, 'floatingPointNumber') ? undefined : json['floatingPointNumber'],
|
||||
'_int': !exists(json, 'int') ? undefined : json['int'],
|
||||
'integralNumber': !exists(json, 'integralNumber') ? undefined : json['integralNumber'],
|
||||
'_long': !exists(json, 'long') ? undefined : json['long'],
|
||||
'missingNode': !exists(json, 'missingNode') ? undefined : json['missingNode'],
|
||||
'nodeType': !exists(json, 'nodeType') ? undefined : json['nodeType'],
|
||||
'_null': !exists(json, 'null') ? undefined : json['null'],
|
||||
'number': !exists(json, 'number') ? undefined : json['number'],
|
||||
'object': !exists(json, 'object') ? undefined : json['object'],
|
||||
'pojo': !exists(json, 'pojo') ? undefined : json['pojo'],
|
||||
'_short': !exists(json, 'short') ? undefined : json['short'],
|
||||
'textual': !exists(json, 'textual') ? undefined : json['textual'],
|
||||
'valueNode': !exists(json, 'valueNode') ? undefined : json['valueNode'],
|
||||
};
|
||||
}
|
||||
|
||||
export function JsonNodeToJSON(value?: JsonNode | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'array': value.array,
|
||||
'bigDecimal': value.bigDecimal,
|
||||
'bigInteger': value.bigInteger,
|
||||
'binary': value.binary,
|
||||
'boolean': value._boolean,
|
||||
'containerNode': value.containerNode,
|
||||
'double': value._double,
|
||||
'empty': value.empty,
|
||||
'float': value._float,
|
||||
'floatingPointNumber': value.floatingPointNumber,
|
||||
'int': value._int,
|
||||
'integralNumber': value.integralNumber,
|
||||
'long': value._long,
|
||||
'missingNode': value.missingNode,
|
||||
'nodeType': value.nodeType,
|
||||
'null': value._null,
|
||||
'number': value.number,
|
||||
'object': value.object,
|
||||
'pojo': value.pojo,
|
||||
'short': value._short,
|
||||
'textual': value.textual,
|
||||
'valueNode': value.valueNode,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum JsonNodeNodeTypeEnum {
|
||||
ARRAY = 'ARRAY',
|
||||
BINARY = 'BINARY',
|
||||
BOOLEAN = 'BOOLEAN',
|
||||
MISSING = 'MISSING',
|
||||
NULL = 'NULL',
|
||||
NUMBER = 'NUMBER',
|
||||
OBJECT = 'OBJECT',
|
||||
POJO = 'POJO',
|
||||
STRING = 'STRING'
|
||||
}
|
||||
|
||||
|
||||
97
backend/keycloak/kc-client/models/KeyStoreConfig.ts
Normal file
97
backend/keycloak/kc-client/models/KeyStoreConfig.ts
Normal file
@@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KeyStoreConfig
|
||||
*/
|
||||
export interface KeyStoreConfig {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeyStoreConfig
|
||||
*/
|
||||
format?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeyStoreConfig
|
||||
*/
|
||||
keyAlias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeyStoreConfig
|
||||
*/
|
||||
keyPassword?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeyStoreConfig
|
||||
*/
|
||||
realmAlias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof KeyStoreConfig
|
||||
*/
|
||||
realmCertificate?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeyStoreConfig
|
||||
*/
|
||||
storePassword?: string;
|
||||
}
|
||||
|
||||
export function KeyStoreConfigFromJSON(json: any): KeyStoreConfig {
|
||||
return KeyStoreConfigFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function KeyStoreConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeyStoreConfig {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'format': !exists(json, 'format') ? undefined : json['format'],
|
||||
'keyAlias': !exists(json, 'keyAlias') ? undefined : json['keyAlias'],
|
||||
'keyPassword': !exists(json, 'keyPassword') ? undefined : json['keyPassword'],
|
||||
'realmAlias': !exists(json, 'realmAlias') ? undefined : json['realmAlias'],
|
||||
'realmCertificate': !exists(json, 'realmCertificate') ? undefined : json['realmCertificate'],
|
||||
'storePassword': !exists(json, 'storePassword') ? undefined : json['storePassword'],
|
||||
};
|
||||
}
|
||||
|
||||
export function KeyStoreConfigToJSON(value?: KeyStoreConfig | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'format': value.format,
|
||||
'keyAlias': value.keyAlias,
|
||||
'keyPassword': value.keyPassword,
|
||||
'realmAlias': value.realmAlias,
|
||||
'realmCertificate': value.realmCertificate,
|
||||
'storePassword': value.storePassword,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
KeysMetadataRepresentationKeyMetadataRepresentation,
|
||||
KeysMetadataRepresentationKeyMetadataRepresentationFromJSON,
|
||||
KeysMetadataRepresentationKeyMetadataRepresentationFromJSONTyped,
|
||||
KeysMetadataRepresentationKeyMetadataRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KeysMetadataRepresentation
|
||||
*/
|
||||
export interface KeysMetadataRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof KeysMetadataRepresentation
|
||||
*/
|
||||
active?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<KeysMetadataRepresentationKeyMetadataRepresentation>}
|
||||
* @memberof KeysMetadataRepresentation
|
||||
*/
|
||||
keys?: Array<KeysMetadataRepresentationKeyMetadataRepresentation>;
|
||||
}
|
||||
|
||||
export function KeysMetadataRepresentationFromJSON(json: any): KeysMetadataRepresentation {
|
||||
return KeysMetadataRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function KeysMetadataRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeysMetadataRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'active': !exists(json, 'active') ? undefined : json['active'],
|
||||
'keys': !exists(json, 'keys') ? undefined : ((json['keys'] as Array<any>).map(KeysMetadataRepresentationKeyMetadataRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function KeysMetadataRepresentationToJSON(value?: KeysMetadataRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'active': value.active,
|
||||
'keys': value.keys === undefined ? undefined : ((value.keys as Array<any>).map(KeysMetadataRepresentationKeyMetadataRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
export interface KeysMetadataRepresentationKeyMetadataRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
algorithm?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
certificate?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
kid?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
providerPriority?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
publicKey?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KeysMetadataRepresentationKeyMetadataRepresentation
|
||||
*/
|
||||
use?: KeysMetadataRepresentationKeyMetadataRepresentationUseEnum;
|
||||
}
|
||||
|
||||
export function KeysMetadataRepresentationKeyMetadataRepresentationFromJSON(json: any): KeysMetadataRepresentationKeyMetadataRepresentation {
|
||||
return KeysMetadataRepresentationKeyMetadataRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function KeysMetadataRepresentationKeyMetadataRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): KeysMetadataRepresentationKeyMetadataRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'algorithm': !exists(json, 'algorithm') ? undefined : json['algorithm'],
|
||||
'certificate': !exists(json, 'certificate') ? undefined : json['certificate'],
|
||||
'kid': !exists(json, 'kid') ? undefined : json['kid'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
'providerPriority': !exists(json, 'providerPriority') ? undefined : json['providerPriority'],
|
||||
'publicKey': !exists(json, 'publicKey') ? undefined : json['publicKey'],
|
||||
'status': !exists(json, 'status') ? undefined : json['status'],
|
||||
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||
'use': !exists(json, 'use') ? undefined : json['use'],
|
||||
};
|
||||
}
|
||||
|
||||
export function KeysMetadataRepresentationKeyMetadataRepresentationToJSON(value?: KeysMetadataRepresentationKeyMetadataRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'algorithm': value.algorithm,
|
||||
'certificate': value.certificate,
|
||||
'kid': value.kid,
|
||||
'providerId': value.providerId,
|
||||
'providerPriority': value.providerPriority,
|
||||
'publicKey': value.publicKey,
|
||||
'status': value.status,
|
||||
'type': value.type,
|
||||
'use': value.use,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum KeysMetadataRepresentationKeyMetadataRepresentationUseEnum {
|
||||
SIG = 'SIG',
|
||||
ENC = 'ENC'
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ManagementPermissionReference
|
||||
*/
|
||||
export interface ManagementPermissionReference {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ManagementPermissionReference
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ManagementPermissionReference
|
||||
*/
|
||||
resource?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ManagementPermissionReference
|
||||
*/
|
||||
scopePermissions?: { [key: string]: object; };
|
||||
}
|
||||
|
||||
export function ManagementPermissionReferenceFromJSON(json: any): ManagementPermissionReference {
|
||||
return ManagementPermissionReferenceFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ManagementPermissionReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManagementPermissionReference {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'resource': !exists(json, 'resource') ? undefined : json['resource'],
|
||||
'scopePermissions': !exists(json, 'scopePermissions') ? undefined : json['scopePermissions'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ManagementPermissionReferenceToJSON(value?: ManagementPermissionReference | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'enabled': value.enabled,
|
||||
'resource': value.resource,
|
||||
'scopePermissions': value.scopePermissions,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
72
backend/keycloak/kc-client/models/MappingsRepresentation.ts
Normal file
72
backend/keycloak/kc-client/models/MappingsRepresentation.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
RoleRepresentation,
|
||||
RoleRepresentationFromJSON,
|
||||
RoleRepresentationFromJSONTyped,
|
||||
RoleRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface MappingsRepresentation
|
||||
*/
|
||||
export interface MappingsRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof MappingsRepresentation
|
||||
*/
|
||||
clientMappings?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<RoleRepresentation>}
|
||||
* @memberof MappingsRepresentation
|
||||
*/
|
||||
realmMappings?: Array<RoleRepresentation>;
|
||||
}
|
||||
|
||||
export function MappingsRepresentationFromJSON(json: any): MappingsRepresentation {
|
||||
return MappingsRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function MappingsRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MappingsRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'clientMappings': !exists(json, 'clientMappings') ? undefined : json['clientMappings'],
|
||||
'realmMappings': !exists(json, 'realmMappings') ? undefined : ((json['realmMappings'] as Array<any>).map(RoleRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function MappingsRepresentationToJSON(value?: MappingsRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'clientMappings': value.clientMappings,
|
||||
'realmMappings': value.realmMappings === undefined ? undefined : ((value.realmMappings as Array<any>).map(RoleRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
105
backend/keycloak/kc-client/models/MemoryInfoRepresentation.ts
Normal file
105
backend/keycloak/kc-client/models/MemoryInfoRepresentation.ts
Normal file
@@ -0,0 +1,105 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface MemoryInfoRepresentation
|
||||
*/
|
||||
export interface MemoryInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
free?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
freeFormated?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
freePercentage?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
total?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
totalFormated?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
used?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof MemoryInfoRepresentation
|
||||
*/
|
||||
usedFormated?: string;
|
||||
}
|
||||
|
||||
export function MemoryInfoRepresentationFromJSON(json: any): MemoryInfoRepresentation {
|
||||
return MemoryInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function MemoryInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MemoryInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'free': !exists(json, 'free') ? undefined : json['free'],
|
||||
'freeFormated': !exists(json, 'freeFormated') ? undefined : json['freeFormated'],
|
||||
'freePercentage': !exists(json, 'freePercentage') ? undefined : json['freePercentage'],
|
||||
'total': !exists(json, 'total') ? undefined : json['total'],
|
||||
'totalFormated': !exists(json, 'totalFormated') ? undefined : json['totalFormated'],
|
||||
'used': !exists(json, 'used') ? undefined : json['used'],
|
||||
'usedFormated': !exists(json, 'usedFormated') ? undefined : json['usedFormated'],
|
||||
};
|
||||
}
|
||||
|
||||
export function MemoryInfoRepresentationToJSON(value?: MemoryInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'free': value.free,
|
||||
'freeFormated': value.freeFormated,
|
||||
'freePercentage': value.freePercentage,
|
||||
'total': value.total,
|
||||
'totalFormated': value.totalFormated,
|
||||
'used': value.used,
|
||||
'usedFormated': value.usedFormated,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
73
backend/keycloak/kc-client/models/MultivaluedHashMap.ts
Normal file
73
backend/keycloak/kc-client/models/MultivaluedHashMap.ts
Normal file
@@ -0,0 +1,73 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface MultivaluedHashMap
|
||||
*/
|
||||
export interface MultivaluedHashMap {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof MultivaluedHashMap
|
||||
*/
|
||||
empty?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof MultivaluedHashMap
|
||||
*/
|
||||
loadFactor?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof MultivaluedHashMap
|
||||
*/
|
||||
threshold?: number;
|
||||
}
|
||||
|
||||
export function MultivaluedHashMapFromJSON(json: any): MultivaluedHashMap {
|
||||
return MultivaluedHashMapFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function MultivaluedHashMapFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultivaluedHashMap {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'empty': !exists(json, 'empty') ? undefined : json['empty'],
|
||||
'loadFactor': !exists(json, 'loadFactor') ? undefined : json['loadFactor'],
|
||||
'threshold': !exists(json, 'threshold') ? undefined : json['threshold'],
|
||||
};
|
||||
}
|
||||
|
||||
export function MultivaluedHashMapToJSON(value?: MultivaluedHashMap | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'empty': value.empty,
|
||||
'loadFactor': value.loadFactor,
|
||||
'threshold': value.threshold,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
138
backend/keycloak/kc-client/models/PartialImportRepresentation.ts
Normal file
138
backend/keycloak/kc-client/models/PartialImportRepresentation.ts
Normal file
@@ -0,0 +1,138 @@
|
||||
/* 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 {
|
||||
ClientRepresentation,
|
||||
ClientRepresentationFromJSON,
|
||||
ClientRepresentationFromJSONTyped,
|
||||
ClientRepresentationToJSON,
|
||||
GroupRepresentation,
|
||||
GroupRepresentationFromJSON,
|
||||
GroupRepresentationFromJSONTyped,
|
||||
GroupRepresentationToJSON,
|
||||
IdentityProviderRepresentation,
|
||||
IdentityProviderRepresentationFromJSON,
|
||||
IdentityProviderRepresentationFromJSONTyped,
|
||||
IdentityProviderRepresentationToJSON,
|
||||
RolesRepresentation,
|
||||
RolesRepresentationFromJSON,
|
||||
RolesRepresentationFromJSONTyped,
|
||||
RolesRepresentationToJSON,
|
||||
UserRepresentation,
|
||||
UserRepresentationFromJSON,
|
||||
UserRepresentationFromJSONTyped,
|
||||
UserRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PartialImportRepresentation
|
||||
*/
|
||||
export interface PartialImportRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {Array<ClientRepresentation>}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
clients?: Array<ClientRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<GroupRepresentation>}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
groups?: Array<GroupRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<IdentityProviderRepresentation>}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
identityProviders?: Array<IdentityProviderRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
ifResourceExists?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
policy?: PartialImportRepresentationPolicyEnum;
|
||||
/**
|
||||
*
|
||||
* @type {RolesRepresentation}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
roles?: RolesRepresentation;
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserRepresentation>}
|
||||
* @memberof PartialImportRepresentation
|
||||
*/
|
||||
users?: Array<UserRepresentation>;
|
||||
}
|
||||
|
||||
export function PartialImportRepresentationFromJSON(json: any): PartialImportRepresentation {
|
||||
return PartialImportRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PartialImportRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartialImportRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'clients': !exists(json, 'clients') ? undefined : ((json['clients'] as Array<any>).map(ClientRepresentationFromJSON)),
|
||||
'groups': !exists(json, 'groups') ? undefined : ((json['groups'] as Array<any>).map(GroupRepresentationFromJSON)),
|
||||
'identityProviders': !exists(json, 'identityProviders') ? undefined : ((json['identityProviders'] as Array<any>).map(IdentityProviderRepresentationFromJSON)),
|
||||
'ifResourceExists': !exists(json, 'ifResourceExists') ? undefined : json['ifResourceExists'],
|
||||
'policy': !exists(json, 'policy') ? undefined : json['policy'],
|
||||
'roles': !exists(json, 'roles') ? undefined : RolesRepresentationFromJSON(json['roles']),
|
||||
'users': !exists(json, 'users') ? undefined : ((json['users'] as Array<any>).map(UserRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function PartialImportRepresentationToJSON(value?: PartialImportRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'clients': value.clients === undefined ? undefined : ((value.clients as Array<any>).map(ClientRepresentationToJSON)),
|
||||
'groups': value.groups === undefined ? undefined : ((value.groups as Array<any>).map(GroupRepresentationToJSON)),
|
||||
'identityProviders': value.identityProviders === undefined ? undefined : ((value.identityProviders as Array<any>).map(IdentityProviderRepresentationToJSON)),
|
||||
'ifResourceExists': value.ifResourceExists,
|
||||
'policy': value.policy,
|
||||
'roles': RolesRepresentationToJSON(value.roles),
|
||||
'users': value.users === undefined ? undefined : ((value.users as Array<any>).map(UserRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum PartialImportRepresentationPolicyEnum {
|
||||
SKIP = 'SKIP',
|
||||
OVERWRITE = 'OVERWRITE',
|
||||
FAIL = 'FAIL'
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PasswordPolicyTypeRepresentation
|
||||
*/
|
||||
export interface PasswordPolicyTypeRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PasswordPolicyTypeRepresentation
|
||||
*/
|
||||
configType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PasswordPolicyTypeRepresentation
|
||||
*/
|
||||
defaultValue?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PasswordPolicyTypeRepresentation
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PasswordPolicyTypeRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof PasswordPolicyTypeRepresentation
|
||||
*/
|
||||
multipleSupported?: boolean;
|
||||
}
|
||||
|
||||
export function PasswordPolicyTypeRepresentationFromJSON(json: any): PasswordPolicyTypeRepresentation {
|
||||
return PasswordPolicyTypeRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PasswordPolicyTypeRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordPolicyTypeRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'configType': !exists(json, 'configType') ? undefined : json['configType'],
|
||||
'defaultValue': !exists(json, 'defaultValue') ? undefined : json['defaultValue'],
|
||||
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'multipleSupported': !exists(json, 'multipleSupported') ? undefined : json['multipleSupported'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PasswordPolicyTypeRepresentationToJSON(value?: PasswordPolicyTypeRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'configType': value.configType,
|
||||
'defaultValue': value.defaultValue,
|
||||
'displayName': value.displayName,
|
||||
'id': value.id,
|
||||
'multipleSupported': value.multipleSupported,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
81
backend/keycloak/kc-client/models/Permission.ts
Normal file
81
backend/keycloak/kc-client/models/Permission.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface Permission
|
||||
*/
|
||||
export interface Permission {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof Permission
|
||||
*/
|
||||
claims?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Permission
|
||||
*/
|
||||
rsid?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof Permission
|
||||
*/
|
||||
rsname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof Permission
|
||||
*/
|
||||
scopes?: Array<string>;
|
||||
}
|
||||
|
||||
export function PermissionFromJSON(json: any): Permission {
|
||||
return PermissionFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PermissionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Permission {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'claims': !exists(json, 'claims') ? undefined : json['claims'],
|
||||
'rsid': !exists(json, 'rsid') ? undefined : json['rsid'],
|
||||
'rsname': !exists(json, 'rsname') ? undefined : json['rsname'],
|
||||
'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PermissionToJSON(value?: Permission | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'claims': value.claims,
|
||||
'rsid': value.rsid,
|
||||
'rsname': value.rsname,
|
||||
'scopes': value.scopes,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
182
backend/keycloak/kc-client/models/PolicyRepresentation.ts
Normal file
182
backend/keycloak/kc-client/models/PolicyRepresentation.ts
Normal file
@@ -0,0 +1,182 @@
|
||||
/* 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 {
|
||||
ResourceRepresentation,
|
||||
ResourceRepresentationFromJSON,
|
||||
ResourceRepresentationFromJSONTyped,
|
||||
ResourceRepresentationToJSON,
|
||||
ScopeRepresentation,
|
||||
ScopeRepresentationFromJSON,
|
||||
ScopeRepresentationFromJSONTyped,
|
||||
ScopeRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PolicyRepresentation
|
||||
*/
|
||||
export interface PolicyRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
decisionStrategy?: PolicyRepresentationDecisionStrategyEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
logic?: PolicyRepresentationLogicEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
owner?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
policies?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
resources?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ResourceRepresentation>}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
resourcesData?: Array<ResourceRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
scopes?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ScopeRepresentation>}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
scopesData?: Array<ScopeRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PolicyRepresentation
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export function PolicyRepresentationFromJSON(json: any): PolicyRepresentation {
|
||||
return PolicyRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PolicyRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolicyRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'decisionStrategy': !exists(json, 'decisionStrategy') ? undefined : json['decisionStrategy'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'logic': !exists(json, 'logic') ? undefined : json['logic'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'owner': !exists(json, 'owner') ? undefined : json['owner'],
|
||||
'policies': !exists(json, 'policies') ? undefined : json['policies'],
|
||||
'resources': !exists(json, 'resources') ? undefined : json['resources'],
|
||||
'resourcesData': !exists(json, 'resourcesData') ? undefined : ((json['resourcesData'] as Array<any>).map(ResourceRepresentationFromJSON)),
|
||||
'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],
|
||||
'scopesData': !exists(json, 'scopesData') ? undefined : ((json['scopesData'] as Array<any>).map(ScopeRepresentationFromJSON)),
|
||||
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||
};
|
||||
}
|
||||
|
||||
export function PolicyRepresentationToJSON(value?: PolicyRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': value.config,
|
||||
'decisionStrategy': value.decisionStrategy,
|
||||
'description': value.description,
|
||||
'id': value.id,
|
||||
'logic': value.logic,
|
||||
'name': value.name,
|
||||
'owner': value.owner,
|
||||
'policies': value.policies,
|
||||
'resources': value.resources,
|
||||
'resourcesData': value.resourcesData === undefined ? undefined : ((value.resourcesData as Array<any>).map(ResourceRepresentationToJSON)),
|
||||
'scopes': value.scopes,
|
||||
'scopesData': value.scopesData === undefined ? undefined : ((value.scopesData as Array<any>).map(ScopeRepresentationToJSON)),
|
||||
'type': value.type,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum PolicyRepresentationDecisionStrategyEnum {
|
||||
AFFIRMATIVE = 'AFFIRMATIVE',
|
||||
UNANIMOUS = 'UNANIMOUS',
|
||||
CONSENSUS = 'CONSENSUS'
|
||||
}
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum PolicyRepresentationLogicEnum {
|
||||
POSITIVE = 'POSITIVE',
|
||||
NEGATIVE = 'NEGATIVE'
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ProfileInfoRepresentation
|
||||
*/
|
||||
export interface ProfileInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ProfileInfoRepresentation
|
||||
*/
|
||||
disabledFeatures?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ProfileInfoRepresentation
|
||||
*/
|
||||
experimentalFeatures?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ProfileInfoRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ProfileInfoRepresentation
|
||||
*/
|
||||
previewFeatures?: Array<string>;
|
||||
}
|
||||
|
||||
export function ProfileInfoRepresentationFromJSON(json: any): ProfileInfoRepresentation {
|
||||
return ProfileInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ProfileInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'disabledFeatures': !exists(json, 'disabledFeatures') ? undefined : json['disabledFeatures'],
|
||||
'experimentalFeatures': !exists(json, 'experimentalFeatures') ? undefined : json['experimentalFeatures'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'previewFeatures': !exists(json, 'previewFeatures') ? undefined : json['previewFeatures'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ProfileInfoRepresentationToJSON(value?: ProfileInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'disabledFeatures': value.disabledFeatures,
|
||||
'experimentalFeatures': value.experimentalFeatures,
|
||||
'name': value.name,
|
||||
'previewFeatures': value.previewFeatures,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ProtocolMapperRepresentation
|
||||
*/
|
||||
export interface ProtocolMapperRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ProtocolMapperRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ProtocolMapperRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ProtocolMapperRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ProtocolMapperRepresentation
|
||||
*/
|
||||
protocol?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ProtocolMapperRepresentation
|
||||
*/
|
||||
protocolMapper?: string;
|
||||
}
|
||||
|
||||
export function ProtocolMapperRepresentationFromJSON(json: any): ProtocolMapperRepresentation {
|
||||
return ProtocolMapperRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ProtocolMapperRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProtocolMapperRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'protocol': !exists(json, 'protocol') ? undefined : json['protocol'],
|
||||
'protocolMapper': !exists(json, 'protocolMapper') ? undefined : json['protocolMapper'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ProtocolMapperRepresentationToJSON(value?: ProtocolMapperRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': value.config,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'protocol': value.protocol,
|
||||
'protocolMapper': value.protocolMapper,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
65
backend/keycloak/kc-client/models/ProviderRepresentation.ts
Normal file
65
backend/keycloak/kc-client/models/ProviderRepresentation.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ProviderRepresentation
|
||||
*/
|
||||
export interface ProviderRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ProviderRepresentation
|
||||
*/
|
||||
operationalInfo?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ProviderRepresentation
|
||||
*/
|
||||
order?: number;
|
||||
}
|
||||
|
||||
export function ProviderRepresentationFromJSON(json: any): ProviderRepresentation {
|
||||
return ProviderRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ProviderRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProviderRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'operationalInfo': !exists(json, 'operationalInfo') ? undefined : json['operationalInfo'],
|
||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ProviderRepresentationToJSON(value?: ProviderRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'operationalInfo': value.operationalInfo,
|
||||
'order': value.order,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RealmEventsConfigRepresentation
|
||||
*/
|
||||
export interface RealmEventsConfigRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RealmEventsConfigRepresentation
|
||||
*/
|
||||
adminEventsDetailsEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RealmEventsConfigRepresentation
|
||||
*/
|
||||
adminEventsEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof RealmEventsConfigRepresentation
|
||||
*/
|
||||
enabledEventTypes?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RealmEventsConfigRepresentation
|
||||
*/
|
||||
eventsEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RealmEventsConfigRepresentation
|
||||
*/
|
||||
eventsExpiration?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof RealmEventsConfigRepresentation
|
||||
*/
|
||||
eventsListeners?: Array<string>;
|
||||
}
|
||||
|
||||
export function RealmEventsConfigRepresentationFromJSON(json: any): RealmEventsConfigRepresentation {
|
||||
return RealmEventsConfigRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RealmEventsConfigRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RealmEventsConfigRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'adminEventsDetailsEnabled': !exists(json, 'adminEventsDetailsEnabled') ? undefined : json['adminEventsDetailsEnabled'],
|
||||
'adminEventsEnabled': !exists(json, 'adminEventsEnabled') ? undefined : json['adminEventsEnabled'],
|
||||
'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'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RealmEventsConfigRepresentationToJSON(value?: RealmEventsConfigRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'adminEventsDetailsEnabled': value.adminEventsDetailsEnabled,
|
||||
'adminEventsEnabled': value.adminEventsEnabled,
|
||||
'enabledEventTypes': value.enabledEventTypes,
|
||||
'eventsEnabled': value.eventsEnabled,
|
||||
'eventsExpiration': value.eventsExpiration,
|
||||
'eventsListeners': value.eventsListeners,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
1104
backend/keycloak/kc-client/models/RealmRepresentation.ts
Normal file
1104
backend/keycloak/kc-client/models/RealmRepresentation.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,105 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RequiredActionProviderRepresentation
|
||||
*/
|
||||
export interface RequiredActionProviderRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
defaultAction?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RequiredActionProviderRepresentation
|
||||
*/
|
||||
providerId?: string;
|
||||
}
|
||||
|
||||
export function RequiredActionProviderRepresentationFromJSON(json: any): RequiredActionProviderRepresentation {
|
||||
return RequiredActionProviderRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RequiredActionProviderRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequiredActionProviderRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': !exists(json, 'alias') ? undefined : json['alias'],
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'defaultAction': !exists(json, 'defaultAction') ? undefined : json['defaultAction'],
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
||||
'providerId': !exists(json, 'providerId') ? undefined : json['providerId'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RequiredActionProviderRepresentationToJSON(value?: RequiredActionProviderRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'alias': value.alias,
|
||||
'config': value.config,
|
||||
'defaultAction': value.defaultAction,
|
||||
'enabled': value.enabled,
|
||||
'name': value.name,
|
||||
'priority': value.priority,
|
||||
'providerId': value.providerId,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
128
backend/keycloak/kc-client/models/ResourceRepresentation.ts
Normal file
128
backend/keycloak/kc-client/models/ResourceRepresentation.ts
Normal file
@@ -0,0 +1,128 @@
|
||||
/* 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 {
|
||||
ScopeRepresentation,
|
||||
ScopeRepresentationFromJSON,
|
||||
ScopeRepresentationFromJSONTyped,
|
||||
ScopeRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResourceRepresentation
|
||||
*/
|
||||
export interface ResourceRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
attributes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
iconUri?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
ownerManagedAccess?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ScopeRepresentation>}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
scopes?: Array<ScopeRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ResourceRepresentation
|
||||
*/
|
||||
uris?: Array<string>;
|
||||
}
|
||||
|
||||
export function ResourceRepresentationFromJSON(json: any): ResourceRepresentation {
|
||||
return ResourceRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ResourceRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
||||
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
||||
'iconUri': !exists(json, 'icon_uri') ? undefined : json['icon_uri'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'ownerManagedAccess': !exists(json, 'ownerManagedAccess') ? undefined : json['ownerManagedAccess'],
|
||||
'scopes': !exists(json, 'scopes') ? undefined : ((json['scopes'] as Array<any>).map(ScopeRepresentationFromJSON)),
|
||||
'type': !exists(json, 'type') ? undefined : json['type'],
|
||||
'uris': !exists(json, 'uris') ? undefined : json['uris'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ResourceRepresentationToJSON(value?: ResourceRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value.id,
|
||||
'attributes': value.attributes,
|
||||
'displayName': value.displayName,
|
||||
'icon_uri': value.iconUri,
|
||||
'name': value.name,
|
||||
'ownerManagedAccess': value.ownerManagedAccess,
|
||||
'scopes': value.scopes === undefined ? undefined : ((value.scopes as Array<any>).map(ScopeRepresentationToJSON)),
|
||||
'type': value.type,
|
||||
'uris': value.uris,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,155 @@
|
||||
/* 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 {
|
||||
PolicyRepresentation,
|
||||
PolicyRepresentationFromJSON,
|
||||
PolicyRepresentationFromJSONTyped,
|
||||
PolicyRepresentationToJSON,
|
||||
ResourceRepresentation,
|
||||
ResourceRepresentationFromJSON,
|
||||
ResourceRepresentationFromJSONTyped,
|
||||
ResourceRepresentationToJSON,
|
||||
ScopeRepresentation,
|
||||
ScopeRepresentationFromJSON,
|
||||
ScopeRepresentationFromJSONTyped,
|
||||
ScopeRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ResourceServerRepresentation
|
||||
*/
|
||||
export interface ResourceServerRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
allowRemoteResourceManagement?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
clientId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
decisionStrategy?: ResourceServerRepresentationDecisionStrategyEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PolicyRepresentation>}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
policies?: Array<PolicyRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
policyEnforcementMode?: ResourceServerRepresentationPolicyEnforcementModeEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ResourceRepresentation>}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
resources?: Array<ResourceRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ScopeRepresentation>}
|
||||
* @memberof ResourceServerRepresentation
|
||||
*/
|
||||
scopes?: Array<ScopeRepresentation>;
|
||||
}
|
||||
|
||||
export function ResourceServerRepresentationFromJSON(json: any): ResourceServerRepresentation {
|
||||
return ResourceServerRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ResourceServerRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceServerRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'allowRemoteResourceManagement': !exists(json, 'allowRemoteResourceManagement') ? undefined : json['allowRemoteResourceManagement'],
|
||||
'clientId': !exists(json, 'clientId') ? undefined : json['clientId'],
|
||||
'decisionStrategy': !exists(json, 'decisionStrategy') ? undefined : json['decisionStrategy'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'policies': !exists(json, 'policies') ? undefined : ((json['policies'] as Array<any>).map(PolicyRepresentationFromJSON)),
|
||||
'policyEnforcementMode': !exists(json, 'policyEnforcementMode') ? undefined : json['policyEnforcementMode'],
|
||||
'resources': !exists(json, 'resources') ? undefined : ((json['resources'] as Array<any>).map(ResourceRepresentationFromJSON)),
|
||||
'scopes': !exists(json, 'scopes') ? undefined : ((json['scopes'] as Array<any>).map(ScopeRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ResourceServerRepresentationToJSON(value?: ResourceServerRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'allowRemoteResourceManagement': value.allowRemoteResourceManagement,
|
||||
'clientId': value.clientId,
|
||||
'decisionStrategy': value.decisionStrategy,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'policies': value.policies === undefined ? undefined : ((value.policies as Array<any>).map(PolicyRepresentationToJSON)),
|
||||
'policyEnforcementMode': value.policyEnforcementMode,
|
||||
'resources': value.resources === undefined ? undefined : ((value.resources as Array<any>).map(ResourceRepresentationToJSON)),
|
||||
'scopes': value.scopes === undefined ? undefined : ((value.scopes as Array<any>).map(ScopeRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum ResourceServerRepresentationDecisionStrategyEnum {
|
||||
AFFIRMATIVE = 'AFFIRMATIVE',
|
||||
UNANIMOUS = 'UNANIMOUS',
|
||||
CONSENSUS = 'CONSENSUS'
|
||||
}
|
||||
/**
|
||||
* @export
|
||||
* @enum {string}
|
||||
*/
|
||||
export enum ResourceServerRepresentationPolicyEnforcementModeEnum {
|
||||
ENFORCING = 'ENFORCING',
|
||||
PERMISSIVE = 'PERMISSIVE',
|
||||
DISABLED = 'DISABLED'
|
||||
}
|
||||
|
||||
|
||||
120
backend/keycloak/kc-client/models/RoleRepresentation.ts
Normal file
120
backend/keycloak/kc-client/models/RoleRepresentation.ts
Normal file
@@ -0,0 +1,120 @@
|
||||
/* 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 {
|
||||
RoleRepresentationComposites,
|
||||
RoleRepresentationCompositesFromJSON,
|
||||
RoleRepresentationCompositesFromJSONTyped,
|
||||
RoleRepresentationCompositesToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RoleRepresentation
|
||||
*/
|
||||
export interface RoleRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
attributes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
clientRole?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
composite?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {RoleRepresentationComposites}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
composites?: RoleRepresentationComposites;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
containerId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoleRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function RoleRepresentationFromJSON(json: any): RoleRepresentation {
|
||||
return RoleRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RoleRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
||||
'clientRole': !exists(json, 'clientRole') ? undefined : json['clientRole'],
|
||||
'composite': !exists(json, 'composite') ? undefined : json['composite'],
|
||||
'composites': !exists(json, 'composites') ? undefined : RoleRepresentationCompositesFromJSON(json['composites']),
|
||||
'containerId': !exists(json, 'containerId') ? undefined : json['containerId'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RoleRepresentationToJSON(value?: RoleRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'attributes': value.attributes,
|
||||
'clientRole': value.clientRole,
|
||||
'composite': value.composite,
|
||||
'composites': RoleRepresentationCompositesToJSON(value.composites),
|
||||
'containerId': value.containerId,
|
||||
'description': value.description,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RoleRepresentationComposites
|
||||
*/
|
||||
export interface RoleRepresentationComposites {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof RoleRepresentationComposites
|
||||
*/
|
||||
client?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof RoleRepresentationComposites
|
||||
*/
|
||||
realm?: Array<string>;
|
||||
}
|
||||
|
||||
export function RoleRepresentationCompositesFromJSON(json: any): RoleRepresentationComposites {
|
||||
return RoleRepresentationCompositesFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RoleRepresentationCompositesFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleRepresentationComposites {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': !exists(json, 'client') ? undefined : json['client'],
|
||||
'realm': !exists(json, 'realm') ? undefined : json['realm'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RoleRepresentationCompositesToJSON(value?: RoleRepresentationComposites | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': value.client,
|
||||
'realm': value.realm,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
72
backend/keycloak/kc-client/models/RolesRepresentation.ts
Normal file
72
backend/keycloak/kc-client/models/RolesRepresentation.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
/* 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 {
|
||||
RoleRepresentation,
|
||||
RoleRepresentationFromJSON,
|
||||
RoleRepresentationFromJSONTyped,
|
||||
RoleRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RolesRepresentation
|
||||
*/
|
||||
export interface RolesRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof RolesRepresentation
|
||||
*/
|
||||
client?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<RoleRepresentation>}
|
||||
* @memberof RolesRepresentation
|
||||
*/
|
||||
realm?: Array<RoleRepresentation>;
|
||||
}
|
||||
|
||||
export function RolesRepresentationFromJSON(json: any): RolesRepresentation {
|
||||
return RolesRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RolesRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): RolesRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': !exists(json, 'client') ? undefined : json['client'],
|
||||
'realm': !exists(json, 'realm') ? undefined : ((json['realm'] as Array<any>).map(RoleRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function RolesRepresentationToJSON(value?: RolesRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': value.client,
|
||||
'realm': value.realm === undefined ? undefined : ((value.realm as Array<any>).map(RoleRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ScopeMappingRepresentation
|
||||
*/
|
||||
export interface ScopeMappingRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeMappingRepresentation
|
||||
*/
|
||||
client?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeMappingRepresentation
|
||||
*/
|
||||
clientScope?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof ScopeMappingRepresentation
|
||||
*/
|
||||
roles?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeMappingRepresentation
|
||||
*/
|
||||
self?: string;
|
||||
}
|
||||
|
||||
export function ScopeMappingRepresentationFromJSON(json: any): ScopeMappingRepresentation {
|
||||
return ScopeMappingRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ScopeMappingRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScopeMappingRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': !exists(json, 'client') ? undefined : json['client'],
|
||||
'clientScope': !exists(json, 'clientScope') ? undefined : json['clientScope'],
|
||||
'roles': !exists(json, 'roles') ? undefined : json['roles'],
|
||||
'self': !exists(json, 'self') ? undefined : json['self'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ScopeMappingRepresentationToJSON(value?: ScopeMappingRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'client': value.client,
|
||||
'clientScope': value.clientScope,
|
||||
'roles': value.roles,
|
||||
'self': value.self,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
108
backend/keycloak/kc-client/models/ScopeRepresentation.ts
Normal file
108
backend/keycloak/kc-client/models/ScopeRepresentation.ts
Normal file
@@ -0,0 +1,108 @@
|
||||
/* 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 {
|
||||
PolicyRepresentation,
|
||||
PolicyRepresentationFromJSON,
|
||||
PolicyRepresentationFromJSONTyped,
|
||||
PolicyRepresentationToJSON,
|
||||
ResourceRepresentation,
|
||||
ResourceRepresentationFromJSON,
|
||||
ResourceRepresentationFromJSONTyped,
|
||||
ResourceRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ScopeRepresentation
|
||||
*/
|
||||
export interface ScopeRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeRepresentation
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeRepresentation
|
||||
*/
|
||||
iconUri?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ScopeRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PolicyRepresentation>}
|
||||
* @memberof ScopeRepresentation
|
||||
*/
|
||||
policies?: Array<PolicyRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ResourceRepresentation>}
|
||||
* @memberof ScopeRepresentation
|
||||
*/
|
||||
resources?: Array<ResourceRepresentation>;
|
||||
}
|
||||
|
||||
export function ScopeRepresentationFromJSON(json: any): ScopeRepresentation {
|
||||
return ScopeRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ScopeRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScopeRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
||||
'iconUri': !exists(json, 'iconUri') ? undefined : json['iconUri'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'policies': !exists(json, 'policies') ? undefined : ((json['policies'] as Array<any>).map(PolicyRepresentationFromJSON)),
|
||||
'resources': !exists(json, 'resources') ? undefined : ((json['resources'] as Array<any>).map(ResourceRepresentationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ScopeRepresentationToJSON(value?: ScopeRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'displayName': value.displayName,
|
||||
'iconUri': value.iconUri,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
'policies': value.policies === undefined ? undefined : ((value.policies as Array<any>).map(PolicyRepresentationToJSON)),
|
||||
'resources': value.resources === undefined ? undefined : ((value.resources as Array<any>).map(ResourceRepresentationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
180
backend/keycloak/kc-client/models/ServerInfoRepresentation.ts
Normal file
180
backend/keycloak/kc-client/models/ServerInfoRepresentation.ts
Normal file
@@ -0,0 +1,180 @@
|
||||
/* 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 {
|
||||
MemoryInfoRepresentation,
|
||||
MemoryInfoRepresentationFromJSON,
|
||||
MemoryInfoRepresentationFromJSONTyped,
|
||||
MemoryInfoRepresentationToJSON,
|
||||
PasswordPolicyTypeRepresentation,
|
||||
PasswordPolicyTypeRepresentationFromJSON,
|
||||
PasswordPolicyTypeRepresentationFromJSONTyped,
|
||||
PasswordPolicyTypeRepresentationToJSON,
|
||||
ProfileInfoRepresentation,
|
||||
ProfileInfoRepresentationFromJSON,
|
||||
ProfileInfoRepresentationFromJSONTyped,
|
||||
ProfileInfoRepresentationToJSON,
|
||||
SystemInfoRepresentation,
|
||||
SystemInfoRepresentationFromJSON,
|
||||
SystemInfoRepresentationFromJSONTyped,
|
||||
SystemInfoRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ServerInfoRepresentation
|
||||
*/
|
||||
export interface ServerInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
builtinProtocolMappers?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<{ [key: string]: object; }>}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
clientImporters?: Array<{ [key: string]: object; }>;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
clientInstallations?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
componentTypes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
enums?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<{ [key: string]: object; }>}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
identityProviders?: Array<{ [key: string]: object; }>;
|
||||
/**
|
||||
*
|
||||
* @type {MemoryInfoRepresentation}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
memoryInfo?: MemoryInfoRepresentation;
|
||||
/**
|
||||
*
|
||||
* @type {Array<PasswordPolicyTypeRepresentation>}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
passwordPolicies?: Array<PasswordPolicyTypeRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {ProfileInfoRepresentation}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
profileInfo?: ProfileInfoRepresentation;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
protocolMapperTypes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
providers?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<{ [key: string]: object; }>}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
socialProviders?: Array<{ [key: string]: object; }>;
|
||||
/**
|
||||
*
|
||||
* @type {SystemInfoRepresentation}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
systemInfo?: SystemInfoRepresentation;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof ServerInfoRepresentation
|
||||
*/
|
||||
themes?: { [key: string]: object; };
|
||||
}
|
||||
|
||||
export function ServerInfoRepresentationFromJSON(json: any): ServerInfoRepresentation {
|
||||
return ServerInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ServerInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'builtinProtocolMappers': !exists(json, 'builtinProtocolMappers') ? undefined : json['builtinProtocolMappers'],
|
||||
'clientImporters': !exists(json, 'clientImporters') ? undefined : json['clientImporters'],
|
||||
'clientInstallations': !exists(json, 'clientInstallations') ? undefined : json['clientInstallations'],
|
||||
'componentTypes': !exists(json, 'componentTypes') ? undefined : json['componentTypes'],
|
||||
'enums': !exists(json, 'enums') ? undefined : json['enums'],
|
||||
'identityProviders': !exists(json, 'identityProviders') ? undefined : json['identityProviders'],
|
||||
'memoryInfo': !exists(json, 'memoryInfo') ? undefined : MemoryInfoRepresentationFromJSON(json['memoryInfo']),
|
||||
'passwordPolicies': !exists(json, 'passwordPolicies') ? undefined : ((json['passwordPolicies'] as Array<any>).map(PasswordPolicyTypeRepresentationFromJSON)),
|
||||
'profileInfo': !exists(json, 'profileInfo') ? undefined : ProfileInfoRepresentationFromJSON(json['profileInfo']),
|
||||
'protocolMapperTypes': !exists(json, 'protocolMapperTypes') ? undefined : json['protocolMapperTypes'],
|
||||
'providers': !exists(json, 'providers') ? undefined : json['providers'],
|
||||
'socialProviders': !exists(json, 'socialProviders') ? undefined : json['socialProviders'],
|
||||
'systemInfo': !exists(json, 'systemInfo') ? undefined : SystemInfoRepresentationFromJSON(json['systemInfo']),
|
||||
'themes': !exists(json, 'themes') ? undefined : json['themes'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ServerInfoRepresentationToJSON(value?: ServerInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'builtinProtocolMappers': value.builtinProtocolMappers,
|
||||
'clientImporters': value.clientImporters,
|
||||
'clientInstallations': value.clientInstallations,
|
||||
'componentTypes': value.componentTypes,
|
||||
'enums': value.enums,
|
||||
'identityProviders': value.identityProviders,
|
||||
'memoryInfo': MemoryInfoRepresentationToJSON(value.memoryInfo),
|
||||
'passwordPolicies': value.passwordPolicies === undefined ? undefined : ((value.passwordPolicies as Array<any>).map(PasswordPolicyTypeRepresentationToJSON)),
|
||||
'profileInfo': ProfileInfoRepresentationToJSON(value.profileInfo),
|
||||
'protocolMapperTypes': value.protocolMapperTypes,
|
||||
'providers': value.providers,
|
||||
'socialProviders': value.socialProviders,
|
||||
'systemInfo': SystemInfoRepresentationToJSON(value.systemInfo),
|
||||
'themes': value.themes,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
65
backend/keycloak/kc-client/models/SpiInfoRepresentation.ts
Normal file
65
backend/keycloak/kc-client/models/SpiInfoRepresentation.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SpiInfoRepresentation
|
||||
*/
|
||||
export interface SpiInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof SpiInfoRepresentation
|
||||
*/
|
||||
internal?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof SpiInfoRepresentation
|
||||
*/
|
||||
providers?: { [key: string]: object; };
|
||||
}
|
||||
|
||||
export function SpiInfoRepresentationFromJSON(json: any): SpiInfoRepresentation {
|
||||
return SpiInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SpiInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SpiInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'internal': !exists(json, 'internal') ? undefined : json['internal'],
|
||||
'providers': !exists(json, 'providers') ? undefined : json['providers'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SpiInfoRepresentationToJSON(value?: SpiInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'internal': value.internal,
|
||||
'providers': value.providers,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
97
backend/keycloak/kc-client/models/SynchronizationResult.ts
Normal file
97
backend/keycloak/kc-client/models/SynchronizationResult.ts
Normal file
@@ -0,0 +1,97 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SynchronizationResult
|
||||
*/
|
||||
export interface SynchronizationResult {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SynchronizationResult
|
||||
*/
|
||||
added?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SynchronizationResult
|
||||
*/
|
||||
failed?: number;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof SynchronizationResult
|
||||
*/
|
||||
ignored?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SynchronizationResult
|
||||
*/
|
||||
removed?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SynchronizationResult
|
||||
*/
|
||||
status?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SynchronizationResult
|
||||
*/
|
||||
updated?: number;
|
||||
}
|
||||
|
||||
export function SynchronizationResultFromJSON(json: any): SynchronizationResult {
|
||||
return SynchronizationResultFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SynchronizationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): SynchronizationResult {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'added': !exists(json, 'added') ? undefined : json['added'],
|
||||
'failed': !exists(json, 'failed') ? undefined : json['failed'],
|
||||
'ignored': !exists(json, 'ignored') ? undefined : json['ignored'],
|
||||
'removed': !exists(json, 'removed') ? undefined : json['removed'],
|
||||
'status': !exists(json, 'status') ? undefined : json['status'],
|
||||
'updated': !exists(json, 'updated') ? undefined : json['updated'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SynchronizationResultToJSON(value?: SynchronizationResult | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'added': value.added,
|
||||
'failed': value.failed,
|
||||
'ignored': value.ignored,
|
||||
'removed': value.removed,
|
||||
'status': value.status,
|
||||
'updated': value.updated,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
193
backend/keycloak/kc-client/models/SystemInfoRepresentation.ts
Normal file
193
backend/keycloak/kc-client/models/SystemInfoRepresentation.ts
Normal file
@@ -0,0 +1,193 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SystemInfoRepresentation
|
||||
*/
|
||||
export interface SystemInfoRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
fileEncoding?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
javaHome?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
javaRuntime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
javaVendor?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
javaVersion?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
javaVm?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
javaVmVersion?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
osArchitecture?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
osName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
osVersion?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
serverTime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
uptime?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
uptimeMillis?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
userDir?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
userLocale?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
userName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
userTimezone?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemInfoRepresentation
|
||||
*/
|
||||
version?: string;
|
||||
}
|
||||
|
||||
export function SystemInfoRepresentationFromJSON(json: any): SystemInfoRepresentation {
|
||||
return SystemInfoRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SystemInfoRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemInfoRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'fileEncoding': !exists(json, 'fileEncoding') ? undefined : json['fileEncoding'],
|
||||
'javaHome': !exists(json, 'javaHome') ? undefined : json['javaHome'],
|
||||
'javaRuntime': !exists(json, 'javaRuntime') ? undefined : json['javaRuntime'],
|
||||
'javaVendor': !exists(json, 'javaVendor') ? undefined : json['javaVendor'],
|
||||
'javaVersion': !exists(json, 'javaVersion') ? undefined : json['javaVersion'],
|
||||
'javaVm': !exists(json, 'javaVm') ? undefined : json['javaVm'],
|
||||
'javaVmVersion': !exists(json, 'javaVmVersion') ? undefined : json['javaVmVersion'],
|
||||
'osArchitecture': !exists(json, 'osArchitecture') ? undefined : json['osArchitecture'],
|
||||
'osName': !exists(json, 'osName') ? undefined : json['osName'],
|
||||
'osVersion': !exists(json, 'osVersion') ? undefined : json['osVersion'],
|
||||
'serverTime': !exists(json, 'serverTime') ? undefined : json['serverTime'],
|
||||
'uptime': !exists(json, 'uptime') ? undefined : json['uptime'],
|
||||
'uptimeMillis': !exists(json, 'uptimeMillis') ? undefined : json['uptimeMillis'],
|
||||
'userDir': !exists(json, 'userDir') ? undefined : json['userDir'],
|
||||
'userLocale': !exists(json, 'userLocale') ? undefined : json['userLocale'],
|
||||
'userName': !exists(json, 'userName') ? undefined : json['userName'],
|
||||
'userTimezone': !exists(json, 'userTimezone') ? undefined : json['userTimezone'],
|
||||
'version': !exists(json, 'version') ? undefined : json['version'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SystemInfoRepresentationToJSON(value?: SystemInfoRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'fileEncoding': value.fileEncoding,
|
||||
'javaHome': value.javaHome,
|
||||
'javaRuntime': value.javaRuntime,
|
||||
'javaVendor': value.javaVendor,
|
||||
'javaVersion': value.javaVersion,
|
||||
'javaVm': value.javaVm,
|
||||
'javaVmVersion': value.javaVmVersion,
|
||||
'osArchitecture': value.osArchitecture,
|
||||
'osName': value.osName,
|
||||
'osVersion': value.osVersion,
|
||||
'serverTime': value.serverTime,
|
||||
'uptime': value.uptime,
|
||||
'uptimeMillis': value.uptimeMillis,
|
||||
'userDir': value.userDir,
|
||||
'userLocale': value.userLocale,
|
||||
'userName': value.userName,
|
||||
'userTimezone': value.userTimezone,
|
||||
'version': value.version,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface TestLdapConnectionRepresentation
|
||||
*/
|
||||
export interface TestLdapConnectionRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
action?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
authType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
bindCredential?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
bindDn?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
componentId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
connectionTimeout?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
connectionUrl?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
startTls?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof TestLdapConnectionRepresentation
|
||||
*/
|
||||
useTruststoreSpi?: string;
|
||||
}
|
||||
|
||||
export function TestLdapConnectionRepresentationFromJSON(json: any): TestLdapConnectionRepresentation {
|
||||
return TestLdapConnectionRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function TestLdapConnectionRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): TestLdapConnectionRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'action': !exists(json, 'action') ? undefined : json['action'],
|
||||
'authType': !exists(json, 'authType') ? undefined : json['authType'],
|
||||
'bindCredential': !exists(json, 'bindCredential') ? undefined : json['bindCredential'],
|
||||
'bindDn': !exists(json, 'bindDn') ? undefined : json['bindDn'],
|
||||
'componentId': !exists(json, 'componentId') ? undefined : json['componentId'],
|
||||
'connectionTimeout': !exists(json, 'connectionTimeout') ? undefined : json['connectionTimeout'],
|
||||
'connectionUrl': !exists(json, 'connectionUrl') ? undefined : json['connectionUrl'],
|
||||
'startTls': !exists(json, 'startTls') ? undefined : json['startTls'],
|
||||
'useTruststoreSpi': !exists(json, 'useTruststoreSpi') ? undefined : json['useTruststoreSpi'],
|
||||
};
|
||||
}
|
||||
|
||||
export function TestLdapConnectionRepresentationToJSON(value?: TestLdapConnectionRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'action': value.action,
|
||||
'authType': value.authType,
|
||||
'bindCredential': value.bindCredential,
|
||||
'bindDn': value.bindDn,
|
||||
'componentId': value.componentId,
|
||||
'connectionTimeout': value.connectionTimeout,
|
||||
'connectionUrl': value.connectionUrl,
|
||||
'startTls': value.startTls,
|
||||
'useTruststoreSpi': value.useTruststoreSpi,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserConsentRepresentation
|
||||
*/
|
||||
export interface UserConsentRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserConsentRepresentation
|
||||
*/
|
||||
clientId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserConsentRepresentation
|
||||
*/
|
||||
createdDate?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof UserConsentRepresentation
|
||||
*/
|
||||
grantedClientScopes?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserConsentRepresentation
|
||||
*/
|
||||
lastUpdatedDate?: number;
|
||||
}
|
||||
|
||||
export function UserConsentRepresentationFromJSON(json: any): UserConsentRepresentation {
|
||||
return UserConsentRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserConsentRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConsentRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'clientId': !exists(json, 'clientId') ? undefined : json['clientId'],
|
||||
'createdDate': !exists(json, 'createdDate') ? undefined : json['createdDate'],
|
||||
'grantedClientScopes': !exists(json, 'grantedClientScopes') ? undefined : json['grantedClientScopes'],
|
||||
'lastUpdatedDate': !exists(json, 'lastUpdatedDate') ? undefined : json['lastUpdatedDate'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UserConsentRepresentationToJSON(value?: UserConsentRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'clientId': value.clientId,
|
||||
'createdDate': value.createdDate,
|
||||
'grantedClientScopes': value.grantedClientScopes,
|
||||
'lastUpdatedDate': value.lastUpdatedDate,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserFederationMapperRepresentation
|
||||
*/
|
||||
export interface UserFederationMapperRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof UserFederationMapperRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationMapperRepresentation
|
||||
*/
|
||||
federationMapperType?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationMapperRepresentation
|
||||
*/
|
||||
federationProviderDisplayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationMapperRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationMapperRepresentation
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function UserFederationMapperRepresentationFromJSON(json: any): UserFederationMapperRepresentation {
|
||||
return UserFederationMapperRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserFederationMapperRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserFederationMapperRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'federationMapperType': !exists(json, 'federationMapperType') ? undefined : json['federationMapperType'],
|
||||
'federationProviderDisplayName': !exists(json, 'federationProviderDisplayName') ? undefined : json['federationProviderDisplayName'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UserFederationMapperRepresentationToJSON(value?: UserFederationMapperRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'config': value.config,
|
||||
'federationMapperType': value.federationMapperType,
|
||||
'federationProviderDisplayName': value.federationProviderDisplayName,
|
||||
'id': value.id,
|
||||
'name': value.name,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* 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';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserFederationProviderRepresentation
|
||||
*/
|
||||
export interface UserFederationProviderRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
changedSyncPeriod?: number;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
config?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
fullSyncPeriod?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
lastSync?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
priority?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserFederationProviderRepresentation
|
||||
*/
|
||||
providerName?: string;
|
||||
}
|
||||
|
||||
export function UserFederationProviderRepresentationFromJSON(json: any): UserFederationProviderRepresentation {
|
||||
return UserFederationProviderRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserFederationProviderRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserFederationProviderRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'changedSyncPeriod': !exists(json, 'changedSyncPeriod') ? undefined : json['changedSyncPeriod'],
|
||||
'config': !exists(json, 'config') ? undefined : json['config'],
|
||||
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
|
||||
'fullSyncPeriod': !exists(json, 'fullSyncPeriod') ? undefined : json['fullSyncPeriod'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'lastSync': !exists(json, 'lastSync') ? undefined : json['lastSync'],
|
||||
'priority': !exists(json, 'priority') ? undefined : json['priority'],
|
||||
'providerName': !exists(json, 'providerName') ? undefined : json['providerName'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UserFederationProviderRepresentationToJSON(value?: UserFederationProviderRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'changedSyncPeriod': value.changedSyncPeriod,
|
||||
'config': value.config,
|
||||
'displayName': value.displayName,
|
||||
'fullSyncPeriod': value.fullSyncPeriod,
|
||||
'id': value.id,
|
||||
'lastSync': value.lastSync,
|
||||
'priority': value.priority,
|
||||
'providerName': value.providerName,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
248
backend/keycloak/kc-client/models/UserRepresentation.ts
Normal file
248
backend/keycloak/kc-client/models/UserRepresentation.ts
Normal file
@@ -0,0 +1,248 @@
|
||||
/* 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 {
|
||||
CredentialRepresentation,
|
||||
CredentialRepresentationFromJSON,
|
||||
CredentialRepresentationFromJSONTyped,
|
||||
CredentialRepresentationToJSON,
|
||||
FederatedIdentityRepresentation,
|
||||
FederatedIdentityRepresentationFromJSON,
|
||||
FederatedIdentityRepresentationFromJSONTyped,
|
||||
FederatedIdentityRepresentationToJSON,
|
||||
UserConsentRepresentation,
|
||||
UserConsentRepresentationFromJSON,
|
||||
UserConsentRepresentationFromJSONTyped,
|
||||
UserConsentRepresentationToJSON,
|
||||
} from './';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface UserRepresentation
|
||||
*/
|
||||
export interface UserRepresentation {
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
access?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
attributes?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {Array<UserConsentRepresentation>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
clientConsents?: Array<UserConsentRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {{ [key: string]: object; }}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
clientRoles?: { [key: string]: object; };
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
createdTimestamp?: number;
|
||||
/**
|
||||
*
|
||||
* @type {Array<CredentialRepresentation>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
credentials?: Array<CredentialRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
disableableCredentialTypes?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
emailVerified?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {Array<FederatedIdentityRepresentation>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
federatedIdentities?: Array<FederatedIdentityRepresentation>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
federationLink?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
firstName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
groups?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
lastName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
notBefore?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
origin?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
realmRoles?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<string>}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
requiredActions?: Array<string>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
self?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
serviceAccountClientId?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof UserRepresentation
|
||||
*/
|
||||
username?: string;
|
||||
}
|
||||
|
||||
export function UserRepresentationFromJSON(json: any): UserRepresentation {
|
||||
return UserRepresentationFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function UserRepresentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRepresentation {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'access': !exists(json, 'access') ? undefined : json['access'],
|
||||
'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],
|
||||
'clientConsents': !exists(json, 'clientConsents') ? undefined : ((json['clientConsents'] as Array<any>).map(UserConsentRepresentationFromJSON)),
|
||||
'clientRoles': !exists(json, 'clientRoles') ? undefined : json['clientRoles'],
|
||||
'createdTimestamp': !exists(json, 'createdTimestamp') ? undefined : json['createdTimestamp'],
|
||||
'credentials': !exists(json, 'credentials') ? undefined : ((json['credentials'] as Array<any>).map(CredentialRepresentationFromJSON)),
|
||||
'disableableCredentialTypes': !exists(json, 'disableableCredentialTypes') ? undefined : json['disableableCredentialTypes'],
|
||||
'email': !exists(json, 'email') ? undefined : json['email'],
|
||||
'emailVerified': !exists(json, 'emailVerified') ? undefined : json['emailVerified'],
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'federatedIdentities': !exists(json, 'federatedIdentities') ? undefined : ((json['federatedIdentities'] as Array<any>).map(FederatedIdentityRepresentationFromJSON)),
|
||||
'federationLink': !exists(json, 'federationLink') ? undefined : json['federationLink'],
|
||||
'firstName': !exists(json, 'firstName') ? undefined : json['firstName'],
|
||||
'groups': !exists(json, 'groups') ? undefined : json['groups'],
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'lastName': !exists(json, 'lastName') ? undefined : json['lastName'],
|
||||
'notBefore': !exists(json, 'notBefore') ? undefined : json['notBefore'],
|
||||
'origin': !exists(json, 'origin') ? undefined : json['origin'],
|
||||
'realmRoles': !exists(json, 'realmRoles') ? undefined : json['realmRoles'],
|
||||
'requiredActions': !exists(json, 'requiredActions') ? undefined : json['requiredActions'],
|
||||
'self': !exists(json, 'self') ? undefined : json['self'],
|
||||
'serviceAccountClientId': !exists(json, 'serviceAccountClientId') ? undefined : json['serviceAccountClientId'],
|
||||
'username': !exists(json, 'username') ? undefined : json['username'],
|
||||
};
|
||||
}
|
||||
|
||||
export function UserRepresentationToJSON(value?: UserRepresentation | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'access': value.access,
|
||||
'attributes': value.attributes,
|
||||
'clientConsents': value.clientConsents === undefined ? undefined : ((value.clientConsents as Array<any>).map(UserConsentRepresentationToJSON)),
|
||||
'clientRoles': value.clientRoles,
|
||||
'createdTimestamp': value.createdTimestamp,
|
||||
'credentials': value.credentials === undefined ? undefined : ((value.credentials as Array<any>).map(CredentialRepresentationToJSON)),
|
||||
'disableableCredentialTypes': value.disableableCredentialTypes,
|
||||
'email': value.email,
|
||||
'emailVerified': value.emailVerified,
|
||||
'enabled': value.enabled,
|
||||
'federatedIdentities': value.federatedIdentities === undefined ? undefined : ((value.federatedIdentities as Array<any>).map(FederatedIdentityRepresentationToJSON)),
|
||||
'federationLink': value.federationLink,
|
||||
'firstName': value.firstName,
|
||||
'groups': value.groups,
|
||||
'id': value.id,
|
||||
'lastName': value.lastName,
|
||||
'notBefore': value.notBefore,
|
||||
'origin': value.origin,
|
||||
'realmRoles': value.realmRoles,
|
||||
'requiredActions': value.requiredActions,
|
||||
'self': value.self,
|
||||
'serviceAccountClientId': value.serviceAccountClientId,
|
||||
'username': value.username,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
68
backend/keycloak/kc-client/models/index.ts
Normal file
68
backend/keycloak/kc-client/models/index.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
export * from './AccessToken';
|
||||
export * from './AccessTokenAccess';
|
||||
export * from './AccessTokenAuthorization';
|
||||
export * from './AccessTokenCertConf';
|
||||
export * from './AddressClaimSet';
|
||||
export * from './AuthenticationExecutionExportRepresentation';
|
||||
export * from './AuthenticationExecutionInfoRepresentation';
|
||||
export * from './AuthenticationExecutionRepresentation';
|
||||
export * from './AuthenticationFlowRepresentation';
|
||||
export * from './AuthenticatorConfigInfoRepresentation';
|
||||
export * from './AuthenticatorConfigRepresentation';
|
||||
export * from './CertificateRepresentation';
|
||||
export * from './ClientInitialAccessCreatePresentation';
|
||||
export * from './ClientInitialAccessPresentation';
|
||||
export * from './ClientMappingsRepresentation';
|
||||
export * from './ClientPoliciesRepresentation';
|
||||
export * from './ClientPolicyConditionRepresentation';
|
||||
export * from './ClientPolicyExecutorRepresentation';
|
||||
export * from './ClientPolicyRepresentation';
|
||||
export * from './ClientProfileRepresentation';
|
||||
export * from './ClientProfilesRepresentation';
|
||||
export * from './ClientRepresentation';
|
||||
export * from './ClientScopeEvaluateResourceProtocolMapperEvaluationRepresentation';
|
||||
export * from './ClientScopeRepresentation';
|
||||
export * from './ComponentExportRepresentation';
|
||||
export * from './ComponentRepresentation';
|
||||
export * from './ConfigPropertyRepresentation';
|
||||
export * from './CredentialRepresentation';
|
||||
export * from './FederatedIdentityRepresentation';
|
||||
export * from './GlobalRequestResult';
|
||||
export * from './GroupRepresentation';
|
||||
export * from './IDToken';
|
||||
export * from './IdentityProviderMapperRepresentation';
|
||||
export * from './IdentityProviderRepresentation';
|
||||
export * from './JsonNode';
|
||||
export * from './KeyStoreConfig';
|
||||
export * from './KeysMetadataRepresentation';
|
||||
export * from './KeysMetadataRepresentationKeyMetadataRepresentation';
|
||||
export * from './ManagementPermissionReference';
|
||||
export * from './MappingsRepresentation';
|
||||
export * from './MemoryInfoRepresentation';
|
||||
export * from './MultivaluedHashMap';
|
||||
export * from './PartialImportRepresentation';
|
||||
export * from './PasswordPolicyTypeRepresentation';
|
||||
export * from './Permission';
|
||||
export * from './PolicyRepresentation';
|
||||
export * from './ProfileInfoRepresentation';
|
||||
export * from './ProtocolMapperRepresentation';
|
||||
export * from './ProviderRepresentation';
|
||||
export * from './RealmEventsConfigRepresentation';
|
||||
export * from './RealmRepresentation';
|
||||
export * from './RequiredActionProviderRepresentation';
|
||||
export * from './ResourceRepresentation';
|
||||
export * from './ResourceServerRepresentation';
|
||||
export * from './RoleRepresentation';
|
||||
export * from './RoleRepresentationComposites';
|
||||
export * from './RolesRepresentation';
|
||||
export * from './ScopeMappingRepresentation';
|
||||
export * from './ScopeRepresentation';
|
||||
export * from './ServerInfoRepresentation';
|
||||
export * from './SpiInfoRepresentation';
|
||||
export * from './SynchronizationResult';
|
||||
export * from './SystemInfoRepresentation';
|
||||
export * from './TestLdapConnectionRepresentation';
|
||||
export * from './UserConsentRepresentation';
|
||||
export * from './UserFederationMapperRepresentation';
|
||||
export * from './UserFederationProviderRepresentation';
|
||||
export * from './UserRepresentation';
|
||||
Reference in New Issue
Block a user