Switched kc_sdk to fetch
This commit is contained in:
157
backend/keycloak/kc-client/apis/AttackDetectionApi.ts
Normal file
157
backend/keycloak/kc-client/apis/AttackDetectionApi.ts
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
|
||||||
|
export interface RealmAttackDetectionBruteForceUsersDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmAttackDetectionBruteForceUsersUserIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
userId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmAttackDetectionBruteForceUsersUserIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
userId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class AttackDetectionApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear any user login failures for all users This can release temporary disabled users
|
||||||
|
*/
|
||||||
|
async realmAttackDetectionBruteForceUsersDeleteRaw(requestParameters: RealmAttackDetectionBruteForceUsersDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmAttackDetectionBruteForceUsersDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/attack-detection/brute-force/users`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear any user login failures for all users This can release temporary disabled users
|
||||||
|
*/
|
||||||
|
async realmAttackDetectionBruteForceUsersDelete(requestParameters: RealmAttackDetectionBruteForceUsersDeleteRequest): Promise<void> {
|
||||||
|
await this.realmAttackDetectionBruteForceUsersDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear any user login failures for the user This can release temporary disabled user
|
||||||
|
*/
|
||||||
|
async realmAttackDetectionBruteForceUsersUserIdDeleteRaw(requestParameters: RealmAttackDetectionBruteForceUsersUserIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
||||||
|
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/attack-detection/brute-force/users/{userId}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear any user login failures for the user This can release temporary disabled user
|
||||||
|
*/
|
||||||
|
async realmAttackDetectionBruteForceUsersUserIdDelete(requestParameters: RealmAttackDetectionBruteForceUsersUserIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmAttackDetectionBruteForceUsersUserIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get status of a username in brute force detection
|
||||||
|
*/
|
||||||
|
async realmAttackDetectionBruteForceUsersUserIdGetRaw(requestParameters: RealmAttackDetectionBruteForceUsersUserIdGetRequest): Promise<runtime.ApiResponse<{ [key: string]: object; }>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.userId === null || requestParameters.userId === undefined) {
|
||||||
|
throw new runtime.RequiredError('userId','Required parameter requestParameters.userId was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/attack-detection/brute-force/users/{userId}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters.userId))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get status of a username in brute force detection
|
||||||
|
*/
|
||||||
|
async realmAttackDetectionBruteForceUsersUserIdGet(requestParameters: RealmAttackDetectionBruteForceUsersUserIdGetRequest): Promise<{ [key: string]: object; }> {
|
||||||
|
const response = await this.realmAttackDetectionBruteForceUsersUserIdGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1606
backend/keycloak/kc-client/apis/AuthenticationManagementApi.ts
Normal file
1606
backend/keycloak/kc-client/apis/AuthenticationManagementApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
359
backend/keycloak/kc-client/apis/ClientAttributeCertificateApi.ts
Normal file
359
backend/keycloak/kc-client/apis/ClientAttributeCertificateApi.ts
Normal file
@@ -0,0 +1,359 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
CertificateRepresentation,
|
||||||
|
CertificateRepresentationFromJSON,
|
||||||
|
CertificateRepresentationToJSON,
|
||||||
|
KeyStoreConfig,
|
||||||
|
KeyStoreConfigFromJSON,
|
||||||
|
KeyStoreConfigToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmClientsIdCertificatesAttrDownloadPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
attr: string;
|
||||||
|
keyStoreConfig: KeyStoreConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdCertificatesAttrGenerateAndDownloadPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
attr: string;
|
||||||
|
keyStoreConfig: KeyStoreConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdCertificatesAttrGeneratePostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
attr: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdCertificatesAttrGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
attr: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdCertificatesAttrUploadCertificatePostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
attr: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdCertificatesAttrUploadPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
attr: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ClientAttributeCertificateApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a keystore file for the client, containing private key and public certificate
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrDownloadPostRaw(requestParameters: RealmClientsIdCertificatesAttrDownloadPostRequest): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.attr === null || requestParameters.attr === undefined) {
|
||||||
|
throw new runtime.RequiredError('attr','Required parameter requestParameters.attr was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.keyStoreConfig === null || requestParameters.keyStoreConfig === undefined) {
|
||||||
|
throw new runtime.RequiredError('keyStoreConfig','Required parameter requestParameters.keyStoreConfig was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/certificates/{attr}/download`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"attr"}}`, encodeURIComponent(String(requestParameters.attr))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: KeyStoreConfigToJSON(requestParameters.keyStoreConfig),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a keystore file for the client, containing private key and public certificate
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrDownloadPost(requestParameters: RealmClientsIdCertificatesAttrDownloadPostRequest): Promise<string> {
|
||||||
|
const response = await this.realmClientsIdCertificatesAttrDownloadPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format.
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrGenerateAndDownloadPostRaw(requestParameters: RealmClientsIdCertificatesAttrGenerateAndDownloadPostRequest): Promise<runtime.ApiResponse<string>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.attr === null || requestParameters.attr === undefined) {
|
||||||
|
throw new runtime.RequiredError('attr','Required parameter requestParameters.attr was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.keyStoreConfig === null || requestParameters.keyStoreConfig === undefined) {
|
||||||
|
throw new runtime.RequiredError('keyStoreConfig','Required parameter requestParameters.keyStoreConfig was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/certificates/{attr}/generate-and-download`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"attr"}}`, encodeURIComponent(String(requestParameters.attr))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: KeyStoreConfigToJSON(requestParameters.keyStoreConfig),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.TextApiResponse(response) as any;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a new keypair and certificate, and get the private key file Generates a keypair and certificate and serves the private key in a specified keystore format.
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrGenerateAndDownloadPost(requestParameters: RealmClientsIdCertificatesAttrGenerateAndDownloadPostRequest): Promise<string> {
|
||||||
|
const response = await this.realmClientsIdCertificatesAttrGenerateAndDownloadPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a new certificate with new key pair
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrGeneratePostRaw(requestParameters: RealmClientsIdCertificatesAttrGeneratePostRequest): Promise<runtime.ApiResponse<CertificateRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdCertificatesAttrGeneratePost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdCertificatesAttrGeneratePost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.attr === null || requestParameters.attr === undefined) {
|
||||||
|
throw new runtime.RequiredError('attr','Required parameter requestParameters.attr was null or undefined when calling realmClientsIdCertificatesAttrGeneratePost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/certificates/{attr}/generate`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"attr"}}`, encodeURIComponent(String(requestParameters.attr))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate a new certificate with new key pair
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrGeneratePost(requestParameters: RealmClientsIdCertificatesAttrGeneratePostRequest): Promise<CertificateRepresentation> {
|
||||||
|
const response = await this.realmClientsIdCertificatesAttrGeneratePostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get key info
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrGetRaw(requestParameters: RealmClientsIdCertificatesAttrGetRequest): Promise<runtime.ApiResponse<CertificateRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdCertificatesAttrGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdCertificatesAttrGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.attr === null || requestParameters.attr === undefined) {
|
||||||
|
throw new runtime.RequiredError('attr','Required parameter requestParameters.attr was null or undefined when calling realmClientsIdCertificatesAttrGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/certificates/{attr}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"attr"}}`, encodeURIComponent(String(requestParameters.attr))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get key info
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrGet(requestParameters: RealmClientsIdCertificatesAttrGetRequest): Promise<CertificateRepresentation> {
|
||||||
|
const response = await this.realmClientsIdCertificatesAttrGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upload only certificate, not private key
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrUploadCertificatePostRaw(requestParameters: RealmClientsIdCertificatesAttrUploadCertificatePostRequest): Promise<runtime.ApiResponse<CertificateRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdCertificatesAttrUploadCertificatePost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdCertificatesAttrUploadCertificatePost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.attr === null || requestParameters.attr === undefined) {
|
||||||
|
throw new runtime.RequiredError('attr','Required parameter requestParameters.attr was null or undefined when calling realmClientsIdCertificatesAttrUploadCertificatePost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/certificates/{attr}/upload-certificate`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"attr"}}`, encodeURIComponent(String(requestParameters.attr))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upload only certificate, not private key
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrUploadCertificatePost(requestParameters: RealmClientsIdCertificatesAttrUploadCertificatePostRequest): Promise<CertificateRepresentation> {
|
||||||
|
const response = await this.realmClientsIdCertificatesAttrUploadCertificatePostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upload certificate and eventually private key
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrUploadPostRaw(requestParameters: RealmClientsIdCertificatesAttrUploadPostRequest): Promise<runtime.ApiResponse<CertificateRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdCertificatesAttrUploadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdCertificatesAttrUploadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.attr === null || requestParameters.attr === undefined) {
|
||||||
|
throw new runtime.RequiredError('attr','Required parameter requestParameters.attr was null or undefined when calling realmClientsIdCertificatesAttrUploadPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/certificates/{attr}/upload`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"attr"}}`, encodeURIComponent(String(requestParameters.attr))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => CertificateRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upload certificate and eventually private key
|
||||||
|
*/
|
||||||
|
async realmClientsIdCertificatesAttrUploadPost(requestParameters: RealmClientsIdCertificatesAttrUploadPostRequest): Promise<CertificateRepresentation> {
|
||||||
|
const response = await this.realmClientsIdCertificatesAttrUploadPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
165
backend/keycloak/kc-client/apis/ClientInitialAccessApi.ts
Normal file
165
backend/keycloak/kc-client/apis/ClientInitialAccessApi.ts
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
ClientInitialAccessCreatePresentation,
|
||||||
|
ClientInitialAccessCreatePresentationFromJSON,
|
||||||
|
ClientInitialAccessCreatePresentationToJSON,
|
||||||
|
ClientInitialAccessPresentation,
|
||||||
|
ClientInitialAccessPresentationFromJSON,
|
||||||
|
ClientInitialAccessPresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmClientsInitialAccessGetRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsInitialAccessIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsInitialAccessPostRequest {
|
||||||
|
realm: string;
|
||||||
|
clientInitialAccessCreatePresentation: ClientInitialAccessCreatePresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ClientInitialAccessApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmClientsInitialAccessGetRaw(requestParameters: RealmClientsInitialAccessGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsInitialAccessGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients-initial-access`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmClientsInitialAccessGet(requestParameters: RealmClientsInitialAccessGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientsInitialAccessGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmClientsInitialAccessIdDeleteRaw(requestParameters: RealmClientsInitialAccessIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsInitialAccessIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsInitialAccessIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients-initial-access/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmClientsInitialAccessIdDelete(requestParameters: RealmClientsInitialAccessIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmClientsInitialAccessIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new initial access token.
|
||||||
|
*/
|
||||||
|
async realmClientsInitialAccessPostRaw(requestParameters: RealmClientsInitialAccessPostRequest): Promise<runtime.ApiResponse<ClientInitialAccessPresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsInitialAccessPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.clientInitialAccessCreatePresentation === null || requestParameters.clientInitialAccessCreatePresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('clientInitialAccessCreatePresentation','Required parameter requestParameters.clientInitialAccessCreatePresentation was null or undefined when calling realmClientsInitialAccessPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients-initial-access`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ClientInitialAccessCreatePresentationToJSON(requestParameters.clientInitialAccessCreatePresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ClientInitialAccessPresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new initial access token.
|
||||||
|
*/
|
||||||
|
async realmClientsInitialAccessPost(requestParameters: RealmClientsInitialAccessPostRequest): Promise<ClientInitialAccessPresentation> {
|
||||||
|
const response = await this.realmClientsInitialAccessPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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 * as runtime from '../runtime';
|
||||||
|
|
||||||
|
export interface RealmClientRegistrationPolicyProvidersGetRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ClientRegistrationPolicyApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base path for retrieve providers with the configProperties properly filled
|
||||||
|
*/
|
||||||
|
async realmClientRegistrationPolicyProvidersGetRaw(requestParameters: RealmClientRegistrationPolicyProvidersGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientRegistrationPolicyProvidersGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-registration-policy/providers`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base path for retrieve providers with the configProperties properly filled
|
||||||
|
*/
|
||||||
|
async realmClientRegistrationPolicyProvidersGet(requestParameters: RealmClientRegistrationPolicyProvidersGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientRegistrationPolicyProvidersGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
586
backend/keycloak/kc-client/apis/ClientRoleMappingsApi.ts
Normal file
586
backend/keycloak/kc-client/apis/ClientRoleMappingsApi.ts
Normal file
@@ -0,0 +1,586 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
RoleRepresentation,
|
||||||
|
RoleRepresentationFromJSON,
|
||||||
|
RoleRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsClientsClientAvailableGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsClientsClientCompositeGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
briefRepresentation?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsClientsClientDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsClientsClientGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsClientsClientPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsClientsClientAvailableGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsClientsClientCompositeGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
briefRepresentation?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsClientsClientDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsClientsClientGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsClientsClientPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
client: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ClientRoleMappingsApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get available client-level roles that can be mapped to the user
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientAvailableGetRaw(requestParameters: RealmGroupsIdRoleMappingsClientsClientAvailableGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/clients/{client}/available`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get available client-level roles that can be mapped to the user
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientAvailableGet(requestParameters: RealmGroupsIdRoleMappingsClientsClientAvailableGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsClientsClientAvailableGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective client-level role mappings This recurses any composite roles
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientCompositeGetRaw(requestParameters: RealmGroupsIdRoleMappingsClientsClientCompositeGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.briefRepresentation !== undefined) {
|
||||||
|
queryParameters['briefRepresentation'] = requestParameters.briefRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/clients/{client}/composite`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective client-level role mappings This recurses any composite roles
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientCompositeGet(requestParameters: RealmGroupsIdRoleMappingsClientsClientCompositeGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsClientsClientCompositeGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete client-level roles from user role mapping
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientDeleteRaw(requestParameters: RealmGroupsIdRoleMappingsClientsClientDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/clients/{client}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete client-level roles from user role mapping
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientDelete(requestParameters: RealmGroupsIdRoleMappingsClientsClientDeleteRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdRoleMappingsClientsClientDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client-level role mappings for the user, and the app
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientGetRaw(requestParameters: RealmGroupsIdRoleMappingsClientsClientGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/clients/{client}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client-level role mappings for the user, and the app
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientGet(requestParameters: RealmGroupsIdRoleMappingsClientsClientGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsClientsClientGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add client-level roles to the user role mapping
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientPostRaw(requestParameters: RealmGroupsIdRoleMappingsClientsClientPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/clients/{client}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add client-level roles to the user role mapping
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsClientsClientPost(requestParameters: RealmGroupsIdRoleMappingsClientsClientPostRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdRoleMappingsClientsClientPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get available client-level roles that can be mapped to the user
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientAvailableGetRaw(requestParameters: RealmUsersIdRoleMappingsClientsClientAvailableGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsClientsClientAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmUsersIdRoleMappingsClientsClientAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/clients/{client}/available`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get available client-level roles that can be mapped to the user
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientAvailableGet(requestParameters: RealmUsersIdRoleMappingsClientsClientAvailableGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsClientsClientAvailableGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective client-level role mappings This recurses any composite roles
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientCompositeGetRaw(requestParameters: RealmUsersIdRoleMappingsClientsClientCompositeGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsClientsClientCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmUsersIdRoleMappingsClientsClientCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.briefRepresentation !== undefined) {
|
||||||
|
queryParameters['briefRepresentation'] = requestParameters.briefRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/clients/{client}/composite`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective client-level role mappings This recurses any composite roles
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientCompositeGet(requestParameters: RealmUsersIdRoleMappingsClientsClientCompositeGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsClientsClientCompositeGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete client-level roles from user role mapping
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientDeleteRaw(requestParameters: RealmUsersIdRoleMappingsClientsClientDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/clients/{client}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete client-level roles from user role mapping
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientDelete(requestParameters: RealmUsersIdRoleMappingsClientsClientDeleteRequest): Promise<void> {
|
||||||
|
await this.realmUsersIdRoleMappingsClientsClientDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client-level role mappings for the user, and the app
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientGetRaw(requestParameters: RealmUsersIdRoleMappingsClientsClientGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsClientsClientGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmUsersIdRoleMappingsClientsClientGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/clients/{client}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client-level role mappings for the user, and the app
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientGet(requestParameters: RealmUsersIdRoleMappingsClientsClientGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsClientsClientGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add client-level roles to the user role mapping
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientPostRaw(requestParameters: RealmUsersIdRoleMappingsClientsClientPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.client === null || requestParameters.client === undefined) {
|
||||||
|
throw new runtime.RequiredError('client','Required parameter requestParameters.client was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/clients/{client}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"client"}}`, encodeURIComponent(String(requestParameters.client))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add client-level roles to the user role mapping
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsClientsClientPost(requestParameters: RealmUsersIdRoleMappingsClientsClientPostRequest): Promise<void> {
|
||||||
|
await this.realmUsersIdRoleMappingsClientsClientPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
266
backend/keycloak/kc-client/apis/ClientScopesApi.ts
Normal file
266
backend/keycloak/kc-client/apis/ClientScopesApi.ts
Normal file
@@ -0,0 +1,266 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
ClientScopeRepresentation,
|
||||||
|
ClientScopeRepresentationFromJSON,
|
||||||
|
ClientScopeRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmClientScopesGetRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdPutRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
clientScopeRepresentation: ClientScopeRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesPostRequest {
|
||||||
|
realm: string;
|
||||||
|
clientScopeRepresentation: ClientScopeRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ClientScopesApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm
|
||||||
|
*/
|
||||||
|
async realmClientScopesGetRaw(requestParameters: RealmClientScopesGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm
|
||||||
|
*/
|
||||||
|
async realmClientScopesGet(requestParameters: RealmClientScopesGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientScopesGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the client scope
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdDeleteRaw(requestParameters: RealmClientScopesIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the client scope
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdDelete(requestParameters: RealmClientScopesIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get representation of the client scope
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdGetRaw(requestParameters: RealmClientScopesIdGetRequest): Promise<runtime.ApiResponse<ClientScopeRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ClientScopeRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get representation of the client scope
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdGet(requestParameters: RealmClientScopesIdGetRequest): Promise<ClientScopeRepresentation> {
|
||||||
|
const response = await this.realmClientScopesIdGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the client scope
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdPutRaw(requestParameters: RealmClientScopesIdPutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.clientScopeRepresentation === null || requestParameters.clientScopeRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('clientScopeRepresentation','Required parameter requestParameters.clientScopeRepresentation was null or undefined when calling realmClientScopesIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ClientScopeRepresentationToJSON(requestParameters.clientScopeRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the client scope
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdPut(requestParameters: RealmClientScopesIdPutRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesIdPutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new client scope Client Scope’s name must be unique!
|
||||||
|
*/
|
||||||
|
async realmClientScopesPostRaw(requestParameters: RealmClientScopesPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.clientScopeRepresentation === null || requestParameters.clientScopeRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('clientScopeRepresentation','Required parameter requestParameters.clientScopeRepresentation was null or undefined when calling realmClientScopesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ClientScopeRepresentationToJSON(requestParameters.clientScopeRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new client scope Client Scope’s name must be unique!
|
||||||
|
*/
|
||||||
|
async realmClientScopesPost(requestParameters: RealmClientScopesPostRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1780
backend/keycloak/kc-client/apis/ClientsApi.ts
Normal file
1780
backend/keycloak/kc-client/apis/ClientsApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
323
backend/keycloak/kc-client/apis/ComponentApi.ts
Normal file
323
backend/keycloak/kc-client/apis/ComponentApi.ts
Normal file
@@ -0,0 +1,323 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
ComponentRepresentation,
|
||||||
|
ComponentRepresentationFromJSON,
|
||||||
|
ComponentRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmComponentsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
name?: string;
|
||||||
|
parent?: string;
|
||||||
|
type?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmComponentsIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmComponentsIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmComponentsIdPutRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
componentRepresentation: ComponentRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmComponentsIdSubComponentTypesGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
type?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmComponentsPostRequest {
|
||||||
|
realm: string;
|
||||||
|
componentRepresentation: ComponentRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ComponentApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsGetRaw(requestParameters: RealmComponentsGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmComponentsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.name !== undefined) {
|
||||||
|
queryParameters['name'] = requestParameters.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.parent !== undefined) {
|
||||||
|
queryParameters['parent'] = requestParameters.parent;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.type !== undefined) {
|
||||||
|
queryParameters['type'] = requestParameters.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/components`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsGet(requestParameters: RealmComponentsGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmComponentsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsIdDeleteRaw(requestParameters: RealmComponentsIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmComponentsIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmComponentsIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/components/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsIdDelete(requestParameters: RealmComponentsIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmComponentsIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsIdGetRaw(requestParameters: RealmComponentsIdGetRequest): Promise<runtime.ApiResponse<ComponentRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmComponentsIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmComponentsIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/components/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ComponentRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsIdGet(requestParameters: RealmComponentsIdGetRequest): Promise<ComponentRepresentation> {
|
||||||
|
const response = await this.realmComponentsIdGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsIdPutRaw(requestParameters: RealmComponentsIdPutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmComponentsIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmComponentsIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.componentRepresentation === null || requestParameters.componentRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('componentRepresentation','Required parameter requestParameters.componentRepresentation was null or undefined when calling realmComponentsIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/components/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ComponentRepresentationToJSON(requestParameters.componentRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsIdPut(requestParameters: RealmComponentsIdPutRequest): Promise<void> {
|
||||||
|
await this.realmComponentsIdPutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of subcomponent types that are available to configure for a particular parent component.
|
||||||
|
*/
|
||||||
|
async realmComponentsIdSubComponentTypesGetRaw(requestParameters: RealmComponentsIdSubComponentTypesGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmComponentsIdSubComponentTypesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmComponentsIdSubComponentTypesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.type !== undefined) {
|
||||||
|
queryParameters['type'] = requestParameters.type;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/components/{id}/sub-component-types`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of subcomponent types that are available to configure for a particular parent component.
|
||||||
|
*/
|
||||||
|
async realmComponentsIdSubComponentTypesGet(requestParameters: RealmComponentsIdSubComponentTypesGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmComponentsIdSubComponentTypesGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsPostRaw(requestParameters: RealmComponentsPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmComponentsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.componentRepresentation === null || requestParameters.componentRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('componentRepresentation','Required parameter requestParameters.componentRepresentation was null or undefined when calling realmComponentsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/components`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ComponentRepresentationToJSON(requestParameters.componentRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmComponentsPost(requestParameters: RealmComponentsPostRequest): Promise<void> {
|
||||||
|
await this.realmComponentsPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
555
backend/keycloak/kc-client/apis/GroupsApi.ts
Normal file
555
backend/keycloak/kc-client/apis/GroupsApi.ts
Normal file
@@ -0,0 +1,555 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
GroupRepresentation,
|
||||||
|
GroupRepresentationFromJSON,
|
||||||
|
GroupRepresentationToJSON,
|
||||||
|
ManagementPermissionReference,
|
||||||
|
ManagementPermissionReferenceFromJSON,
|
||||||
|
ManagementPermissionReferenceToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmGroupsCountGetRequest {
|
||||||
|
realm: string;
|
||||||
|
search?: string;
|
||||||
|
top?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
briefRepresentation?: boolean;
|
||||||
|
first?: number;
|
||||||
|
max?: number;
|
||||||
|
search?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdChildrenPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
groupRepresentation: GroupRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdManagementPermissionsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdManagementPermissionsPutRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
managementPermissionReference: ManagementPermissionReference;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdMembersGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
briefRepresentation?: boolean;
|
||||||
|
first?: number;
|
||||||
|
max?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdPutRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
groupRepresentation: GroupRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsPostRequest {
|
||||||
|
realm: string;
|
||||||
|
groupRepresentation: GroupRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class GroupsApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the groups counts.
|
||||||
|
*/
|
||||||
|
async realmGroupsCountGetRaw(requestParameters: RealmGroupsCountGetRequest): Promise<runtime.ApiResponse<{ [key: string]: object; }>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsCountGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.search !== undefined) {
|
||||||
|
queryParameters['search'] = requestParameters.search;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.top !== undefined) {
|
||||||
|
queryParameters['top'] = requestParameters.top;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/count`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the groups counts.
|
||||||
|
*/
|
||||||
|
async realmGroupsCountGet(requestParameters: RealmGroupsCountGetRequest): Promise<{ [key: string]: object; }> {
|
||||||
|
const response = await this.realmGroupsCountGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get group hierarchy.
|
||||||
|
*/
|
||||||
|
async realmGroupsGetRaw(requestParameters: RealmGroupsGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.briefRepresentation !== undefined) {
|
||||||
|
queryParameters['briefRepresentation'] = requestParameters.briefRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.first !== undefined) {
|
||||||
|
queryParameters['first'] = requestParameters.first;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.max !== undefined) {
|
||||||
|
queryParameters['max'] = requestParameters.max;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.search !== undefined) {
|
||||||
|
queryParameters['search'] = requestParameters.search;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get group hierarchy.
|
||||||
|
*/
|
||||||
|
async realmGroupsGet(requestParameters: RealmGroupsGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set or create child.
|
||||||
|
*/
|
||||||
|
async realmGroupsIdChildrenPostRaw(requestParameters: RealmGroupsIdChildrenPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdChildrenPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdChildrenPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.groupRepresentation === null || requestParameters.groupRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('groupRepresentation','Required parameter requestParameters.groupRepresentation was null or undefined when calling realmGroupsIdChildrenPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/children`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: GroupRepresentationToJSON(requestParameters.groupRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set or create child.
|
||||||
|
*/
|
||||||
|
async realmGroupsIdChildrenPost(requestParameters: RealmGroupsIdChildrenPostRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdChildrenPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmGroupsIdDeleteRaw(requestParameters: RealmGroupsIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmGroupsIdDelete(requestParameters: RealmGroupsIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmGroupsIdGetRaw(requestParameters: RealmGroupsIdGetRequest): Promise<runtime.ApiResponse<GroupRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => GroupRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmGroupsIdGet(requestParameters: RealmGroupsIdGetRequest): Promise<GroupRepresentation> {
|
||||||
|
const response = await this.realmGroupsIdGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmGroupsIdManagementPermissionsGetRaw(requestParameters: RealmGroupsIdManagementPermissionsGetRequest): Promise<runtime.ApiResponse<ManagementPermissionReference>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdManagementPermissionsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdManagementPermissionsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/management/permissions`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ManagementPermissionReferenceFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmGroupsIdManagementPermissionsGet(requestParameters: RealmGroupsIdManagementPermissionsGetRequest): Promise<ManagementPermissionReference> {
|
||||||
|
const response = await this.realmGroupsIdManagementPermissionsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmGroupsIdManagementPermissionsPutRaw(requestParameters: RealmGroupsIdManagementPermissionsPutRequest): Promise<runtime.ApiResponse<ManagementPermissionReference>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.managementPermissionReference === null || requestParameters.managementPermissionReference === undefined) {
|
||||||
|
throw new runtime.RequiredError('managementPermissionReference','Required parameter requestParameters.managementPermissionReference was null or undefined when calling realmGroupsIdManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/management/permissions`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ManagementPermissionReferenceToJSON(requestParameters.managementPermissionReference),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ManagementPermissionReferenceFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmGroupsIdManagementPermissionsPut(requestParameters: RealmGroupsIdManagementPermissionsPutRequest): Promise<ManagementPermissionReference> {
|
||||||
|
const response = await this.realmGroupsIdManagementPermissionsPutRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get users Returns a stream of users, filtered according to query parameters
|
||||||
|
*/
|
||||||
|
async realmGroupsIdMembersGetRaw(requestParameters: RealmGroupsIdMembersGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdMembersGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdMembersGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.briefRepresentation !== undefined) {
|
||||||
|
queryParameters['briefRepresentation'] = requestParameters.briefRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.first !== undefined) {
|
||||||
|
queryParameters['first'] = requestParameters.first;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.max !== undefined) {
|
||||||
|
queryParameters['max'] = requestParameters.max;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/members`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get users Returns a stream of users, filtered according to query parameters
|
||||||
|
*/
|
||||||
|
async realmGroupsIdMembersGet(requestParameters: RealmGroupsIdMembersGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdMembersGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update group, ignores subgroups.
|
||||||
|
*/
|
||||||
|
async realmGroupsIdPutRaw(requestParameters: RealmGroupsIdPutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.groupRepresentation === null || requestParameters.groupRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('groupRepresentation','Required parameter requestParameters.groupRepresentation was null or undefined when calling realmGroupsIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: GroupRepresentationToJSON(requestParameters.groupRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update group, ignores subgroups.
|
||||||
|
*/
|
||||||
|
async realmGroupsIdPut(requestParameters: RealmGroupsIdPutRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdPutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* create or add a top level realm groupSet or create child.
|
||||||
|
*/
|
||||||
|
async realmGroupsPostRaw(requestParameters: RealmGroupsPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.groupRepresentation === null || requestParameters.groupRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('groupRepresentation','Required parameter requestParameters.groupRepresentation was null or undefined when calling realmGroupsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: GroupRepresentationToJSON(requestParameters.groupRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* create or add a top level realm groupSet or create child.
|
||||||
|
*/
|
||||||
|
async realmGroupsPost(requestParameters: RealmGroupsPostRequest): Promise<void> {
|
||||||
|
await this.realmGroupsPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
822
backend/keycloak/kc-client/apis/IdentityProvidersApi.ts
Normal file
822
backend/keycloak/kc-client/apis/IdentityProvidersApi.ts
Normal file
@@ -0,0 +1,822 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
IdentityProviderMapperRepresentation,
|
||||||
|
IdentityProviderMapperRepresentationFromJSON,
|
||||||
|
IdentityProviderMapperRepresentationToJSON,
|
||||||
|
IdentityProviderRepresentation,
|
||||||
|
IdentityProviderRepresentationFromJSON,
|
||||||
|
IdentityProviderRepresentationToJSON,
|
||||||
|
ManagementPermissionReference,
|
||||||
|
ManagementPermissionReferenceFromJSON,
|
||||||
|
ManagementPermissionReferenceToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderImportConfigPostRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasExportGetRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
format?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasGetRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasManagementPermissionsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasManagementPermissionsPutRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
managementPermissionReference: ManagementPermissionReference;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasMapperTypesGetRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasMappersGetRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasMappersIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasMappersIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasMappersIdPutRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
id: string;
|
||||||
|
identityProviderMapperRepresentation: IdentityProviderMapperRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasMappersPostRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
identityProviderMapperRepresentation: IdentityProviderMapperRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesAliasPutRequest {
|
||||||
|
realm: string;
|
||||||
|
alias: string;
|
||||||
|
identityProviderRepresentation: IdentityProviderRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesGetRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderInstancesPostRequest {
|
||||||
|
realm: string;
|
||||||
|
identityProviderRepresentation: IdentityProviderRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmIdentityProviderProvidersProviderIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
providerId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class IdentityProvidersApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import identity provider from uploaded JSON file
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderImportConfigPostRaw(requestParameters: RealmIdentityProviderImportConfigPostRequest): Promise<runtime.ApiResponse<{ [key: string]: object; }>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderImportConfigPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/import-config`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Import identity provider from uploaded JSON file
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderImportConfigPost(requestParameters: RealmIdentityProviderImportConfigPostRequest): Promise<{ [key: string]: object; }> {
|
||||||
|
const response = await this.realmIdentityProviderImportConfigPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasDeleteRaw(requestParameters: RealmIdentityProviderInstancesAliasDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasDelete(requestParameters: RealmIdentityProviderInstancesAliasDeleteRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Export public broker configuration for identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasExportGetRaw(requestParameters: RealmIdentityProviderInstancesAliasExportGetRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasExportGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasExportGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.format !== undefined) {
|
||||||
|
queryParameters['format'] = requestParameters.format;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/export`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Export public broker configuration for identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasExportGet(requestParameters: RealmIdentityProviderInstancesAliasExportGetRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasExportGetRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasGetRaw(requestParameters: RealmIdentityProviderInstancesAliasGetRequest): Promise<runtime.ApiResponse<IdentityProviderRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => IdentityProviderRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasGet(requestParameters: RealmIdentityProviderInstancesAliasGetRequest): Promise<IdentityProviderRepresentation> {
|
||||||
|
const response = await this.realmIdentityProviderInstancesAliasGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasManagementPermissionsGetRaw(requestParameters: RealmIdentityProviderInstancesAliasManagementPermissionsGetRequest): Promise<runtime.ApiResponse<ManagementPermissionReference>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/management/permissions`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ManagementPermissionReferenceFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasManagementPermissionsGet(requestParameters: RealmIdentityProviderInstancesAliasManagementPermissionsGetRequest): Promise<ManagementPermissionReference> {
|
||||||
|
const response = await this.realmIdentityProviderInstancesAliasManagementPermissionsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasManagementPermissionsPutRaw(requestParameters: RealmIdentityProviderInstancesAliasManagementPermissionsPutRequest): Promise<runtime.ApiResponse<ManagementPermissionReference>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.managementPermissionReference === null || requestParameters.managementPermissionReference === undefined) {
|
||||||
|
throw new runtime.RequiredError('managementPermissionReference','Required parameter requestParameters.managementPermissionReference was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/management/permissions`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ManagementPermissionReferenceToJSON(requestParameters.managementPermissionReference),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ManagementPermissionReferenceFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether client Authorization permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasManagementPermissionsPut(requestParameters: RealmIdentityProviderInstancesAliasManagementPermissionsPutRequest): Promise<ManagementPermissionReference> {
|
||||||
|
const response = await this.realmIdentityProviderInstancesAliasManagementPermissionsPutRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper types for identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMapperTypesGetRaw(requestParameters: RealmIdentityProviderInstancesAliasMapperTypesGetRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasMapperTypesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasMapperTypesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/mapper-types`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper types for identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMapperTypesGet(requestParameters: RealmIdentityProviderInstancesAliasMapperTypesGetRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasMapperTypesGetRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers for identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersGetRaw(requestParameters: RealmIdentityProviderInstancesAliasMappersGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/mappers`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers for identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersGet(requestParameters: RealmIdentityProviderInstancesAliasMappersGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmIdentityProviderInstancesAliasMappersGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete a mapper for the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersIdDeleteRaw(requestParameters: RealmIdentityProviderInstancesAliasMappersIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/mappers/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete a mapper for the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersIdDelete(requestParameters: RealmIdentityProviderInstancesAliasMappersIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasMappersIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper by id for the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersIdGetRaw(requestParameters: RealmIdentityProviderInstancesAliasMappersIdGetRequest): Promise<runtime.ApiResponse<IdentityProviderMapperRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/mappers/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => IdentityProviderMapperRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper by id for the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersIdGet(requestParameters: RealmIdentityProviderInstancesAliasMappersIdGetRequest): Promise<IdentityProviderMapperRepresentation> {
|
||||||
|
const response = await this.realmIdentityProviderInstancesAliasMappersIdGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update a mapper for the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersIdPutRaw(requestParameters: RealmIdentityProviderInstancesAliasMappersIdPutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.identityProviderMapperRepresentation === null || requestParameters.identityProviderMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('identityProviderMapperRepresentation','Required parameter requestParameters.identityProviderMapperRepresentation was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/mappers/{id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: IdentityProviderMapperRepresentationToJSON(requestParameters.identityProviderMapperRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update a mapper for the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersIdPut(requestParameters: RealmIdentityProviderInstancesAliasMappersIdPutRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasMappersIdPutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a mapper to identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersPostRaw(requestParameters: RealmIdentityProviderInstancesAliasMappersPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.identityProviderMapperRepresentation === null || requestParameters.identityProviderMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('identityProviderMapperRepresentation','Required parameter requestParameters.identityProviderMapperRepresentation was null or undefined when calling realmIdentityProviderInstancesAliasMappersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}/mappers`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: IdentityProviderMapperRepresentationToJSON(requestParameters.identityProviderMapperRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a mapper to identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasMappersPost(requestParameters: RealmIdentityProviderInstancesAliasMappersPostRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasMappersPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasPutRaw(requestParameters: RealmIdentityProviderInstancesAliasPutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesAliasPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.alias === null || requestParameters.alias === undefined) {
|
||||||
|
throw new runtime.RequiredError('alias','Required parameter requestParameters.alias was null or undefined when calling realmIdentityProviderInstancesAliasPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.identityProviderRepresentation === null || requestParameters.identityProviderRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('identityProviderRepresentation','Required parameter requestParameters.identityProviderRepresentation was null or undefined when calling realmIdentityProviderInstancesAliasPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances/{alias}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"alias"}}`, encodeURIComponent(String(requestParameters.alias))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: IdentityProviderRepresentationToJSON(requestParameters.identityProviderRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesAliasPut(requestParameters: RealmIdentityProviderInstancesAliasPutRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesAliasPutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get identity providers
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesGetRaw(requestParameters: RealmIdentityProviderInstancesGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get identity providers
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesGet(requestParameters: RealmIdentityProviderInstancesGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmIdentityProviderInstancesGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesPostRaw(requestParameters: RealmIdentityProviderInstancesPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderInstancesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.identityProviderRepresentation === null || requestParameters.identityProviderRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('identityProviderRepresentation','Required parameter requestParameters.identityProviderRepresentation was null or undefined when calling realmIdentityProviderInstancesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/instances`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: IdentityProviderRepresentationToJSON(requestParameters.identityProviderRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new identity provider
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderInstancesPost(requestParameters: RealmIdentityProviderInstancesPostRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderInstancesPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get identity providers
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderProvidersProviderIdGetRaw(requestParameters: RealmIdentityProviderProvidersProviderIdGetRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmIdentityProviderProvidersProviderIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.providerId === null || requestParameters.providerId === undefined) {
|
||||||
|
throw new runtime.RequiredError('providerId','Required parameter requestParameters.providerId was null or undefined when calling realmIdentityProviderProvidersProviderIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/identity-provider/providers/{provider_id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"provider_id"}}`, encodeURIComponent(String(requestParameters.providerId))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get identity providers
|
||||||
|
*/
|
||||||
|
async realmIdentityProviderProvidersProviderIdGet(requestParameters: RealmIdentityProviderProvidersProviderIdGetRequest): Promise<void> {
|
||||||
|
await this.realmIdentityProviderProvidersProviderIdGetRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
68
backend/keycloak/kc-client/apis/KeyApi.ts
Normal file
68
backend/keycloak/kc-client/apis/KeyApi.ts
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
KeysMetadataRepresentation,
|
||||||
|
KeysMetadataRepresentationFromJSON,
|
||||||
|
KeysMetadataRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmKeysGetRequest {
|
||||||
|
realm: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class KeyApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmKeysGetRaw(requestParameters: RealmKeysGetRequest): Promise<runtime.ApiResponse<KeysMetadataRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmKeysGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/keys`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => KeysMetadataRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*/
|
||||||
|
async realmKeysGet(requestParameters: RealmKeysGetRequest): Promise<KeysMetadataRepresentation> {
|
||||||
|
const response = await this.realmKeysGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
766
backend/keycloak/kc-client/apis/ProtocolMappersApi.ts
Normal file
766
backend/keycloak/kc-client/apis/ProtocolMappersApi.ts
Normal file
@@ -0,0 +1,766 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
ProtocolMapperRepresentation,
|
||||||
|
ProtocolMapperRepresentationFromJSON,
|
||||||
|
ProtocolMapperRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmClientScopesId1ProtocolMappersModelsId2DeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id1: string;
|
||||||
|
id2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesId1ProtocolMappersModelsId2GetRequest {
|
||||||
|
realm: string;
|
||||||
|
id1: string;
|
||||||
|
id2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesId1ProtocolMappersModelsId2PutRequest {
|
||||||
|
realm: string;
|
||||||
|
id1: string;
|
||||||
|
id2: string;
|
||||||
|
protocolMapperRepresentation: ProtocolMapperRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdProtocolMappersAddModelsPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
protocolMapperRepresentation: Array<ProtocolMapperRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdProtocolMappersModelsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdProtocolMappersModelsPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
protocolMapperRepresentation: ProtocolMapperRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientScopesIdProtocolMappersProtocolProtocolGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
protocol: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsId1ProtocolMappersModelsId2DeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id1: string;
|
||||||
|
id2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsId1ProtocolMappersModelsId2GetRequest {
|
||||||
|
realm: string;
|
||||||
|
id1: string;
|
||||||
|
id2: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsId1ProtocolMappersModelsId2PutRequest {
|
||||||
|
realm: string;
|
||||||
|
id1: string;
|
||||||
|
id2: string;
|
||||||
|
protocolMapperRepresentation: ProtocolMapperRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdProtocolMappersAddModelsPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
protocolMapperRepresentation: Array<ProtocolMapperRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdProtocolMappersModelsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdProtocolMappersModelsPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
protocolMapperRepresentation: ProtocolMapperRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmClientsIdProtocolMappersProtocolProtocolGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
protocol: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class ProtocolMappersApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the mapper
|
||||||
|
*/
|
||||||
|
async realmClientScopesId1ProtocolMappersModelsId2DeleteRaw(requestParameters: RealmClientScopesId1ProtocolMappersModelsId2DeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Delete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id1 === null || requestParameters.id1 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id1','Required parameter requestParameters.id1 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Delete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id2 === null || requestParameters.id2 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id2','Required parameter requestParameters.id2 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Delete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id1"}}`, encodeURIComponent(String(requestParameters.id1))).replace(`{${"id2"}}`, encodeURIComponent(String(requestParameters.id2))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the mapper
|
||||||
|
*/
|
||||||
|
async realmClientScopesId1ProtocolMappersModelsId2Delete(requestParameters: RealmClientScopesId1ProtocolMappersModelsId2DeleteRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesId1ProtocolMappersModelsId2DeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper by id
|
||||||
|
*/
|
||||||
|
async realmClientScopesId1ProtocolMappersModelsId2GetRaw(requestParameters: RealmClientScopesId1ProtocolMappersModelsId2GetRequest): Promise<runtime.ApiResponse<ProtocolMapperRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Get.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id1 === null || requestParameters.id1 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id1','Required parameter requestParameters.id1 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Get.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id2 === null || requestParameters.id2 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id2','Required parameter requestParameters.id2 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Get.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id1"}}`, encodeURIComponent(String(requestParameters.id1))).replace(`{${"id2"}}`, encodeURIComponent(String(requestParameters.id2))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProtocolMapperRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper by id
|
||||||
|
*/
|
||||||
|
async realmClientScopesId1ProtocolMappersModelsId2Get(requestParameters: RealmClientScopesId1ProtocolMappersModelsId2GetRequest): Promise<ProtocolMapperRepresentation> {
|
||||||
|
const response = await this.realmClientScopesId1ProtocolMappersModelsId2GetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the mapper
|
||||||
|
*/
|
||||||
|
async realmClientScopesId1ProtocolMappersModelsId2PutRaw(requestParameters: RealmClientScopesId1ProtocolMappersModelsId2PutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id1 === null || requestParameters.id1 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id1','Required parameter requestParameters.id1 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id2 === null || requestParameters.id2 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id2','Required parameter requestParameters.id2 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocolMapperRepresentation === null || requestParameters.protocolMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocolMapperRepresentation','Required parameter requestParameters.protocolMapperRepresentation was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id1"}}`, encodeURIComponent(String(requestParameters.id1))).replace(`{${"id2"}}`, encodeURIComponent(String(requestParameters.id2))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ProtocolMapperRepresentationToJSON(requestParameters.protocolMapperRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the mapper
|
||||||
|
*/
|
||||||
|
async realmClientScopesId1ProtocolMappersModelsId2Put(requestParameters: RealmClientScopesId1ProtocolMappersModelsId2PutRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesId1ProtocolMappersModelsId2PutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create multiple mappers
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersAddModelsPostRaw(requestParameters: RealmClientScopesIdProtocolMappersAddModelsPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdProtocolMappersAddModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdProtocolMappersAddModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocolMapperRepresentation === null || requestParameters.protocolMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocolMapperRepresentation','Required parameter requestParameters.protocolMapperRepresentation was null or undefined when calling realmClientScopesIdProtocolMappersAddModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}/protocol-mappers/add-models`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.protocolMapperRepresentation.map(ProtocolMapperRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create multiple mappers
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersAddModelsPost(requestParameters: RealmClientScopesIdProtocolMappersAddModelsPostRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesIdProtocolMappersAddModelsPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersModelsGetRaw(requestParameters: RealmClientScopesIdProtocolMappersModelsGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdProtocolMappersModelsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdProtocolMappersModelsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}/protocol-mappers/models`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersModelsGet(requestParameters: RealmClientScopesIdProtocolMappersModelsGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientScopesIdProtocolMappersModelsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a mapper
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersModelsPostRaw(requestParameters: RealmClientScopesIdProtocolMappersModelsPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdProtocolMappersModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdProtocolMappersModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocolMapperRepresentation === null || requestParameters.protocolMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocolMapperRepresentation','Required parameter requestParameters.protocolMapperRepresentation was null or undefined when calling realmClientScopesIdProtocolMappersModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}/protocol-mappers/models`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ProtocolMapperRepresentationToJSON(requestParameters.protocolMapperRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a mapper
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersModelsPost(requestParameters: RealmClientScopesIdProtocolMappersModelsPostRequest): Promise<void> {
|
||||||
|
await this.realmClientScopesIdProtocolMappersModelsPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers by name for a specific protocol
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersProtocolProtocolGetRaw(requestParameters: RealmClientScopesIdProtocolMappersProtocolProtocolGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientScopesIdProtocolMappersProtocolProtocolGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientScopesIdProtocolMappersProtocolProtocolGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocol === null || requestParameters.protocol === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocol','Required parameter requestParameters.protocol was null or undefined when calling realmClientScopesIdProtocolMappersProtocolProtocolGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"protocol"}}`, encodeURIComponent(String(requestParameters.protocol))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers by name for a specific protocol
|
||||||
|
*/
|
||||||
|
async realmClientScopesIdProtocolMappersProtocolProtocolGet(requestParameters: RealmClientScopesIdProtocolMappersProtocolProtocolGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientScopesIdProtocolMappersProtocolProtocolGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the mapper
|
||||||
|
*/
|
||||||
|
async realmClientsId1ProtocolMappersModelsId2DeleteRaw(requestParameters: RealmClientsId1ProtocolMappersModelsId2DeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Delete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id1 === null || requestParameters.id1 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id1','Required parameter requestParameters.id1 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Delete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id2 === null || requestParameters.id2 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id2','Required parameter requestParameters.id2 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Delete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id1}/protocol-mappers/models/{id2}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id1"}}`, encodeURIComponent(String(requestParameters.id1))).replace(`{${"id2"}}`, encodeURIComponent(String(requestParameters.id2))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the mapper
|
||||||
|
*/
|
||||||
|
async realmClientsId1ProtocolMappersModelsId2Delete(requestParameters: RealmClientsId1ProtocolMappersModelsId2DeleteRequest): Promise<void> {
|
||||||
|
await this.realmClientsId1ProtocolMappersModelsId2DeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper by id
|
||||||
|
*/
|
||||||
|
async realmClientsId1ProtocolMappersModelsId2GetRaw(requestParameters: RealmClientsId1ProtocolMappersModelsId2GetRequest): Promise<runtime.ApiResponse<ProtocolMapperRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Get.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id1 === null || requestParameters.id1 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id1','Required parameter requestParameters.id1 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Get.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id2 === null || requestParameters.id2 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id2','Required parameter requestParameters.id2 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Get.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id1}/protocol-mappers/models/{id2}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id1"}}`, encodeURIComponent(String(requestParameters.id1))).replace(`{${"id2"}}`, encodeURIComponent(String(requestParameters.id2))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ProtocolMapperRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mapper by id
|
||||||
|
*/
|
||||||
|
async realmClientsId1ProtocolMappersModelsId2Get(requestParameters: RealmClientsId1ProtocolMappersModelsId2GetRequest): Promise<ProtocolMapperRepresentation> {
|
||||||
|
const response = await this.realmClientsId1ProtocolMappersModelsId2GetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the mapper
|
||||||
|
*/
|
||||||
|
async realmClientsId1ProtocolMappersModelsId2PutRaw(requestParameters: RealmClientsId1ProtocolMappersModelsId2PutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id1 === null || requestParameters.id1 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id1','Required parameter requestParameters.id1 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id2 === null || requestParameters.id2 === undefined) {
|
||||||
|
throw new runtime.RequiredError('id2','Required parameter requestParameters.id2 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocolMapperRepresentation === null || requestParameters.protocolMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocolMapperRepresentation','Required parameter requestParameters.protocolMapperRepresentation was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id1}/protocol-mappers/models/{id2}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id1"}}`, encodeURIComponent(String(requestParameters.id1))).replace(`{${"id2"}}`, encodeURIComponent(String(requestParameters.id2))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ProtocolMapperRepresentationToJSON(requestParameters.protocolMapperRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the mapper
|
||||||
|
*/
|
||||||
|
async realmClientsId1ProtocolMappersModelsId2Put(requestParameters: RealmClientsId1ProtocolMappersModelsId2PutRequest): Promise<void> {
|
||||||
|
await this.realmClientsId1ProtocolMappersModelsId2PutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create multiple mappers
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersAddModelsPostRaw(requestParameters: RealmClientsIdProtocolMappersAddModelsPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdProtocolMappersAddModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdProtocolMappersAddModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocolMapperRepresentation === null || requestParameters.protocolMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocolMapperRepresentation','Required parameter requestParameters.protocolMapperRepresentation was null or undefined when calling realmClientsIdProtocolMappersAddModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/protocol-mappers/add-models`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.protocolMapperRepresentation.map(ProtocolMapperRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create multiple mappers
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersAddModelsPost(requestParameters: RealmClientsIdProtocolMappersAddModelsPostRequest): Promise<void> {
|
||||||
|
await this.realmClientsIdProtocolMappersAddModelsPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersModelsGetRaw(requestParameters: RealmClientsIdProtocolMappersModelsGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdProtocolMappersModelsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdProtocolMappersModelsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/protocol-mappers/models`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersModelsGet(requestParameters: RealmClientsIdProtocolMappersModelsGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientsIdProtocolMappersModelsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a mapper
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersModelsPostRaw(requestParameters: RealmClientsIdProtocolMappersModelsPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdProtocolMappersModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdProtocolMappersModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocolMapperRepresentation === null || requestParameters.protocolMapperRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocolMapperRepresentation','Required parameter requestParameters.protocolMapperRepresentation was null or undefined when calling realmClientsIdProtocolMappersModelsPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/protocol-mappers/models`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ProtocolMapperRepresentationToJSON(requestParameters.protocolMapperRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a mapper
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersModelsPost(requestParameters: RealmClientsIdProtocolMappersModelsPostRequest): Promise<void> {
|
||||||
|
await this.realmClientsIdProtocolMappersModelsPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers by name for a specific protocol
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersProtocolProtocolGetRaw(requestParameters: RealmClientsIdProtocolMappersProtocolProtocolGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmClientsIdProtocolMappersProtocolProtocolGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmClientsIdProtocolMappersProtocolProtocolGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.protocol === null || requestParameters.protocol === undefined) {
|
||||||
|
throw new runtime.RequiredError('protocol','Required parameter requestParameters.protocol was null or undefined when calling realmClientsIdProtocolMappersProtocolProtocolGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))).replace(`{${"protocol"}}`, encodeURIComponent(String(requestParameters.protocol))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get mappers by name for a specific protocol
|
||||||
|
*/
|
||||||
|
async realmClientsIdProtocolMappersProtocolProtocolGet(requestParameters: RealmClientsIdProtocolMappersProtocolProtocolGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmClientsIdProtocolMappersProtocolProtocolGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
2252
backend/keycloak/kc-client/apis/RealmsAdminApi.ts
Normal file
2252
backend/keycloak/kc-client/apis/RealmsAdminApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
633
backend/keycloak/kc-client/apis/RoleMapperApi.ts
Normal file
633
backend/keycloak/kc-client/apis/RoleMapperApi.ts
Normal file
@@ -0,0 +1,633 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
MappingsRepresentation,
|
||||||
|
MappingsRepresentationFromJSON,
|
||||||
|
MappingsRepresentationToJSON,
|
||||||
|
RoleRepresentation,
|
||||||
|
RoleRepresentationFromJSON,
|
||||||
|
RoleRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsRealmAvailableGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsRealmCompositeGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
briefRepresentation?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsRealmDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsRealmGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmGroupsIdRoleMappingsRealmPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsRealmAvailableGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsRealmCompositeGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
briefRepresentation?: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsRealmDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsRealmGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUsersIdRoleMappingsRealmPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class RoleMapperApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role mappings
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsGetRaw(requestParameters: RealmGroupsIdRoleMappingsGetRequest): Promise<runtime.ApiResponse<MappingsRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => MappingsRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role mappings
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsGet(requestParameters: RealmGroupsIdRoleMappingsGetRequest): Promise<MappingsRepresentation> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level roles that can be mapped
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmAvailableGetRaw(requestParameters: RealmGroupsIdRoleMappingsRealmAvailableGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsRealmAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsRealmAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/realm/available`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level roles that can be mapped
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmAvailableGet(requestParameters: RealmGroupsIdRoleMappingsRealmAvailableGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsRealmAvailableGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective realm-level role mappings This will recurse all composite roles to get the result.
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmCompositeGetRaw(requestParameters: RealmGroupsIdRoleMappingsRealmCompositeGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsRealmCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsRealmCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.briefRepresentation !== undefined) {
|
||||||
|
queryParameters['briefRepresentation'] = requestParameters.briefRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/realm/composite`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective realm-level role mappings This will recurse all composite roles to get the result.
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmCompositeGet(requestParameters: RealmGroupsIdRoleMappingsRealmCompositeGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsRealmCompositeGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmDeleteRaw(requestParameters: RealmGroupsIdRoleMappingsRealmDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsRealmDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsRealmDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsRealmDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmDelete(requestParameters: RealmGroupsIdRoleMappingsRealmDeleteRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdRoleMappingsRealmDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmGetRaw(requestParameters: RealmGroupsIdRoleMappingsRealmGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsRealmGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsRealmGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmGet(requestParameters: RealmGroupsIdRoleMappingsRealmGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmGroupsIdRoleMappingsRealmGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add realm-level role mappings to the user
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmPostRaw(requestParameters: RealmGroupsIdRoleMappingsRealmPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmGroupsIdRoleMappingsRealmPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmGroupsIdRoleMappingsRealmPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsRealmPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/groups/{id}/role-mappings/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add realm-level role mappings to the user
|
||||||
|
*/
|
||||||
|
async realmGroupsIdRoleMappingsRealmPost(requestParameters: RealmGroupsIdRoleMappingsRealmPostRequest): Promise<void> {
|
||||||
|
await this.realmGroupsIdRoleMappingsRealmPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role mappings
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsGetRaw(requestParameters: RealmUsersIdRoleMappingsGetRequest): Promise<runtime.ApiResponse<MappingsRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => MappingsRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role mappings
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsGet(requestParameters: RealmUsersIdRoleMappingsGetRequest): Promise<MappingsRepresentation> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level roles that can be mapped
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmAvailableGetRaw(requestParameters: RealmUsersIdRoleMappingsRealmAvailableGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsRealmAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsRealmAvailableGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/realm/available`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level roles that can be mapped
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmAvailableGet(requestParameters: RealmUsersIdRoleMappingsRealmAvailableGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsRealmAvailableGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective realm-level role mappings This will recurse all composite roles to get the result.
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmCompositeGetRaw(requestParameters: RealmUsersIdRoleMappingsRealmCompositeGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsRealmCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsRealmCompositeGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.briefRepresentation !== undefined) {
|
||||||
|
queryParameters['briefRepresentation'] = requestParameters.briefRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/realm/composite`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get effective realm-level role mappings This will recurse all composite roles to get the result.
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmCompositeGet(requestParameters: RealmUsersIdRoleMappingsRealmCompositeGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsRealmCompositeGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmDeleteRaw(requestParameters: RealmUsersIdRoleMappingsRealmDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsRealmDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsRealmDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsRealmDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmDelete(requestParameters: RealmUsersIdRoleMappingsRealmDeleteRequest): Promise<void> {
|
||||||
|
await this.realmUsersIdRoleMappingsRealmDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmGetRaw(requestParameters: RealmUsersIdRoleMappingsRealmGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsRealmGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsRealmGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level role mappings
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmGet(requestParameters: RealmUsersIdRoleMappingsRealmGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmUsersIdRoleMappingsRealmGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add realm-level role mappings to the user
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmPostRaw(requestParameters: RealmUsersIdRoleMappingsRealmPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUsersIdRoleMappingsRealmPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUsersIdRoleMappingsRealmPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsRealmPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/users/{id}/role-mappings/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add realm-level role mappings to the user
|
||||||
|
*/
|
||||||
|
async realmUsersIdRoleMappingsRealmPost(requestParameters: RealmUsersIdRoleMappingsRealmPostRequest): Promise<void> {
|
||||||
|
await this.realmUsersIdRoleMappingsRealmPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1567
backend/keycloak/kc-client/apis/RolesApi.ts
Normal file
1567
backend/keycloak/kc-client/apis/RolesApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
549
backend/keycloak/kc-client/apis/RolesByIDApi.ts
Normal file
549
backend/keycloak/kc-client/apis/RolesByIDApi.ts
Normal file
@@ -0,0 +1,549 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
ManagementPermissionReference,
|
||||||
|
ManagementPermissionReferenceFromJSON,
|
||||||
|
ManagementPermissionReferenceToJSON,
|
||||||
|
RoleRepresentation,
|
||||||
|
RoleRepresentationFromJSON,
|
||||||
|
RoleRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
clientUuid: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdCompositesDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdCompositesGetRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
first?: number;
|
||||||
|
max?: number;
|
||||||
|
search?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdCompositesPostRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
roleRepresentation: Array<RoleRepresentation>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdCompositesRealmGetRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdDeleteRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdGetRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdManagementPermissionsGetRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdManagementPermissionsPutRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
managementPermissionReference: ManagementPermissionReference;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmRolesByIdRoleIdPutRequest {
|
||||||
|
realm: string;
|
||||||
|
roleId: string;
|
||||||
|
roleRepresentation: RoleRepresentation;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class RolesByIDApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client-level roles for the client that are in the role’s composite
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesClientsClientUuidGetRaw(requestParameters: RealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdCompositesClientsClientUuidGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdCompositesClientsClientUuidGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.clientUuid === null || requestParameters.clientUuid === undefined) {
|
||||||
|
throw new runtime.RequiredError('clientUuid','Required parameter requestParameters.clientUuid was null or undefined when calling realmRolesByIdRoleIdCompositesClientsClientUuidGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))).replace(`{${"clientUuid"}}`, encodeURIComponent(String(requestParameters.clientUuid))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get client-level roles for the client that are in the role’s composite
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesClientsClientUuidGet(requestParameters: RealmRolesByIdRoleIdCompositesClientsClientUuidGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmRolesByIdRoleIdCompositesClientsClientUuidGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a set of roles from the role’s composite
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesDeleteRaw(requestParameters: RealmRolesByIdRoleIdCompositesDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdCompositesDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdCompositesDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmRolesByIdRoleIdCompositesDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/composites`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove a set of roles from the role’s composite
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesDelete(requestParameters: RealmRolesByIdRoleIdCompositesDeleteRequest): Promise<void> {
|
||||||
|
await this.realmRolesByIdRoleIdCompositesDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role’s children Returns a set of role’s children provided the role is a composite.
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesGetRaw(requestParameters: RealmRolesByIdRoleIdCompositesGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdCompositesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdCompositesGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.first !== undefined) {
|
||||||
|
queryParameters['first'] = requestParameters.first;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.max !== undefined) {
|
||||||
|
queryParameters['max'] = requestParameters.max;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.search !== undefined) {
|
||||||
|
queryParameters['search'] = requestParameters.search;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/composites`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get role’s children Returns a set of role’s children provided the role is a composite.
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesGet(requestParameters: RealmRolesByIdRoleIdCompositesGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmRolesByIdRoleIdCompositesGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make the role a composite role by associating some child roles
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesPostRaw(requestParameters: RealmRolesByIdRoleIdCompositesPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdCompositesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdCompositesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmRolesByIdRoleIdCompositesPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/composites`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: requestParameters.roleRepresentation.map(RoleRepresentationToJSON),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make the role a composite role by associating some child roles
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesPost(requestParameters: RealmRolesByIdRoleIdCompositesPostRequest): Promise<void> {
|
||||||
|
await this.realmRolesByIdRoleIdCompositesPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level roles that are in the role’s composite
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesRealmGetRaw(requestParameters: RealmRolesByIdRoleIdCompositesRealmGetRequest): Promise<runtime.ApiResponse<Array<{ [key: string]: object; }>>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdCompositesRealmGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdCompositesRealmGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/composites/realm`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get realm-level roles that are in the role’s composite
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdCompositesRealmGet(requestParameters: RealmRolesByIdRoleIdCompositesRealmGetRequest): Promise<Array<{ [key: string]: object; }>> {
|
||||||
|
const response = await this.realmRolesByIdRoleIdCompositesRealmGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the role
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdDeleteRaw(requestParameters: RealmRolesByIdRoleIdDeleteRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdDelete.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'DELETE',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the role
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdDelete(requestParameters: RealmRolesByIdRoleIdDeleteRequest): Promise<void> {
|
||||||
|
await this.realmRolesByIdRoleIdDeleteRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a specific role’s representation
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdGetRaw(requestParameters: RealmRolesByIdRoleIdGetRequest): Promise<runtime.ApiResponse<RoleRepresentation>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => RoleRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a specific role’s representation
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdGet(requestParameters: RealmRolesByIdRoleIdGetRequest): Promise<RoleRepresentation> {
|
||||||
|
const response = await this.realmRolesByIdRoleIdGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether role Authoirzation permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdManagementPermissionsGetRaw(requestParameters: RealmRolesByIdRoleIdManagementPermissionsGetRequest): Promise<runtime.ApiResponse<ManagementPermissionReference>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/management/permissions`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ManagementPermissionReferenceFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether role Authoirzation permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdManagementPermissionsGet(requestParameters: RealmRolesByIdRoleIdManagementPermissionsGetRequest): Promise<ManagementPermissionReference> {
|
||||||
|
const response = await this.realmRolesByIdRoleIdManagementPermissionsGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether role Authoirzation permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdManagementPermissionsPutRaw(requestParameters: RealmRolesByIdRoleIdManagementPermissionsPutRequest): Promise<runtime.ApiResponse<ManagementPermissionReference>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.managementPermissionReference === null || requestParameters.managementPermissionReference === undefined) {
|
||||||
|
throw new runtime.RequiredError('managementPermissionReference','Required parameter requestParameters.managementPermissionReference was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}/management/permissions`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: ManagementPermissionReferenceToJSON(requestParameters.managementPermissionReference),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ManagementPermissionReferenceFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return object stating whether role Authoirzation permissions have been initialized or not and a reference
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdManagementPermissionsPut(requestParameters: RealmRolesByIdRoleIdManagementPermissionsPutRequest): Promise<ManagementPermissionReference> {
|
||||||
|
const response = await this.realmRolesByIdRoleIdManagementPermissionsPutRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the role
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdPutRaw(requestParameters: RealmRolesByIdRoleIdPutRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmRolesByIdRoleIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleId === null || requestParameters.roleId === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleId','Required parameter requestParameters.roleId was null or undefined when calling realmRolesByIdRoleIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.roleRepresentation === null || requestParameters.roleRepresentation === undefined) {
|
||||||
|
throw new runtime.RequiredError('roleRepresentation','Required parameter requestParameters.roleRepresentation was null or undefined when calling realmRolesByIdRoleIdPut.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
headerParameters['Content-Type'] = 'application/json';
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/roles-by-id/{role-id}`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"role-id"}}`, encodeURIComponent(String(requestParameters.roleId))),
|
||||||
|
method: 'PUT',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
body: RoleRepresentationToJSON(requestParameters.roleRepresentation),
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the role
|
||||||
|
*/
|
||||||
|
async realmRolesByIdRoleIdPut(requestParameters: RealmRolesByIdRoleIdPutRequest): Promise<void> {
|
||||||
|
await this.realmRolesByIdRoleIdPutRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
62
backend/keycloak/kc-client/apis/RootApi.ts
Normal file
62
backend/keycloak/kc-client/apis/RootApi.ts
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
ServerInfoRepresentation,
|
||||||
|
ServerInfoRepresentationFromJSON,
|
||||||
|
ServerInfoRepresentationToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class RootApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get themes, social providers, auth providers, and event listeners available on this server
|
||||||
|
*/
|
||||||
|
async rootGetRaw(): Promise<runtime.ApiResponse<ServerInfoRepresentation>> {
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/`,
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => ServerInfoRepresentationFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get themes, social providers, auth providers, and event listeners available on this server
|
||||||
|
*/
|
||||||
|
async rootGet(): Promise<ServerInfoRepresentation> {
|
||||||
|
const response = await this.rootGetRaw();
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1094
backend/keycloak/kc-client/apis/ScopeMappingsApi.ts
Normal file
1094
backend/keycloak/kc-client/apis/ScopeMappingsApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
318
backend/keycloak/kc-client/apis/UserStorageProviderApi.ts
Normal file
318
backend/keycloak/kc-client/apis/UserStorageProviderApi.ts
Normal file
@@ -0,0 +1,318 @@
|
|||||||
|
/* 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 * as runtime from '../runtime';
|
||||||
|
import {
|
||||||
|
SynchronizationResult,
|
||||||
|
SynchronizationResultFromJSON,
|
||||||
|
SynchronizationResultToJSON,
|
||||||
|
} from '../models';
|
||||||
|
|
||||||
|
export interface IdNameGetRequest {
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUserStorageIdNameGetRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUserStorageIdRemoveImportedUsersPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUserStorageIdSyncPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
action?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUserStorageIdUnlinkUsersPostRequest {
|
||||||
|
realm: string;
|
||||||
|
id: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RealmUserStorageParentIdMappersIdSyncPostRequest {
|
||||||
|
realm: string;
|
||||||
|
parentId: string;
|
||||||
|
id: string;
|
||||||
|
direction?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
export class UserStorageProviderApi extends runtime.BaseAPI {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328
|
||||||
|
*/
|
||||||
|
async idNameGetRaw(requestParameters: IdNameGetRequest): Promise<runtime.ApiResponse<{ [key: string]: object; }>> {
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling idNameGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{id}/name`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328
|
||||||
|
*/
|
||||||
|
async idNameGet(requestParameters: IdNameGetRequest): Promise<{ [key: string]: object; }> {
|
||||||
|
const response = await this.idNameGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdNameGetRaw(requestParameters: RealmUserStorageIdNameGetRequest): Promise<runtime.ApiResponse<{ [key: string]: object; }>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUserStorageIdNameGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUserStorageIdNameGet.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/user-storage/{id}/name`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'GET',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse<any>(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdNameGet(requestParameters: RealmUserStorageIdNameGetRequest): Promise<{ [key: string]: object; }> {
|
||||||
|
const response = await this.realmUserStorageIdNameGetRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove imported users
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdRemoveImportedUsersPostRaw(requestParameters: RealmUserStorageIdRemoveImportedUsersPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUserStorageIdRemoveImportedUsersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUserStorageIdRemoveImportedUsersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/user-storage/{id}/remove-imported-users`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove imported users
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdRemoveImportedUsersPost(requestParameters: RealmUserStorageIdRemoveImportedUsersPostRequest): Promise<void> {
|
||||||
|
await this.realmUserStorageIdRemoveImportedUsersPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\"
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdSyncPostRaw(requestParameters: RealmUserStorageIdSyncPostRequest): Promise<runtime.ApiResponse<SynchronizationResult>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUserStorageIdSyncPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUserStorageIdSyncPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.action !== undefined) {
|
||||||
|
queryParameters['action'] = requestParameters.action;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/user-storage/{id}/sync`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => SynchronizationResultFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\"
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdSyncPost(requestParameters: RealmUserStorageIdSyncPostRequest): Promise<SynchronizationResult> {
|
||||||
|
const response = await this.realmUserStorageIdSyncPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unlink imported users from a storage provider
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdUnlinkUsersPostRaw(requestParameters: RealmUserStorageIdUnlinkUsersPostRequest): Promise<runtime.ApiResponse<void>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUserStorageIdUnlinkUsersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUserStorageIdUnlinkUsersPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/user-storage/{id}/unlink-users`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.VoidApiResponse(response);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unlink imported users from a storage provider
|
||||||
|
*/
|
||||||
|
async realmUserStorageIdUnlinkUsersPost(requestParameters: RealmUserStorageIdUnlinkUsersPostRequest): Promise<void> {
|
||||||
|
await this.realmUserStorageIdUnlinkUsersPostRaw(requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trigger sync of mapper data related to ldap mapper (roles, groups, …) direction is \"fedToKeycloak\" or \"keycloakToFed\"
|
||||||
|
*/
|
||||||
|
async realmUserStorageParentIdMappersIdSyncPostRaw(requestParameters: RealmUserStorageParentIdMappersIdSyncPostRequest): Promise<runtime.ApiResponse<SynchronizationResult>> {
|
||||||
|
if (requestParameters.realm === null || requestParameters.realm === undefined) {
|
||||||
|
throw new runtime.RequiredError('realm','Required parameter requestParameters.realm was null or undefined when calling realmUserStorageParentIdMappersIdSyncPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.parentId === null || requestParameters.parentId === undefined) {
|
||||||
|
throw new runtime.RequiredError('parentId','Required parameter requestParameters.parentId was null or undefined when calling realmUserStorageParentIdMappersIdSyncPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||||
|
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling realmUserStorageParentIdMappersIdSyncPost.');
|
||||||
|
}
|
||||||
|
|
||||||
|
const queryParameters: runtime.HTTPQuery = {};
|
||||||
|
|
||||||
|
if (requestParameters.direction !== undefined) {
|
||||||
|
queryParameters['direction'] = requestParameters.direction;
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerParameters: runtime.HTTPHeaders = {};
|
||||||
|
|
||||||
|
if (this.configuration && this.configuration.accessToken) {
|
||||||
|
const token = this.configuration.accessToken;
|
||||||
|
const tokenString = typeof token === 'function' ? token("access_token", []) : token;
|
||||||
|
|
||||||
|
if (tokenString) {
|
||||||
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const response = await this.request({
|
||||||
|
path: `/{realm}/user-storage/{parentId}/mappers/{id}/sync`.replace(`{${"realm"}}`, encodeURIComponent(String(requestParameters.realm))).replace(`{${"parentId"}}`, encodeURIComponent(String(requestParameters.parentId))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||||
|
method: 'POST',
|
||||||
|
headers: headerParameters,
|
||||||
|
query: queryParameters,
|
||||||
|
});
|
||||||
|
|
||||||
|
return new runtime.JSONApiResponse(response, (jsonValue) => SynchronizationResultFromJSON(jsonValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trigger sync of mapper data related to ldap mapper (roles, groups, …) direction is \"fedToKeycloak\" or \"keycloakToFed\"
|
||||||
|
*/
|
||||||
|
async realmUserStorageParentIdMappersIdSyncPost(requestParameters: RealmUserStorageParentIdMappersIdSyncPostRequest): Promise<SynchronizationResult> {
|
||||||
|
const response = await this.realmUserStorageParentIdMappersIdSyncPostRaw(requestParameters);
|
||||||
|
return await response.value();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1708
backend/keycloak/kc-client/apis/UsersApi.ts
Normal file
1708
backend/keycloak/kc-client/apis/UsersApi.ts
Normal file
File diff suppressed because it is too large
Load Diff
21
backend/keycloak/kc-client/apis/index.ts
Normal file
21
backend/keycloak/kc-client/apis/index.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
export * from './AttackDetectionApi';
|
||||||
|
export * from './AuthenticationManagementApi';
|
||||||
|
export * from './ClientAttributeCertificateApi';
|
||||||
|
export * from './ClientInitialAccessApi';
|
||||||
|
export * from './ClientRegistrationPolicyApi';
|
||||||
|
export * from './ClientRoleMappingsApi';
|
||||||
|
export * from './ClientScopesApi';
|
||||||
|
export * from './ClientsApi';
|
||||||
|
export * from './ComponentApi';
|
||||||
|
export * from './GroupsApi';
|
||||||
|
export * from './IdentityProvidersApi';
|
||||||
|
export * from './KeyApi';
|
||||||
|
export * from './ProtocolMappersApi';
|
||||||
|
export * from './RealmsAdminApi';
|
||||||
|
export * from './RoleMapperApi';
|
||||||
|
export * from './RolesApi';
|
||||||
|
export * from './RolesByIDApi';
|
||||||
|
export * from './RootApi';
|
||||||
|
export * from './ScopeMappingsApi';
|
||||||
|
export * from './UserStorageProviderApi';
|
||||||
|
export * from './UsersApi';
|
||||||
@@ -1,16 +1,3 @@
|
|||||||
// tslint:disable
|
export * from './runtime';
|
||||||
/**
|
export * from './apis';
|
||||||
* Keycloak Admin REST API
|
export * from './models';
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
export * from "./api";
|
|
||||||
export * from "./configuration";
|
|
||||||
|
|||||||
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';
|
||||||
316
backend/keycloak/kc-client/runtime.ts
Normal file
316
backend/keycloak/kc-client/runtime.ts
Normal file
@@ -0,0 +1,316 @@
|
|||||||
|
/* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
||||||
|
|
||||||
|
const isBlob = (value: any) => typeof Blob !== 'undefined' && value instanceof Blob;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the base class for all generated API classes.
|
||||||
|
*/
|
||||||
|
export class BaseAPI {
|
||||||
|
|
||||||
|
private middleware: Middleware[];
|
||||||
|
|
||||||
|
constructor(protected configuration = new Configuration()) {
|
||||||
|
this.middleware = configuration.middleware;
|
||||||
|
}
|
||||||
|
|
||||||
|
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {
|
||||||
|
const next = this.clone<T>();
|
||||||
|
next.middleware = next.middleware.concat(...middlewares);
|
||||||
|
return next;
|
||||||
|
}
|
||||||
|
|
||||||
|
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {
|
||||||
|
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
||||||
|
return this.withMiddleware<T>(...middlewares);
|
||||||
|
}
|
||||||
|
|
||||||
|
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {
|
||||||
|
const middlewares = postMiddlewares.map((post) => ({ post }));
|
||||||
|
return this.withMiddleware<T>(...middlewares);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected async request(context: RequestOpts): Promise<Response> {
|
||||||
|
const { url, init } = this.createFetchParams(context);
|
||||||
|
const response = await this.fetchApi(url, init);
|
||||||
|
if (response.status >= 200 && response.status < 300) {
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
throw response;
|
||||||
|
}
|
||||||
|
|
||||||
|
private createFetchParams(context: RequestOpts) {
|
||||||
|
let url = this.configuration.basePath + context.path;
|
||||||
|
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
||||||
|
// only add the querystring to the URL if there are query parameters.
|
||||||
|
// this is done to avoid urls ending with a "?" character which buggy webservers
|
||||||
|
// do not handle correctly sometimes.
|
||||||
|
url += '?' + this.configuration.queryParamsStringify(context.query);
|
||||||
|
}
|
||||||
|
const body = ((typeof FormData !== "undefined" && context.body instanceof FormData) || context.body instanceof URLSearchParams || isBlob(context.body))
|
||||||
|
? context.body
|
||||||
|
: JSON.stringify(context.body);
|
||||||
|
|
||||||
|
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
||||||
|
const init = {
|
||||||
|
method: context.method,
|
||||||
|
headers: headers,
|
||||||
|
body,
|
||||||
|
credentials: this.configuration.credentials
|
||||||
|
};
|
||||||
|
return { url, init };
|
||||||
|
}
|
||||||
|
|
||||||
|
private fetchApi = async (url: string, init: RequestInit) => {
|
||||||
|
let fetchParams = { url, init };
|
||||||
|
for (const middleware of this.middleware) {
|
||||||
|
if (middleware.pre) {
|
||||||
|
fetchParams = await middleware.pre({
|
||||||
|
fetch: this.fetchApi,
|
||||||
|
...fetchParams,
|
||||||
|
}) || fetchParams;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let response = await this.configuration.fetchApi(fetchParams.url, fetchParams.init);
|
||||||
|
for (const middleware of this.middleware) {
|
||||||
|
if (middleware.post) {
|
||||||
|
response = await middleware.post({
|
||||||
|
fetch: this.fetchApi,
|
||||||
|
url,
|
||||||
|
init,
|
||||||
|
response: response.clone(),
|
||||||
|
}) || response;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a shallow clone of `this` by constructing a new instance
|
||||||
|
* and then shallow cloning data members.
|
||||||
|
*/
|
||||||
|
private clone<T extends BaseAPI>(this: T): T {
|
||||||
|
const constructor = this.constructor as any;
|
||||||
|
const next = new constructor(this.configuration);
|
||||||
|
next.middleware = this.middleware.slice();
|
||||||
|
return next;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export class RequiredError extends Error {
|
||||||
|
name: "RequiredError" = "RequiredError";
|
||||||
|
constructor(public field: string, msg?: string) {
|
||||||
|
super(msg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const COLLECTION_FORMATS = {
|
||||||
|
csv: ",",
|
||||||
|
ssv: " ",
|
||||||
|
tsv: "\t",
|
||||||
|
pipes: "|",
|
||||||
|
};
|
||||||
|
|
||||||
|
export type FetchAPI = GlobalFetch['fetch'];
|
||||||
|
|
||||||
|
export interface ConfigurationParameters {
|
||||||
|
basePath?: string; // override base path
|
||||||
|
fetchApi?: FetchAPI; // override for fetch implementation
|
||||||
|
middleware?: Middleware[]; // middleware to apply before/after fetch requests
|
||||||
|
queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings
|
||||||
|
username?: string; // parameter for basic security
|
||||||
|
password?: string; // parameter for basic security
|
||||||
|
apiKey?: string | ((name: string) => string); // parameter for apiKey security
|
||||||
|
accessToken?: string | ((name?: string, scopes?: string[]) => string); // parameter for oauth2 security
|
||||||
|
headers?: HTTPHeaders; //header params we want to use on every request
|
||||||
|
credentials?: RequestCredentials; //value for the credentials param we want to use on each request
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Configuration {
|
||||||
|
constructor(private configuration: ConfigurationParameters = {}) {}
|
||||||
|
|
||||||
|
get basePath(): string {
|
||||||
|
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
||||||
|
}
|
||||||
|
|
||||||
|
get fetchApi(): FetchAPI {
|
||||||
|
return this.configuration.fetchApi || window.fetch.bind(window);
|
||||||
|
}
|
||||||
|
|
||||||
|
get middleware(): Middleware[] {
|
||||||
|
return this.configuration.middleware || [];
|
||||||
|
}
|
||||||
|
|
||||||
|
get queryParamsStringify(): (params: HTTPQuery) => string {
|
||||||
|
return this.configuration.queryParamsStringify || querystring;
|
||||||
|
}
|
||||||
|
|
||||||
|
get username(): string | undefined {
|
||||||
|
return this.configuration.username;
|
||||||
|
}
|
||||||
|
|
||||||
|
get password(): string | undefined {
|
||||||
|
return this.configuration.password;
|
||||||
|
}
|
||||||
|
|
||||||
|
get apiKey(): ((name: string) => string) | undefined {
|
||||||
|
const apiKey = this.configuration.apiKey;
|
||||||
|
if (apiKey) {
|
||||||
|
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
get accessToken(): ((name: string, scopes?: string[]) => string) | undefined {
|
||||||
|
const accessToken = this.configuration.accessToken;
|
||||||
|
if (accessToken) {
|
||||||
|
return typeof accessToken === 'function' ? accessToken : () => accessToken;
|
||||||
|
}
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
get headers(): HTTPHeaders | undefined {
|
||||||
|
return this.configuration.headers;
|
||||||
|
}
|
||||||
|
|
||||||
|
get credentials(): RequestCredentials | undefined {
|
||||||
|
return this.configuration.credentials;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Json = any;
|
||||||
|
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
||||||
|
export type HTTPHeaders = { [key: string]: string };
|
||||||
|
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | HTTPQuery };
|
||||||
|
export type HTTPBody = Json | FormData | URLSearchParams;
|
||||||
|
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
||||||
|
|
||||||
|
export interface FetchParams {
|
||||||
|
url: string;
|
||||||
|
init: RequestInit;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RequestOpts {
|
||||||
|
path: string;
|
||||||
|
method: HTTPMethod;
|
||||||
|
headers: HTTPHeaders;
|
||||||
|
query?: HTTPQuery;
|
||||||
|
body?: HTTPBody;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function exists(json: any, key: string) {
|
||||||
|
const value = json[key];
|
||||||
|
return value !== null && value !== undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function querystring(params: HTTPQuery, prefix: string = ''): string {
|
||||||
|
return Object.keys(params)
|
||||||
|
.map((key) => {
|
||||||
|
const fullKey = prefix + (prefix.length ? `[${key}]` : key);
|
||||||
|
const value = params[key];
|
||||||
|
if (value instanceof Array) {
|
||||||
|
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
||||||
|
.join(`&${encodeURIComponent(fullKey)}=`);
|
||||||
|
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
||||||
|
}
|
||||||
|
if (value instanceof Object) {
|
||||||
|
return querystring(value as HTTPQuery, fullKey);
|
||||||
|
}
|
||||||
|
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
||||||
|
})
|
||||||
|
.filter(part => part.length > 0)
|
||||||
|
.join('&');
|
||||||
|
}
|
||||||
|
|
||||||
|
export function mapValues(data: any, fn: (item: any) => any) {
|
||||||
|
return Object.keys(data).reduce(
|
||||||
|
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export function canConsumeForm(consumes: Consume[]): boolean {
|
||||||
|
for (const consume of consumes) {
|
||||||
|
if ('multipart/form-data' === consume.contentType) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Consume {
|
||||||
|
contentType: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface RequestContext {
|
||||||
|
fetch: FetchAPI;
|
||||||
|
url: string;
|
||||||
|
init: RequestInit;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ResponseContext {
|
||||||
|
fetch: FetchAPI;
|
||||||
|
url: string;
|
||||||
|
init: RequestInit;
|
||||||
|
response: Response;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Middleware {
|
||||||
|
pre?(context: RequestContext): Promise<FetchParams | void>;
|
||||||
|
post?(context: ResponseContext): Promise<Response | void>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ApiResponse<T> {
|
||||||
|
raw: Response;
|
||||||
|
value(): Promise<T>;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ResponseTransformer<T> {
|
||||||
|
(json: any): T;
|
||||||
|
}
|
||||||
|
|
||||||
|
export class JSONApiResponse<T> {
|
||||||
|
constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}
|
||||||
|
|
||||||
|
async value(): Promise<T> {
|
||||||
|
return this.transformer(await this.raw.json());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class VoidApiResponse {
|
||||||
|
constructor(public raw: Response) {}
|
||||||
|
|
||||||
|
async value(): Promise<void> {
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class BlobApiResponse {
|
||||||
|
constructor(public raw: Response) {}
|
||||||
|
|
||||||
|
async value(): Promise<Blob> {
|
||||||
|
return await this.raw.blob();
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export class TextApiResponse {
|
||||||
|
constructor(public raw: Response) {}
|
||||||
|
|
||||||
|
async value(): Promise<string> {
|
||||||
|
return await this.raw.text();
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@ import { UpdateUserDto } from './dto/update-user.dto';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class RegisterService {
|
export class RegisterService {
|
||||||
async create(userRepresentation: UserRepresentation) {
|
async create(userRepresentation: UserRepresentation) {
|
||||||
const config = new Configuration();
|
const config = new Configuration({accessToken: "asd"});
|
||||||
const accessToken =
|
const accessToken =
|
||||||
'eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICItQjJOQnpxUmhMTjBqNlJyUWFGRHpMaTNIQUhaMFU0VDZQUFN5Y3cyc0RrIn0.eyJleHAiOjE2NjIzODQ0NjAsImlhdCI6MTY2MjM4NDE2MCwianRpIjoiNTNkMDA2NTYtYWE2ZS00YjY1LTgyMTEtNWY4ODJmODVlNTIxIiwiaXNzIjoiaHR0cHM6Ly9vYXV0aC5hcHBzLmFydHNlcnZpcy5hbC9hdXRoL3JlYWxtcy9GbHV4ZW0tREVWIiwiYXVkIjpbInJlYWxtLW1hbmFnZW1lbnQiLCJhY2NvdW50Il0sInN1YiI6IjIzYjM5MTk0LTlhMmQtNDk3Yi1hYjM5LWIwM2YwYTJjMzM5YiIsInR5cCI6IkJlYXJlciIsImF6cCI6IndlYmFwcC1kZXYiLCJzZXNzaW9uX3N0YXRlIjoiYTg1YjZhMWUtMGQzNy00OWQ0LTk5YjUtMmZhOTU5MGZkYzhlIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwczovL2hhc3VyYS5hcHBzLmFydHNlcnZpcy5hbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiIsImRlZmF1bHQtcm9sZXMtZmx1eGVtLWRldiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7InJlYWxtLW1hbmFnZW1lbnQiOnsicm9sZXMiOlsibWFuYWdlLXVzZXJzIl19LCJ3ZWJhcHAtZGV2Ijp7InJvbGVzIjpbImFkbWluIiwidXNlciJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJlbWFpbCBoYXNzdXJhIHByb2ZpbGUiLCJzaWQiOiJhODViNmExZS0wZDM3LTQ5ZDQtOTliNS0yZmE5NTkwZmRjOGUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaHR0cHM6Ly9oYXN1cmEuaW8vand0L2NsYWltcyI6eyJ4LWhhc3VyYS1kZWZhdWx0LXJvbGUiOiJ1c2VyIiwieC1oYXN1cmEtdXNlci1pZCI6IjIzYjM5MTk0LTlhMmQtNDk3Yi1hYjM5LWIwM2YwYTJjMzM5YiIsIngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsiYWRtaW4iLCJ1c2VyIl19LCJuYW1lIjoiQWRtaW4gVGVzdCIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6IkFkbWluIiwiZmFtaWx5X25hbWUiOiJUZXN0In0.ov4yxi19x7QNHa3Jz_pNSLVwtZukYhfh-cbfHUOrIKlIuaZDO_QAohmO6Vgv7uiKRFMHp4ntJntJiaH-lxtPAUo7ai4c6hbjnZPYI-yzSwsohfuEh7eG7sgowV2j4DZ8nxJp4WS1ipukilAQhdITKuKGjUuA9vpy5NNh-kzIakJDp8Jh0OYcIncV-WrDSmnvDQPP4grq09kXcg34e6YNWr4LCJgQDkUQ4XAZOLfqNs7cqqJL57kdEN7oEDzczMCYY9baRvflEtxDWMKNSjYW6-9L6mF3aKG1sR0JHogf24CmwuVNohgda2dCqmp57Djsyr7tqdll0fnhEiUBi-h3xQ';
|
'eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICItQjJOQnpxUmhMTjBqNlJyUWFGRHpMaTNIQUhaMFU0VDZQUFN5Y3cyc0RrIn0.eyJleHAiOjE2NjIzODQ0NjAsImlhdCI6MTY2MjM4NDE2MCwianRpIjoiNTNkMDA2NTYtYWE2ZS00YjY1LTgyMTEtNWY4ODJmODVlNTIxIiwiaXNzIjoiaHR0cHM6Ly9vYXV0aC5hcHBzLmFydHNlcnZpcy5hbC9hdXRoL3JlYWxtcy9GbHV4ZW0tREVWIiwiYXVkIjpbInJlYWxtLW1hbmFnZW1lbnQiLCJhY2NvdW50Il0sInN1YiI6IjIzYjM5MTk0LTlhMmQtNDk3Yi1hYjM5LWIwM2YwYTJjMzM5YiIsInR5cCI6IkJlYXJlciIsImF6cCI6IndlYmFwcC1kZXYiLCJzZXNzaW9uX3N0YXRlIjoiYTg1YjZhMWUtMGQzNy00OWQ0LTk5YjUtMmZhOTU5MGZkYzhlIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyJodHRwczovL2hhc3VyYS5hcHBzLmFydHNlcnZpcy5hbCIsImh0dHA6Ly9sb2NhbGhvc3Q6MzAwMCJdLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiIsImRlZmF1bHQtcm9sZXMtZmx1eGVtLWRldiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7InJlYWxtLW1hbmFnZW1lbnQiOnsicm9sZXMiOlsibWFuYWdlLXVzZXJzIl19LCJ3ZWJhcHAtZGV2Ijp7InJvbGVzIjpbImFkbWluIiwidXNlciJdfSwiYWNjb3VudCI6eyJyb2xlcyI6WyJtYW5hZ2UtYWNjb3VudCIsIm1hbmFnZS1hY2NvdW50LWxpbmtzIiwidmlldy1wcm9maWxlIl19fSwic2NvcGUiOiJlbWFpbCBoYXNzdXJhIHByb2ZpbGUiLCJzaWQiOiJhODViNmExZS0wZDM3LTQ5ZDQtOTliNS0yZmE5NTkwZmRjOGUiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaHR0cHM6Ly9oYXN1cmEuaW8vand0L2NsYWltcyI6eyJ4LWhhc3VyYS1kZWZhdWx0LXJvbGUiOiJ1c2VyIiwieC1oYXN1cmEtdXNlci1pZCI6IjIzYjM5MTk0LTlhMmQtNDk3Yi1hYjM5LWIwM2YwYTJjMzM5YiIsIngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsiYWRtaW4iLCJ1c2VyIl19LCJuYW1lIjoiQWRtaW4gVGVzdCIsInByZWZlcnJlZF91c2VybmFtZSI6ImFkbWluIiwiZ2l2ZW5fbmFtZSI6IkFkbWluIiwiZmFtaWx5X25hbWUiOiJUZXN0In0.ov4yxi19x7QNHa3Jz_pNSLVwtZukYhfh-cbfHUOrIKlIuaZDO_QAohmO6Vgv7uiKRFMHp4ntJntJiaH-lxtPAUo7ai4c6hbjnZPYI-yzSwsohfuEh7eG7sgowV2j4DZ8nxJp4WS1ipukilAQhdITKuKGjUuA9vpy5NNh-kzIakJDp8Jh0OYcIncV-WrDSmnvDQPP4grq09kXcg34e6YNWr4LCJgQDkUQ4XAZOLfqNs7cqqJL57kdEN7oEDzczMCYY9baRvflEtxDWMKNSjYW6-9L6mF3aKG1sR0JHogf24CmwuVNohgda2dCqmp57Djsyr7tqdll0fnhEiUBi-h3xQ';
|
||||||
const basePath = `${process.env.KC_BASE_URL}/auth/admin/realms`;
|
const basePath = `${process.env.KC_BASE_URL}/auth/admin/realms`;
|
||||||
|
|||||||
Reference in New Issue
Block a user