From 6bb920861a96fb89cf5093db954ff22b310ecc25 Mon Sep 17 00:00:00 2001 From: Julian Cuni Date: Wed, 7 Sep 2022 09:12:26 +0200 Subject: [PATCH] switched to supertokens --- backend/.eslintrc.js | 25 + backend/keycloak/kc-client/.gitignore | 4 - backend/keycloak/kc-client/.npmignore | 1 - .../kc-client/.openapi-generator-ignore | 23 - .../kc-client/.openapi-generator/VERSION | 1 - backend/keycloak/kc-client/api.ts | 33753 ---------------- backend/keycloak/kc-client/base.ts | 70 - backend/keycloak/kc-client/configuration.ts | 75 - backend/keycloak/kc-client/git_push.sh | 58 - backend/keycloak/kc-client/index.ts | 16 - backend/keycloak/openapi.specs.json | 14214 ------- backend/keycloak/openapi.specs.yml | 9368 ----- backend/keycloak/openapi.yaml | 9318 ----- backend/openapitools.json | 7 - backend/package.json | 19 +- backend/src/app.controller.spec.ts | 22 + backend/src/app.controller.ts | 5 +- backend/src/app.module.ts | 13 +- backend/src/app.service.ts | 8 + backend/src/auth/auth.module.ts | 8 - backend/src/auth/login/dto/kc.data.dto.ts | 8 - backend/src/auth/login/dto/login.dto.ts | 5 - backend/src/auth/login/dto/token.dto.ts | 10 - .../src/auth/login/entities/login.entity.ts | 1 - backend/src/auth/login/login.controller.ts | 18 - backend/src/auth/login/login.module.ts | 10 - backend/src/auth/login/login.service.ts | 37 - .../src/auth/register/dto/create-user.dto.ts | 1 - .../src/auth/register/dto/update-user.dto.ts | 4 - .../auth/register/entities/register.entity.ts | 1 - .../src/auth/register/register.controller.ts | 46 - backend/src/auth/register/register.module.ts | 10 - backend/src/auth/register/register.service.ts | 100 - backend/src/main.ts | 2 +- backend/yarn.lock | 1481 +- yarn.lock | 4 + 36 files changed, 1083 insertions(+), 67663 deletions(-) create mode 100644 backend/.eslintrc.js delete mode 100644 backend/keycloak/kc-client/.gitignore delete mode 100644 backend/keycloak/kc-client/.npmignore delete mode 100644 backend/keycloak/kc-client/.openapi-generator-ignore delete mode 100644 backend/keycloak/kc-client/.openapi-generator/VERSION delete mode 100644 backend/keycloak/kc-client/api.ts delete mode 100644 backend/keycloak/kc-client/base.ts delete mode 100644 backend/keycloak/kc-client/configuration.ts delete mode 100644 backend/keycloak/kc-client/git_push.sh delete mode 100644 backend/keycloak/kc-client/index.ts delete mode 100644 backend/keycloak/openapi.specs.json delete mode 100644 backend/keycloak/openapi.specs.yml delete mode 100644 backend/keycloak/openapi.yaml delete mode 100644 backend/openapitools.json create mode 100644 backend/src/app.controller.spec.ts create mode 100644 backend/src/app.service.ts delete mode 100644 backend/src/auth/auth.module.ts delete mode 100644 backend/src/auth/login/dto/kc.data.dto.ts delete mode 100644 backend/src/auth/login/dto/login.dto.ts delete mode 100644 backend/src/auth/login/dto/token.dto.ts delete mode 100644 backend/src/auth/login/entities/login.entity.ts delete mode 100644 backend/src/auth/login/login.controller.ts delete mode 100644 backend/src/auth/login/login.module.ts delete mode 100644 backend/src/auth/login/login.service.ts delete mode 100644 backend/src/auth/register/dto/create-user.dto.ts delete mode 100644 backend/src/auth/register/dto/update-user.dto.ts delete mode 100644 backend/src/auth/register/entities/register.entity.ts delete mode 100644 backend/src/auth/register/register.controller.ts delete mode 100644 backend/src/auth/register/register.module.ts delete mode 100644 backend/src/auth/register/register.service.ts create mode 100644 yarn.lock diff --git a/backend/.eslintrc.js b/backend/.eslintrc.js new file mode 100644 index 0000000..8f5aedb --- /dev/null +++ b/backend/.eslintrc.js @@ -0,0 +1,25 @@ +module.exports = { + parser: '@typescript-eslint/parser', + parserOptions: { + project: 'tsconfig.json', + tsconfigRootDir : __dirname, + sourceType: 'module', + }, + plugins: ['@typescript-eslint/eslint-plugin'], + extends: [ + 'plugin:@typescript-eslint/recommended', + 'plugin:prettier/recommended', + ], + root: true, + env: { + node: true, + jest: true, + }, + ignorePatterns: ['.eslintrc.js'], + rules: { + '@typescript-eslint/interface-name-prefix': 'off', + '@typescript-eslint/explicit-function-return-type': 'off', + '@typescript-eslint/explicit-module-boundary-types': 'off', + '@typescript-eslint/no-explicit-any': 'off', + }, +}; diff --git a/backend/keycloak/kc-client/.gitignore b/backend/keycloak/kc-client/.gitignore deleted file mode 100644 index 205d801..0000000 --- a/backend/keycloak/kc-client/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -wwwroot/*.js -node_modules -typings -dist \ No newline at end of file diff --git a/backend/keycloak/kc-client/.npmignore b/backend/keycloak/kc-client/.npmignore deleted file mode 100644 index 999d88d..0000000 --- a/backend/keycloak/kc-client/.npmignore +++ /dev/null @@ -1 +0,0 @@ -# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/backend/keycloak/kc-client/.openapi-generator-ignore b/backend/keycloak/kc-client/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/backend/keycloak/kc-client/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/backend/keycloak/kc-client/.openapi-generator/VERSION b/backend/keycloak/kc-client/.openapi-generator/VERSION deleted file mode 100644 index ecedc98..0000000 --- a/backend/keycloak/kc-client/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/backend/keycloak/kc-client/api.ts b/backend/keycloak/kc-client/api.ts deleted file mode 100644 index 9c90d00..0000000 --- a/backend/keycloak/kc-client/api.ts +++ /dev/null @@ -1,33753 +0,0 @@ -// tslint: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 globalImportUrl from 'url'; -import { Configuration } from './configuration'; -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; -// Some imports not used depending on template conditions -// @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; - -/** - * - * @export - * @interface AccessToken - */ -export interface AccessToken { - /** - * - * @type {string} - * @memberof AccessToken - */ - acr?: string; - /** - * - * @type {AddressClaimSet} - * @memberof AccessToken - */ - address?: AddressClaimSet; - /** - * - * @type {Array} - * @memberof AccessToken - */ - allowed_origins?: Array; - /** - * - * @type {string} - * @memberof AccessToken - */ - at_hash?: string; - /** - * - * @type {number} - * @memberof AccessToken - */ - auth_time?: number; - /** - * - * @type {AccessTokenAuthorization} - * @memberof AccessToken - */ - authorization?: AccessTokenAuthorization; - /** - * - * @type {string} - * @memberof AccessToken - */ - azp?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - birthdate?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - c_hash?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - category?: AccessTokenCategoryEnum; - /** - * - * @type {string} - * @memberof AccessToken - */ - claims_locales?: string; - /** - * - * @type {AccessTokenCertConf} - * @memberof AccessToken - */ - cnf?: AccessTokenCertConf; - /** - * - * @type {string} - * @memberof AccessToken - */ - email?: string; - /** - * - * @type {boolean} - * @memberof AccessToken - */ - email_verified?: boolean; - /** - * - * @type {number} - * @memberof AccessToken - */ - exp?: number; - /** - * - * @type {string} - * @memberof AccessToken - */ - family_name?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - gender?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - given_name?: 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 - */ - middle_name?: 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 - */ - phone_number?: string; - /** - * - * @type {boolean} - * @memberof AccessToken - */ - phone_number_verified?: boolean; - /** - * - * @type {string} - * @memberof AccessToken - */ - picture?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - preferred_username?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - profile?: string; - /** - * - * @type {AccessTokenAccess} - * @memberof AccessToken - */ - realm_access?: AccessTokenAccess; - /** - * - * @type {string} - * @memberof AccessToken - */ - s_hash?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - scope?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - session_state?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - sid?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - sub?: string; - /** - * - * @type {Array} - * @memberof AccessToken - */ - trusted_certs?: Array; - /** - * - * @type {string} - * @memberof AccessToken - */ - typ?: string; - /** - * - * @type {number} - * @memberof AccessToken - */ - updated_at?: number; - /** - * - * @type {string} - * @memberof AccessToken - */ - website?: string; - /** - * - * @type {string} - * @memberof AccessToken - */ - zoneinfo?: string; -} - -/** - * @export - * @enum {string} - */ -export enum AccessTokenCategoryEnum { - INTERNAL = 'INTERNAL', - ACCESS = 'ACCESS', - ID = 'ID', - ADMIN = 'ADMIN', - USERINFO = 'USERINFO', - LOGOUT = 'LOGOUT', - AUTHORIZATIONRESPONSE = 'AUTHORIZATION_RESPONSE' -} - -/** - * - * @export - * @interface AccessTokenAccess - */ -export interface AccessTokenAccess { - /** - * - * @type {Array} - * @memberof AccessTokenAccess - */ - roles?: Array; - /** - * - * @type {boolean} - * @memberof AccessTokenAccess - */ - verify_caller?: boolean; -} -/** - * - * @export - * @interface AccessTokenAuthorization - */ -export interface AccessTokenAuthorization { - /** - * - * @type {Array} - * @memberof AccessTokenAuthorization - */ - permissions?: Array; -} -/** - * - * @export - * @interface AccessTokenCertConf - */ -export interface AccessTokenCertConf { - /** - * - * @type {string} - * @memberof AccessTokenCertConf - */ - x5tS256?: string; -} -/** - * - * @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 - */ - postal_code?: string; - /** - * - * @type {string} - * @memberof AddressClaimSet - */ - region?: string; - /** - * - * @type {string} - * @memberof AddressClaimSet - */ - street_address?: string; -} -/** - * - * @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 - * @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} - * @memberof AuthenticationExecutionInfoRepresentation - */ - requirementChoices?: Array; -} -/** - * - * @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 - * @interface AuthenticationFlowRepresentation - */ -export interface AuthenticationFlowRepresentation { - /** - * - * @type {string} - * @memberof AuthenticationFlowRepresentation - */ - alias?: string; - /** - * - * @type {Array} - * @memberof AuthenticationFlowRepresentation - */ - authenticationExecutions?: Array; - /** - * - * @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 - * @interface AuthenticatorConfigInfoRepresentation - */ -export interface AuthenticatorConfigInfoRepresentation { - /** - * - * @type {string} - * @memberof AuthenticatorConfigInfoRepresentation - */ - helpText?: string; - /** - * - * @type {string} - * @memberof AuthenticatorConfigInfoRepresentation - */ - name?: string; - /** - * - * @type {Array} - * @memberof AuthenticatorConfigInfoRepresentation - */ - properties?: Array; - /** - * - * @type {string} - * @memberof AuthenticatorConfigInfoRepresentation - */ - providerId?: string; -} -/** - * - * @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 - * @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 - * @interface ClientInitialAccessCreatePresentation - */ -export interface ClientInitialAccessCreatePresentation { - /** - * - * @type {number} - * @memberof ClientInitialAccessCreatePresentation - */ - count?: number; - /** - * - * @type {number} - * @memberof ClientInitialAccessCreatePresentation - */ - expiration?: number; -} -/** - * - * @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 - * @interface ClientMappingsRepresentation - */ -export interface ClientMappingsRepresentation { - /** - * - * @type {string} - * @memberof ClientMappingsRepresentation - */ - client?: string; - /** - * - * @type {string} - * @memberof ClientMappingsRepresentation - */ - id?: string; - /** - * - * @type {Array} - * @memberof ClientMappingsRepresentation - */ - mappings?: Array; -} -/** - * - * @export - * @interface ClientPoliciesRepresentation - */ -export interface ClientPoliciesRepresentation { - /** - * - * @type {Array} - * @memberof ClientPoliciesRepresentation - */ - policies?: Array; -} -/** - * - * @export - * @interface ClientPolicyConditionRepresentation - */ -export interface ClientPolicyConditionRepresentation { - /** - * - * @type {string} - * @memberof ClientPolicyConditionRepresentation - */ - condition?: string; - /** - * - * @type {JsonNode} - * @memberof ClientPolicyConditionRepresentation - */ - configuration?: JsonNode; -} -/** - * - * @export - * @interface ClientPolicyExecutorRepresentation - */ -export interface ClientPolicyExecutorRepresentation { - /** - * - * @type {JsonNode} - * @memberof ClientPolicyExecutorRepresentation - */ - configuration?: JsonNode; - /** - * - * @type {string} - * @memberof ClientPolicyExecutorRepresentation - */ - executor?: string; -} -/** - * - * @export - * @interface ClientPolicyRepresentation - */ -export interface ClientPolicyRepresentation { - /** - * - * @type {Array} - * @memberof ClientPolicyRepresentation - */ - conditions?: Array; - /** - * - * @type {string} - * @memberof ClientPolicyRepresentation - */ - description?: string; - /** - * - * @type {boolean} - * @memberof ClientPolicyRepresentation - */ - enabled?: boolean; - /** - * - * @type {string} - * @memberof ClientPolicyRepresentation - */ - name?: string; - /** - * - * @type {Array} - * @memberof ClientPolicyRepresentation - */ - profiles?: Array; -} -/** - * - * @export - * @interface ClientProfileRepresentation - */ -export interface ClientProfileRepresentation { - /** - * - * @type {string} - * @memberof ClientProfileRepresentation - */ - description?: string; - /** - * - * @type {Array} - * @memberof ClientProfileRepresentation - */ - executors?: Array; - /** - * - * @type {string} - * @memberof ClientProfileRepresentation - */ - name?: string; -} -/** - * - * @export - * @interface ClientProfilesRepresentation - */ -export interface ClientProfilesRepresentation { - /** - * - * @type {Array} - * @memberof ClientProfilesRepresentation - */ - globalProfiles?: Array; - /** - * - * @type {Array} - * @memberof ClientProfilesRepresentation - */ - profiles?: Array; -} -/** - * - * @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} - * @memberof ClientRepresentation - */ - defaultClientScopes?: Array; - /** - * - * @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} - * @memberof ClientRepresentation - */ - optionalClientScopes?: Array; - /** - * - * @type {string} - * @memberof ClientRepresentation - */ - origin?: string; - /** - * - * @type {string} - * @memberof ClientRepresentation - */ - protocol?: string; - /** - * - * @type {Array} - * @memberof ClientRepresentation - */ - protocolMappers?: Array; - /** - * - * @type {boolean} - * @memberof ClientRepresentation - */ - publicClient?: boolean; - /** - * - * @type {Array} - * @memberof ClientRepresentation - */ - redirectUris?: Array; - /** - * - * @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} - * @memberof ClientRepresentation - */ - webOrigins?: Array; -} -/** - * - * @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 - * @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} - * @memberof ClientScopeRepresentation - */ - protocolMappers?: Array; -} -/** - * - * @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 - * @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 - * @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} - * @memberof ConfigPropertyRepresentation - */ - options?: Array; - /** - * - * @type {boolean} - * @memberof ConfigPropertyRepresentation - */ - readOnly?: boolean; - /** - * - * @type {boolean} - * @memberof ConfigPropertyRepresentation - */ - secret?: boolean; - /** - * - * @type {string} - * @memberof ConfigPropertyRepresentation - */ - type?: string; -} -/** - * - * @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 - * @interface FederatedIdentityRepresentation - */ -export interface FederatedIdentityRepresentation { - /** - * - * @type {string} - * @memberof FederatedIdentityRepresentation - */ - identityProvider?: string; - /** - * - * @type {string} - * @memberof FederatedIdentityRepresentation - */ - userId?: string; - /** - * - * @type {string} - * @memberof FederatedIdentityRepresentation - */ - userName?: string; -} -/** - * - * @export - * @interface GlobalRequestResult - */ -export interface GlobalRequestResult { - /** - * - * @type {Array} - * @memberof GlobalRequestResult - */ - failedRequests?: Array; - /** - * - * @type {Array} - * @memberof GlobalRequestResult - */ - successRequests?: Array; -} -/** - * - * @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} - * @memberof GroupRepresentation - */ - realmRoles?: Array; - /** - * - * @type {Array} - * @memberof GroupRepresentation - */ - subGroups?: Array; -} -/** - * - * @export - * @interface IDToken - */ -export interface IDToken { - /** - * - * @type {string} - * @memberof IDToken - */ - acr?: string; - /** - * - * @type {AddressClaimSet} - * @memberof IDToken - */ - address?: AddressClaimSet; - /** - * - * @type {string} - * @memberof IDToken - */ - at_hash?: string; - /** - * - * @type {number} - * @memberof IDToken - */ - auth_time?: number; - /** - * - * @type {string} - * @memberof IDToken - */ - azp?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - birthdate?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - c_hash?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - category?: IDTokenCategoryEnum; - /** - * - * @type {string} - * @memberof IDToken - */ - claims_locales?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - email?: string; - /** - * - * @type {boolean} - * @memberof IDToken - */ - email_verified?: boolean; - /** - * - * @type {number} - * @memberof IDToken - */ - exp?: number; - /** - * - * @type {string} - * @memberof IDToken - */ - family_name?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - gender?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - given_name?: 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 - */ - middle_name?: 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 - */ - phone_number?: string; - /** - * - * @type {boolean} - * @memberof IDToken - */ - phone_number_verified?: boolean; - /** - * - * @type {string} - * @memberof IDToken - */ - picture?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - preferred_username?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - profile?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - s_hash?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - session_state?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - sid?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - sub?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - typ?: string; - /** - * - * @type {number} - * @memberof IDToken - */ - updated_at?: number; - /** - * - * @type {string} - * @memberof IDToken - */ - website?: string; - /** - * - * @type {string} - * @memberof IDToken - */ - zoneinfo?: string; -} - -/** - * @export - * @enum {string} - */ -export enum IDTokenCategoryEnum { - INTERNAL = 'INTERNAL', - ACCESS = 'ACCESS', - ID = 'ID', - ADMIN = 'ADMIN', - USERINFO = 'USERINFO', - LOGOUT = 'LOGOUT', - AUTHORIZATIONRESPONSE = 'AUTHORIZATION_RESPONSE' -} - -/** - * - * @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 - * @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 - * @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 - * @enum {string} - */ -export enum JsonNodeNodeTypeEnum { - ARRAY = 'ARRAY', - BINARY = 'BINARY', - BOOLEAN = 'BOOLEAN', - MISSING = 'MISSING', - NULL = 'NULL', - NUMBER = 'NUMBER', - OBJECT = 'OBJECT', - POJO = 'POJO', - STRING = 'STRING' -} - -/** - * - * @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 - * @interface KeysMetadataRepresentation - */ -export interface KeysMetadataRepresentation { - /** - * - * @type {{ [key: string]: object; }} - * @memberof KeysMetadataRepresentation - */ - active?: { [key: string]: object; }; - /** - * - * @type {Array} - * @memberof KeysMetadataRepresentation - */ - keys?: Array; -} -/** - * - * @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 - * @enum {string} - */ -export enum KeysMetadataRepresentationKeyMetadataRepresentationUseEnum { - SIG = 'SIG', - ENC = 'ENC' -} - -/** - * - * @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 - * @interface MappingsRepresentation - */ -export interface MappingsRepresentation { - /** - * - * @type {{ [key: string]: object; }} - * @memberof MappingsRepresentation - */ - clientMappings?: { [key: string]: object; }; - /** - * - * @type {Array} - * @memberof MappingsRepresentation - */ - realmMappings?: Array; -} -/** - * - * @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 - * @interface MultivaluedHashMap - */ -export interface MultivaluedHashMap { - /** - * - * @type {boolean} - * @memberof MultivaluedHashMap - */ - empty?: boolean; - /** - * - * @type {number} - * @memberof MultivaluedHashMap - */ - loadFactor?: number; - /** - * - * @type {number} - * @memberof MultivaluedHashMap - */ - threshold?: number; -} -/** - * - * @export - * @interface PartialImportRepresentation - */ -export interface PartialImportRepresentation { - /** - * - * @type {Array} - * @memberof PartialImportRepresentation - */ - clients?: Array; - /** - * - * @type {Array} - * @memberof PartialImportRepresentation - */ - groups?: Array; - /** - * - * @type {Array} - * @memberof PartialImportRepresentation - */ - identityProviders?: Array; - /** - * - * @type {string} - * @memberof PartialImportRepresentation - */ - ifResourceExists?: string; - /** - * - * @type {string} - * @memberof PartialImportRepresentation - */ - policy?: PartialImportRepresentationPolicyEnum; - /** - * - * @type {RolesRepresentation} - * @memberof PartialImportRepresentation - */ - roles?: RolesRepresentation; - /** - * - * @type {Array} - * @memberof PartialImportRepresentation - */ - users?: Array; -} - -/** - * @export - * @enum {string} - */ -export enum PartialImportRepresentationPolicyEnum { - SKIP = 'SKIP', - OVERWRITE = 'OVERWRITE', - FAIL = 'FAIL' -} - -/** - * - * @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 - * @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} - * @memberof Permission - */ - scopes?: Array; -} -/** - * - * @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} - * @memberof PolicyRepresentation - */ - policies?: Array; - /** - * - * @type {Array} - * @memberof PolicyRepresentation - */ - resources?: Array; - /** - * - * @type {Array} - * @memberof PolicyRepresentation - */ - resourcesData?: Array; - /** - * - * @type {Array} - * @memberof PolicyRepresentation - */ - scopes?: Array; - /** - * - * @type {Array} - * @memberof PolicyRepresentation - */ - scopesData?: Array; - /** - * - * @type {string} - * @memberof PolicyRepresentation - */ - type?: string; -} - -/** - * @export - * @enum {string} - */ -export enum PolicyRepresentationDecisionStrategyEnum { - AFFIRMATIVE = 'AFFIRMATIVE', - UNANIMOUS = 'UNANIMOUS', - CONSENSUS = 'CONSENSUS' -} -/** - * @export - * @enum {string} - */ -export enum PolicyRepresentationLogicEnum { - POSITIVE = 'POSITIVE', - NEGATIVE = 'NEGATIVE' -} - -/** - * - * @export - * @interface ProfileInfoRepresentation - */ -export interface ProfileInfoRepresentation { - /** - * - * @type {Array} - * @memberof ProfileInfoRepresentation - */ - disabledFeatures?: Array; - /** - * - * @type {Array} - * @memberof ProfileInfoRepresentation - */ - experimentalFeatures?: Array; - /** - * - * @type {string} - * @memberof ProfileInfoRepresentation - */ - name?: string; - /** - * - * @type {Array} - * @memberof ProfileInfoRepresentation - */ - previewFeatures?: Array; -} -/** - * - * @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 - * @interface ProviderRepresentation - */ -export interface ProviderRepresentation { - /** - * - * @type {{ [key: string]: object; }} - * @memberof ProviderRepresentation - */ - operationalInfo?: { [key: string]: object; }; - /** - * - * @type {number} - * @memberof ProviderRepresentation - */ - order?: number; -} -/** - * - * @export - * @interface RealmEventsConfigRepresentation - */ -export interface RealmEventsConfigRepresentation { - /** - * - * @type {boolean} - * @memberof RealmEventsConfigRepresentation - */ - adminEventsDetailsEnabled?: boolean; - /** - * - * @type {boolean} - * @memberof RealmEventsConfigRepresentation - */ - adminEventsEnabled?: boolean; - /** - * - * @type {Array} - * @memberof RealmEventsConfigRepresentation - */ - enabledEventTypes?: Array; - /** - * - * @type {boolean} - * @memberof RealmEventsConfigRepresentation - */ - eventsEnabled?: boolean; - /** - * - * @type {number} - * @memberof RealmEventsConfigRepresentation - */ - eventsExpiration?: number; - /** - * - * @type {Array} - * @memberof RealmEventsConfigRepresentation - */ - eventsListeners?: Array; -} -/** - * - * @export - * @interface RealmRepresentation - */ -export interface RealmRepresentation { - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - accessCodeLifespan?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - accessCodeLifespanLogin?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - accessCodeLifespanUserAction?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - accessTokenLifespan?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - accessTokenLifespanForImplicitFlow?: number; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - accountTheme?: string; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - actionTokenGeneratedByAdminLifespan?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - actionTokenGeneratedByUserLifespan?: number; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - adminEventsDetailsEnabled?: boolean; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - adminEventsEnabled?: boolean; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - adminTheme?: string; - /** - * - * @type {{ [key: string]: object; }} - * @memberof RealmRepresentation - */ - attributes?: { [key: string]: object; }; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - authenticationFlows?: Array; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - authenticatorConfig?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - browserFlow?: string; - /** - * - * @type {{ [key: string]: object; }} - * @memberof RealmRepresentation - */ - browserSecurityHeaders?: { [key: string]: object; }; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - bruteForceProtected?: boolean; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - clientAuthenticationFlow?: string; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - clientOfflineSessionIdleTimeout?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - clientOfflineSessionMaxLifespan?: number; - /** - * - * @type {JsonNode} - * @memberof RealmRepresentation - */ - clientPolicies?: JsonNode; - /** - * - * @type {JsonNode} - * @memberof RealmRepresentation - */ - clientProfiles?: JsonNode; - /** - * - * @type {{ [key: string]: object; }} - * @memberof RealmRepresentation - */ - clientScopeMappings?: { [key: string]: object; }; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - clientScopes?: Array; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - clientSessionIdleTimeout?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - clientSessionMaxLifespan?: number; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - clients?: Array; - /** - * - * @type {MultivaluedHashMap} - * @memberof RealmRepresentation - */ - components?: MultivaluedHashMap; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - defaultDefaultClientScopes?: Array; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - defaultGroups?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - defaultLocale?: string; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - defaultOptionalClientScopes?: Array; - /** - * - * @type {RoleRepresentation} - * @memberof RealmRepresentation - */ - defaultRole?: RoleRepresentation; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - defaultSignatureAlgorithm?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - directGrantFlow?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - displayName?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - displayNameHtml?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - dockerAuthenticationFlow?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - duplicateEmailsAllowed?: boolean; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - editUsernameAllowed?: boolean; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - emailTheme?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - enabled?: boolean; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - enabledEventTypes?: Array; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - eventsEnabled?: boolean; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - eventsExpiration?: number; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - eventsListeners?: Array; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - failureFactor?: number; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - federatedUsers?: Array; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - groups?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - id?: string; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - identityProviderMappers?: Array; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - identityProviders?: Array; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - internationalizationEnabled?: boolean; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - keycloakVersion?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - loginTheme?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - loginWithEmailAllowed?: boolean; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - maxDeltaTimeSeconds?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - maxFailureWaitSeconds?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - minimumQuickLoginWaitSeconds?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - notBefore?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - oAuth2DeviceCodeLifespan?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - oAuth2DevicePollingInterval?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - oauth2DeviceCodeLifespan?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - oauth2DevicePollingInterval?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - offlineSessionIdleTimeout?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - offlineSessionMaxLifespan?: number; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - offlineSessionMaxLifespanEnabled?: boolean; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - otpPolicyAlgorithm?: string; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - otpPolicyDigits?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - otpPolicyInitialCounter?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - otpPolicyLookAheadWindow?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - otpPolicyPeriod?: number; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - otpPolicyType?: string; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - otpSupportedApplications?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - passwordPolicy?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - permanentLockout?: boolean; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - protocolMappers?: Array; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - quickLoginCheckMilliSeconds?: number; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - realm?: string; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - refreshTokenMaxReuse?: number; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - registrationAllowed?: boolean; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - registrationEmailAsUsername?: boolean; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - registrationFlow?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - rememberMe?: boolean; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - requiredActions?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - resetCredentialsFlow?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - resetPasswordAllowed?: boolean; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - revokeRefreshToken?: boolean; - /** - * - * @type {RolesRepresentation} - * @memberof RealmRepresentation - */ - roles?: RolesRepresentation; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - scopeMappings?: Array; - /** - * - * @type {{ [key: string]: object; }} - * @memberof RealmRepresentation - */ - smtpServer?: { [key: string]: object; }; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - sslRequired?: string; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - ssoSessionIdleTimeout?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - ssoSessionIdleTimeoutRememberMe?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - ssoSessionMaxLifespan?: number; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - ssoSessionMaxLifespanRememberMe?: number; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - supportedLocales?: Array; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - userFederationMappers?: Array; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - userFederationProviders?: Array; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - userManagedAccessAllowed?: boolean; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - users?: Array; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - verifyEmail?: boolean; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - waitIncrementSeconds?: number; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - webAuthnPolicyAcceptableAaguids?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyAttestationConveyancePreference?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyAuthenticatorAttachment?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - webAuthnPolicyAvoidSameAuthenticatorRegister?: boolean; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - webAuthnPolicyCreateTimeout?: number; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessAcceptableAaguids?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessAttestationConveyancePreference?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessAuthenticatorAttachment?: string; - /** - * - * @type {boolean} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister?: boolean; - /** - * - * @type {number} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessCreateTimeout?: number; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessRequireResidentKey?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessRpEntityName?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessRpId?: string; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessSignatureAlgorithms?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyPasswordlessUserVerificationRequirement?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyRequireResidentKey?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyRpEntityName?: string; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyRpId?: string; - /** - * - * @type {Array} - * @memberof RealmRepresentation - */ - webAuthnPolicySignatureAlgorithms?: Array; - /** - * - * @type {string} - * @memberof RealmRepresentation - */ - webAuthnPolicyUserVerificationRequirement?: string; -} -/** - * - * @export - * @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 - * @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 - */ - icon_uri?: string; - /** - * - * @type {string} - * @memberof ResourceRepresentation - */ - name?: string; - /** - * - * @type {boolean} - * @memberof ResourceRepresentation - */ - ownerManagedAccess?: boolean; - /** - * - * @type {Array} - * @memberof ResourceRepresentation - */ - scopes?: Array; - /** - * - * @type {string} - * @memberof ResourceRepresentation - */ - type?: string; - /** - * - * @type {Array} - * @memberof ResourceRepresentation - */ - uris?: Array; -} -/** - * - * @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} - * @memberof ResourceServerRepresentation - */ - policies?: Array; - /** - * - * @type {string} - * @memberof ResourceServerRepresentation - */ - policyEnforcementMode?: ResourceServerRepresentationPolicyEnforcementModeEnum; - /** - * - * @type {Array} - * @memberof ResourceServerRepresentation - */ - resources?: Array; - /** - * - * @type {Array} - * @memberof ResourceServerRepresentation - */ - scopes?: Array; -} - -/** - * @export - * @enum {string} - */ -export enum ResourceServerRepresentationDecisionStrategyEnum { - AFFIRMATIVE = 'AFFIRMATIVE', - UNANIMOUS = 'UNANIMOUS', - CONSENSUS = 'CONSENSUS' -} -/** - * @export - * @enum {string} - */ -export enum ResourceServerRepresentationPolicyEnforcementModeEnum { - ENFORCING = 'ENFORCING', - PERMISSIVE = 'PERMISSIVE', - DISABLED = 'DISABLED' -} - -/** - * - * @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 - * @interface RoleRepresentationComposites - */ -export interface RoleRepresentationComposites { - /** - * - * @type {{ [key: string]: object; }} - * @memberof RoleRepresentationComposites - */ - client?: { [key: string]: object; }; - /** - * - * @type {Array} - * @memberof RoleRepresentationComposites - */ - realm?: Array; -} -/** - * - * @export - * @interface RolesRepresentation - */ -export interface RolesRepresentation { - /** - * - * @type {{ [key: string]: object; }} - * @memberof RolesRepresentation - */ - client?: { [key: string]: object; }; - /** - * - * @type {Array} - * @memberof RolesRepresentation - */ - realm?: Array; -} -/** - * - * @export - * @interface ScopeMappingRepresentation - */ -export interface ScopeMappingRepresentation { - /** - * - * @type {string} - * @memberof ScopeMappingRepresentation - */ - client?: string; - /** - * - * @type {string} - * @memberof ScopeMappingRepresentation - */ - clientScope?: string; - /** - * - * @type {Array} - * @memberof ScopeMappingRepresentation - */ - roles?: Array; - /** - * - * @type {string} - * @memberof ScopeMappingRepresentation - */ - self?: string; -} -/** - * - * @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} - * @memberof ScopeRepresentation - */ - policies?: Array; - /** - * - * @type {Array} - * @memberof ScopeRepresentation - */ - resources?: Array; -} -/** - * - * @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} - * @memberof ServerInfoRepresentation - */ - passwordPolicies?: Array; - /** - * - * @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 - * @interface SpiInfoRepresentation - */ -export interface SpiInfoRepresentation { - /** - * - * @type {boolean} - * @memberof SpiInfoRepresentation - */ - internal?: boolean; - /** - * - * @type {{ [key: string]: object; }} - * @memberof SpiInfoRepresentation - */ - providers?: { [key: string]: object; }; -} -/** - * - * @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 - * @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 - * @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 - * @interface UserConsentRepresentation - */ -export interface UserConsentRepresentation { - /** - * - * @type {string} - * @memberof UserConsentRepresentation - */ - clientId?: string; - /** - * - * @type {number} - * @memberof UserConsentRepresentation - */ - createdDate?: number; - /** - * - * @type {Array} - * @memberof UserConsentRepresentation - */ - grantedClientScopes?: Array; - /** - * - * @type {number} - * @memberof UserConsentRepresentation - */ - lastUpdatedDate?: number; -} -/** - * - * @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 - * @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 - * @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} - * @memberof UserRepresentation - */ - clientConsents?: Array; - /** - * - * @type {{ [key: string]: object; }} - * @memberof UserRepresentation - */ - clientRoles?: { [key: string]: object; }; - /** - * - * @type {number} - * @memberof UserRepresentation - */ - createdTimestamp?: number; - /** - * - * @type {Array} - * @memberof UserRepresentation - */ - credentials?: Array; - /** - * - * @type {Array} - * @memberof UserRepresentation - */ - disableableCredentialTypes?: Array; - /** - * - * @type {string} - * @memberof UserRepresentation - */ - email?: string; - /** - * - * @type {boolean} - * @memberof UserRepresentation - */ - emailVerified?: boolean; - /** - * - * @type {boolean} - * @memberof UserRepresentation - */ - enabled?: boolean; - /** - * - * @type {Array} - * @memberof UserRepresentation - */ - federatedIdentities?: Array; - /** - * - * @type {string} - * @memberof UserRepresentation - */ - federationLink?: string; - /** - * - * @type {string} - * @memberof UserRepresentation - */ - firstName?: string; - /** - * - * @type {Array} - * @memberof UserRepresentation - */ - groups?: Array; - /** - * - * @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} - * @memberof UserRepresentation - */ - realmRoles?: Array; - /** - * - * @type {Array} - * @memberof UserRepresentation - */ - requiredActions?: Array; - /** - * - * @type {string} - * @memberof UserRepresentation - */ - self?: string; - /** - * - * @type {string} - * @memberof UserRepresentation - */ - serviceAccountClientId?: string; - /** - * - * @type {string} - * @memberof UserRepresentation - */ - username?: string; -} - -/** - * AttackDetectionApi - axios parameter creator - * @export - */ -export const AttackDetectionApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Clear any user login failures for all users This can release temporary disabled users - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAttackDetectionBruteForceUsersDelete: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAttackDetectionBruteForceUsersDelete.'); - } - const localVarPath = `/{realm}/attack-detection/brute-force/users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Clear any user login failures for the user This can release temporary disabled user - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAttackDetectionBruteForceUsersUserIdDelete: async (realm: string, userId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdDelete.'); - } - // verify required parameter 'userId' is not null or undefined - if (userId === null || userId === undefined) { - throw new RequiredError('userId','Required parameter userId was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdDelete.'); - } - const localVarPath = `/{realm}/attack-detection/brute-force/users/{userId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"userId"}}`, encodeURIComponent(String(userId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get status of a username in brute force detection - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAttackDetectionBruteForceUsersUserIdGet: async (realm: string, userId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdGet.'); - } - // verify required parameter 'userId' is not null or undefined - if (userId === null || userId === undefined) { - throw new RequiredError('userId','Required parameter userId was null or undefined when calling realmAttackDetectionBruteForceUsersUserIdGet.'); - } - const localVarPath = `/{realm}/attack-detection/brute-force/users/{userId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"userId"}}`, encodeURIComponent(String(userId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * AttackDetectionApi - functional programming interface - * @export - */ -export const AttackDetectionApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Clear any user login failures for all users This can release temporary disabled users - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAttackDetectionBruteForceUsersDelete(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AttackDetectionApiAxiosParamCreator(configuration).realmAttackDetectionBruteForceUsersDelete(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Clear any user login failures for the user This can release temporary disabled user - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAttackDetectionBruteForceUsersUserIdDelete(realm: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AttackDetectionApiAxiosParamCreator(configuration).realmAttackDetectionBruteForceUsersUserIdDelete(realm, userId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get status of a username in brute force detection - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAttackDetectionBruteForceUsersUserIdGet(realm: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await AttackDetectionApiAxiosParamCreator(configuration).realmAttackDetectionBruteForceUsersUserIdGet(realm, userId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * AttackDetectionApi - factory interface - * @export - */ -export const AttackDetectionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Clear any user login failures for all users This can release temporary disabled users - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAttackDetectionBruteForceUsersDelete(realm: string, options?: any): AxiosPromise { - return AttackDetectionApiFp(configuration).realmAttackDetectionBruteForceUsersDelete(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Clear any user login failures for the user This can release temporary disabled user - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAttackDetectionBruteForceUsersUserIdDelete(realm: string, userId: string, options?: any): AxiosPromise { - return AttackDetectionApiFp(configuration).realmAttackDetectionBruteForceUsersUserIdDelete(realm, userId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get status of a username in brute force detection - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAttackDetectionBruteForceUsersUserIdGet(realm: string, userId: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return AttackDetectionApiFp(configuration).realmAttackDetectionBruteForceUsersUserIdGet(realm, userId, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * AttackDetectionApi - object-oriented interface - * @export - * @class AttackDetectionApi - * @extends {BaseAPI} - */ -export class AttackDetectionApi extends BaseAPI { - /** - * - * @summary Clear any user login failures for all users This can release temporary disabled users - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttackDetectionApi - */ - public realmAttackDetectionBruteForceUsersDelete(realm: string, options?: any) { - return AttackDetectionApiFp(this.configuration).realmAttackDetectionBruteForceUsersDelete(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Clear any user login failures for the user This can release temporary disabled user - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttackDetectionApi - */ - public realmAttackDetectionBruteForceUsersUserIdDelete(realm: string, userId: string, options?: any) { - return AttackDetectionApiFp(this.configuration).realmAttackDetectionBruteForceUsersUserIdDelete(realm, userId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get status of a username in brute force detection - * @param {string} realm realm name (not id!) - * @param {string} userId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AttackDetectionApi - */ - public realmAttackDetectionBruteForceUsersUserIdGet(realm: string, userId: string, options?: any) { - return AttackDetectionApiFp(this.configuration).realmAttackDetectionBruteForceUsersUserIdGet(realm, userId, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * AuthenticationManagementApi - axios parameter creator - * @export - */ -export const AuthenticationManagementApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get authenticator providers Returns a stream of authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationAuthenticatorProvidersGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationAuthenticatorProvidersGet.'); - } - const localVarPath = `/{realm}/authentication/authenticator-providers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get client authenticator providers Returns a stream of client authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationClientAuthenticatorProvidersGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationClientAuthenticatorProvidersGet.'); - } - const localVarPath = `/{realm}/authentication/client-authenticator-providers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get authenticator provider’s configuration description - * @param {string} realm realm name (not id!) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigDescriptionProviderIdGet: async (realm: string, providerId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationConfigDescriptionProviderIdGet.'); - } - // verify required parameter 'providerId' is not null or undefined - if (providerId === null || providerId === undefined) { - throw new RequiredError('providerId','Required parameter providerId was null or undefined when calling realmAuthenticationConfigDescriptionProviderIdGet.'); - } - const localVarPath = `/{realm}/authentication/config-description/{providerId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"providerId"}}`, encodeURIComponent(String(providerId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationConfigIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmAuthenticationConfigIdDelete.'); - } - const localVarPath = `/{realm}/authentication/config/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationConfigIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmAuthenticationConfigIdGet.'); - } - const localVarPath = `/{realm}/authentication/config/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON describing new state of authenticator configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigIdPut: async (realm: string, id: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationConfigIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmAuthenticationConfigIdPut.'); - } - // verify required parameter 'authenticatorConfigRepresentation' is not null or undefined - if (authenticatorConfigRepresentation === null || authenticatorConfigRepresentation === undefined) { - throw new RequiredError('authenticatorConfigRepresentation','Required parameter authenticatorConfigRepresentation was null or undefined when calling realmAuthenticationConfigIdPut.'); - } - const localVarPath = `/{realm}/authentication/config/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof authenticatorConfigRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(authenticatorConfigRepresentation !== undefined ? authenticatorConfigRepresentation : {}) : (authenticatorConfigRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update execution with new configuration - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON with new configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdConfigPost: async (realm: string, executionId: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationExecutionsExecutionIdConfigPost.'); - } - // verify required parameter 'executionId' is not null or undefined - if (executionId === null || executionId === undefined) { - throw new RequiredError('executionId','Required parameter executionId was null or undefined when calling realmAuthenticationExecutionsExecutionIdConfigPost.'); - } - // verify required parameter 'authenticatorConfigRepresentation' is not null or undefined - if (authenticatorConfigRepresentation === null || authenticatorConfigRepresentation === undefined) { - throw new RequiredError('authenticatorConfigRepresentation','Required parameter authenticatorConfigRepresentation was null or undefined when calling realmAuthenticationExecutionsExecutionIdConfigPost.'); - } - const localVarPath = `/{realm}/authentication/executions/{executionId}/config` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"executionId"}}`, encodeURIComponent(String(executionId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof authenticatorConfigRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(authenticatorConfigRepresentation !== undefined ? authenticatorConfigRepresentation : {}) : (authenticatorConfigRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdDelete: async (realm: string, executionId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationExecutionsExecutionIdDelete.'); - } - // verify required parameter 'executionId' is not null or undefined - if (executionId === null || executionId === undefined) { - throw new RequiredError('executionId','Required parameter executionId was null or undefined when calling realmAuthenticationExecutionsExecutionIdDelete.'); - } - const localVarPath = `/{realm}/authentication/executions/{executionId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"executionId"}}`, encodeURIComponent(String(executionId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get Single Execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdGet: async (realm: string, executionId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationExecutionsExecutionIdGet.'); - } - // verify required parameter 'executionId' is not null or undefined - if (executionId === null || executionId === undefined) { - throw new RequiredError('executionId','Required parameter executionId was null or undefined when calling realmAuthenticationExecutionsExecutionIdGet.'); - } - const localVarPath = `/{realm}/authentication/executions/{executionId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"executionId"}}`, encodeURIComponent(String(executionId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Lower execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdLowerPriorityPost: async (realm: string, executionId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationExecutionsExecutionIdLowerPriorityPost.'); - } - // verify required parameter 'executionId' is not null or undefined - if (executionId === null || executionId === undefined) { - throw new RequiredError('executionId','Required parameter executionId was null or undefined when calling realmAuthenticationExecutionsExecutionIdLowerPriorityPost.'); - } - const localVarPath = `/{realm}/authentication/executions/{executionId}/lower-priority` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"executionId"}}`, encodeURIComponent(String(executionId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Raise execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdRaisePriorityPost: async (realm: string, executionId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationExecutionsExecutionIdRaisePriorityPost.'); - } - // verify required parameter 'executionId' is not null or undefined - if (executionId === null || executionId === undefined) { - throw new RequiredError('executionId','Required parameter executionId was null or undefined when calling realmAuthenticationExecutionsExecutionIdRaisePriorityPost.'); - } - const localVarPath = `/{realm}/authentication/executions/{executionId}/raise-priority` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"executionId"}}`, encodeURIComponent(String(executionId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add new authentication execution - * @param {string} realm realm name (not id!) - * @param {AuthenticationExecutionRepresentation} authenticationExecutionRepresentation JSON model describing authentication execution - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsPost: async (realm: string, authenticationExecutionRepresentation: AuthenticationExecutionRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationExecutionsPost.'); - } - // verify required parameter 'authenticationExecutionRepresentation' is not null or undefined - if (authenticationExecutionRepresentation === null || authenticationExecutionRepresentation === undefined) { - throw new RequiredError('authenticationExecutionRepresentation','Required parameter authenticationExecutionRepresentation was null or undefined when calling realmAuthenticationExecutionsPost.'); - } - const localVarPath = `/{realm}/authentication/executions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof authenticationExecutionRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(authenticationExecutionRepresentation !== undefined ? authenticationExecutionRepresentation : {}) : (authenticationExecutionRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Copy existing authentication flow under a new name The new name is given as \'newName\' attribute of the passed JSON object - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Name of the existing authentication flow - * @param {{ [key: string]: object; }} requestBody JSON containing \'newName\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasCopyPost: async (realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsFlowAliasCopyPost.'); - } - // verify required parameter 'flowAlias' is not null or undefined - if (flowAlias === null || flowAlias === undefined) { - throw new RequiredError('flowAlias','Required parameter flowAlias was null or undefined when calling realmAuthenticationFlowsFlowAliasCopyPost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmAuthenticationFlowsFlowAliasCopyPost.'); - } - const localVarPath = `/{realm}/authentication/flows/{flowAlias}/copy` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"flowAlias"}}`, encodeURIComponent(String(flowAlias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add new authentication execution to a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent flow - * @param {{ [key: string]: object; }} requestBody New execution JSON data containing \'provider\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsExecutionPost: async (realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsExecutionPost.'); - } - // verify required parameter 'flowAlias' is not null or undefined - if (flowAlias === null || flowAlias === undefined) { - throw new RequiredError('flowAlias','Required parameter flowAlias was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsExecutionPost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsExecutionPost.'); - } - const localVarPath = `/{realm}/authentication/flows/{flowAlias}/executions/execution` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"flowAlias"}}`, encodeURIComponent(String(flowAlias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add new flow with new execution to existing flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent authentication flow - * @param {{ [key: string]: object; }} requestBody New authentication flow / execution JSON data containing \'alias\', \'type\', \'provider\', and \'description\' attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsFlowPost: async (realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsFlowPost.'); - } - // verify required parameter 'flowAlias' is not null or undefined - if (flowAlias === null || flowAlias === undefined) { - throw new RequiredError('flowAlias','Required parameter flowAlias was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsFlowPost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsFlowPost.'); - } - const localVarPath = `/{realm}/authentication/flows/{flowAlias}/executions/flow` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"flowAlias"}}`, encodeURIComponent(String(flowAlias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get authentication executions for a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsGet: async (realm: string, flowAlias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsGet.'); - } - // verify required parameter 'flowAlias' is not null or undefined - if (flowAlias === null || flowAlias === undefined) { - throw new RequiredError('flowAlias','Required parameter flowAlias was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsGet.'); - } - const localVarPath = `/{realm}/authentication/flows/{flowAlias}/executions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"flowAlias"}}`, encodeURIComponent(String(flowAlias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update authentication executions of a Flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {AuthenticationExecutionInfoRepresentation} authenticationExecutionInfoRepresentation AuthenticationExecutionInfoRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsPut: async (realm: string, flowAlias: string, authenticationExecutionInfoRepresentation: AuthenticationExecutionInfoRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsPut.'); - } - // verify required parameter 'flowAlias' is not null or undefined - if (flowAlias === null || flowAlias === undefined) { - throw new RequiredError('flowAlias','Required parameter flowAlias was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsPut.'); - } - // verify required parameter 'authenticationExecutionInfoRepresentation' is not null or undefined - if (authenticationExecutionInfoRepresentation === null || authenticationExecutionInfoRepresentation === undefined) { - throw new RequiredError('authenticationExecutionInfoRepresentation','Required parameter authenticationExecutionInfoRepresentation was null or undefined when calling realmAuthenticationFlowsFlowAliasExecutionsPut.'); - } - const localVarPath = `/{realm}/authentication/flows/{flowAlias}/executions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"flowAlias"}}`, encodeURIComponent(String(flowAlias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof authenticationExecutionInfoRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(authenticationExecutionInfoRepresentation !== undefined ? authenticationExecutionInfoRepresentation : {}) : (authenticationExecutionInfoRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get authentication flows Returns a stream of authentication flows. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsGet.'); - } - const localVarPath = `/{realm}/authentication/flows` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmAuthenticationFlowsIdDelete.'); - } - const localVarPath = `/{realm}/authentication/flows/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get authentication flow for id - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmAuthenticationFlowsIdGet.'); - } - const localVarPath = `/{realm}/authentication/flows/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsIdPut: async (realm: string, id: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmAuthenticationFlowsIdPut.'); - } - // verify required parameter 'authenticationFlowRepresentation' is not null or undefined - if (authenticationFlowRepresentation === null || authenticationFlowRepresentation === undefined) { - throw new RequiredError('authenticationFlowRepresentation','Required parameter authenticationFlowRepresentation was null or undefined when calling realmAuthenticationFlowsIdPut.'); - } - const localVarPath = `/{realm}/authentication/flows/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof authenticationFlowRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(authenticationFlowRepresentation !== undefined ? authenticationFlowRepresentation : {}) : (authenticationFlowRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new authentication flow - * @param {string} realm realm name (not id!) - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsPost: async (realm: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFlowsPost.'); - } - // verify required parameter 'authenticationFlowRepresentation' is not null or undefined - if (authenticationFlowRepresentation === null || authenticationFlowRepresentation === undefined) { - throw new RequiredError('authenticationFlowRepresentation','Required parameter authenticationFlowRepresentation was null or undefined when calling realmAuthenticationFlowsPost.'); - } - const localVarPath = `/{realm}/authentication/flows` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof authenticationFlowRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(authenticationFlowRepresentation !== undefined ? authenticationFlowRepresentation : {}) : (authenticationFlowRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get form action providers Returns a stream of form action providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFormActionProvidersGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFormActionProvidersGet.'); - } - const localVarPath = `/{realm}/authentication/form-action-providers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get form providers Returns a stream of form providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFormProvidersGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationFormProvidersGet.'); - } - const localVarPath = `/{realm}/authentication/form-providers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get configuration descriptions for all clients - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationPerClientConfigDescriptionGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationPerClientConfigDescriptionGet.'); - } - const localVarPath = `/{realm}/authentication/per-client-config-description` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Register a new required actions - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody JSON containing \'providerId\', and \'name\' attributes. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRegisterRequiredActionPost: async (realm: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRegisterRequiredActionPost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmAuthenticationRegisterRequiredActionPost.'); - } - const localVarPath = `/{realm}/authentication/register-required-action` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasDelete: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRequiredActionsAliasDelete.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmAuthenticationRequiredActionsAliasDelete.'); - } - const localVarPath = `/{realm}/authentication/required-actions/{alias}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get required action for alias - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasGet: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRequiredActionsAliasGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmAuthenticationRequiredActionsAliasGet.'); - } - const localVarPath = `/{realm}/authentication/required-actions/{alias}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Lower required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasLowerPriorityPost: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRequiredActionsAliasLowerPriorityPost.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmAuthenticationRequiredActionsAliasLowerPriorityPost.'); - } - const localVarPath = `/{realm}/authentication/required-actions/{alias}/lower-priority` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {RequiredActionProviderRepresentation} requiredActionProviderRepresentation JSON describing new state of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasPut: async (realm: string, alias: string, requiredActionProviderRepresentation: RequiredActionProviderRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRequiredActionsAliasPut.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmAuthenticationRequiredActionsAliasPut.'); - } - // verify required parameter 'requiredActionProviderRepresentation' is not null or undefined - if (requiredActionProviderRepresentation === null || requiredActionProviderRepresentation === undefined) { - throw new RequiredError('requiredActionProviderRepresentation','Required parameter requiredActionProviderRepresentation was null or undefined when calling realmAuthenticationRequiredActionsAliasPut.'); - } - const localVarPath = `/{realm}/authentication/required-actions/{alias}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requiredActionProviderRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requiredActionProviderRepresentation !== undefined ? requiredActionProviderRepresentation : {}) : (requiredActionProviderRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Raise required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasRaisePriorityPost: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRequiredActionsAliasRaisePriorityPost.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmAuthenticationRequiredActionsAliasRaisePriorityPost.'); - } - const localVarPath = `/{realm}/authentication/required-actions/{alias}/raise-priority` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get required actions Returns a stream of required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationRequiredActionsGet.'); - } - const localVarPath = `/{realm}/authentication/required-actions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get unregistered required actions Returns a stream of unregistered required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationUnregisteredRequiredActionsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAuthenticationUnregisteredRequiredActionsGet.'); - } - const localVarPath = `/{realm}/authentication/unregistered-required-actions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * AuthenticationManagementApi - functional programming interface - * @export - */ -export const AuthenticationManagementApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get authenticator providers Returns a stream of authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationAuthenticatorProvidersGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationAuthenticatorProvidersGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get client authenticator providers Returns a stream of client authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationClientAuthenticatorProvidersGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationClientAuthenticatorProvidersGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get authenticator provider’s configuration description - * @param {string} realm realm name (not id!) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationConfigDescriptionProviderIdGet(realm: string, providerId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationConfigDescriptionProviderIdGet(realm, providerId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationConfigIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationConfigIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationConfigIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationConfigIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON describing new state of authenticator configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationConfigIdPut(realm: string, id: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationConfigIdPut(realm, id, authenticatorConfigRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update execution with new configuration - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON with new configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationExecutionsExecutionIdConfigPost(realm: string, executionId: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationExecutionsExecutionIdConfigPost(realm, executionId, authenticatorConfigRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationExecutionsExecutionIdDelete(realm: string, executionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationExecutionsExecutionIdDelete(realm, executionId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get Single Execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationExecutionsExecutionIdGet(realm: string, executionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationExecutionsExecutionIdGet(realm, executionId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Lower execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationExecutionsExecutionIdLowerPriorityPost(realm: string, executionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationExecutionsExecutionIdLowerPriorityPost(realm, executionId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Raise execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationExecutionsExecutionIdRaisePriorityPost(realm: string, executionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationExecutionsExecutionIdRaisePriorityPost(realm, executionId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add new authentication execution - * @param {string} realm realm name (not id!) - * @param {AuthenticationExecutionRepresentation} authenticationExecutionRepresentation JSON model describing authentication execution - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationExecutionsPost(realm: string, authenticationExecutionRepresentation: AuthenticationExecutionRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationExecutionsPost(realm, authenticationExecutionRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Copy existing authentication flow under a new name The new name is given as \'newName\' attribute of the passed JSON object - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Name of the existing authentication flow - * @param {{ [key: string]: object; }} requestBody JSON containing \'newName\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsFlowAliasCopyPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsFlowAliasCopyPost(realm, flowAlias, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add new authentication execution to a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent flow - * @param {{ [key: string]: object; }} requestBody New execution JSON data containing \'provider\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsFlowAliasExecutionsExecutionPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsFlowAliasExecutionsExecutionPost(realm, flowAlias, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add new flow with new execution to existing flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent authentication flow - * @param {{ [key: string]: object; }} requestBody New authentication flow / execution JSON data containing \'alias\', \'type\', \'provider\', and \'description\' attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsFlowAliasExecutionsFlowPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsFlowAliasExecutionsFlowPost(realm, flowAlias, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get authentication executions for a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsFlowAliasExecutionsGet(realm: string, flowAlias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsFlowAliasExecutionsGet(realm, flowAlias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update authentication executions of a Flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {AuthenticationExecutionInfoRepresentation} authenticationExecutionInfoRepresentation AuthenticationExecutionInfoRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsFlowAliasExecutionsPut(realm: string, flowAlias: string, authenticationExecutionInfoRepresentation: AuthenticationExecutionInfoRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsFlowAliasExecutionsPut(realm, flowAlias, authenticationExecutionInfoRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get authentication flows Returns a stream of authentication flows. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get authentication flow for id - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsIdPut(realm: string, id: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsIdPut(realm, id, authenticationFlowRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new authentication flow - * @param {string} realm realm name (not id!) - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFlowsPost(realm: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFlowsPost(realm, authenticationFlowRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get form action providers Returns a stream of form action providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFormActionProvidersGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFormActionProvidersGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get form providers Returns a stream of form providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationFormProvidersGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationFormProvidersGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get configuration descriptions for all clients - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationPerClientConfigDescriptionGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationPerClientConfigDescriptionGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Register a new required actions - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody JSON containing \'providerId\', and \'name\' attributes. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRegisterRequiredActionPost(realm: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRegisterRequiredActionPost(realm, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRequiredActionsAliasDelete(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRequiredActionsAliasDelete(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get required action for alias - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRequiredActionsAliasGet(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRequiredActionsAliasGet(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Lower required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRequiredActionsAliasLowerPriorityPost(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRequiredActionsAliasLowerPriorityPost(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {RequiredActionProviderRepresentation} requiredActionProviderRepresentation JSON describing new state of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRequiredActionsAliasPut(realm: string, alias: string, requiredActionProviderRepresentation: RequiredActionProviderRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRequiredActionsAliasPut(realm, alias, requiredActionProviderRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Raise required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRequiredActionsAliasRaisePriorityPost(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRequiredActionsAliasRaisePriorityPost(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get required actions Returns a stream of required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationRequiredActionsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationRequiredActionsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get unregistered required actions Returns a stream of unregistered required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAuthenticationUnregisteredRequiredActionsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await AuthenticationManagementApiAxiosParamCreator(configuration).realmAuthenticationUnregisteredRequiredActionsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * AuthenticationManagementApi - factory interface - * @export - */ -export const AuthenticationManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get authenticator providers Returns a stream of authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationAuthenticatorProvidersGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationAuthenticatorProvidersGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get client authenticator providers Returns a stream of client authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationClientAuthenticatorProvidersGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationClientAuthenticatorProvidersGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get authenticator provider’s configuration description - * @param {string} realm realm name (not id!) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigDescriptionProviderIdGet(realm: string, providerId: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationConfigDescriptionProviderIdGet(realm, providerId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationConfigIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigIdGet(realm: string, id: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationConfigIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON describing new state of authenticator configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationConfigIdPut(realm: string, id: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationConfigIdPut(realm, id, authenticatorConfigRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update execution with new configuration - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON with new configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdConfigPost(realm: string, executionId: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationExecutionsExecutionIdConfigPost(realm, executionId, authenticatorConfigRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdDelete(realm: string, executionId: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationExecutionsExecutionIdDelete(realm, executionId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get Single Execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdGet(realm: string, executionId: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationExecutionsExecutionIdGet(realm, executionId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Lower execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdLowerPriorityPost(realm: string, executionId: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationExecutionsExecutionIdLowerPriorityPost(realm, executionId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Raise execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsExecutionIdRaisePriorityPost(realm: string, executionId: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationExecutionsExecutionIdRaisePriorityPost(realm, executionId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add new authentication execution - * @param {string} realm realm name (not id!) - * @param {AuthenticationExecutionRepresentation} authenticationExecutionRepresentation JSON model describing authentication execution - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationExecutionsPost(realm: string, authenticationExecutionRepresentation: AuthenticationExecutionRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationExecutionsPost(realm, authenticationExecutionRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Copy existing authentication flow under a new name The new name is given as \'newName\' attribute of the passed JSON object - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Name of the existing authentication flow - * @param {{ [key: string]: object; }} requestBody JSON containing \'newName\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasCopyPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsFlowAliasCopyPost(realm, flowAlias, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add new authentication execution to a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent flow - * @param {{ [key: string]: object; }} requestBody New execution JSON data containing \'provider\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsExecutionPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsFlowAliasExecutionsExecutionPost(realm, flowAlias, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add new flow with new execution to existing flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent authentication flow - * @param {{ [key: string]: object; }} requestBody New authentication flow / execution JSON data containing \'alias\', \'type\', \'provider\', and \'description\' attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsFlowPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsFlowAliasExecutionsFlowPost(realm, flowAlias, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get authentication executions for a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsGet(realm: string, flowAlias: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsFlowAliasExecutionsGet(realm, flowAlias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update authentication executions of a Flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {AuthenticationExecutionInfoRepresentation} authenticationExecutionInfoRepresentation AuthenticationExecutionInfoRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsFlowAliasExecutionsPut(realm: string, flowAlias: string, authenticationExecutionInfoRepresentation: AuthenticationExecutionInfoRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsFlowAliasExecutionsPut(realm, flowAlias, authenticationExecutionInfoRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get authentication flows Returns a stream of authentication flows. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get authentication flow for id - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsIdGet(realm: string, id: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsIdPut(realm: string, id: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsIdPut(realm, id, authenticationFlowRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new authentication flow - * @param {string} realm realm name (not id!) - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFlowsPost(realm: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFlowsPost(realm, authenticationFlowRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get form action providers Returns a stream of form action providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFormActionProvidersGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFormActionProvidersGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get form providers Returns a stream of form providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationFormProvidersGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationFormProvidersGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get configuration descriptions for all clients - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationPerClientConfigDescriptionGet(realm: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationPerClientConfigDescriptionGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Register a new required actions - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody JSON containing \'providerId\', and \'name\' attributes. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRegisterRequiredActionPost(realm: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRegisterRequiredActionPost(realm, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasDelete(realm: string, alias: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRequiredActionsAliasDelete(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get required action for alias - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasGet(realm: string, alias: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRequiredActionsAliasGet(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Lower required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasLowerPriorityPost(realm: string, alias: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRequiredActionsAliasLowerPriorityPost(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {RequiredActionProviderRepresentation} requiredActionProviderRepresentation JSON describing new state of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasPut(realm: string, alias: string, requiredActionProviderRepresentation: RequiredActionProviderRepresentation, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRequiredActionsAliasPut(realm, alias, requiredActionProviderRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Raise required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsAliasRaisePriorityPost(realm: string, alias: string, options?: any): AxiosPromise { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRequiredActionsAliasRaisePriorityPost(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get required actions Returns a stream of required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationRequiredActionsGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationRequiredActionsGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get unregistered required actions Returns a stream of unregistered required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAuthenticationUnregisteredRequiredActionsGet(realm: string, options?: any): AxiosPromise> { - return AuthenticationManagementApiFp(configuration).realmAuthenticationUnregisteredRequiredActionsGet(realm, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * AuthenticationManagementApi - object-oriented interface - * @export - * @class AuthenticationManagementApi - * @extends {BaseAPI} - */ -export class AuthenticationManagementApi extends BaseAPI { - /** - * - * @summary Get authenticator providers Returns a stream of authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationAuthenticatorProvidersGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationAuthenticatorProvidersGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get client authenticator providers Returns a stream of client authenticator providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationClientAuthenticatorProvidersGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationClientAuthenticatorProvidersGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get authenticator provider’s configuration description - * @param {string} realm realm name (not id!) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationConfigDescriptionProviderIdGet(realm: string, providerId: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationConfigDescriptionProviderIdGet(realm, providerId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationConfigIdDelete(realm: string, id: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationConfigIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationConfigIdGet(realm: string, id: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationConfigIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update authenticator configuration - * @param {string} realm realm name (not id!) - * @param {string} id Configuration id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON describing new state of authenticator configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationConfigIdPut(realm: string, id: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationConfigIdPut(realm, id, authenticatorConfigRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update execution with new configuration - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {AuthenticatorConfigRepresentation} authenticatorConfigRepresentation JSON with new configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationExecutionsExecutionIdConfigPost(realm: string, executionId: string, authenticatorConfigRepresentation: AuthenticatorConfigRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationExecutionsExecutionIdConfigPost(realm, executionId, authenticatorConfigRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationExecutionsExecutionIdDelete(realm: string, executionId: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationExecutionsExecutionIdDelete(realm, executionId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get Single Execution - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationExecutionsExecutionIdGet(realm: string, executionId: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationExecutionsExecutionIdGet(realm, executionId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Lower execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationExecutionsExecutionIdLowerPriorityPost(realm: string, executionId: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationExecutionsExecutionIdLowerPriorityPost(realm, executionId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Raise execution’s priority - * @param {string} realm realm name (not id!) - * @param {string} executionId Execution id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationExecutionsExecutionIdRaisePriorityPost(realm: string, executionId: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationExecutionsExecutionIdRaisePriorityPost(realm, executionId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add new authentication execution - * @param {string} realm realm name (not id!) - * @param {AuthenticationExecutionRepresentation} authenticationExecutionRepresentation JSON model describing authentication execution - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationExecutionsPost(realm: string, authenticationExecutionRepresentation: AuthenticationExecutionRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationExecutionsPost(realm, authenticationExecutionRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Copy existing authentication flow under a new name The new name is given as \'newName\' attribute of the passed JSON object - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Name of the existing authentication flow - * @param {{ [key: string]: object; }} requestBody JSON containing \'newName\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsFlowAliasCopyPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsFlowAliasCopyPost(realm, flowAlias, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add new authentication execution to a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent flow - * @param {{ [key: string]: object; }} requestBody New execution JSON data containing \'provider\' attribute - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsFlowAliasExecutionsExecutionPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsFlowAliasExecutionsExecutionPost(realm, flowAlias, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add new flow with new execution to existing flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Alias of parent authentication flow - * @param {{ [key: string]: object; }} requestBody New authentication flow / execution JSON data containing \'alias\', \'type\', \'provider\', and \'description\' attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsFlowAliasExecutionsFlowPost(realm: string, flowAlias: string, requestBody: { [key: string]: object; }, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsFlowAliasExecutionsFlowPost(realm, flowAlias, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get authentication executions for a flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsFlowAliasExecutionsGet(realm: string, flowAlias: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsFlowAliasExecutionsGet(realm, flowAlias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update authentication executions of a Flow - * @param {string} realm realm name (not id!) - * @param {string} flowAlias Flow alias - * @param {AuthenticationExecutionInfoRepresentation} authenticationExecutionInfoRepresentation AuthenticationExecutionInfoRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsFlowAliasExecutionsPut(realm: string, flowAlias: string, authenticationExecutionInfoRepresentation: AuthenticationExecutionInfoRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsFlowAliasExecutionsPut(realm, flowAlias, authenticationExecutionInfoRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get authentication flows Returns a stream of authentication flows. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsIdDelete(realm: string, id: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get authentication flow for id - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsIdGet(realm: string, id: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update an authentication flow - * @param {string} realm realm name (not id!) - * @param {string} id Flow id - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsIdPut(realm: string, id: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsIdPut(realm, id, authenticationFlowRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new authentication flow - * @param {string} realm realm name (not id!) - * @param {AuthenticationFlowRepresentation} authenticationFlowRepresentation Authentication flow representation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFlowsPost(realm: string, authenticationFlowRepresentation: AuthenticationFlowRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFlowsPost(realm, authenticationFlowRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get form action providers Returns a stream of form action providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFormActionProvidersGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFormActionProvidersGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get form providers Returns a stream of form providers. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationFormProvidersGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationFormProvidersGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get configuration descriptions for all clients - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationPerClientConfigDescriptionGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationPerClientConfigDescriptionGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Register a new required actions - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody JSON containing \'providerId\', and \'name\' attributes. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRegisterRequiredActionPost(realm: string, requestBody: { [key: string]: object; }, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRegisterRequiredActionPost(realm, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRequiredActionsAliasDelete(realm: string, alias: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRequiredActionsAliasDelete(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get required action for alias - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRequiredActionsAliasGet(realm: string, alias: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRequiredActionsAliasGet(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Lower required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRequiredActionsAliasLowerPriorityPost(realm: string, alias: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRequiredActionsAliasLowerPriorityPost(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update required action - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {RequiredActionProviderRepresentation} requiredActionProviderRepresentation JSON describing new state of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRequiredActionsAliasPut(realm: string, alias: string, requiredActionProviderRepresentation: RequiredActionProviderRepresentation, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRequiredActionsAliasPut(realm, alias, requiredActionProviderRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Raise required action’s priority - * @param {string} realm realm name (not id!) - * @param {string} alias Alias of required action - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRequiredActionsAliasRaisePriorityPost(realm: string, alias: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRequiredActionsAliasRaisePriorityPost(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get required actions Returns a stream of required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationRequiredActionsGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationRequiredActionsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get unregistered required actions Returns a stream of unregistered required actions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof AuthenticationManagementApi - */ - public realmAuthenticationUnregisteredRequiredActionsGet(realm: string, options?: any) { - return AuthenticationManagementApiFp(this.configuration).realmAuthenticationUnregisteredRequiredActionsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ClientAttributeCertificateApi - axios parameter creator - * @export - */ -export const ClientAttributeCertificateApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get a keystore file for the client, containing private key and public certificate - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrDownloadPost: async (realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.'); - } - // verify required parameter 'attr' is not null or undefined - if (attr === null || attr === undefined) { - throw new RequiredError('attr','Required parameter attr was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.'); - } - // verify required parameter 'keyStoreConfig' is not null or undefined - if (keyStoreConfig === null || keyStoreConfig === undefined) { - throw new RequiredError('keyStoreConfig','Required parameter keyStoreConfig was null or undefined when calling realmClientsIdCertificatesAttrDownloadPost.'); - } - const localVarPath = `/{realm}/clients/{id}/certificates/{attr}/download` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"attr"}}`, encodeURIComponent(String(attr))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof keyStoreConfig !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(keyStoreConfig !== undefined ? keyStoreConfig : {}) : (keyStoreConfig || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary 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. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrGenerateAndDownloadPost: async (realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.'); - } - // verify required parameter 'attr' is not null or undefined - if (attr === null || attr === undefined) { - throw new RequiredError('attr','Required parameter attr was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.'); - } - // verify required parameter 'keyStoreConfig' is not null or undefined - if (keyStoreConfig === null || keyStoreConfig === undefined) { - throw new RequiredError('keyStoreConfig','Required parameter keyStoreConfig was null or undefined when calling realmClientsIdCertificatesAttrGenerateAndDownloadPost.'); - } - const localVarPath = `/{realm}/clients/{id}/certificates/{attr}/generate-and-download` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"attr"}}`, encodeURIComponent(String(attr))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof keyStoreConfig !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(keyStoreConfig !== undefined ? keyStoreConfig : {}) : (keyStoreConfig || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Generate a new certificate with new key pair - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrGeneratePost: async (realm: string, id: string, attr: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdCertificatesAttrGeneratePost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdCertificatesAttrGeneratePost.'); - } - // verify required parameter 'attr' is not null or undefined - if (attr === null || attr === undefined) { - throw new RequiredError('attr','Required parameter attr was null or undefined when calling realmClientsIdCertificatesAttrGeneratePost.'); - } - const localVarPath = `/{realm}/clients/{id}/certificates/{attr}/generate` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"attr"}}`, encodeURIComponent(String(attr))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get key info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrGet: async (realm: string, id: string, attr: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdCertificatesAttrGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdCertificatesAttrGet.'); - } - // verify required parameter 'attr' is not null or undefined - if (attr === null || attr === undefined) { - throw new RequiredError('attr','Required parameter attr was null or undefined when calling realmClientsIdCertificatesAttrGet.'); - } - const localVarPath = `/{realm}/clients/{id}/certificates/{attr}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"attr"}}`, encodeURIComponent(String(attr))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Upload only certificate, not private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrUploadCertificatePost: async (realm: string, id: string, attr: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdCertificatesAttrUploadCertificatePost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdCertificatesAttrUploadCertificatePost.'); - } - // verify required parameter 'attr' is not null or undefined - if (attr === null || attr === undefined) { - throw new RequiredError('attr','Required parameter attr was null or undefined when calling realmClientsIdCertificatesAttrUploadCertificatePost.'); - } - const localVarPath = `/{realm}/clients/{id}/certificates/{attr}/upload-certificate` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"attr"}}`, encodeURIComponent(String(attr))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Upload certificate and eventually private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrUploadPost: async (realm: string, id: string, attr: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdCertificatesAttrUploadPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdCertificatesAttrUploadPost.'); - } - // verify required parameter 'attr' is not null or undefined - if (attr === null || attr === undefined) { - throw new RequiredError('attr','Required parameter attr was null or undefined when calling realmClientsIdCertificatesAttrUploadPost.'); - } - const localVarPath = `/{realm}/clients/{id}/certificates/{attr}/upload` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"attr"}}`, encodeURIComponent(String(attr))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ClientAttributeCertificateApi - functional programming interface - * @export - */ -export const ClientAttributeCertificateApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get a keystore file for the client, containing private key and public certificate - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdCertificatesAttrDownloadPost(realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientAttributeCertificateApiAxiosParamCreator(configuration).realmClientsIdCertificatesAttrDownloadPost(realm, id, attr, keyStoreConfig, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary 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. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdCertificatesAttrGenerateAndDownloadPost(realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientAttributeCertificateApiAxiosParamCreator(configuration).realmClientsIdCertificatesAttrGenerateAndDownloadPost(realm, id, attr, keyStoreConfig, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Generate a new certificate with new key pair - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdCertificatesAttrGeneratePost(realm: string, id: string, attr: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientAttributeCertificateApiAxiosParamCreator(configuration).realmClientsIdCertificatesAttrGeneratePost(realm, id, attr, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get key info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdCertificatesAttrGet(realm: string, id: string, attr: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientAttributeCertificateApiAxiosParamCreator(configuration).realmClientsIdCertificatesAttrGet(realm, id, attr, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Upload only certificate, not private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdCertificatesAttrUploadCertificatePost(realm: string, id: string, attr: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientAttributeCertificateApiAxiosParamCreator(configuration).realmClientsIdCertificatesAttrUploadCertificatePost(realm, id, attr, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Upload certificate and eventually private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdCertificatesAttrUploadPost(realm: string, id: string, attr: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientAttributeCertificateApiAxiosParamCreator(configuration).realmClientsIdCertificatesAttrUploadPost(realm, id, attr, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ClientAttributeCertificateApi - factory interface - * @export - */ -export const ClientAttributeCertificateApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get a keystore file for the client, containing private key and public certificate - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrDownloadPost(realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options?: any): AxiosPromise { - return ClientAttributeCertificateApiFp(configuration).realmClientsIdCertificatesAttrDownloadPost(realm, id, attr, keyStoreConfig, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary 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. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrGenerateAndDownloadPost(realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options?: any): AxiosPromise { - return ClientAttributeCertificateApiFp(configuration).realmClientsIdCertificatesAttrGenerateAndDownloadPost(realm, id, attr, keyStoreConfig, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Generate a new certificate with new key pair - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrGeneratePost(realm: string, id: string, attr: string, options?: any): AxiosPromise { - return ClientAttributeCertificateApiFp(configuration).realmClientsIdCertificatesAttrGeneratePost(realm, id, attr, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get key info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrGet(realm: string, id: string, attr: string, options?: any): AxiosPromise { - return ClientAttributeCertificateApiFp(configuration).realmClientsIdCertificatesAttrGet(realm, id, attr, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Upload only certificate, not private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrUploadCertificatePost(realm: string, id: string, attr: string, options?: any): AxiosPromise { - return ClientAttributeCertificateApiFp(configuration).realmClientsIdCertificatesAttrUploadCertificatePost(realm, id, attr, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Upload certificate and eventually private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdCertificatesAttrUploadPost(realm: string, id: string, attr: string, options?: any): AxiosPromise { - return ClientAttributeCertificateApiFp(configuration).realmClientsIdCertificatesAttrUploadPost(realm, id, attr, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ClientAttributeCertificateApi - object-oriented interface - * @export - * @class ClientAttributeCertificateApi - * @extends {BaseAPI} - */ -export class ClientAttributeCertificateApi extends BaseAPI { - /** - * - * @summary Get a keystore file for the client, containing private key and public certificate - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientAttributeCertificateApi - */ - public realmClientsIdCertificatesAttrDownloadPost(realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options?: any) { - return ClientAttributeCertificateApiFp(this.configuration).realmClientsIdCertificatesAttrDownloadPost(realm, id, attr, keyStoreConfig, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary 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. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {KeyStoreConfig} keyStoreConfig Keystore configuration as JSON - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientAttributeCertificateApi - */ - public realmClientsIdCertificatesAttrGenerateAndDownloadPost(realm: string, id: string, attr: string, keyStoreConfig: KeyStoreConfig, options?: any) { - return ClientAttributeCertificateApiFp(this.configuration).realmClientsIdCertificatesAttrGenerateAndDownloadPost(realm, id, attr, keyStoreConfig, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Generate a new certificate with new key pair - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientAttributeCertificateApi - */ - public realmClientsIdCertificatesAttrGeneratePost(realm: string, id: string, attr: string, options?: any) { - return ClientAttributeCertificateApiFp(this.configuration).realmClientsIdCertificatesAttrGeneratePost(realm, id, attr, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get key info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientAttributeCertificateApi - */ - public realmClientsIdCertificatesAttrGet(realm: string, id: string, attr: string, options?: any) { - return ClientAttributeCertificateApiFp(this.configuration).realmClientsIdCertificatesAttrGet(realm, id, attr, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Upload only certificate, not private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientAttributeCertificateApi - */ - public realmClientsIdCertificatesAttrUploadCertificatePost(realm: string, id: string, attr: string, options?: any) { - return ClientAttributeCertificateApiFp(this.configuration).realmClientsIdCertificatesAttrUploadCertificatePost(realm, id, attr, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Upload certificate and eventually private key - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} attr - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientAttributeCertificateApi - */ - public realmClientsIdCertificatesAttrUploadPost(realm: string, id: string, attr: string, options?: any) { - return ClientAttributeCertificateApiFp(this.configuration).realmClientsIdCertificatesAttrUploadPost(realm, id, attr, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ClientInitialAccessApi - axios parameter creator - * @export - */ -export const ClientInitialAccessApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsInitialAccessGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsInitialAccessGet.'); - } - const localVarPath = `/{realm}/clients-initial-access` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsInitialAccessIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsInitialAccessIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsInitialAccessIdDelete.'); - } - const localVarPath = `/{realm}/clients-initial-access/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new initial access token. - * @param {string} realm realm name (not id!) - * @param {ClientInitialAccessCreatePresentation} clientInitialAccessCreatePresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsInitialAccessPost: async (realm: string, clientInitialAccessCreatePresentation: ClientInitialAccessCreatePresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsInitialAccessPost.'); - } - // verify required parameter 'clientInitialAccessCreatePresentation' is not null or undefined - if (clientInitialAccessCreatePresentation === null || clientInitialAccessCreatePresentation === undefined) { - throw new RequiredError('clientInitialAccessCreatePresentation','Required parameter clientInitialAccessCreatePresentation was null or undefined when calling realmClientsInitialAccessPost.'); - } - const localVarPath = `/{realm}/clients-initial-access` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientInitialAccessCreatePresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientInitialAccessCreatePresentation !== undefined ? clientInitialAccessCreatePresentation : {}) : (clientInitialAccessCreatePresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ClientInitialAccessApi - functional programming interface - * @export - */ -export const ClientInitialAccessApiFp = function(configuration?: Configuration) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsInitialAccessGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientInitialAccessApiAxiosParamCreator(configuration).realmClientsInitialAccessGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsInitialAccessIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientInitialAccessApiAxiosParamCreator(configuration).realmClientsInitialAccessIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new initial access token. - * @param {string} realm realm name (not id!) - * @param {ClientInitialAccessCreatePresentation} clientInitialAccessCreatePresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsInitialAccessPost(realm: string, clientInitialAccessCreatePresentation: ClientInitialAccessCreatePresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientInitialAccessApiAxiosParamCreator(configuration).realmClientsInitialAccessPost(realm, clientInitialAccessCreatePresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ClientInitialAccessApi - factory interface - * @export - */ -export const ClientInitialAccessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsInitialAccessGet(realm: string, options?: any): AxiosPromise> { - return ClientInitialAccessApiFp(configuration).realmClientsInitialAccessGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsInitialAccessIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return ClientInitialAccessApiFp(configuration).realmClientsInitialAccessIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new initial access token. - * @param {string} realm realm name (not id!) - * @param {ClientInitialAccessCreatePresentation} clientInitialAccessCreatePresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsInitialAccessPost(realm: string, clientInitialAccessCreatePresentation: ClientInitialAccessCreatePresentation, options?: any): AxiosPromise { - return ClientInitialAccessApiFp(configuration).realmClientsInitialAccessPost(realm, clientInitialAccessCreatePresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ClientInitialAccessApi - object-oriented interface - * @export - * @class ClientInitialAccessApi - * @extends {BaseAPI} - */ -export class ClientInitialAccessApi extends BaseAPI { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientInitialAccessApi - */ - public realmClientsInitialAccessGet(realm: string, options?: any) { - return ClientInitialAccessApiFp(this.configuration).realmClientsInitialAccessGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientInitialAccessApi - */ - public realmClientsInitialAccessIdDelete(realm: string, id: string, options?: any) { - return ClientInitialAccessApiFp(this.configuration).realmClientsInitialAccessIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new initial access token. - * @param {string} realm realm name (not id!) - * @param {ClientInitialAccessCreatePresentation} clientInitialAccessCreatePresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientInitialAccessApi - */ - public realmClientsInitialAccessPost(realm: string, clientInitialAccessCreatePresentation: ClientInitialAccessCreatePresentation, options?: any) { - return ClientInitialAccessApiFp(this.configuration).realmClientsInitialAccessPost(realm, clientInitialAccessCreatePresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ClientRegistrationPolicyApi - axios parameter creator - * @export - */ -export const ClientRegistrationPolicyApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Base path for retrieve providers with the configProperties properly filled - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientRegistrationPolicyProvidersGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientRegistrationPolicyProvidersGet.'); - } - const localVarPath = `/{realm}/client-registration-policy/providers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ClientRegistrationPolicyApi - functional programming interface - * @export - */ -export const ClientRegistrationPolicyApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Base path for retrieve providers with the configProperties properly filled - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientRegistrationPolicyProvidersGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRegistrationPolicyApiAxiosParamCreator(configuration).realmClientRegistrationPolicyProvidersGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ClientRegistrationPolicyApi - factory interface - * @export - */ -export const ClientRegistrationPolicyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Base path for retrieve providers with the configProperties properly filled - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientRegistrationPolicyProvidersGet(realm: string, options?: any): AxiosPromise> { - return ClientRegistrationPolicyApiFp(configuration).realmClientRegistrationPolicyProvidersGet(realm, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ClientRegistrationPolicyApi - object-oriented interface - * @export - * @class ClientRegistrationPolicyApi - * @extends {BaseAPI} - */ -export class ClientRegistrationPolicyApi extends BaseAPI { - /** - * - * @summary Base path for retrieve providers with the configProperties properly filled - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRegistrationPolicyApi - */ - public realmClientRegistrationPolicyProvidersGet(realm: string, options?: any) { - return ClientRegistrationPolicyApiFp(this.configuration).realmClientRegistrationPolicyProvidersGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ClientRoleMappingsApi - axios parameter creator - * @export - */ -export const ClientRoleMappingsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientAvailableGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientAvailableGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/clients/{client}/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientCompositeGet: async (realm: string, id: string, client: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientCompositeGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/clients/{client}/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientDelete: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsClientsClientDelete.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientPost: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsClientsClientPost.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientAvailableGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmUsersIdRoleMappingsClientsClientAvailableGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/clients/{client}/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientCompositeGet: async (realm: string, id: string, client: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmUsersIdRoleMappingsClientsClientCompositeGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/clients/{client}/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientDelete: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsClientsClientDelete.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsClientsClientGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmUsersIdRoleMappingsClientsClientGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientPost: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsClientsClientPost.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ClientRoleMappingsApi - functional programming interface - * @export - */ -export const ClientRoleMappingsApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsClientsClientAvailableGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsClientsClientDelete(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsClientsClientGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsClientsClientPost(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsClientsClientAvailableGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsClientsClientDelete(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsClientsClientGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientRoleMappingsApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsClientsClientPost(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ClientRoleMappingsApi - factory interface - * @export - */ -export const ClientRoleMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ClientRoleMappingsApiFp(configuration).realmGroupsIdRoleMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return ClientRoleMappingsApiFp(configuration).realmGroupsIdRoleMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ClientRoleMappingsApiFp(configuration).realmGroupsIdRoleMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ClientRoleMappingsApiFp(configuration).realmGroupsIdRoleMappingsClientsClientGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ClientRoleMappingsApiFp(configuration).realmGroupsIdRoleMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ClientRoleMappingsApiFp(configuration).realmUsersIdRoleMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return ClientRoleMappingsApiFp(configuration).realmUsersIdRoleMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ClientRoleMappingsApiFp(configuration).realmUsersIdRoleMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ClientRoleMappingsApiFp(configuration).realmUsersIdRoleMappingsClientsClientGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ClientRoleMappingsApiFp(configuration).realmUsersIdRoleMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ClientRoleMappingsApi - object-oriented interface - * @export - * @class ClientRoleMappingsApi - * @extends {BaseAPI} - */ -export class ClientRoleMappingsApi extends BaseAPI { - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmGroupsIdRoleMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmGroupsIdRoleMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmGroupsIdRoleMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmGroupsIdRoleMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmGroupsIdRoleMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmGroupsIdRoleMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmGroupsIdRoleMappingsClientsClientGet(realm: string, id: string, client: string, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmGroupsIdRoleMappingsClientsClientGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmGroupsIdRoleMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmGroupsIdRoleMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get available client-level roles that can be mapped to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmUsersIdRoleMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmUsersIdRoleMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective client-level role mappings This recurses any composite roles - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmUsersIdRoleMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmUsersIdRoleMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete client-level roles from user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmUsersIdRoleMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmUsersIdRoleMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get client-level role mappings for the user, and the app - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmUsersIdRoleMappingsClientsClientGet(realm: string, id: string, client: string, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmUsersIdRoleMappingsClientsClientGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add client-level roles to the user role mapping - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientRoleMappingsApi - */ - public realmUsersIdRoleMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ClientRoleMappingsApiFp(this.configuration).realmUsersIdRoleMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ClientScopesApi - axios parameter creator - * @export - */ -export const ClientScopesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesGet.'); - } - const localVarPath = `/{realm}/client-scopes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdDelete.'); - } - const localVarPath = `/{realm}/client-scopes/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get representation of the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdPut: async (realm: string, id: string, clientScopeRepresentation: ClientScopeRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdPut.'); - } - // verify required parameter 'clientScopeRepresentation' is not null or undefined - if (clientScopeRepresentation === null || clientScopeRepresentation === undefined) { - throw new RequiredError('clientScopeRepresentation','Required parameter clientScopeRepresentation was null or undefined when calling realmClientScopesIdPut.'); - } - const localVarPath = `/{realm}/client-scopes/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientScopeRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientScopeRepresentation !== undefined ? clientScopeRepresentation : {}) : (clientScopeRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new client scope Client Scope’s name must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesPost: async (realm: string, clientScopeRepresentation: ClientScopeRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesPost.'); - } - // verify required parameter 'clientScopeRepresentation' is not null or undefined - if (clientScopeRepresentation === null || clientScopeRepresentation === undefined) { - throw new RequiredError('clientScopeRepresentation','Required parameter clientScopeRepresentation was null or undefined when calling realmClientScopesPost.'); - } - const localVarPath = `/{realm}/client-scopes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientScopeRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientScopeRepresentation !== undefined ? clientScopeRepresentation : {}) : (clientScopeRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ClientScopesApi - functional programming interface - * @export - */ -export const ClientScopesApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientScopesApiAxiosParamCreator(configuration).realmClientScopesGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientScopesApiAxiosParamCreator(configuration).realmClientScopesIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get representation of the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientScopesApiAxiosParamCreator(configuration).realmClientScopesIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdPut(realm: string, id: string, clientScopeRepresentation: ClientScopeRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientScopesApiAxiosParamCreator(configuration).realmClientScopesIdPut(realm, id, clientScopeRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new client scope Client Scope’s name must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesPost(realm: string, clientScopeRepresentation: ClientScopeRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientScopesApiAxiosParamCreator(configuration).realmClientScopesPost(realm, clientScopeRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ClientScopesApi - factory interface - * @export - */ -export const ClientScopesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesGet(realm: string, options?: any): AxiosPromise> { - return ClientScopesApiFp(configuration).realmClientScopesGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return ClientScopesApiFp(configuration).realmClientScopesIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get representation of the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientScopesApiFp(configuration).realmClientScopesIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdPut(realm: string, id: string, clientScopeRepresentation: ClientScopeRepresentation, options?: any): AxiosPromise { - return ClientScopesApiFp(configuration).realmClientScopesIdPut(realm, id, clientScopeRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new client scope Client Scope’s name must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesPost(realm: string, clientScopeRepresentation: ClientScopeRepresentation, options?: any): AxiosPromise { - return ClientScopesApiFp(configuration).realmClientScopesPost(realm, clientScopeRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ClientScopesApi - object-oriented interface - * @export - * @class ClientScopesApi - * @extends {BaseAPI} - */ -export class ClientScopesApi extends BaseAPI { - /** - * - * @summary Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientScopesApi - */ - public realmClientScopesGet(realm: string, options?: any) { - return ClientScopesApiFp(this.configuration).realmClientScopesGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientScopesApi - */ - public realmClientScopesIdDelete(realm: string, id: string, options?: any) { - return ClientScopesApiFp(this.configuration).realmClientScopesIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get representation of the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientScopesApi - */ - public realmClientScopesIdGet(realm: string, id: string, options?: any) { - return ClientScopesApiFp(this.configuration).realmClientScopesIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the client scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientScopesApi - */ - public realmClientScopesIdPut(realm: string, id: string, clientScopeRepresentation: ClientScopeRepresentation, options?: any) { - return ClientScopesApiFp(this.configuration).realmClientScopesIdPut(realm, id, clientScopeRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new client scope Client Scope’s name must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientScopeRepresentation} clientScopeRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientScopesApi - */ - public realmClientScopesPost(realm: string, clientScopeRepresentation: ClientScopeRepresentation, options?: any) { - return ClientScopesApiFp(this.configuration).realmClientScopesPost(realm, clientScopeRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ClientsApi - axios parameter creator - * @export - */ -export const ClientsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get clients belonging to the realm. - * @param {string} realm realm name (not id!) - * @param {string} [clientId] filter by clientId - * @param {number} [first] the first result - * @param {number} [max] the max results to return - * @param {string} [q] - * @param {boolean} [search] whether this is a search query or a getClientById query - * @param {boolean} [viewableOnly] filter clients that cannot be viewed in full by admin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsGet: async (realm: string, clientId?: string, first?: number, max?: number, q?: string, search?: boolean, viewableOnly?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsGet.'); - } - const localVarPath = `/{realm}/clients` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (clientId !== undefined) { - localVarQueryParameter['clientId'] = clientId; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (q !== undefined) { - localVarQueryParameter['q'] = q; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (viewableOnly !== undefined) { - localVarQueryParameter['viewableOnly'] = viewableOnly; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdClientSecretGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdClientSecretGet.'); - } - const localVarPath = `/{realm}/clients/{id}/client-secret` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Generate a new secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdClientSecretPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdClientSecretPost.'); - } - const localVarPath = `/{realm}/clients/{id}/client-secret` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Invalidate the rotated secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretRotatedDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdClientSecretRotatedDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdClientSecretRotatedDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/client-secret/rotated` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the rotated client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretRotatedGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdClientSecretRotatedGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdClientSecretRotatedGet.'); - } - const localVarPath = `/{realm}/clients/{id}/client-secret/rotated` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDefaultClientScopesClientScopeIdDelete: async (realm: string, id: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdDefaultClientScopesClientScopeIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdDefaultClientScopesClientScopeIdDelete.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmClientsIdDefaultClientScopesClientScopeIdDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/default-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDefaultClientScopesClientScopeIdPut: async (realm: string, id: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdDefaultClientScopesClientScopeIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdDefaultClientScopesClientScopeIdPut.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmClientsIdDefaultClientScopesClientScopeIdPut.'); - } - const localVarPath = `/{realm}/clients/{id}/default-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get default client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDefaultClientScopesGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdDefaultClientScopesGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdDefaultClientScopesGet.'); - } - const localVarPath = `/{realm}/clients/{id}/default-client-scopes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdDelete.'); - } - const localVarPath = `/{realm}/clients/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create JSON with payload of example access token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet: async (realm: string, id: string, scope?: string, userId?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet.'); - } - const localVarPath = `/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - if (userId !== undefined) { - localVarQueryParameter['userId'] = userId; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create JSON with payload of example id token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesGenerateExampleIdTokenGet: async (realm: string, id: string, scope?: string, userId?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdEvaluateScopesGenerateExampleIdTokenGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdEvaluateScopesGenerateExampleIdTokenGet.'); - } - const localVarPath = `/{realm}/clients/{id}/evaluate-scopes/generate-example-id-token` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - if (userId !== undefined) { - localVarQueryParameter['userId'] = userId; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create JSON with payload of example user info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesGenerateExampleUserinfoGet: async (realm: string, id: string, scope?: string, userId?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdEvaluateScopesGenerateExampleUserinfoGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdEvaluateScopesGenerateExampleUserinfoGet.'); - } - const localVarPath = `/{realm}/clients/{id}/evaluate-scopes/generate-example-userinfo` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - if (userId !== undefined) { - localVarQueryParameter['userId'] = userId; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return list of all protocol mappers, which will be used when generating tokens issued for particular client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesProtocolMappersGet: async (realm: string, id: string, scope?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdEvaluateScopesProtocolMappersGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdEvaluateScopesProtocolMappersGet.'); - } - const localVarPath = `/{realm}/clients/{id}/evaluate-scopes/protocol-mappers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet: async (realm: string, id: string, roleContainerId: string, scope?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet.'); - } - // verify required parameter 'roleContainerId' is not null or undefined - if (roleContainerId === null || roleContainerId === undefined) { - throw new RequiredError('roleContainerId','Required parameter roleContainerId was null or undefined when calling realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet.'); - } - const localVarPath = `/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"roleContainerId"}}`, encodeURIComponent(String(roleContainerId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet: async (realm: string, id: string, roleContainerId: string, scope?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet.'); - } - // verify required parameter 'roleContainerId' is not null or undefined - if (roleContainerId === null || roleContainerId === undefined) { - throw new RequiredError('roleContainerId','Required parameter roleContainerId was null or undefined when calling realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet.'); - } - const localVarPath = `/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"roleContainerId"}}`, encodeURIComponent(String(roleContainerId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (scope !== undefined) { - localVarQueryParameter['scope'] = scope; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get representation of the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdGet.'); - } - const localVarPath = `/{realm}/clients/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdInstallationProvidersProviderIdGet: async (realm: string, id: string, providerId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdInstallationProvidersProviderIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdInstallationProvidersProviderIdGet.'); - } - // verify required parameter 'providerId' is not null or undefined - if (providerId === null || providerId === undefined) { - throw new RequiredError('providerId','Required parameter providerId was null or undefined when calling realmClientsIdInstallationProvidersProviderIdGet.'); - } - const localVarPath = `/{realm}/clients/{id}/installation/providers/{providerId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"providerId"}}`, encodeURIComponent(String(providerId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdManagementPermissionsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdManagementPermissionsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/clients/{id}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdManagementPermissionsPut: async (realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdManagementPermissionsPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmClientsIdManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/clients/{id}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Unregister a cluster node from the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} node - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdNodesNodeDelete: async (realm: string, id: string, node: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdNodesNodeDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdNodesNodeDelete.'); - } - // verify required parameter 'node' is not null or undefined - if (node === null || node === undefined) { - throw new RequiredError('node','Required parameter node was null or undefined when calling realmClientsIdNodesNodeDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/nodes/{node}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"node"}}`, encodeURIComponent(String(node))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdNodesPost: async (realm: string, id: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdNodesPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdNodesPost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmClientsIdNodesPost.'); - } - const localVarPath = `/{realm}/clients/{id}/nodes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOfflineSessionCountGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdOfflineSessionCountGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdOfflineSessionCountGet.'); - } - const localVarPath = `/{realm}/clients/{id}/offline-session-count` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get offline sessions for client Returns a list of offline user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOfflineSessionsGet: async (realm: string, id: string, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdOfflineSessionsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdOfflineSessionsGet.'); - } - const localVarPath = `/{realm}/clients/{id}/offline-sessions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOptionalClientScopesClientScopeIdDelete: async (realm: string, id: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdOptionalClientScopesClientScopeIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdOptionalClientScopesClientScopeIdDelete.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmClientsIdOptionalClientScopesClientScopeIdDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOptionalClientScopesClientScopeIdPut: async (realm: string, id: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdOptionalClientScopesClientScopeIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdOptionalClientScopesClientScopeIdPut.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmClientsIdOptionalClientScopesClientScopeIdPut.'); - } - const localVarPath = `/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get optional client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOptionalClientScopesGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdOptionalClientScopesGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdOptionalClientScopesGet.'); - } - const localVarPath = `/{realm}/clients/{id}/optional-client-scopes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdPushRevocationPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdPushRevocationPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdPushRevocationPost.'); - } - const localVarPath = `/{realm}/clients/{id}/push-revocation` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdPut: async (realm: string, id: string, clientRepresentation: ClientRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdPut.'); - } - // verify required parameter 'clientRepresentation' is not null or undefined - if (clientRepresentation === null || clientRepresentation === undefined) { - throw new RequiredError('clientRepresentation','Required parameter clientRepresentation was null or undefined when calling realmClientsIdPut.'); - } - const localVarPath = `/{realm}/clients/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientRepresentation !== undefined ? clientRepresentation : {}) : (clientRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Generate a new registration access token for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRegistrationAccessTokenPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRegistrationAccessTokenPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRegistrationAccessTokenPost.'); - } - const localVarPath = `/{realm}/clients/{id}/registration-access-token` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get a user dedicated to the service account - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdServiceAccountUserGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdServiceAccountUserGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdServiceAccountUserGet.'); - } - const localVarPath = `/{realm}/clients/{id}/service-account-user` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get application session count Returns a number of user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdSessionCountGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdSessionCountGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdSessionCountGet.'); - } - const localVarPath = `/{realm}/clients/{id}/session-count` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Test if registered cluster nodes are available Tests availability by sending \'ping\' request to all cluster nodes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdTestNodesAvailableGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdTestNodesAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdTestNodesAvailableGet.'); - } - const localVarPath = `/{realm}/clients/{id}/test-nodes-available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get user sessions for client Returns a list of user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdUserSessionsGet: async (realm: string, id: string, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdUserSessionsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdUserSessionsGet.'); - } - const localVarPath = `/{realm}/clients/{id}/user-sessions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new client Client’s client_id must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsPost: async (realm: string, clientRepresentation: ClientRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsPost.'); - } - // verify required parameter 'clientRepresentation' is not null or undefined - if (clientRepresentation === null || clientRepresentation === undefined) { - throw new RequiredError('clientRepresentation','Required parameter clientRepresentation was null or undefined when calling realmClientsPost.'); - } - const localVarPath = `/{realm}/clients` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientRepresentation !== undefined ? clientRepresentation : {}) : (clientRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ClientsApi - functional programming interface - * @export - */ -export const ClientsApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get clients belonging to the realm. - * @param {string} realm realm name (not id!) - * @param {string} [clientId] filter by clientId - * @param {number} [first] the first result - * @param {number} [max] the max results to return - * @param {string} [q] - * @param {boolean} [search] whether this is a search query or a getClientById query - * @param {boolean} [viewableOnly] filter clients that cannot be viewed in full by admin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsGet(realm: string, clientId?: string, first?: number, max?: number, q?: string, search?: boolean, viewableOnly?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsGet(realm, clientId, first, max, q, search, viewableOnly, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdClientSecretGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdClientSecretGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Generate a new secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdClientSecretPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdClientSecretPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Invalidate the rotated secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdClientSecretRotatedDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdClientSecretRotatedDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the rotated client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdClientSecretRotatedGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdClientSecretRotatedGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdDefaultClientScopesClientScopeIdDelete(realm: string, id: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdDefaultClientScopesClientScopeIdDelete(realm, id, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdDefaultClientScopesClientScopeIdPut(realm: string, id: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdDefaultClientScopesClientScopeIdPut(realm, id, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get default client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdDefaultClientScopesGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdDefaultClientScopesGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create JSON with payload of example access token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet(realm: string, id: string, scope?: string, userId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet(realm, id, scope, userId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create JSON with payload of example id token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdEvaluateScopesGenerateExampleIdTokenGet(realm: string, id: string, scope?: string, userId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdEvaluateScopesGenerateExampleIdTokenGet(realm, id, scope, userId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create JSON with payload of example user info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdEvaluateScopesGenerateExampleUserinfoGet(realm: string, id: string, scope?: string, userId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdEvaluateScopesGenerateExampleUserinfoGet(realm, id, scope, userId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return list of all protocol mappers, which will be used when generating tokens issued for particular client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdEvaluateScopesProtocolMappersGet(realm: string, id: string, scope?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdEvaluateScopesProtocolMappersGet(realm, id, scope, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(realm: string, id: string, roleContainerId: string, scope?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(realm, id, roleContainerId, scope, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(realm: string, id: string, roleContainerId: string, scope?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(realm, id, roleContainerId, scope, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get representation of the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdInstallationProvidersProviderIdGet(realm: string, id: string, providerId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdInstallationProvidersProviderIdGet(realm, id, providerId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdManagementPermissionsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdManagementPermissionsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdManagementPermissionsPut(realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdManagementPermissionsPut(realm, id, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Unregister a cluster node from the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} node - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdNodesNodeDelete(realm: string, id: string, node: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdNodesNodeDelete(realm, id, node, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdNodesPost(realm: string, id: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdNodesPost(realm, id, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdOfflineSessionCountGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdOfflineSessionCountGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get offline sessions for client Returns a list of offline user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdOfflineSessionsGet(realm: string, id: string, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdOfflineSessionsGet(realm, id, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdOptionalClientScopesClientScopeIdDelete(realm: string, id: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdOptionalClientScopesClientScopeIdDelete(realm, id, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdOptionalClientScopesClientScopeIdPut(realm: string, id: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdOptionalClientScopesClientScopeIdPut(realm, id, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get optional client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdOptionalClientScopesGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdOptionalClientScopesGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdPushRevocationPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdPushRevocationPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdPut(realm: string, id: string, clientRepresentation: ClientRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdPut(realm, id, clientRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Generate a new registration access token for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRegistrationAccessTokenPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdRegistrationAccessTokenPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get a user dedicated to the service account - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdServiceAccountUserGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdServiceAccountUserGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get application session count Returns a number of user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdSessionCountGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdSessionCountGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Test if registered cluster nodes are available Tests availability by sending \'ping\' request to all cluster nodes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdTestNodesAvailableGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdTestNodesAvailableGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get user sessions for client Returns a list of user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdUserSessionsGet(realm: string, id: string, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsIdUserSessionsGet(realm, id, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new client Client’s client_id must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsPost(realm: string, clientRepresentation: ClientRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ClientsApiAxiosParamCreator(configuration).realmClientsPost(realm, clientRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ClientsApi - factory interface - * @export - */ -export const ClientsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get clients belonging to the realm. - * @param {string} realm realm name (not id!) - * @param {string} [clientId] filter by clientId - * @param {number} [first] the first result - * @param {number} [max] the max results to return - * @param {string} [q] - * @param {boolean} [search] whether this is a search query or a getClientById query - * @param {boolean} [viewableOnly] filter clients that cannot be viewed in full by admin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsGet(realm: string, clientId?: string, first?: number, max?: number, q?: string, search?: boolean, viewableOnly?: boolean, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsGet(realm, clientId, first, max, q, search, viewableOnly, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdClientSecretGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Generate a new secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretPost(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdClientSecretPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Invalidate the rotated secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretRotatedDelete(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdClientSecretRotatedDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the rotated client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdClientSecretRotatedGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdClientSecretRotatedGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDefaultClientScopesClientScopeIdDelete(realm: string, id: string, clientScopeId: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdDefaultClientScopesClientScopeIdDelete(realm, id, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDefaultClientScopesClientScopeIdPut(realm: string, id: string, clientScopeId: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdDefaultClientScopesClientScopeIdPut(realm, id, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get default client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDefaultClientScopesGet(realm: string, id: string, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdDefaultClientScopesGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create JSON with payload of example access token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet(realm: string, id: string, scope?: string, userId?: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet(realm, id, scope, userId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create JSON with payload of example id token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesGenerateExampleIdTokenGet(realm: string, id: string, scope?: string, userId?: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdEvaluateScopesGenerateExampleIdTokenGet(realm, id, scope, userId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create JSON with payload of example user info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesGenerateExampleUserinfoGet(realm: string, id: string, scope?: string, userId?: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return ClientsApiFp(configuration).realmClientsIdEvaluateScopesGenerateExampleUserinfoGet(realm, id, scope, userId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return list of all protocol mappers, which will be used when generating tokens issued for particular client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesProtocolMappersGet(realm: string, id: string, scope?: string, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdEvaluateScopesProtocolMappersGet(realm, id, scope, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(realm: string, id: string, roleContainerId: string, scope?: string, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(realm, id, roleContainerId, scope, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(realm: string, id: string, roleContainerId: string, scope?: string, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(realm, id, roleContainerId, scope, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get representation of the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdInstallationProvidersProviderIdGet(realm: string, id: string, providerId: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdInstallationProvidersProviderIdGet(realm, id, providerId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdManagementPermissionsGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdManagementPermissionsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdManagementPermissionsPut(realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdManagementPermissionsPut(realm, id, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Unregister a cluster node from the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} node - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdNodesNodeDelete(realm: string, id: string, node: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdNodesNodeDelete(realm, id, node, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdNodesPost(realm: string, id: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdNodesPost(realm, id, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOfflineSessionCountGet(realm: string, id: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return ClientsApiFp(configuration).realmClientsIdOfflineSessionCountGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get offline sessions for client Returns a list of offline user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOfflineSessionsGet(realm: string, id: string, first?: number, max?: number, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdOfflineSessionsGet(realm, id, first, max, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOptionalClientScopesClientScopeIdDelete(realm: string, id: string, clientScopeId: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdOptionalClientScopesClientScopeIdDelete(realm, id, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOptionalClientScopesClientScopeIdPut(realm: string, id: string, clientScopeId: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdOptionalClientScopesClientScopeIdPut(realm, id, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get optional client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdOptionalClientScopesGet(realm: string, id: string, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdOptionalClientScopesGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdPushRevocationPost(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdPushRevocationPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdPut(realm: string, id: string, clientRepresentation: ClientRepresentation, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdPut(realm, id, clientRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Generate a new registration access token for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRegistrationAccessTokenPost(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdRegistrationAccessTokenPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get a user dedicated to the service account - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdServiceAccountUserGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdServiceAccountUserGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get application session count Returns a number of user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdSessionCountGet(realm: string, id: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return ClientsApiFp(configuration).realmClientsIdSessionCountGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Test if registered cluster nodes are available Tests availability by sending \'ping\' request to all cluster nodes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdTestNodesAvailableGet(realm: string, id: string, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsIdTestNodesAvailableGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get user sessions for client Returns a list of user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdUserSessionsGet(realm: string, id: string, first?: number, max?: number, options?: any): AxiosPromise> { - return ClientsApiFp(configuration).realmClientsIdUserSessionsGet(realm, id, first, max, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new client Client’s client_id must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsPost(realm: string, clientRepresentation: ClientRepresentation, options?: any): AxiosPromise { - return ClientsApiFp(configuration).realmClientsPost(realm, clientRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ClientsApi - object-oriented interface - * @export - * @class ClientsApi - * @extends {BaseAPI} - */ -export class ClientsApi extends BaseAPI { - /** - * - * @summary Get clients belonging to the realm. - * @param {string} realm realm name (not id!) - * @param {string} [clientId] filter by clientId - * @param {number} [first] the first result - * @param {number} [max] the max results to return - * @param {string} [q] - * @param {boolean} [search] whether this is a search query or a getClientById query - * @param {boolean} [viewableOnly] filter clients that cannot be viewed in full by admin - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsGet(realm: string, clientId?: string, first?: number, max?: number, q?: string, search?: boolean, viewableOnly?: boolean, options?: any) { - return ClientsApiFp(this.configuration).realmClientsGet(realm, clientId, first, max, q, search, viewableOnly, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdClientSecretGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdClientSecretGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Generate a new secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdClientSecretPost(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdClientSecretPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Invalidate the rotated secret for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdClientSecretRotatedDelete(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdClientSecretRotatedDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the rotated client secret - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdClientSecretRotatedGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdClientSecretRotatedGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdDefaultClientScopesClientScopeIdDelete(realm: string, id: string, clientScopeId: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdDefaultClientScopesClientScopeIdDelete(realm, id, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdDefaultClientScopesClientScopeIdPut(realm: string, id: string, clientScopeId: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdDefaultClientScopesClientScopeIdPut(realm, id, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get default client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdDefaultClientScopesGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdDefaultClientScopesGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdDelete(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create JSON with payload of example access token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet(realm: string, id: string, scope?: string, userId?: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdEvaluateScopesGenerateExampleAccessTokenGet(realm, id, scope, userId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create JSON with payload of example id token - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdEvaluateScopesGenerateExampleIdTokenGet(realm: string, id: string, scope?: string, userId?: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdEvaluateScopesGenerateExampleIdTokenGet(realm, id, scope, userId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create JSON with payload of example user info - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {string} [userId] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdEvaluateScopesGenerateExampleUserinfoGet(realm: string, id: string, scope?: string, userId?: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdEvaluateScopesGenerateExampleUserinfoGet(realm, id, scope, userId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return list of all protocol mappers, which will be used when generating tokens issued for particular client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdEvaluateScopesProtocolMappersGet(realm: string, id: string, scope?: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdEvaluateScopesProtocolMappersGet(realm, id, scope, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(realm: string, id: string, roleContainerId: string, scope?: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdGrantedGet(realm, id, roleContainerId, scope, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleContainerId either realm name OR client UUID - * @param {string} [scope] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(realm: string, id: string, roleContainerId: string, scope?: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdEvaluateScopesScopeMappingsRoleContainerIdNotGrantedGet(realm, id, roleContainerId, scope, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get representation of the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} providerId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdInstallationProvidersProviderIdGet(realm: string, id: string, providerId: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdInstallationProvidersProviderIdGet(realm, id, providerId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdManagementPermissionsGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdManagementPermissionsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdManagementPermissionsPut(realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdManagementPermissionsPut(realm, id, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Unregister a cluster node from the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} node - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdNodesNodeDelete(realm: string, id: string, node: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdNodesNodeDelete(realm, id, node, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdNodesPost(realm: string, id: string, requestBody: { [key: string]: object; }, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdNodesPost(realm, id, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdOfflineSessionCountGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdOfflineSessionCountGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get offline sessions for client Returns a list of offline user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdOfflineSessionsGet(realm: string, id: string, first?: number, max?: number, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdOfflineSessionsGet(realm, id, first, max, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdOptionalClientScopesClientScopeIdDelete(realm: string, id: string, clientScopeId: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdOptionalClientScopesClientScopeIdDelete(realm, id, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdOptionalClientScopesClientScopeIdPut(realm: string, id: string, clientScopeId: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdOptionalClientScopesClientScopeIdPut(realm, id, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get optional client scopes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdOptionalClientScopesGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdOptionalClientScopesGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdPushRevocationPost(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdPushRevocationPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdPut(realm: string, id: string, clientRepresentation: ClientRepresentation, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdPut(realm, id, clientRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Generate a new registration access token for the client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdRegistrationAccessTokenPost(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdRegistrationAccessTokenPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get a user dedicated to the service account - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdServiceAccountUserGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdServiceAccountUserGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get application session count Returns a number of user sessions associated with this client { \"count\": number } - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdSessionCountGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdSessionCountGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Test if registered cluster nodes are available Tests availability by sending \'ping\' request to all cluster nodes. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdTestNodesAvailableGet(realm: string, id: string, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdTestNodesAvailableGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get user sessions for client Returns a list of user sessions associated with this client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {number} [first] Paging offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsIdUserSessionsGet(realm: string, id: string, first?: number, max?: number, options?: any) { - return ClientsApiFp(this.configuration).realmClientsIdUserSessionsGet(realm, id, first, max, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new client Client’s client_id must be unique! - * @param {string} realm realm name (not id!) - * @param {ClientRepresentation} clientRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ClientsApi - */ - public realmClientsPost(realm: string, clientRepresentation: ClientRepresentation, options?: any) { - return ClientsApiFp(this.configuration).realmClientsPost(realm, clientRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ComponentApi - axios parameter creator - * @export - */ -export const ComponentApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {string} [name] - * @param {string} [parent] - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsGet: async (realm: string, name?: string, parent?: string, type?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmComponentsGet.'); - } - const localVarPath = `/{realm}/components` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (name !== undefined) { - localVarQueryParameter['name'] = name; - } - - if (parent !== undefined) { - localVarQueryParameter['parent'] = parent; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmComponentsIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmComponentsIdDelete.'); - } - const localVarPath = `/{realm}/components/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmComponentsIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmComponentsIdGet.'); - } - const localVarPath = `/{realm}/components/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdPut: async (realm: string, id: string, componentRepresentation: ComponentRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmComponentsIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmComponentsIdPut.'); - } - // verify required parameter 'componentRepresentation' is not null or undefined - if (componentRepresentation === null || componentRepresentation === undefined) { - throw new RequiredError('componentRepresentation','Required parameter componentRepresentation was null or undefined when calling realmComponentsIdPut.'); - } - const localVarPath = `/{realm}/components/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof componentRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(componentRepresentation !== undefined ? componentRepresentation : {}) : (componentRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary List of subcomponent types that are available to configure for a particular parent component. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdSubComponentTypesGet: async (realm: string, id: string, type?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmComponentsIdSubComponentTypesGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmComponentsIdSubComponentTypesGet.'); - } - const localVarPath = `/{realm}/components/{id}/sub-component-types` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (type !== undefined) { - localVarQueryParameter['type'] = type; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsPost: async (realm: string, componentRepresentation: ComponentRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmComponentsPost.'); - } - // verify required parameter 'componentRepresentation' is not null or undefined - if (componentRepresentation === null || componentRepresentation === undefined) { - throw new RequiredError('componentRepresentation','Required parameter componentRepresentation was null or undefined when calling realmComponentsPost.'); - } - const localVarPath = `/{realm}/components` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof componentRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(componentRepresentation !== undefined ? componentRepresentation : {}) : (componentRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ComponentApi - functional programming interface - * @export - */ -export const ComponentApiFp = function(configuration?: Configuration) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {string} [name] - * @param {string} [parent] - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmComponentsGet(realm: string, name?: string, parent?: string, type?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ComponentApiAxiosParamCreator(configuration).realmComponentsGet(realm, name, parent, type, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmComponentsIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ComponentApiAxiosParamCreator(configuration).realmComponentsIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmComponentsIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ComponentApiAxiosParamCreator(configuration).realmComponentsIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmComponentsIdPut(realm: string, id: string, componentRepresentation: ComponentRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ComponentApiAxiosParamCreator(configuration).realmComponentsIdPut(realm, id, componentRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary List of subcomponent types that are available to configure for a particular parent component. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmComponentsIdSubComponentTypesGet(realm: string, id: string, type?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ComponentApiAxiosParamCreator(configuration).realmComponentsIdSubComponentTypesGet(realm, id, type, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmComponentsPost(realm: string, componentRepresentation: ComponentRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ComponentApiAxiosParamCreator(configuration).realmComponentsPost(realm, componentRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ComponentApi - factory interface - * @export - */ -export const ComponentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {string} [name] - * @param {string} [parent] - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsGet(realm: string, name?: string, parent?: string, type?: string, options?: any): AxiosPromise> { - return ComponentApiFp(configuration).realmComponentsGet(realm, name, parent, type, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return ComponentApiFp(configuration).realmComponentsIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdGet(realm: string, id: string, options?: any): AxiosPromise { - return ComponentApiFp(configuration).realmComponentsIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdPut(realm: string, id: string, componentRepresentation: ComponentRepresentation, options?: any): AxiosPromise { - return ComponentApiFp(configuration).realmComponentsIdPut(realm, id, componentRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary List of subcomponent types that are available to configure for a particular parent component. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsIdSubComponentTypesGet(realm: string, id: string, type?: string, options?: any): AxiosPromise> { - return ComponentApiFp(configuration).realmComponentsIdSubComponentTypesGet(realm, id, type, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmComponentsPost(realm: string, componentRepresentation: ComponentRepresentation, options?: any): AxiosPromise { - return ComponentApiFp(configuration).realmComponentsPost(realm, componentRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ComponentApi - object-oriented interface - * @export - * @class ComponentApi - * @extends {BaseAPI} - */ -export class ComponentApi extends BaseAPI { - /** - * - * @param {string} realm realm name (not id!) - * @param {string} [name] - * @param {string} [parent] - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComponentApi - */ - public realmComponentsGet(realm: string, name?: string, parent?: string, type?: string, options?: any) { - return ComponentApiFp(this.configuration).realmComponentsGet(realm, name, parent, type, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComponentApi - */ - public realmComponentsIdDelete(realm: string, id: string, options?: any) { - return ComponentApiFp(this.configuration).realmComponentsIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComponentApi - */ - public realmComponentsIdGet(realm: string, id: string, options?: any) { - return ComponentApiFp(this.configuration).realmComponentsIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComponentApi - */ - public realmComponentsIdPut(realm: string, id: string, componentRepresentation: ComponentRepresentation, options?: any) { - return ComponentApiFp(this.configuration).realmComponentsIdPut(realm, id, componentRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary List of subcomponent types that are available to configure for a particular parent component. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [type] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComponentApi - */ - public realmComponentsIdSubComponentTypesGet(realm: string, id: string, type?: string, options?: any) { - return ComponentApiFp(this.configuration).realmComponentsIdSubComponentTypesGet(realm, id, type, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {ComponentRepresentation} componentRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ComponentApi - */ - public realmComponentsPost(realm: string, componentRepresentation: ComponentRepresentation, options?: any) { - return ComponentApiFp(this.configuration).realmComponentsPost(realm, componentRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * GroupsApi - axios parameter creator - * @export - */ -export const GroupsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Returns the groups counts. - * @param {string} realm realm name (not id!) - * @param {string} [search] - * @param {boolean} [top] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsCountGet: async (realm: string, search?: string, top?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsCountGet.'); - } - const localVarPath = `/{realm}/groups/count` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (top !== undefined) { - localVarQueryParameter['top'] = top; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsGet: async (realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsGet.'); - } - const localVarPath = `/{realm}/groups` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Set or create child. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdChildrenPost: async (realm: string, id: string, groupRepresentation: GroupRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdChildrenPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdChildrenPost.'); - } - // verify required parameter 'groupRepresentation' is not null or undefined - if (groupRepresentation === null || groupRepresentation === undefined) { - throw new RequiredError('groupRepresentation','Required parameter groupRepresentation was null or undefined when calling realmGroupsIdChildrenPost.'); - } - const localVarPath = `/{realm}/groups/{id}/children` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof groupRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(groupRepresentation !== undefined ? groupRepresentation : {}) : (groupRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdDelete.'); - } - const localVarPath = `/{realm}/groups/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdGet.'); - } - const localVarPath = `/{realm}/groups/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdManagementPermissionsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdManagementPermissionsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/groups/{id}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdManagementPermissionsPut: async (realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdManagementPermissionsPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmGroupsIdManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/groups/{id}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) - * @param {number} [first] Pagination offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdMembersGet: async (realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdMembersGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdMembersGet.'); - } - const localVarPath = `/{realm}/groups/{id}/members` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update group, ignores subgroups. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdPut: async (realm: string, id: string, groupRepresentation: GroupRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdPut.'); - } - // verify required parameter 'groupRepresentation' is not null or undefined - if (groupRepresentation === null || groupRepresentation === undefined) { - throw new RequiredError('groupRepresentation','Required parameter groupRepresentation was null or undefined when calling realmGroupsIdPut.'); - } - const localVarPath = `/{realm}/groups/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof groupRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(groupRepresentation !== undefined ? groupRepresentation : {}) : (groupRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary create or add a top level realm groupSet or create child. - * @param {string} realm realm name (not id!) - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsPost: async (realm: string, groupRepresentation: GroupRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsPost.'); - } - // verify required parameter 'groupRepresentation' is not null or undefined - if (groupRepresentation === null || groupRepresentation === undefined) { - throw new RequiredError('groupRepresentation','Required parameter groupRepresentation was null or undefined when calling realmGroupsPost.'); - } - const localVarPath = `/{realm}/groups` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof groupRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(groupRepresentation !== undefined ? groupRepresentation : {}) : (groupRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * GroupsApi - functional programming interface - * @export - */ -export const GroupsApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Returns the groups counts. - * @param {string} realm realm name (not id!) - * @param {string} [search] - * @param {boolean} [top] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsCountGet(realm: string, search?: string, top?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsCountGet(realm, search, top, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsGet(realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsGet(realm, briefRepresentation, first, max, search, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Set or create child. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdChildrenPost(realm: string, id: string, groupRepresentation: GroupRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdChildrenPost(realm, id, groupRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdManagementPermissionsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdManagementPermissionsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdManagementPermissionsPut(realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdManagementPermissionsPut(realm, id, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) - * @param {number} [first] Pagination offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdMembersGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdMembersGet(realm, id, briefRepresentation, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update group, ignores subgroups. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdPut(realm: string, id: string, groupRepresentation: GroupRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsIdPut(realm, id, groupRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary create or add a top level realm groupSet or create child. - * @param {string} realm realm name (not id!) - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsPost(realm: string, groupRepresentation: GroupRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await GroupsApiAxiosParamCreator(configuration).realmGroupsPost(realm, groupRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * GroupsApi - factory interface - * @export - */ -export const GroupsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Returns the groups counts. - * @param {string} realm realm name (not id!) - * @param {string} [search] - * @param {boolean} [top] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsCountGet(realm: string, search?: string, top?: boolean, options?: any): AxiosPromise<{ [key: string]: object; }> { - return GroupsApiFp(configuration).realmGroupsCountGet(realm, search, top, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsGet(realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): AxiosPromise> { - return GroupsApiFp(configuration).realmGroupsGet(realm, briefRepresentation, first, max, search, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Set or create child. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdChildrenPost(realm: string, id: string, groupRepresentation: GroupRepresentation, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsIdChildrenPost(realm, id, groupRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdGet(realm: string, id: string, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdManagementPermissionsGet(realm: string, id: string, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsIdManagementPermissionsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdManagementPermissionsPut(realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsIdManagementPermissionsPut(realm, id, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) - * @param {number} [first] Pagination offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdMembersGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any): AxiosPromise> { - return GroupsApiFp(configuration).realmGroupsIdMembersGet(realm, id, briefRepresentation, first, max, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update group, ignores subgroups. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdPut(realm: string, id: string, groupRepresentation: GroupRepresentation, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsIdPut(realm, id, groupRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary create or add a top level realm groupSet or create child. - * @param {string} realm realm name (not id!) - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsPost(realm: string, groupRepresentation: GroupRepresentation, options?: any): AxiosPromise { - return GroupsApiFp(configuration).realmGroupsPost(realm, groupRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * GroupsApi - object-oriented interface - * @export - * @class GroupsApi - * @extends {BaseAPI} - */ -export class GroupsApi extends BaseAPI { - /** - * - * @summary Returns the groups counts. - * @param {string} realm realm name (not id!) - * @param {string} [search] - * @param {boolean} [top] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsCountGet(realm: string, search?: string, top?: boolean, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsCountGet(realm, search, top, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsGet(realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsGet(realm, briefRepresentation, first, max, search, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Set or create child. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdChildrenPost(realm: string, id: string, groupRepresentation: GroupRepresentation, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdChildrenPost(realm, id, groupRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdDelete(realm: string, id: string, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdGet(realm: string, id: string, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdManagementPermissionsGet(realm: string, id: string, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdManagementPermissionsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdManagementPermissionsPut(realm: string, id: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdManagementPermissionsPut(realm, id, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] Only return basic information (only guaranteed to return id, username, created, first and last name, email, enabled state, email verification state, federation link, and access. Note that it means that namely user attributes, required actions, and not before are not returned.) - * @param {number} [first] Pagination offset - * @param {number} [max] Maximum results size (defaults to 100) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdMembersGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdMembersGet(realm, id, briefRepresentation, first, max, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update group, ignores subgroups. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsIdPut(realm: string, id: string, groupRepresentation: GroupRepresentation, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsIdPut(realm, id, groupRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary create or add a top level realm groupSet or create child. - * @param {string} realm realm name (not id!) - * @param {GroupRepresentation} groupRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof GroupsApi - */ - public realmGroupsPost(realm: string, groupRepresentation: GroupRepresentation, options?: any) { - return GroupsApiFp(this.configuration).realmGroupsPost(realm, groupRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * IdentityProvidersApi - axios parameter creator - * @export - */ -export const IdentityProvidersApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Import identity provider from uploaded JSON file - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderImportConfigPost: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderImportConfigPost.'); - } - const localVarPath = `/{realm}/identity-provider/import-config` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasDelete: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasDelete.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasDelete.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Export public broker configuration for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} [format] Format to use - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasExportGet: async (realm: string, alias: string, format?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasExportGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasExportGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/export` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (format !== undefined) { - localVarQueryParameter['format'] = format; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasGet: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasManagementPermissionsGet: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasManagementPermissionsPut: async (realm: string, alias: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsPut.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmIdentityProviderInstancesAliasManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mapper types for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMapperTypesGet: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasMapperTypesGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasMapperTypesGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/mapper-types` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mappers for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersGet: async (realm: string, alias: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/mappers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersIdDelete: async (realm: string, alias: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdDelete.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdDelete.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/mappers/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mapper by id for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersIdGet: async (realm: string, alias: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdGet.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/mappers/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersIdPut: async (realm: string, alias: string, id: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.'); - } - // verify required parameter 'identityProviderMapperRepresentation' is not null or undefined - if (identityProviderMapperRepresentation === null || identityProviderMapperRepresentation === undefined) { - throw new RequiredError('identityProviderMapperRepresentation','Required parameter identityProviderMapperRepresentation was null or undefined when calling realmIdentityProviderInstancesAliasMappersIdPut.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/mappers/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof identityProviderMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(identityProviderMapperRepresentation !== undefined ? identityProviderMapperRepresentation : {}) : (identityProviderMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add a mapper to identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersPost: async (realm: string, alias: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasMappersPost.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasMappersPost.'); - } - // verify required parameter 'identityProviderMapperRepresentation' is not null or undefined - if (identityProviderMapperRepresentation === null || identityProviderMapperRepresentation === undefined) { - throw new RequiredError('identityProviderMapperRepresentation','Required parameter identityProviderMapperRepresentation was null or undefined when calling realmIdentityProviderInstancesAliasMappersPost.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}/mappers` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof identityProviderMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(identityProviderMapperRepresentation !== undefined ? identityProviderMapperRepresentation : {}) : (identityProviderMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderRepresentation} identityProviderRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasPut: async (realm: string, alias: string, identityProviderRepresentation: IdentityProviderRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesAliasPut.'); - } - // verify required parameter 'alias' is not null or undefined - if (alias === null || alias === undefined) { - throw new RequiredError('alias','Required parameter alias was null or undefined when calling realmIdentityProviderInstancesAliasPut.'); - } - // verify required parameter 'identityProviderRepresentation' is not null or undefined - if (identityProviderRepresentation === null || identityProviderRepresentation === undefined) { - throw new RequiredError('identityProviderRepresentation','Required parameter identityProviderRepresentation was null or undefined when calling realmIdentityProviderInstancesAliasPut.'); - } - const localVarPath = `/{realm}/identity-provider/instances/{alias}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"alias"}}`, encodeURIComponent(String(alias))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof identityProviderRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(identityProviderRepresentation !== undefined ? identityProviderRepresentation : {}) : (identityProviderRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesGet.'); - } - const localVarPath = `/{realm}/identity-provider/instances` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new identity provider - * @param {string} realm realm name (not id!) - * @param {IdentityProviderRepresentation} identityProviderRepresentation JSON body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesPost: async (realm: string, identityProviderRepresentation: IdentityProviderRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderInstancesPost.'); - } - // verify required parameter 'identityProviderRepresentation' is not null or undefined - if (identityProviderRepresentation === null || identityProviderRepresentation === undefined) { - throw new RequiredError('identityProviderRepresentation','Required parameter identityProviderRepresentation was null or undefined when calling realmIdentityProviderInstancesPost.'); - } - const localVarPath = `/{realm}/identity-provider/instances` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof identityProviderRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(identityProviderRepresentation !== undefined ? identityProviderRepresentation : {}) : (identityProviderRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {string} providerId Provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderProvidersProviderIdGet: async (realm: string, providerId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmIdentityProviderProvidersProviderIdGet.'); - } - // verify required parameter 'providerId' is not null or undefined - if (providerId === null || providerId === undefined) { - throw new RequiredError('providerId','Required parameter providerId was null or undefined when calling realmIdentityProviderProvidersProviderIdGet.'); - } - const localVarPath = `/{realm}/identity-provider/providers/{provider_id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"provider_id"}}`, encodeURIComponent(String(providerId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * IdentityProvidersApi - functional programming interface - * @export - */ -export const IdentityProvidersApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Import identity provider from uploaded JSON file - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderImportConfigPost(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderImportConfigPost(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasDelete(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasDelete(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Export public broker configuration for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} [format] Format to use - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasExportGet(realm: string, alias: string, format?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasExportGet(realm, alias, format, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasGet(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasGet(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasManagementPermissionsGet(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasManagementPermissionsGet(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasManagementPermissionsPut(realm: string, alias: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasManagementPermissionsPut(realm, alias, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mapper types for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasMapperTypesGet(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasMapperTypesGet(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mappers for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasMappersGet(realm: string, alias: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasMappersGet(realm, alias, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasMappersIdDelete(realm: string, alias: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasMappersIdDelete(realm, alias, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mapper by id for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasMappersIdGet(realm: string, alias: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasMappersIdGet(realm, alias, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasMappersIdPut(realm: string, alias: string, id: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasMappersIdPut(realm, alias, id, identityProviderMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add a mapper to identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasMappersPost(realm: string, alias: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasMappersPost(realm, alias, identityProviderMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderRepresentation} identityProviderRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesAliasPut(realm: string, alias: string, identityProviderRepresentation: IdentityProviderRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesAliasPut(realm, alias, identityProviderRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new identity provider - * @param {string} realm realm name (not id!) - * @param {IdentityProviderRepresentation} identityProviderRepresentation JSON body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderInstancesPost(realm: string, identityProviderRepresentation: IdentityProviderRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderInstancesPost(realm, identityProviderRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {string} providerId Provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmIdentityProviderProvidersProviderIdGet(realm: string, providerId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await IdentityProvidersApiAxiosParamCreator(configuration).realmIdentityProviderProvidersProviderIdGet(realm, providerId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * IdentityProvidersApi - factory interface - * @export - */ -export const IdentityProvidersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Import identity provider from uploaded JSON file - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderImportConfigPost(realm: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return IdentityProvidersApiFp(configuration).realmIdentityProviderImportConfigPost(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasDelete(realm: string, alias: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasDelete(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Export public broker configuration for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} [format] Format to use - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasExportGet(realm: string, alias: string, format?: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasExportGet(realm, alias, format, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasGet(realm: string, alias: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasGet(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasManagementPermissionsGet(realm: string, alias: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasManagementPermissionsGet(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasManagementPermissionsPut(realm: string, alias: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasManagementPermissionsPut(realm, alias, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mapper types for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMapperTypesGet(realm: string, alias: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasMapperTypesGet(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mappers for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersGet(realm: string, alias: string, options?: any): AxiosPromise> { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasMappersGet(realm, alias, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersIdDelete(realm: string, alias: string, id: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasMappersIdDelete(realm, alias, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mapper by id for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersIdGet(realm: string, alias: string, id: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasMappersIdGet(realm, alias, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersIdPut(realm: string, alias: string, id: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasMappersIdPut(realm, alias, id, identityProviderMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add a mapper to identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasMappersPost(realm: string, alias: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasMappersPost(realm, alias, identityProviderMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderRepresentation} identityProviderRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesAliasPut(realm: string, alias: string, identityProviderRepresentation: IdentityProviderRepresentation, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesAliasPut(realm, alias, identityProviderRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesGet(realm: string, options?: any): AxiosPromise> { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new identity provider - * @param {string} realm realm name (not id!) - * @param {IdentityProviderRepresentation} identityProviderRepresentation JSON body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderInstancesPost(realm: string, identityProviderRepresentation: IdentityProviderRepresentation, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderInstancesPost(realm, identityProviderRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {string} providerId Provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmIdentityProviderProvidersProviderIdGet(realm: string, providerId: string, options?: any): AxiosPromise { - return IdentityProvidersApiFp(configuration).realmIdentityProviderProvidersProviderIdGet(realm, providerId, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * IdentityProvidersApi - object-oriented interface - * @export - * @class IdentityProvidersApi - * @extends {BaseAPI} - */ -export class IdentityProvidersApi extends BaseAPI { - /** - * - * @summary Import identity provider from uploaded JSON file - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderImportConfigPost(realm: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderImportConfigPost(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasDelete(realm: string, alias: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasDelete(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Export public broker configuration for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} [format] Format to use - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasExportGet(realm: string, alias: string, format?: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasExportGet(realm, alias, format, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasGet(realm: string, alias: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasGet(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasManagementPermissionsGet(realm: string, alias: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasManagementPermissionsGet(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether client Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasManagementPermissionsPut(realm: string, alias: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasManagementPermissionsPut(realm, alias, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mapper types for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasMapperTypesGet(realm: string, alias: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasMapperTypesGet(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mappers for identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasMappersGet(realm: string, alias: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasMappersGet(realm, alias, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasMappersIdDelete(realm: string, alias: string, id: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasMappersIdDelete(realm, alias, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mapper by id for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasMappersIdGet(realm: string, alias: string, id: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasMappersIdGet(realm, alias, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update a mapper for the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {string} id Mapper id - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasMappersIdPut(realm: string, alias: string, id: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasMappersIdPut(realm, alias, id, identityProviderMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add a mapper to identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderMapperRepresentation} identityProviderMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasMappersPost(realm: string, alias: string, identityProviderMapperRepresentation: IdentityProviderMapperRepresentation, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasMappersPost(realm, alias, identityProviderMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the identity provider - * @param {string} realm realm name (not id!) - * @param {string} alias - * @param {IdentityProviderRepresentation} identityProviderRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesAliasPut(realm: string, alias: string, identityProviderRepresentation: IdentityProviderRepresentation, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesAliasPut(realm, alias, identityProviderRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesGet(realm: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new identity provider - * @param {string} realm realm name (not id!) - * @param {IdentityProviderRepresentation} identityProviderRepresentation JSON body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderInstancesPost(realm: string, identityProviderRepresentation: IdentityProviderRepresentation, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderInstancesPost(realm, identityProviderRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get identity providers - * @param {string} realm realm name (not id!) - * @param {string} providerId Provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof IdentityProvidersApi - */ - public realmIdentityProviderProvidersProviderIdGet(realm: string, providerId: string, options?: any) { - return IdentityProvidersApiFp(this.configuration).realmIdentityProviderProvidersProviderIdGet(realm, providerId, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * KeyApi - axios parameter creator - * @export - */ -export const KeyApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmKeysGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmKeysGet.'); - } - const localVarPath = `/{realm}/keys` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * KeyApi - functional programming interface - * @export - */ -export const KeyApiFp = function(configuration?: Configuration) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmKeysGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await KeyApiAxiosParamCreator(configuration).realmKeysGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * KeyApi - factory interface - * @export - */ -export const KeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmKeysGet(realm: string, options?: any): AxiosPromise { - return KeyApiFp(configuration).realmKeysGet(realm, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * KeyApi - object-oriented interface - * @export - * @class KeyApi - * @extends {BaseAPI} - */ -export class KeyApi extends BaseAPI { - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof KeyApi - */ - public realmKeysGet(realm: string, options?: any) { - return KeyApiFp(this.configuration).realmKeysGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ProtocolMappersApi - axios parameter creator - * @export - */ -export const ProtocolMappersApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesId1ProtocolMappersModelsId2Delete: async (realm: string, id1: string, id2: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Delete.'); - } - // verify required parameter 'id1' is not null or undefined - if (id1 === null || id1 === undefined) { - throw new RequiredError('id1','Required parameter id1 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Delete.'); - } - // verify required parameter 'id2' is not null or undefined - if (id2 === null || id2 === undefined) { - throw new RequiredError('id2','Required parameter id2 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Delete.'); - } - const localVarPath = `/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id1"}}`, encodeURIComponent(String(id1))) - .replace(`{${"id2"}}`, encodeURIComponent(String(id2))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesId1ProtocolMappersModelsId2Get: async (realm: string, id1: string, id2: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Get.'); - } - // verify required parameter 'id1' is not null or undefined - if (id1 === null || id1 === undefined) { - throw new RequiredError('id1','Required parameter id1 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Get.'); - } - // verify required parameter 'id2' is not null or undefined - if (id2 === null || id2 === undefined) { - throw new RequiredError('id2','Required parameter id2 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Get.'); - } - const localVarPath = `/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id1"}}`, encodeURIComponent(String(id1))) - .replace(`{${"id2"}}`, encodeURIComponent(String(id2))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesId1ProtocolMappersModelsId2Put: async (realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.'); - } - // verify required parameter 'id1' is not null or undefined - if (id1 === null || id1 === undefined) { - throw new RequiredError('id1','Required parameter id1 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.'); - } - // verify required parameter 'id2' is not null or undefined - if (id2 === null || id2 === undefined) { - throw new RequiredError('id2','Required parameter id2 was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.'); - } - // verify required parameter 'protocolMapperRepresentation' is not null or undefined - if (protocolMapperRepresentation === null || protocolMapperRepresentation === undefined) { - throw new RequiredError('protocolMapperRepresentation','Required parameter protocolMapperRepresentation was null or undefined when calling realmClientScopesId1ProtocolMappersModelsId2Put.'); - } - const localVarPath = `/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id1"}}`, encodeURIComponent(String(id1))) - .replace(`{${"id2"}}`, encodeURIComponent(String(id2))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof protocolMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(protocolMapperRepresentation !== undefined ? protocolMapperRepresentation : {}) : (protocolMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersAddModelsPost: async (realm: string, id: string, protocolMapperRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdProtocolMappersAddModelsPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdProtocolMappersAddModelsPost.'); - } - // verify required parameter 'protocolMapperRepresentation' is not null or undefined - if (protocolMapperRepresentation === null || protocolMapperRepresentation === undefined) { - throw new RequiredError('protocolMapperRepresentation','Required parameter protocolMapperRepresentation was null or undefined when calling realmClientScopesIdProtocolMappersAddModelsPost.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/protocol-mappers/add-models` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof protocolMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(protocolMapperRepresentation !== undefined ? protocolMapperRepresentation : {}) : (protocolMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersModelsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdProtocolMappersModelsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdProtocolMappersModelsGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/protocol-mappers/models` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersModelsPost: async (realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdProtocolMappersModelsPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdProtocolMappersModelsPost.'); - } - // verify required parameter 'protocolMapperRepresentation' is not null or undefined - if (protocolMapperRepresentation === null || protocolMapperRepresentation === undefined) { - throw new RequiredError('protocolMapperRepresentation','Required parameter protocolMapperRepresentation was null or undefined when calling realmClientScopesIdProtocolMappersModelsPost.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/protocol-mappers/models` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof protocolMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(protocolMapperRepresentation !== undefined ? protocolMapperRepresentation : {}) : (protocolMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersProtocolProtocolGet: async (realm: string, id: string, protocol: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdProtocolMappersProtocolProtocolGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdProtocolMappersProtocolProtocolGet.'); - } - // verify required parameter 'protocol' is not null or undefined - if (protocol === null || protocol === undefined) { - throw new RequiredError('protocol','Required parameter protocol was null or undefined when calling realmClientScopesIdProtocolMappersProtocolProtocolGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"protocol"}}`, encodeURIComponent(String(protocol))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsId1ProtocolMappersModelsId2Delete: async (realm: string, id1: string, id2: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Delete.'); - } - // verify required parameter 'id1' is not null or undefined - if (id1 === null || id1 === undefined) { - throw new RequiredError('id1','Required parameter id1 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Delete.'); - } - // verify required parameter 'id2' is not null or undefined - if (id2 === null || id2 === undefined) { - throw new RequiredError('id2','Required parameter id2 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Delete.'); - } - const localVarPath = `/{realm}/clients/{id1}/protocol-mappers/models/{id2}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id1"}}`, encodeURIComponent(String(id1))) - .replace(`{${"id2"}}`, encodeURIComponent(String(id2))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsId1ProtocolMappersModelsId2Get: async (realm: string, id1: string, id2: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Get.'); - } - // verify required parameter 'id1' is not null or undefined - if (id1 === null || id1 === undefined) { - throw new RequiredError('id1','Required parameter id1 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Get.'); - } - // verify required parameter 'id2' is not null or undefined - if (id2 === null || id2 === undefined) { - throw new RequiredError('id2','Required parameter id2 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Get.'); - } - const localVarPath = `/{realm}/clients/{id1}/protocol-mappers/models/{id2}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id1"}}`, encodeURIComponent(String(id1))) - .replace(`{${"id2"}}`, encodeURIComponent(String(id2))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsId1ProtocolMappersModelsId2Put: async (realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.'); - } - // verify required parameter 'id1' is not null or undefined - if (id1 === null || id1 === undefined) { - throw new RequiredError('id1','Required parameter id1 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.'); - } - // verify required parameter 'id2' is not null or undefined - if (id2 === null || id2 === undefined) { - throw new RequiredError('id2','Required parameter id2 was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.'); - } - // verify required parameter 'protocolMapperRepresentation' is not null or undefined - if (protocolMapperRepresentation === null || protocolMapperRepresentation === undefined) { - throw new RequiredError('protocolMapperRepresentation','Required parameter protocolMapperRepresentation was null or undefined when calling realmClientsId1ProtocolMappersModelsId2Put.'); - } - const localVarPath = `/{realm}/clients/{id1}/protocol-mappers/models/{id2}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id1"}}`, encodeURIComponent(String(id1))) - .replace(`{${"id2"}}`, encodeURIComponent(String(id2))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof protocolMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(protocolMapperRepresentation !== undefined ? protocolMapperRepresentation : {}) : (protocolMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersAddModelsPost: async (realm: string, id: string, protocolMapperRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdProtocolMappersAddModelsPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdProtocolMappersAddModelsPost.'); - } - // verify required parameter 'protocolMapperRepresentation' is not null or undefined - if (protocolMapperRepresentation === null || protocolMapperRepresentation === undefined) { - throw new RequiredError('protocolMapperRepresentation','Required parameter protocolMapperRepresentation was null or undefined when calling realmClientsIdProtocolMappersAddModelsPost.'); - } - const localVarPath = `/{realm}/clients/{id}/protocol-mappers/add-models` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof protocolMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(protocolMapperRepresentation !== undefined ? protocolMapperRepresentation : {}) : (protocolMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersModelsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdProtocolMappersModelsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdProtocolMappersModelsGet.'); - } - const localVarPath = `/{realm}/clients/{id}/protocol-mappers/models` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersModelsPost: async (realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdProtocolMappersModelsPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdProtocolMappersModelsPost.'); - } - // verify required parameter 'protocolMapperRepresentation' is not null or undefined - if (protocolMapperRepresentation === null || protocolMapperRepresentation === undefined) { - throw new RequiredError('protocolMapperRepresentation','Required parameter protocolMapperRepresentation was null or undefined when calling realmClientsIdProtocolMappersModelsPost.'); - } - const localVarPath = `/{realm}/clients/{id}/protocol-mappers/models` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof protocolMapperRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(protocolMapperRepresentation !== undefined ? protocolMapperRepresentation : {}) : (protocolMapperRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersProtocolProtocolGet: async (realm: string, id: string, protocol: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdProtocolMappersProtocolProtocolGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdProtocolMappersProtocolProtocolGet.'); - } - // verify required parameter 'protocol' is not null or undefined - if (protocol === null || protocol === undefined) { - throw new RequiredError('protocol','Required parameter protocol was null or undefined when calling realmClientsIdProtocolMappersProtocolProtocolGet.'); - } - const localVarPath = `/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"protocol"}}`, encodeURIComponent(String(protocol))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ProtocolMappersApi - functional programming interface - * @export - */ -export const ProtocolMappersApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesId1ProtocolMappersModelsId2Delete(realm: string, id1: string, id2: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesId1ProtocolMappersModelsId2Delete(realm, id1, id2, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesId1ProtocolMappersModelsId2Get(realm: string, id1: string, id2: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesId1ProtocolMappersModelsId2Get(realm, id1, id2, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesId1ProtocolMappersModelsId2Put(realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesId1ProtocolMappersModelsId2Put(realm, id1, id2, protocolMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdProtocolMappersAddModelsPost(realm: string, id: string, protocolMapperRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesIdProtocolMappersAddModelsPost(realm, id, protocolMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdProtocolMappersModelsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesIdProtocolMappersModelsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdProtocolMappersModelsPost(realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesIdProtocolMappersModelsPost(realm, id, protocolMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdProtocolMappersProtocolProtocolGet(realm: string, id: string, protocol: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientScopesIdProtocolMappersProtocolProtocolGet(realm, id, protocol, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsId1ProtocolMappersModelsId2Delete(realm: string, id1: string, id2: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsId1ProtocolMappersModelsId2Delete(realm, id1, id2, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsId1ProtocolMappersModelsId2Get(realm: string, id1: string, id2: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsId1ProtocolMappersModelsId2Get(realm, id1, id2, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsId1ProtocolMappersModelsId2Put(realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsId1ProtocolMappersModelsId2Put(realm, id1, id2, protocolMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdProtocolMappersAddModelsPost(realm: string, id: string, protocolMapperRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsIdProtocolMappersAddModelsPost(realm, id, protocolMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdProtocolMappersModelsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsIdProtocolMappersModelsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdProtocolMappersModelsPost(realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsIdProtocolMappersModelsPost(realm, id, protocolMapperRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdProtocolMappersProtocolProtocolGet(realm: string, id: string, protocol: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ProtocolMappersApiAxiosParamCreator(configuration).realmClientsIdProtocolMappersProtocolProtocolGet(realm, id, protocol, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ProtocolMappersApi - factory interface - * @export - */ -export const ProtocolMappersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesId1ProtocolMappersModelsId2Delete(realm: string, id1: string, id2: string, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientScopesId1ProtocolMappersModelsId2Delete(realm, id1, id2, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesId1ProtocolMappersModelsId2Get(realm: string, id1: string, id2: string, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientScopesId1ProtocolMappersModelsId2Get(realm, id1, id2, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesId1ProtocolMappersModelsId2Put(realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientScopesId1ProtocolMappersModelsId2Put(realm, id1, id2, protocolMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersAddModelsPost(realm: string, id: string, protocolMapperRepresentation: Array, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientScopesIdProtocolMappersAddModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersModelsGet(realm: string, id: string, options?: any): AxiosPromise> { - return ProtocolMappersApiFp(configuration).realmClientScopesIdProtocolMappersModelsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersModelsPost(realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientScopesIdProtocolMappersModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdProtocolMappersProtocolProtocolGet(realm: string, id: string, protocol: string, options?: any): AxiosPromise> { - return ProtocolMappersApiFp(configuration).realmClientScopesIdProtocolMappersProtocolProtocolGet(realm, id, protocol, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsId1ProtocolMappersModelsId2Delete(realm: string, id1: string, id2: string, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientsId1ProtocolMappersModelsId2Delete(realm, id1, id2, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsId1ProtocolMappersModelsId2Get(realm: string, id1: string, id2: string, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientsId1ProtocolMappersModelsId2Get(realm, id1, id2, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsId1ProtocolMappersModelsId2Put(realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientsId1ProtocolMappersModelsId2Put(realm, id1, id2, protocolMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersAddModelsPost(realm: string, id: string, protocolMapperRepresentation: Array, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientsIdProtocolMappersAddModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersModelsGet(realm: string, id: string, options?: any): AxiosPromise> { - return ProtocolMappersApiFp(configuration).realmClientsIdProtocolMappersModelsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersModelsPost(realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any): AxiosPromise { - return ProtocolMappersApiFp(configuration).realmClientsIdProtocolMappersModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdProtocolMappersProtocolProtocolGet(realm: string, id: string, protocol: string, options?: any): AxiosPromise> { - return ProtocolMappersApiFp(configuration).realmClientsIdProtocolMappersProtocolProtocolGet(realm, id, protocol, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ProtocolMappersApi - object-oriented interface - * @export - * @class ProtocolMappersApi - * @extends {BaseAPI} - */ -export class ProtocolMappersApi extends BaseAPI { - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesId1ProtocolMappersModelsId2Delete(realm: string, id1: string, id2: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesId1ProtocolMappersModelsId2Delete(realm, id1, id2, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesId1ProtocolMappersModelsId2Get(realm: string, id1: string, id2: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesId1ProtocolMappersModelsId2Get(realm, id1, id2, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesId1ProtocolMappersModelsId2Put(realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesId1ProtocolMappersModelsId2Put(realm, id1, id2, protocolMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesIdProtocolMappersAddModelsPost(realm: string, id: string, protocolMapperRepresentation: Array, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesIdProtocolMappersAddModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesIdProtocolMappersModelsGet(realm: string, id: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesIdProtocolMappersModelsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesIdProtocolMappersModelsPost(realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesIdProtocolMappersModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientScopesIdProtocolMappersProtocolProtocolGet(realm: string, id: string, protocol: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientScopesIdProtocolMappersProtocolProtocolGet(realm, id, protocol, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsId1ProtocolMappersModelsId2Delete(realm: string, id1: string, id2: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsId1ProtocolMappersModelsId2Delete(realm, id1, id2, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mapper by id - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsId1ProtocolMappersModelsId2Get(realm: string, id1: string, id2: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsId1ProtocolMappersModelsId2Get(realm, id1, id2, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the mapper - * @param {string} realm realm name (not id!) - * @param {string} id1 - * @param {string} id2 - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsId1ProtocolMappersModelsId2Put(realm: string, id1: string, id2: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsId1ProtocolMappersModelsId2Put(realm, id1, id2, protocolMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create multiple mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsIdProtocolMappersAddModelsPost(realm: string, id: string, protocolMapperRepresentation: Array, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsIdProtocolMappersAddModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mappers - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsIdProtocolMappersModelsGet(realm: string, id: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsIdProtocolMappersModelsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a mapper - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {ProtocolMapperRepresentation} protocolMapperRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsIdProtocolMappersModelsPost(realm: string, id: string, protocolMapperRepresentation: ProtocolMapperRepresentation, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsIdProtocolMappersModelsPost(realm, id, protocolMapperRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get mappers by name for a specific protocol - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} protocol - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ProtocolMappersApi - */ - public realmClientsIdProtocolMappersProtocolProtocolGet(realm: string, id: string, protocol: string, options?: any) { - return ProtocolMappersApiFp(this.configuration).realmClientsIdProtocolMappersProtocolProtocolGet(realm, id, protocol, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * RealmsAdminApi - axios parameter creator - * @export - */ -export const RealmsAdminApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Delete all admin events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAdminEventsDelete: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAdminEventsDelete.'); - } - const localVarPath = `/{realm}/admin-events` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get admin events Returns all admin events, or filters events based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [authClient] - * @param {string} [authIpAddress] - * @param {string} [authRealm] - * @param {string} [authUser] user id - * @param {string} [dateFrom] - * @param {string} [dateTo] - * @param {number} [first] - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [operationTypes] - * @param {string} [resourcePath] - * @param {Array} [resourceTypes] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAdminEventsGet: async (realm: string, authClient?: string, authIpAddress?: string, authRealm?: string, authUser?: string, dateFrom?: string, dateTo?: string, first?: number, max?: number, operationTypes?: Array, resourcePath?: string, resourceTypes?: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmAdminEventsGet.'); - } - const localVarPath = `/{realm}/admin-events` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (authClient !== undefined) { - localVarQueryParameter['authClient'] = authClient; - } - - if (authIpAddress !== undefined) { - localVarQueryParameter['authIpAddress'] = authIpAddress; - } - - if (authRealm !== undefined) { - localVarQueryParameter['authRealm'] = authRealm; - } - - if (authUser !== undefined) { - localVarQueryParameter['authUser'] = authUser; - } - - if (dateFrom !== undefined) { - localVarQueryParameter['dateFrom'] = dateFrom; - } - - if (dateTo !== undefined) { - localVarQueryParameter['dateTo'] = dateTo; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (operationTypes) { - localVarQueryParameter['operationTypes'] = operationTypes; - } - - if (resourcePath !== undefined) { - localVarQueryParameter['resourcePath'] = resourcePath; - } - - if (resourceTypes) { - localVarQueryParameter['resourceTypes'] = resourceTypes; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Clear cache of external public keys (Public keys of clients or Identity providers) - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClearKeysCachePost: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClearKeysCachePost.'); - } - const localVarPath = `/{realm}/clear-keys-cache` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Clear realm cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClearRealmCachePost: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClearRealmCachePost.'); - } - const localVarPath = `/{realm}/clear-realm-cache` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Clear user cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClearUserCachePost: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClearUserCachePost.'); - } - const localVarPath = `/{realm}/clear-user-cache` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Base path for importing clients under this realm. - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientDescriptionConverterPost: async (realm: string, body: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientDescriptionConverterPost.'); - } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling realmClientDescriptionConverterPost.'); - } - const localVarPath = `/{realm}/client-description-converter` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'text/plain'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesPoliciesGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientPoliciesPoliciesGet.'); - } - const localVarPath = `/{realm}/client-policies/policies` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientPoliciesRepresentation} clientPoliciesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesPoliciesPut: async (realm: string, clientPoliciesRepresentation: ClientPoliciesRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientPoliciesPoliciesPut.'); - } - // verify required parameter 'clientPoliciesRepresentation' is not null or undefined - if (clientPoliciesRepresentation === null || clientPoliciesRepresentation === undefined) { - throw new RequiredError('clientPoliciesRepresentation','Required parameter clientPoliciesRepresentation was null or undefined when calling realmClientPoliciesPoliciesPut.'); - } - const localVarPath = `/{realm}/client-policies/policies` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientPoliciesRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientPoliciesRepresentation !== undefined ? clientPoliciesRepresentation : {}) : (clientPoliciesRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {boolean} [includeGlobalProfiles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesProfilesGet: async (realm: string, includeGlobalProfiles?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientPoliciesProfilesGet.'); - } - const localVarPath = `/{realm}/client-policies/profiles` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (includeGlobalProfiles !== undefined) { - localVarQueryParameter['include-global-profiles'] = includeGlobalProfiles; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientProfilesRepresentation} clientProfilesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesProfilesPut: async (realm: string, clientProfilesRepresentation: ClientProfilesRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientPoliciesProfilesPut.'); - } - // verify required parameter 'clientProfilesRepresentation' is not null or undefined - if (clientProfilesRepresentation === null || clientProfilesRepresentation === undefined) { - throw new RequiredError('clientProfilesRepresentation','Required parameter clientProfilesRepresentation was null or undefined when calling realmClientPoliciesProfilesPut.'); - } - const localVarPath = `/{realm}/client-policies/profiles` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof clientProfilesRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(clientProfilesRepresentation !== undefined ? clientProfilesRepresentation : {}) : (clientProfilesRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get client session stats Returns a JSON map. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientSessionStatsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientSessionStatsGet.'); - } - const localVarPath = `/{realm}/client-session-stats` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmCredentialRegistratorsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmCredentialRegistratorsGet.'); - } - const localVarPath = `/{realm}/credential-registrators` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultDefaultClientScopesClientScopeIdDelete: async (realm: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultDefaultClientScopesClientScopeIdDelete.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmDefaultDefaultClientScopesClientScopeIdDelete.'); - } - const localVarPath = `/{realm}/default-default-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultDefaultClientScopesClientScopeIdPut: async (realm: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultDefaultClientScopesClientScopeIdPut.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmDefaultDefaultClientScopesClientScopeIdPut.'); - } - const localVarPath = `/{realm}/default-default-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm default client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultDefaultClientScopesGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultDefaultClientScopesGet.'); - } - const localVarPath = `/{realm}/default-default-client-scopes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultGroupsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultGroupsGet.'); - } - const localVarPath = `/{realm}/default-groups` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultGroupsGroupIdDelete: async (realm: string, groupId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultGroupsGroupIdDelete.'); - } - // verify required parameter 'groupId' is not null or undefined - if (groupId === null || groupId === undefined) { - throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling realmDefaultGroupsGroupIdDelete.'); - } - const localVarPath = `/{realm}/default-groups/{groupId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultGroupsGroupIdPut: async (realm: string, groupId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultGroupsGroupIdPut.'); - } - // verify required parameter 'groupId' is not null or undefined - if (groupId === null || groupId === undefined) { - throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling realmDefaultGroupsGroupIdPut.'); - } - const localVarPath = `/{realm}/default-groups/{groupId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultOptionalClientScopesClientScopeIdDelete: async (realm: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultOptionalClientScopesClientScopeIdDelete.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmDefaultOptionalClientScopesClientScopeIdDelete.'); - } - const localVarPath = `/{realm}/default-optional-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultOptionalClientScopesClientScopeIdPut: async (realm: string, clientScopeId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultOptionalClientScopesClientScopeIdPut.'); - } - // verify required parameter 'clientScopeId' is not null or undefined - if (clientScopeId === null || clientScopeId === undefined) { - throw new RequiredError('clientScopeId','Required parameter clientScopeId was null or undefined when calling realmDefaultOptionalClientScopesClientScopeIdPut.'); - } - const localVarPath = `/{realm}/default-optional-client-scopes/{clientScopeId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"clientScopeId"}}`, encodeURIComponent(String(clientScopeId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm optional client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultOptionalClientScopesGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDefaultOptionalClientScopesGet.'); - } - const localVarPath = `/{realm}/default-optional-client-scopes` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDelete: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmDelete.'); - } - const localVarPath = `/{realm}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the events provider configuration Returns JSON object with events provider configuration - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsConfigGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmEventsConfigGet.'); - } - const localVarPath = `/{realm}/events/config` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the events provider Change the events provider and/or its configuration - * @param {string} realm realm name (not id!) - * @param {RealmEventsConfigRepresentation} realmEventsConfigRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsConfigPut: async (realm: string, realmEventsConfigRepresentation: RealmEventsConfigRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmEventsConfigPut.'); - } - // verify required parameter 'realmEventsConfigRepresentation' is not null or undefined - if (realmEventsConfigRepresentation === null || realmEventsConfigRepresentation === undefined) { - throw new RequiredError('realmEventsConfigRepresentation','Required parameter realmEventsConfigRepresentation was null or undefined when calling realmEventsConfigPut.'); - } - const localVarPath = `/{realm}/events/config` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof realmEventsConfigRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(realmEventsConfigRepresentation !== undefined ? realmEventsConfigRepresentation : {}) : (realmEventsConfigRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete all events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsDelete: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmEventsDelete.'); - } - const localVarPath = `/{realm}/events` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get events Returns all events, or filters them based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [client] App or oauth client name - * @param {string} [dateFrom] From date - * @param {string} [dateTo] To date - * @param {number} [first] Paging offset - * @param {string} [ipAddress] IP address - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [type] The types of events to return - * @param {string} [user] User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsGet: async (realm: string, client?: string, dateFrom?: string, dateTo?: string, first?: number, ipAddress?: string, max?: number, type?: Array, user?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmEventsGet.'); - } - const localVarPath = `/{realm}/events` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (client !== undefined) { - localVarQueryParameter['client'] = client; - } - - if (dateFrom !== undefined) { - localVarQueryParameter['dateFrom'] = dateFrom; - } - - if (dateTo !== undefined) { - localVarQueryParameter['dateTo'] = dateTo; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (ipAddress !== undefined) { - localVarQueryParameter['ipAddress'] = ipAddress; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (type) { - localVarQueryParameter['type'] = type; - } - - if (user !== undefined) { - localVarQueryParameter['user'] = user; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the top-level representation of the realm It will not include nested information like User and Client representations. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGet.'); - } - const localVarPath = `/{realm}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} path - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupByPathPathGet: async (realm: string, path: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupByPathPathGet.'); - } - // verify required parameter 'path' is not null or undefined - if (path === null || path === undefined) { - throw new RequiredError('path','Required parameter path was null or undefined when calling realmGroupByPathPathGet.'); - } - const localVarPath = `/{realm}/group-by-path/{path}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"path"}}`, encodeURIComponent(String(path))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get LDAP supported extensions. - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation LDAP configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLdapServerCapabilitiesPost: async (realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLdapServerCapabilitiesPost.'); - } - // verify required parameter 'testLdapConnectionRepresentation' is not null or undefined - if (testLdapConnectionRepresentation === null || testLdapConnectionRepresentation === undefined) { - throw new RequiredError('testLdapConnectionRepresentation','Required parameter testLdapConnectionRepresentation was null or undefined when calling realmLdapServerCapabilitiesPost.'); - } - const localVarPath = `/{realm}/ldap-server-capabilities` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof testLdapConnectionRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(testLdapConnectionRepresentation !== undefined ? testLdapConnectionRepresentation : {}) : (testLdapConnectionRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationGet.'); - } - const localVarPath = `/{realm}/localization` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleDelete: async (realm: string, locale: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationLocaleDelete.'); - } - // verify required parameter 'locale' is not null or undefined - if (locale === null || locale === undefined) { - throw new RequiredError('locale','Required parameter locale was null or undefined when calling realmLocalizationLocaleDelete.'); - } - const localVarPath = `/{realm}/localization/{locale}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"locale"}}`, encodeURIComponent(String(locale))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleGet: async (realm: string, locale: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationLocaleGet.'); - } - // verify required parameter 'locale' is not null or undefined - if (locale === null || locale === undefined) { - throw new RequiredError('locale','Required parameter locale was null or undefined when calling realmLocalizationLocaleGet.'); - } - const localVarPath = `/{realm}/localization/{locale}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"locale"}}`, encodeURIComponent(String(locale))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleKeyDelete: async (realm: string, locale: string, key: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationLocaleKeyDelete.'); - } - // verify required parameter 'locale' is not null or undefined - if (locale === null || locale === undefined) { - throw new RequiredError('locale','Required parameter locale was null or undefined when calling realmLocalizationLocaleKeyDelete.'); - } - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new RequiredError('key','Required parameter key was null or undefined when calling realmLocalizationLocaleKeyDelete.'); - } - const localVarPath = `/{realm}/localization/{locale}/{key}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"locale"}}`, encodeURIComponent(String(locale))) - .replace(`{${"key"}}`, encodeURIComponent(String(key))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleKeyGet: async (realm: string, locale: string, key: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationLocaleKeyGet.'); - } - // verify required parameter 'locale' is not null or undefined - if (locale === null || locale === undefined) { - throw new RequiredError('locale','Required parameter locale was null or undefined when calling realmLocalizationLocaleKeyGet.'); - } - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new RequiredError('key','Required parameter key was null or undefined when calling realmLocalizationLocaleKeyGet.'); - } - const localVarPath = `/{realm}/localization/{locale}/{key}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"locale"}}`, encodeURIComponent(String(locale))) - .replace(`{${"key"}}`, encodeURIComponent(String(key))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleKeyPut: async (realm: string, locale: string, key: string, body: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationLocaleKeyPut.'); - } - // verify required parameter 'locale' is not null or undefined - if (locale === null || locale === undefined) { - throw new RequiredError('locale','Required parameter locale was null or undefined when calling realmLocalizationLocaleKeyPut.'); - } - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new RequiredError('key','Required parameter key was null or undefined when calling realmLocalizationLocaleKeyPut.'); - } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling realmLocalizationLocaleKeyPut.'); - } - const localVarPath = `/{realm}/localization/{locale}/{key}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"locale"}}`, encodeURIComponent(String(locale))) - .replace(`{${"key"}}`, encodeURIComponent(String(key))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'text/plain'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocalePost: async (realm: string, locale: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLocalizationLocalePost.'); - } - // verify required parameter 'locale' is not null or undefined - if (locale === null || locale === undefined) { - throw new RequiredError('locale','Required parameter locale was null or undefined when calling realmLocalizationLocalePost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmLocalizationLocalePost.'); - } - const localVarPath = `/{realm}/localization/{locale}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"locale"}}`, encodeURIComponent(String(locale))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Removes all user sessions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLogoutAllPost: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmLogoutAllPost.'); - } - const localVarPath = `/{realm}/logout-all` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Partial export of existing realm into a JSON file. - * @param {string} realm realm name (not id!) - * @param {boolean} [exportClients] - * @param {boolean} [exportGroupsAndRoles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPartialExportPost: async (realm: string, exportClients?: boolean, exportGroupsAndRoles?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmPartialExportPost.'); - } - const localVarPath = `/{realm}/partial-export` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (exportClients !== undefined) { - localVarQueryParameter['exportClients'] = exportClients; - } - - if (exportGroupsAndRoles !== undefined) { - localVarQueryParameter['exportGroupsAndRoles'] = exportGroupsAndRoles; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Partial import from a JSON file to an existing realm. - * @param {string} realm realm name (not id!) - * @param {PartialImportRepresentation} partialImportRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPartialImportPost: async (realm: string, partialImportRepresentation: PartialImportRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmPartialImportPost.'); - } - // verify required parameter 'partialImportRepresentation' is not null or undefined - if (partialImportRepresentation === null || partialImportRepresentation === undefined) { - throw new RequiredError('partialImportRepresentation','Required parameter partialImportRepresentation was null or undefined when calling realmPartialImportPost.'); - } - const localVarPath = `/{realm}/partialImport` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof partialImportRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(partialImportRepresentation !== undefined ? partialImportRepresentation : {}) : (partialImportRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Push the realm’s revocation policy to any client that has an admin url associated with it. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPushRevocationPost: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmPushRevocationPost.'); - } - const localVarPath = `/{realm}/push-revocation` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. - * @param {string} realm realm name (not id!) - * @param {RealmRepresentation} realmRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPut: async (realm: string, realmRepresentation: RealmRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmPut.'); - } - // verify required parameter 'realmRepresentation' is not null or undefined - if (realmRepresentation === null || realmRepresentation === undefined) { - throw new RequiredError('realmRepresentation','Required parameter realmRepresentation was null or undefined when calling realmPut.'); - } - const localVarPath = `/{realm}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof realmRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(realmRepresentation !== undefined ? realmRepresentation : {}) : (realmRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove a specific user session. - * @param {string} realm realm name (not id!) - * @param {string} session - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmSessionsSessionDelete: async (realm: string, session: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmSessionsSessionDelete.'); - } - // verify required parameter 'session' is not null or undefined - if (session === null || session === undefined) { - throw new RequiredError('session','Required parameter session was null or undefined when calling realmSessionsSessionDelete.'); - } - const localVarPath = `/{realm}/sessions/{session}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"session"}}`, encodeURIComponent(String(session))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Test LDAP connection - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmTestLDAPConnectionPost: async (realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmTestLDAPConnectionPost.'); - } - // verify required parameter 'testLdapConnectionRepresentation' is not null or undefined - if (testLdapConnectionRepresentation === null || testLdapConnectionRepresentation === undefined) { - throw new RequiredError('testLdapConnectionRepresentation','Required parameter testLdapConnectionRepresentation was null or undefined when calling realmTestLDAPConnectionPost.'); - } - const localVarPath = `/{realm}/testLDAPConnection` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof testLdapConnectionRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(testLdapConnectionRepresentation !== undefined ? testLdapConnectionRepresentation : {}) : (testLdapConnectionRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmTestSMTPConnectionPost: async (realm: string, requestBody: { [key: string]: object; }, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmTestSMTPConnectionPost.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmTestSMTPConnectionPost.'); - } - const localVarPath = `/{realm}/testSMTPConnection` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersManagementPermissionsGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/users-management-permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersManagementPermissionsPut: async (realm: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmUsersManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/users-management-permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Import a realm Imports a realm from a full representation of that realm. - * @param {RealmRepresentation} realmRepresentation JSON representation of the realm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - rootPost: async (realmRepresentation: RealmRepresentation, options: any = {}): Promise => { - // verify required parameter 'realmRepresentation' is not null or undefined - if (realmRepresentation === null || realmRepresentation === undefined) { - throw new RequiredError('realmRepresentation','Required parameter realmRepresentation was null or undefined when calling rootPost.'); - } - const localVarPath = `/`; - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof realmRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(realmRepresentation !== undefined ? realmRepresentation : {}) : (realmRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RealmsAdminApi - functional programming interface - * @export - */ -export const RealmsAdminApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Delete all admin events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAdminEventsDelete(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmAdminEventsDelete(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get admin events Returns all admin events, or filters events based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [authClient] - * @param {string} [authIpAddress] - * @param {string} [authRealm] - * @param {string} [authUser] user id - * @param {string} [dateFrom] - * @param {string} [dateTo] - * @param {number} [first] - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [operationTypes] - * @param {string} [resourcePath] - * @param {Array} [resourceTypes] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmAdminEventsGet(realm: string, authClient?: string, authIpAddress?: string, authRealm?: string, authUser?: string, dateFrom?: string, dateTo?: string, first?: number, max?: number, operationTypes?: Array, resourcePath?: string, resourceTypes?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmAdminEventsGet(realm, authClient, authIpAddress, authRealm, authUser, dateFrom, dateTo, first, max, operationTypes, resourcePath, resourceTypes, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Clear cache of external public keys (Public keys of clients or Identity providers) - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClearKeysCachePost(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClearKeysCachePost(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Clear realm cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClearRealmCachePost(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClearRealmCachePost(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Clear user cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClearUserCachePost(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClearUserCachePost(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Base path for importing clients under this realm. - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientDescriptionConverterPost(realm: string, body: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClientDescriptionConverterPost(realm, body, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientPoliciesPoliciesGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClientPoliciesPoliciesGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientPoliciesRepresentation} clientPoliciesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientPoliciesPoliciesPut(realm: string, clientPoliciesRepresentation: ClientPoliciesRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClientPoliciesPoliciesPut(realm, clientPoliciesRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {boolean} [includeGlobalProfiles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientPoliciesProfilesGet(realm: string, includeGlobalProfiles?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClientPoliciesProfilesGet(realm, includeGlobalProfiles, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientProfilesRepresentation} clientProfilesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientPoliciesProfilesPut(realm: string, clientProfilesRepresentation: ClientProfilesRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClientPoliciesProfilesPut(realm, clientProfilesRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get client session stats Returns a JSON map. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientSessionStatsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmClientSessionStatsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmCredentialRegistratorsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmCredentialRegistratorsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultDefaultClientScopesClientScopeIdDelete(realm: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultDefaultClientScopesClientScopeIdDelete(realm, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultDefaultClientScopesClientScopeIdPut(realm: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultDefaultClientScopesClientScopeIdPut(realm, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm default client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultDefaultClientScopesGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultDefaultClientScopesGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultGroupsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultGroupsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultGroupsGroupIdDelete(realm: string, groupId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultGroupsGroupIdDelete(realm, groupId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultGroupsGroupIdPut(realm: string, groupId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultGroupsGroupIdPut(realm, groupId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultOptionalClientScopesClientScopeIdDelete(realm: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultOptionalClientScopesClientScopeIdDelete(realm, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultOptionalClientScopesClientScopeIdPut(realm: string, clientScopeId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultOptionalClientScopesClientScopeIdPut(realm, clientScopeId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm optional client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDefaultOptionalClientScopesGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDefaultOptionalClientScopesGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmDelete(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmDelete(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the events provider configuration Returns JSON object with events provider configuration - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmEventsConfigGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmEventsConfigGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the events provider Change the events provider and/or its configuration - * @param {string} realm realm name (not id!) - * @param {RealmEventsConfigRepresentation} realmEventsConfigRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmEventsConfigPut(realm: string, realmEventsConfigRepresentation: RealmEventsConfigRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmEventsConfigPut(realm, realmEventsConfigRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete all events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmEventsDelete(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmEventsDelete(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get events Returns all events, or filters them based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [client] App or oauth client name - * @param {string} [dateFrom] From date - * @param {string} [dateTo] To date - * @param {number} [first] Paging offset - * @param {string} [ipAddress] IP address - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [type] The types of events to return - * @param {string} [user] User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmEventsGet(realm: string, client?: string, dateFrom?: string, dateTo?: string, first?: number, ipAddress?: string, max?: number, type?: Array, user?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmEventsGet(realm, client, dateFrom, dateTo, first, ipAddress, max, type, user, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the top-level representation of the realm It will not include nested information like User and Client representations. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} path - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupByPathPathGet(realm: string, path: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmGroupByPathPathGet(realm, path, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get LDAP supported extensions. - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation LDAP configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLdapServerCapabilitiesPost(realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLdapServerCapabilitiesPost(realm, testLdapConnectionRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationLocaleDelete(realm: string, locale: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationLocaleDelete(realm, locale, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationLocaleGet(realm: string, locale: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationLocaleGet(realm, locale, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationLocaleKeyDelete(realm: string, locale: string, key: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationLocaleKeyDelete(realm, locale, key, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationLocaleKeyGet(realm: string, locale: string, key: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationLocaleKeyGet(realm, locale, key, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationLocaleKeyPut(realm: string, locale: string, key: string, body: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationLocaleKeyPut(realm, locale, key, body, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLocalizationLocalePost(realm: string, locale: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLocalizationLocalePost(realm, locale, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Removes all user sessions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmLogoutAllPost(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmLogoutAllPost(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Partial export of existing realm into a JSON file. - * @param {string} realm realm name (not id!) - * @param {boolean} [exportClients] - * @param {boolean} [exportGroupsAndRoles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmPartialExportPost(realm: string, exportClients?: boolean, exportGroupsAndRoles?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmPartialExportPost(realm, exportClients, exportGroupsAndRoles, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Partial import from a JSON file to an existing realm. - * @param {string} realm realm name (not id!) - * @param {PartialImportRepresentation} partialImportRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmPartialImportPost(realm: string, partialImportRepresentation: PartialImportRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmPartialImportPost(realm, partialImportRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Push the realm’s revocation policy to any client that has an admin url associated with it. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmPushRevocationPost(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmPushRevocationPost(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. - * @param {string} realm realm name (not id!) - * @param {RealmRepresentation} realmRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmPut(realm: string, realmRepresentation: RealmRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmPut(realm, realmRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove a specific user session. - * @param {string} realm realm name (not id!) - * @param {string} session - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmSessionsSessionDelete(realm: string, session: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmSessionsSessionDelete(realm, session, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Test LDAP connection - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmTestLDAPConnectionPost(realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmTestLDAPConnectionPost(realm, testLdapConnectionRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmTestSMTPConnectionPost(realm: string, requestBody: { [key: string]: object; }, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmTestSMTPConnectionPost(realm, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersManagementPermissionsGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmUsersManagementPermissionsGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersManagementPermissionsPut(realm: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).realmUsersManagementPermissionsPut(realm, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Import a realm Imports a realm from a full representation of that realm. - * @param {RealmRepresentation} realmRepresentation JSON representation of the realm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async rootPost(realmRepresentation: RealmRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RealmsAdminApiAxiosParamCreator(configuration).rootPost(realmRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * RealmsAdminApi - factory interface - * @export - */ -export const RealmsAdminApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Delete all admin events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAdminEventsDelete(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmAdminEventsDelete(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get admin events Returns all admin events, or filters events based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [authClient] - * @param {string} [authIpAddress] - * @param {string} [authRealm] - * @param {string} [authUser] user id - * @param {string} [dateFrom] - * @param {string} [dateTo] - * @param {number} [first] - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [operationTypes] - * @param {string} [resourcePath] - * @param {Array} [resourceTypes] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmAdminEventsGet(realm: string, authClient?: string, authIpAddress?: string, authRealm?: string, authUser?: string, dateFrom?: string, dateTo?: string, first?: number, max?: number, operationTypes?: Array, resourcePath?: string, resourceTypes?: Array, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmAdminEventsGet(realm, authClient, authIpAddress, authRealm, authUser, dateFrom, dateTo, first, max, operationTypes, resourcePath, resourceTypes, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Clear cache of external public keys (Public keys of clients or Identity providers) - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClearKeysCachePost(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClearKeysCachePost(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Clear realm cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClearRealmCachePost(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClearRealmCachePost(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Clear user cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClearUserCachePost(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClearUserCachePost(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Base path for importing clients under this realm. - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientDescriptionConverterPost(realm: string, body: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClientDescriptionConverterPost(realm, body, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesPoliciesGet(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClientPoliciesPoliciesGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientPoliciesRepresentation} clientPoliciesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesPoliciesPut(realm: string, clientPoliciesRepresentation: ClientPoliciesRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClientPoliciesPoliciesPut(realm, clientPoliciesRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {boolean} [includeGlobalProfiles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesProfilesGet(realm: string, includeGlobalProfiles?: boolean, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClientPoliciesProfilesGet(realm, includeGlobalProfiles, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientProfilesRepresentation} clientProfilesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientPoliciesProfilesPut(realm: string, clientProfilesRepresentation: ClientProfilesRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmClientPoliciesProfilesPut(realm, clientProfilesRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get client session stats Returns a JSON map. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientSessionStatsGet(realm: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmClientSessionStatsGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmCredentialRegistratorsGet(realm: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmCredentialRegistratorsGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultDefaultClientScopesClientScopeIdDelete(realm: string, clientScopeId: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDefaultDefaultClientScopesClientScopeIdDelete(realm, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultDefaultClientScopesClientScopeIdPut(realm: string, clientScopeId: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDefaultDefaultClientScopesClientScopeIdPut(realm, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm default client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultDefaultClientScopesGet(realm: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmDefaultDefaultClientScopesGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultGroupsGet(realm: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmDefaultGroupsGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultGroupsGroupIdDelete(realm: string, groupId: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDefaultGroupsGroupIdDelete(realm, groupId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultGroupsGroupIdPut(realm: string, groupId: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDefaultGroupsGroupIdPut(realm, groupId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultOptionalClientScopesClientScopeIdDelete(realm: string, clientScopeId: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDefaultOptionalClientScopesClientScopeIdDelete(realm, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultOptionalClientScopesClientScopeIdPut(realm: string, clientScopeId: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDefaultOptionalClientScopesClientScopeIdPut(realm, clientScopeId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm optional client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDefaultOptionalClientScopesGet(realm: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmDefaultOptionalClientScopesGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmDelete(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmDelete(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the events provider configuration Returns JSON object with events provider configuration - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsConfigGet(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmEventsConfigGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the events provider Change the events provider and/or its configuration - * @param {string} realm realm name (not id!) - * @param {RealmEventsConfigRepresentation} realmEventsConfigRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsConfigPut(realm: string, realmEventsConfigRepresentation: RealmEventsConfigRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmEventsConfigPut(realm, realmEventsConfigRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete all events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsDelete(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmEventsDelete(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get events Returns all events, or filters them based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [client] App or oauth client name - * @param {string} [dateFrom] From date - * @param {string} [dateTo] To date - * @param {number} [first] Paging offset - * @param {string} [ipAddress] IP address - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [type] The types of events to return - * @param {string} [user] User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmEventsGet(realm: string, client?: string, dateFrom?: string, dateTo?: string, first?: number, ipAddress?: string, max?: number, type?: Array, user?: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmEventsGet(realm, client, dateFrom, dateTo, first, ipAddress, max, type, user, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the top-level representation of the realm It will not include nested information like User and Client representations. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGet(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} path - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupByPathPathGet(realm: string, path: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmGroupByPathPathGet(realm, path, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get LDAP supported extensions. - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation LDAP configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLdapServerCapabilitiesPost(realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLdapServerCapabilitiesPost(realm, testLdapConnectionRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationGet(realm: string, options?: any): AxiosPromise> { - return RealmsAdminApiFp(configuration).realmLocalizationGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleDelete(realm: string, locale: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLocalizationLocaleDelete(realm, locale, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleGet(realm: string, locale: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return RealmsAdminApiFp(configuration).realmLocalizationLocaleGet(realm, locale, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleKeyDelete(realm: string, locale: string, key: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLocalizationLocaleKeyDelete(realm, locale, key, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleKeyGet(realm: string, locale: string, key: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLocalizationLocaleKeyGet(realm, locale, key, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocaleKeyPut(realm: string, locale: string, key: string, body: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLocalizationLocaleKeyPut(realm, locale, key, body, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLocalizationLocalePost(realm: string, locale: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLocalizationLocalePost(realm, locale, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Removes all user sessions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmLogoutAllPost(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmLogoutAllPost(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Partial export of existing realm into a JSON file. - * @param {string} realm realm name (not id!) - * @param {boolean} [exportClients] - * @param {boolean} [exportGroupsAndRoles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPartialExportPost(realm: string, exportClients?: boolean, exportGroupsAndRoles?: boolean, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmPartialExportPost(realm, exportClients, exportGroupsAndRoles, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Partial import from a JSON file to an existing realm. - * @param {string} realm realm name (not id!) - * @param {PartialImportRepresentation} partialImportRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPartialImportPost(realm: string, partialImportRepresentation: PartialImportRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmPartialImportPost(realm, partialImportRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Push the realm’s revocation policy to any client that has an admin url associated with it. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPushRevocationPost(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmPushRevocationPost(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. - * @param {string} realm realm name (not id!) - * @param {RealmRepresentation} realmRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmPut(realm: string, realmRepresentation: RealmRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmPut(realm, realmRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove a specific user session. - * @param {string} realm realm name (not id!) - * @param {string} session - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmSessionsSessionDelete(realm: string, session: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmSessionsSessionDelete(realm, session, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Test LDAP connection - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmTestLDAPConnectionPost(realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmTestLDAPConnectionPost(realm, testLdapConnectionRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmTestSMTPConnectionPost(realm: string, requestBody: { [key: string]: object; }, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmTestSMTPConnectionPost(realm, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersManagementPermissionsGet(realm: string, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmUsersManagementPermissionsGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersManagementPermissionsPut(realm: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).realmUsersManagementPermissionsPut(realm, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Import a realm Imports a realm from a full representation of that realm. - * @param {RealmRepresentation} realmRepresentation JSON representation of the realm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - rootPost(realmRepresentation: RealmRepresentation, options?: any): AxiosPromise { - return RealmsAdminApiFp(configuration).rootPost(realmRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * RealmsAdminApi - object-oriented interface - * @export - * @class RealmsAdminApi - * @extends {BaseAPI} - */ -export class RealmsAdminApi extends BaseAPI { - /** - * - * @summary Delete all admin events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmAdminEventsDelete(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmAdminEventsDelete(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get admin events Returns all admin events, or filters events based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [authClient] - * @param {string} [authIpAddress] - * @param {string} [authRealm] - * @param {string} [authUser] user id - * @param {string} [dateFrom] - * @param {string} [dateTo] - * @param {number} [first] - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [operationTypes] - * @param {string} [resourcePath] - * @param {Array} [resourceTypes] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmAdminEventsGet(realm: string, authClient?: string, authIpAddress?: string, authRealm?: string, authUser?: string, dateFrom?: string, dateTo?: string, first?: number, max?: number, operationTypes?: Array, resourcePath?: string, resourceTypes?: Array, options?: any) { - return RealmsAdminApiFp(this.configuration).realmAdminEventsGet(realm, authClient, authIpAddress, authRealm, authUser, dateFrom, dateTo, first, max, operationTypes, resourcePath, resourceTypes, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Clear cache of external public keys (Public keys of clients or Identity providers) - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClearKeysCachePost(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClearKeysCachePost(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Clear realm cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClearRealmCachePost(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClearRealmCachePost(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Clear user cache - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClearUserCachePost(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClearUserCachePost(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Base path for importing clients under this realm. - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClientDescriptionConverterPost(realm: string, body: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClientDescriptionConverterPost(realm, body, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClientPoliciesPoliciesGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClientPoliciesPoliciesGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientPoliciesRepresentation} clientPoliciesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClientPoliciesPoliciesPut(realm: string, clientPoliciesRepresentation: ClientPoliciesRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClientPoliciesPoliciesPut(realm, clientPoliciesRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {boolean} [includeGlobalProfiles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClientPoliciesProfilesGet(realm: string, includeGlobalProfiles?: boolean, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClientPoliciesProfilesGet(realm, includeGlobalProfiles, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {ClientProfilesRepresentation} clientProfilesRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClientPoliciesProfilesPut(realm: string, clientProfilesRepresentation: ClientProfilesRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClientPoliciesProfilesPut(realm, clientProfilesRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get client session stats Returns a JSON map. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmClientSessionStatsGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmClientSessionStatsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmCredentialRegistratorsGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmCredentialRegistratorsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultDefaultClientScopesClientScopeIdDelete(realm: string, clientScopeId: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultDefaultClientScopesClientScopeIdDelete(realm, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultDefaultClientScopesClientScopeIdPut(realm: string, clientScopeId: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultDefaultClientScopesClientScopeIdPut(realm, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm default client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultDefaultClientScopesGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultDefaultClientScopesGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get group hierarchy. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultGroupsGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultGroupsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultGroupsGroupIdDelete(realm: string, groupId: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultGroupsGroupIdDelete(realm, groupId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultGroupsGroupIdPut(realm: string, groupId: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultGroupsGroupIdPut(realm, groupId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultOptionalClientScopesClientScopeIdDelete(realm: string, clientScopeId: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultOptionalClientScopesClientScopeIdDelete(realm, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} clientScopeId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultOptionalClientScopesClientScopeIdPut(realm: string, clientScopeId: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultOptionalClientScopesClientScopeIdPut(realm, clientScopeId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm optional client scopes. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDefaultOptionalClientScopesGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDefaultOptionalClientScopesGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the realm - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmDelete(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmDelete(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the events provider configuration Returns JSON object with events provider configuration - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmEventsConfigGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmEventsConfigGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the events provider Change the events provider and/or its configuration - * @param {string} realm realm name (not id!) - * @param {RealmEventsConfigRepresentation} realmEventsConfigRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmEventsConfigPut(realm: string, realmEventsConfigRepresentation: RealmEventsConfigRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmEventsConfigPut(realm, realmEventsConfigRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete all events - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmEventsDelete(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmEventsDelete(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get events Returns all events, or filters them based on URL query parameters listed here - * @param {string} realm realm name (not id!) - * @param {string} [client] App or oauth client name - * @param {string} [dateFrom] From date - * @param {string} [dateTo] To date - * @param {number} [first] Paging offset - * @param {string} [ipAddress] IP address - * @param {number} [max] Maximum results size (defaults to 100) - * @param {Array} [type] The types of events to return - * @param {string} [user] User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmEventsGet(realm: string, client?: string, dateFrom?: string, dateTo?: string, first?: number, ipAddress?: string, max?: number, type?: Array, user?: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmEventsGet(realm, client, dateFrom, dateTo, first, ipAddress, max, type, user, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the top-level representation of the realm It will not include nested information like User and Client representations. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} path - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmGroupByPathPathGet(realm: string, path: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmGroupByPathPathGet(realm, path, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get LDAP supported extensions. - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation LDAP configuration - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLdapServerCapabilitiesPost(realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLdapServerCapabilitiesPost(realm, testLdapConnectionRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationLocaleDelete(realm: string, locale: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationLocaleDelete(realm, locale, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationLocaleGet(realm: string, locale: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationLocaleGet(realm, locale, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationLocaleKeyDelete(realm: string, locale: string, key: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationLocaleKeyDelete(realm, locale, key, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationLocaleKeyGet(realm: string, locale: string, key: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationLocaleKeyGet(realm, locale, key, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {string} key - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationLocaleKeyPut(realm: string, locale: string, key: string, body: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationLocaleKeyPut(realm, locale, key, body, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} locale - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLocalizationLocalePost(realm: string, locale: string, requestBody: { [key: string]: object; }, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLocalizationLocalePost(realm, locale, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Removes all user sessions. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmLogoutAllPost(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmLogoutAllPost(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Partial export of existing realm into a JSON file. - * @param {string} realm realm name (not id!) - * @param {boolean} [exportClients] - * @param {boolean} [exportGroupsAndRoles] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmPartialExportPost(realm: string, exportClients?: boolean, exportGroupsAndRoles?: boolean, options?: any) { - return RealmsAdminApiFp(this.configuration).realmPartialExportPost(realm, exportClients, exportGroupsAndRoles, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Partial import from a JSON file to an existing realm. - * @param {string} realm realm name (not id!) - * @param {PartialImportRepresentation} partialImportRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmPartialImportPost(realm: string, partialImportRepresentation: PartialImportRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmPartialImportPost(realm, partialImportRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Push the realm’s revocation policy to any client that has an admin url associated with it. - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmPushRevocationPost(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmPushRevocationPost(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the top-level information of the realm Any user, roles or client information in the representation will be ignored. - * @param {string} realm realm name (not id!) - * @param {RealmRepresentation} realmRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmPut(realm: string, realmRepresentation: RealmRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmPut(realm, realmRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove a specific user session. - * @param {string} realm realm name (not id!) - * @param {string} session - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmSessionsSessionDelete(realm: string, session: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmSessionsSessionDelete(realm, session, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Test LDAP connection - * @param {string} realm realm name (not id!) - * @param {TestLdapConnectionRepresentation} testLdapConnectionRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmTestLDAPConnectionPost(realm: string, testLdapConnectionRepresentation: TestLdapConnectionRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).realmTestLDAPConnectionPost(realm, testLdapConnectionRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {{ [key: string]: object; }} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmTestSMTPConnectionPost(realm: string, requestBody: { [key: string]: object; }, options?: any) { - return RealmsAdminApiFp(this.configuration).realmTestSMTPConnectionPost(realm, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmUsersManagementPermissionsGet(realm: string, options?: any) { - return RealmsAdminApiFp(this.configuration).realmUsersManagementPermissionsGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public realmUsersManagementPermissionsPut(realm: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return RealmsAdminApiFp(this.configuration).realmUsersManagementPermissionsPut(realm, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Import a realm Imports a realm from a full representation of that realm. - * @param {RealmRepresentation} realmRepresentation JSON representation of the realm - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RealmsAdminApi - */ - public rootPost(realmRepresentation: RealmRepresentation, options?: any) { - return RealmsAdminApiFp(this.configuration).rootPost(realmRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * RoleMapperApi - axios parameter creator - * @export - */ -export const RoleMapperApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmAvailableGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsRealmAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsRealmAvailableGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/realm/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmCompositeGet: async (realm: string, id: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsRealmCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsRealmCompositeGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/realm/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmDelete: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsRealmDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsRealmDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsRealmDelete.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsRealmGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsRealmGet.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmPost: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmGroupsIdRoleMappingsRealmPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmGroupsIdRoleMappingsRealmPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmGroupsIdRoleMappingsRealmPost.'); - } - const localVarPath = `/{realm}/groups/{id}/role-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmAvailableGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsRealmAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsRealmAvailableGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/realm/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmCompositeGet: async (realm: string, id: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsRealmCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsRealmCompositeGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/realm/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmDelete: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsRealmDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsRealmDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsRealmDelete.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsRealmGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsRealmGet.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmPost: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdRoleMappingsRealmPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdRoleMappingsRealmPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmUsersIdRoleMappingsRealmPost.'); - } - const localVarPath = `/{realm}/users/{id}/role-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RoleMapperApi - functional programming interface - * @export - */ -export const RoleMapperApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsRealmAvailableGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsRealmAvailableGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsRealmCompositeGet(realm, id, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsRealmDelete(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsRealmGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsRealmGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmGroupsIdRoleMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmGroupsIdRoleMappingsRealmPost(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsRealmAvailableGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsRealmAvailableGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsRealmCompositeGet(realm, id, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsRealmDelete(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsRealmGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsRealmGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdRoleMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RoleMapperApiAxiosParamCreator(configuration).realmUsersIdRoleMappingsRealmPost(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * RoleMapperApi - factory interface - * @export - */ -export const RoleMapperApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsGet(realm: string, id: string, options?: any): AxiosPromise { - return RoleMapperApiFp(configuration).realmGroupsIdRoleMappingsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmAvailableGet(realm: string, id: string, options?: any): AxiosPromise> { - return RoleMapperApiFp(configuration).realmGroupsIdRoleMappingsRealmAvailableGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return RoleMapperApiFp(configuration).realmGroupsIdRoleMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RoleMapperApiFp(configuration).realmGroupsIdRoleMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmGet(realm: string, id: string, options?: any): AxiosPromise> { - return RoleMapperApiFp(configuration).realmGroupsIdRoleMappingsRealmGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmGroupsIdRoleMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RoleMapperApiFp(configuration).realmGroupsIdRoleMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsGet(realm: string, id: string, options?: any): AxiosPromise { - return RoleMapperApiFp(configuration).realmUsersIdRoleMappingsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmAvailableGet(realm: string, id: string, options?: any): AxiosPromise> { - return RoleMapperApiFp(configuration).realmUsersIdRoleMappingsRealmAvailableGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return RoleMapperApiFp(configuration).realmUsersIdRoleMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RoleMapperApiFp(configuration).realmUsersIdRoleMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmGet(realm: string, id: string, options?: any): AxiosPromise> { - return RoleMapperApiFp(configuration).realmUsersIdRoleMappingsRealmGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdRoleMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RoleMapperApiFp(configuration).realmUsersIdRoleMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * RoleMapperApi - object-oriented interface - * @export - * @class RoleMapperApi - * @extends {BaseAPI} - */ -export class RoleMapperApi extends BaseAPI { - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmGroupsIdRoleMappingsGet(realm: string, id: string, options?: any) { - return RoleMapperApiFp(this.configuration).realmGroupsIdRoleMappingsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmGroupsIdRoleMappingsRealmAvailableGet(realm: string, id: string, options?: any) { - return RoleMapperApiFp(this.configuration).realmGroupsIdRoleMappingsRealmAvailableGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmGroupsIdRoleMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any) { - return RoleMapperApiFp(this.configuration).realmGroupsIdRoleMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmGroupsIdRoleMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any) { - return RoleMapperApiFp(this.configuration).realmGroupsIdRoleMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmGroupsIdRoleMappingsRealmGet(realm: string, id: string, options?: any) { - return RoleMapperApiFp(this.configuration).realmGroupsIdRoleMappingsRealmGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmGroupsIdRoleMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any) { - return RoleMapperApiFp(this.configuration).realmGroupsIdRoleMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmUsersIdRoleMappingsGet(realm: string, id: string, options?: any) { - return RoleMapperApiFp(this.configuration).realmUsersIdRoleMappingsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles that can be mapped - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmUsersIdRoleMappingsRealmAvailableGet(realm: string, id: string, options?: any) { - return RoleMapperApiFp(this.configuration).realmUsersIdRoleMappingsRealmAvailableGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective realm-level role mappings This will recurse all composite roles to get the result. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmUsersIdRoleMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any) { - return RoleMapperApiFp(this.configuration).realmUsersIdRoleMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmUsersIdRoleMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any) { - return RoleMapperApiFp(this.configuration).realmUsersIdRoleMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level role mappings - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmUsersIdRoleMappingsRealmGet(realm: string, id: string, options?: any) { - return RoleMapperApiFp(this.configuration).realmUsersIdRoleMappingsRealmGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add realm-level role mappings to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} roleRepresentation Roles to add - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RoleMapperApi - */ - public realmUsersIdRoleMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any) { - return RoleMapperApiFp(this.configuration).realmUsersIdRoleMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * RolesApi - axios parameter creator - * @export - */ -export const RolesApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesGet: async (realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesPost: async (realm: string, id: string, roleRepresentation: RoleRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdRolesPost.'); - } - const localVarPath = `/{realm}/clients/{id}/roles` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesClientsClientUuidGet: async (realm: string, id: string, roleName: string, clientUuid: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameCompositesClientsClientUuidGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameCompositesClientsClientUuidGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameCompositesClientsClientUuidGet.'); - } - // verify required parameter 'clientUuid' is not null or undefined - if (clientUuid === null || clientUuid === undefined) { - throw new RequiredError('clientUuid','Required parameter clientUuid was null or undefined when calling realmClientsIdRolesRoleNameCompositesClientsClientUuidGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))) - .replace(`{${"clientUuid"}}`, encodeURIComponent(String(clientUuid))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesDelete: async (realm: string, id: string, roleName: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameCompositesDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameCompositesDelete.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameCompositesDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdRolesRoleNameCompositesDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesGet: async (realm: string, id: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameCompositesGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameCompositesGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameCompositesGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesPost: async (realm: string, id: string, roleName: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameCompositesPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameCompositesPost.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameCompositesPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdRolesRoleNameCompositesPost.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesRealmGet: async (realm: string, id: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameCompositesRealmGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameCompositesRealmGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameCompositesRealmGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/composites/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameDelete: async (realm: string, id: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameDelete.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameGet: async (realm: string, id: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameGroupsGet: async (realm: string, id: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameGroupsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameGroupsGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameGroupsGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/groups` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameManagementPermissionsGet: async (realm: string, id: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameManagementPermissionsPut: async (realm: string, id: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsPut.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmClientsIdRolesRoleNameManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNamePut: async (realm: string, id: string, roleName: string, roleRepresentation: RoleRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNamePut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNamePut.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNamePut.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdRolesRoleNamePut.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameUsersGet: async (realm: string, id: string, roleName: string, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdRolesRoleNameUsersGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdRolesRoleNameUsersGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmClientsIdRolesRoleNameUsersGet.'); - } - const localVarPath = `/{realm}/clients/{id}/roles/{role-name}/users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesGet: async (realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesGet.'); - } - const localVarPath = `/{realm}/roles` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesPost: async (realm: string, roleRepresentation: RoleRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesPost.'); - } - const localVarPath = `/{realm}/roles` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesClientsClientUuidGet: async (realm: string, roleName: string, clientUuid: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameCompositesClientsClientUuidGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameCompositesClientsClientUuidGet.'); - } - // verify required parameter 'clientUuid' is not null or undefined - if (clientUuid === null || clientUuid === undefined) { - throw new RequiredError('clientUuid','Required parameter clientUuid was null or undefined when calling realmRolesRoleNameCompositesClientsClientUuidGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}/composites/clients/{clientUuid}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))) - .replace(`{${"clientUuid"}}`, encodeURIComponent(String(clientUuid))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesDelete: async (realm: string, roleName: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameCompositesDelete.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameCompositesDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesRoleNameCompositesDelete.'); - } - const localVarPath = `/{realm}/roles/{role-name}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesGet: async (realm: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameCompositesGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameCompositesGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesPost: async (realm: string, roleName: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameCompositesPost.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameCompositesPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesRoleNameCompositesPost.'); - } - const localVarPath = `/{realm}/roles/{role-name}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesRealmGet: async (realm: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameCompositesRealmGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameCompositesRealmGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}/composites/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameDelete: async (realm: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameDelete.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameDelete.'); - } - const localVarPath = `/{realm}/roles/{role-name}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameGet: async (realm: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameGroupsGet: async (realm: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameGroupsGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameGroupsGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}/groups` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameManagementPermissionsGet: async (realm: string, roleName: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameManagementPermissionsGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameManagementPermissionsPut: async (realm: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameManagementPermissionsPut.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmRolesRoleNameManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/roles/{role-name}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNamePut: async (realm: string, roleName: string, roleRepresentation: RoleRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNamePut.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNamePut.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesRoleNamePut.'); - } - const localVarPath = `/{realm}/roles/{role-name}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameUsersGet: async (realm: string, roleName: string, first?: number, max?: number, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesRoleNameUsersGet.'); - } - // verify required parameter 'roleName' is not null or undefined - if (roleName === null || roleName === undefined) { - throw new RequiredError('roleName','Required parameter roleName was null or undefined when calling realmRolesRoleNameUsersGet.'); - } - const localVarPath = `/{realm}/roles/{role-name}/users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-name"}}`, encodeURIComponent(String(roleName))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RolesApi - functional programming interface - * @export - */ -export const RolesApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesGet(realm, id, briefRepresentation, first, max, search, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesPost(realm: string, id: string, roleRepresentation: RoleRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesPost(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameCompositesClientsClientUuidGet(realm: string, id: string, roleName: string, clientUuid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameCompositesClientsClientUuidGet(realm, id, roleName, clientUuid, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameCompositesDelete(realm: string, id: string, roleName: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameCompositesDelete(realm, id, roleName, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameCompositesGet(realm: string, id: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameCompositesGet(realm, id, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameCompositesPost(realm: string, id: string, roleName: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameCompositesPost(realm, id, roleName, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameCompositesRealmGet(realm: string, id: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameCompositesRealmGet(realm, id, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameDelete(realm: string, id: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameDelete(realm, id, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameGet(realm: string, id: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameGet(realm, id, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameGroupsGet(realm: string, id: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameGroupsGet(realm, id, roleName, briefRepresentation, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameManagementPermissionsGet(realm: string, id: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameManagementPermissionsGet(realm, id, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameManagementPermissionsPut(realm: string, id: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameManagementPermissionsPut(realm, id, roleName, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNamePut(realm: string, id: string, roleName: string, roleRepresentation: RoleRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNamePut(realm, id, roleName, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdRolesRoleNameUsersGet(realm: string, id: string, roleName: string, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmClientsIdRolesRoleNameUsersGet(realm, id, roleName, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesGet(realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesGet(realm, briefRepresentation, first, max, search, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesPost(realm: string, roleRepresentation: RoleRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesPost(realm, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameCompositesClientsClientUuidGet(realm: string, roleName: string, clientUuid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameCompositesClientsClientUuidGet(realm, roleName, clientUuid, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameCompositesDelete(realm: string, roleName: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameCompositesDelete(realm, roleName, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameCompositesGet(realm: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameCompositesGet(realm, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameCompositesPost(realm: string, roleName: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameCompositesPost(realm, roleName, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameCompositesRealmGet(realm: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameCompositesRealmGet(realm, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameDelete(realm: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameDelete(realm, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameGet(realm: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameGet(realm, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameGroupsGet(realm: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameGroupsGet(realm, roleName, briefRepresentation, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameManagementPermissionsGet(realm: string, roleName: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameManagementPermissionsGet(realm, roleName, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameManagementPermissionsPut(realm: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameManagementPermissionsPut(realm, roleName, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNamePut(realm: string, roleName: string, roleRepresentation: RoleRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNamePut(realm, roleName, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesRoleNameUsersGet(realm: string, roleName: string, first?: number, max?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesApiAxiosParamCreator(configuration).realmRolesRoleNameUsersGet(realm, roleName, first, max, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * RolesApi - factory interface - * @export - */ -export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmClientsIdRolesGet(realm, id, briefRepresentation, first, max, search, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesPost(realm: string, id: string, roleRepresentation: RoleRepresentation, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesPost(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesClientsClientUuidGet(realm: string, id: string, roleName: string, clientUuid: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameCompositesClientsClientUuidGet(realm, id, roleName, clientUuid, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesDelete(realm: string, id: string, roleName: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameCompositesDelete(realm, id, roleName, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesGet(realm: string, id: string, roleName: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameCompositesGet(realm, id, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesPost(realm: string, id: string, roleName: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameCompositesPost(realm, id, roleName, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameCompositesRealmGet(realm: string, id: string, roleName: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameCompositesRealmGet(realm, id, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameDelete(realm: string, id: string, roleName: string, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameDelete(realm, id, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameGet(realm: string, id: string, roleName: string, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameGet(realm, id, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameGroupsGet(realm: string, id: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameGroupsGet(realm, id, roleName, briefRepresentation, first, max, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameManagementPermissionsGet(realm: string, id: string, roleName: string, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameManagementPermissionsGet(realm, id, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameManagementPermissionsPut(realm: string, id: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameManagementPermissionsPut(realm, id, roleName, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNamePut(realm: string, id: string, roleName: string, roleRepresentation: RoleRepresentation, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmClientsIdRolesRoleNamePut(realm, id, roleName, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdRolesRoleNameUsersGet(realm: string, id: string, roleName: string, first?: number, max?: number, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmClientsIdRolesRoleNameUsersGet(realm, id, roleName, first, max, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesGet(realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmRolesGet(realm, briefRepresentation, first, max, search, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesPost(realm: string, roleRepresentation: RoleRepresentation, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesPost(realm, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesClientsClientUuidGet(realm: string, roleName: string, clientUuid: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmRolesRoleNameCompositesClientsClientUuidGet(realm, roleName, clientUuid, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesDelete(realm: string, roleName: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNameCompositesDelete(realm, roleName, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesGet(realm: string, roleName: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmRolesRoleNameCompositesGet(realm, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesPost(realm: string, roleName: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNameCompositesPost(realm, roleName, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameCompositesRealmGet(realm: string, roleName: string, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmRolesRoleNameCompositesRealmGet(realm, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameDelete(realm: string, roleName: string, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNameDelete(realm, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameGet(realm: string, roleName: string, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNameGet(realm, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameGroupsGet(realm: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmRolesRoleNameGroupsGet(realm, roleName, briefRepresentation, first, max, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameManagementPermissionsGet(realm: string, roleName: string, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNameManagementPermissionsGet(realm, roleName, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameManagementPermissionsPut(realm: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNameManagementPermissionsPut(realm, roleName, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNamePut(realm: string, roleName: string, roleRepresentation: RoleRepresentation, options?: any): AxiosPromise { - return RolesApiFp(configuration).realmRolesRoleNamePut(realm, roleName, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesRoleNameUsersGet(realm: string, roleName: string, first?: number, max?: number, options?: any): AxiosPromise> { - return RolesApiFp(configuration).realmRolesRoleNameUsersGet(realm, roleName, first, max, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * RolesApi - object-oriented interface - * @export - * @class RolesApi - * @extends {BaseAPI} - */ -export class RolesApi extends BaseAPI { - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesGet(realm, id, briefRepresentation, first, max, search, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesPost(realm: string, id: string, roleRepresentation: RoleRepresentation, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesPost(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameCompositesClientsClientUuidGet(realm: string, id: string, roleName: string, clientUuid: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameCompositesClientsClientUuidGet(realm, id, roleName, clientUuid, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameCompositesDelete(realm: string, id: string, roleName: string, roleRepresentation: Array, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameCompositesDelete(realm, id, roleName, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameCompositesGet(realm: string, id: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameCompositesGet(realm, id, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameCompositesPost(realm: string, id: string, roleName: string, roleRepresentation: Array, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameCompositesPost(realm, id, roleName, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameCompositesRealmGet(realm: string, id: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameCompositesRealmGet(realm, id, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameDelete(realm: string, id: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameDelete(realm, id, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameGet(realm: string, id: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameGet(realm, id, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameGroupsGet(realm: string, id: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameGroupsGet(realm, id, roleName, briefRepresentation, first, max, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameManagementPermissionsGet(realm: string, id: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameManagementPermissionsGet(realm, id, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameManagementPermissionsPut(realm: string, id: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameManagementPermissionsPut(realm, id, roleName, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNamePut(realm: string, id: string, roleName: string, roleRepresentation: RoleRepresentation, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNamePut(realm, id, roleName, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmClientsIdRolesRoleNameUsersGet(realm: string, id: string, roleName: string, first?: number, max?: number, options?: any) { - return RolesApiFp(this.configuration).realmClientsIdRolesRoleNameUsersGet(realm, id, roleName, first, max, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get all roles for the realm or client - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesGet(realm: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesGet(realm, briefRepresentation, first, max, search, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new role for the realm or client - * @param {string} realm realm name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesPost(realm: string, roleRepresentation: RoleRepresentation, options?: any) { - return RolesApiFp(this.configuration).realmRolesPost(realm, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameCompositesClientsClientUuidGet(realm: string, roleName: string, clientUuid: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameCompositesClientsClientUuidGet(realm, roleName, clientUuid, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation roles to remove - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameCompositesDelete(realm: string, roleName: string, roleRepresentation: Array, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameCompositesDelete(realm, roleName, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get composites of the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameCompositesGet(realm: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameCompositesGet(realm, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add a composite to the role - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameCompositesPost(realm: string, roleName: string, roleRepresentation: Array, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameCompositesPost(realm, roleName, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles of the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameCompositesRealmGet(realm: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameCompositesRealmGet(realm, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameDelete(realm: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameDelete(realm, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameGet(realm: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameGet(realm, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Returns a stream of groups that have the specified role name - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {boolean} [briefRepresentation] if false, return a full representation of the {@code GroupRepresentation} objects. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameGroupsGet(realm: string, roleName: string, briefRepresentation?: boolean, first?: number, max?: number, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameGroupsGet(realm, roleName, briefRepresentation, first, max, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameManagementPermissionsGet(realm: string, roleName: string, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameManagementPermissionsGet(realm, roleName, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether role Authorization permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleName - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameManagementPermissionsPut(realm: string, roleName: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameManagementPermissionsPut(realm, roleName, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update a role by name - * @param {string} realm realm name (not id!) - * @param {string} roleName role’s name (not id!) - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNamePut(realm: string, roleName: string, roleRepresentation: RoleRepresentation, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNamePut(realm, roleName, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Returns a stream of users that have the specified role name. - * @param {string} realm realm name (not id!) - * @param {string} roleName the role name. - * @param {number} [first] first result to return. Ignored if negative or {@code null}. - * @param {number} [max] maximum number of results to return. Ignored if negative or {@code null}. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesApi - */ - public realmRolesRoleNameUsersGet(realm: string, roleName: string, first?: number, max?: number, options?: any) { - return RolesApiFp(this.configuration).realmRolesRoleNameUsersGet(realm, roleName, first, max, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * RolesByIDApi - axios parameter creator - * @export - */ -export const RolesByIDApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesClientsClientUuidGet: async (realm: string, roleId: string, clientUuid: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdCompositesClientsClientUuidGet.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdCompositesClientsClientUuidGet.'); - } - // verify required parameter 'clientUuid' is not null or undefined - if (clientUuid === null || clientUuid === undefined) { - throw new RequiredError('clientUuid','Required parameter clientUuid was null or undefined when calling realmRolesByIdRoleIdCompositesClientsClientUuidGet.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))) - .replace(`{${"clientUuid"}}`, encodeURIComponent(String(clientUuid))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove a set of roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation A set of roles to be removed - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesDelete: async (realm: string, roleId: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdCompositesDelete.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdCompositesDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesByIdRoleIdCompositesDelete.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get role’s children Returns a set of role’s children provided the role is a composite. - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesGet: async (realm: string, roleId: string, first?: number, max?: number, search?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdCompositesGet.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdCompositesGet.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Make the role a composite role by associating some child roles - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesPost: async (realm: string, roleId: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdCompositesPost.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdCompositesPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesByIdRoleIdCompositesPost.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/composites` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesRealmGet: async (realm: string, roleId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdCompositesRealmGet.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdCompositesRealmGet.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/composites/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdDelete: async (realm: string, roleId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdDelete.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdDelete.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get a specific role’s representation - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdGet: async (realm: string, roleId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdGet.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdGet.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdManagementPermissionsGet: async (realm: string, roleId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsGet.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsGet.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdManagementPermissionsPut: async (realm: string, roleId: string, managementPermissionReference: ManagementPermissionReference, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsPut.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsPut.'); - } - // verify required parameter 'managementPermissionReference' is not null or undefined - if (managementPermissionReference === null || managementPermissionReference === undefined) { - throw new RequiredError('managementPermissionReference','Required parameter managementPermissionReference was null or undefined when calling realmRolesByIdRoleIdManagementPermissionsPut.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}/management/permissions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof managementPermissionReference !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(managementPermissionReference !== undefined ? managementPermissionReference : {}) : (managementPermissionReference || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdPut: async (realm: string, roleId: string, roleRepresentation: RoleRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmRolesByIdRoleIdPut.'); - } - // verify required parameter 'roleId' is not null or undefined - if (roleId === null || roleId === undefined) { - throw new RequiredError('roleId','Required parameter roleId was null or undefined when calling realmRolesByIdRoleIdPut.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmRolesByIdRoleIdPut.'); - } - const localVarPath = `/{realm}/roles-by-id/{role-id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"role-id"}}`, encodeURIComponent(String(roleId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RolesByIDApi - functional programming interface - * @export - */ -export const RolesByIDApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdCompositesClientsClientUuidGet(realm: string, roleId: string, clientUuid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdCompositesClientsClientUuidGet(realm, roleId, clientUuid, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove a set of roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation A set of roles to be removed - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdCompositesDelete(realm: string, roleId: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdCompositesDelete(realm, roleId, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get role’s children Returns a set of role’s children provided the role is a composite. - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdCompositesGet(realm: string, roleId: string, first?: number, max?: number, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdCompositesGet(realm, roleId, first, max, search, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Make the role a composite role by associating some child roles - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdCompositesPost(realm: string, roleId: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdCompositesPost(realm, roleId, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdCompositesRealmGet(realm: string, roleId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdCompositesRealmGet(realm, roleId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdDelete(realm: string, roleId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdDelete(realm, roleId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get a specific role’s representation - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdGet(realm: string, roleId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdGet(realm, roleId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdManagementPermissionsGet(realm: string, roleId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdManagementPermissionsGet(realm, roleId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdManagementPermissionsPut(realm: string, roleId: string, managementPermissionReference: ManagementPermissionReference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdManagementPermissionsPut(realm, roleId, managementPermissionReference, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmRolesByIdRoleIdPut(realm: string, roleId: string, roleRepresentation: RoleRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RolesByIDApiAxiosParamCreator(configuration).realmRolesByIdRoleIdPut(realm, roleId, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * RolesByIDApi - factory interface - * @export - */ -export const RolesByIDApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesClientsClientUuidGet(realm: string, roleId: string, clientUuid: string, options?: any): AxiosPromise> { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdCompositesClientsClientUuidGet(realm, roleId, clientUuid, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove a set of roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation A set of roles to be removed - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesDelete(realm: string, roleId: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdCompositesDelete(realm, roleId, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get role’s children Returns a set of role’s children provided the role is a composite. - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesGet(realm: string, roleId: string, first?: number, max?: number, search?: string, options?: any): AxiosPromise> { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdCompositesGet(realm, roleId, first, max, search, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Make the role a composite role by associating some child roles - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesPost(realm: string, roleId: string, roleRepresentation: Array, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdCompositesPost(realm, roleId, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdCompositesRealmGet(realm: string, roleId: string, options?: any): AxiosPromise> { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdCompositesRealmGet(realm, roleId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdDelete(realm: string, roleId: string, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdDelete(realm, roleId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get a specific role’s representation - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdGet(realm: string, roleId: string, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdGet(realm, roleId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdManagementPermissionsGet(realm: string, roleId: string, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdManagementPermissionsGet(realm, roleId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdManagementPermissionsPut(realm: string, roleId: string, managementPermissionReference: ManagementPermissionReference, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdManagementPermissionsPut(realm, roleId, managementPermissionReference, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmRolesByIdRoleIdPut(realm: string, roleId: string, roleRepresentation: RoleRepresentation, options?: any): AxiosPromise { - return RolesByIDApiFp(configuration).realmRolesByIdRoleIdPut(realm, roleId, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * RolesByIDApi - object-oriented interface - * @export - * @class RolesByIDApi - * @extends {BaseAPI} - */ -export class RolesByIDApi extends BaseAPI { - /** - * - * @summary Get client-level roles for the client that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdCompositesClientsClientUuidGet(realm: string, roleId: string, clientUuid: string, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdCompositesClientsClientUuidGet(realm, roleId, clientUuid, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove a set of roles from the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation A set of roles to be removed - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdCompositesDelete(realm: string, roleId: string, roleRepresentation: Array, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdCompositesDelete(realm, roleId, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get role’s children Returns a set of role’s children provided the role is a composite. - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdCompositesGet(realm: string, roleId: string, first?: number, max?: number, search?: string, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdCompositesGet(realm, roleId, first, max, search, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Make the role a composite role by associating some child roles - * @param {string} realm realm name (not id!) - * @param {string} roleId Role id - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdCompositesPost(realm: string, roleId: string, roleRepresentation: Array, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdCompositesPost(realm, roleId, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles that are in the role’s composite - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdCompositesRealmGet(realm: string, roleId: string, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdCompositesRealmGet(realm, roleId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdDelete(realm: string, roleId: string, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdDelete(realm, roleId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get a specific role’s representation - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdGet(realm: string, roleId: string, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdGet(realm, roleId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdManagementPermissionsGet(realm: string, roleId: string, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdManagementPermissionsGet(realm, roleId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return object stating whether role Authoirzation permissions have been initialized or not and a reference - * @param {string} realm realm name (not id!) - * @param {string} roleId - * @param {ManagementPermissionReference} managementPermissionReference - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdManagementPermissionsPut(realm: string, roleId: string, managementPermissionReference: ManagementPermissionReference, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdManagementPermissionsPut(realm, roleId, managementPermissionReference, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the role - * @param {string} realm realm name (not id!) - * @param {string} roleId id of role - * @param {RoleRepresentation} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RolesByIDApi - */ - public realmRolesByIdRoleIdPut(realm: string, roleId: string, roleRepresentation: RoleRepresentation, options?: any) { - return RolesByIDApiFp(this.configuration).realmRolesByIdRoleIdPut(realm, roleId, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * RootApi - axios parameter creator - * @export - */ -export const RootApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Get themes, social providers, auth providers, and event listeners available on this server - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - rootGet: async (options: any = {}): Promise => { - const localVarPath = `/`; - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * RootApi - functional programming interface - * @export - */ -export const RootApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Get themes, social providers, auth providers, and event listeners available on this server - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async rootGet(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await RootApiAxiosParamCreator(configuration).rootGet(options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * RootApi - factory interface - * @export - */ -export const RootApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Get themes, social providers, auth providers, and event listeners available on this server - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - rootGet(options?: any): AxiosPromise { - return RootApiFp(configuration).rootGet(options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * RootApi - object-oriented interface - * @export - * @class RootApi - * @extends {BaseAPI} - */ -export class RootApi extends BaseAPI { - /** - * - * @summary Get themes, social providers, auth providers, and event listeners available on this server - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof RootApi - */ - public rootGet(options?: any) { - return RootApiFp(this.configuration).rootGet(options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * ScopeMappingsApi - axios parameter creator - * @export - */ -export const ScopeMappingsApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientAvailableGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientAvailableGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientCompositeGet: async (realm: string, id: string, client: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientCompositeGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientDelete: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientDelete.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientDelete.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientPost: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientPost.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientScopesIdScopeMappingsClientsClientPost.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmAvailableGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsRealmAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsRealmAvailableGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/realm/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmCompositeGet: async (realm: string, id: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsRealmCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsRealmCompositeGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/realm/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmDelete: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsRealmDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsRealmDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientScopesIdScopeMappingsRealmDelete.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsRealmGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsRealmGet.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmPost: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientScopesIdScopeMappingsRealmPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientScopesIdScopeMappingsRealmPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientScopesIdScopeMappingsRealmPost.'); - } - const localVarPath = `/{realm}/client-scopes/{id}/scope-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientAvailableGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsClientsClientAvailableGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientsIdScopeMappingsClientsClientAvailableGet.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/clients/{client}/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientCompositeGet: async (realm: string, id: string, client: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsClientsClientCompositeGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientsIdScopeMappingsClientsClientCompositeGet.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/clients/{client}/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientDelete: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsClientsClientDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsClientsClientDelete.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientsIdScopeMappingsClientsClientDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdScopeMappingsClientsClientDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientGet: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsClientsClientGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsClientsClientGet.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientsIdScopeMappingsClientsClientGet.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientPost: async (realm: string, id: string, client: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsClientsClientPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsClientsClientPost.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmClientsIdScopeMappingsClientsClientPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdScopeMappingsClientsClientPost.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/clients/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmAvailableGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsRealmAvailableGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsRealmAvailableGet.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/realm/available` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmCompositeGet: async (realm: string, id: string, briefRepresentation?: boolean, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsRealmCompositeGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsRealmCompositeGet.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/realm/composite` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmDelete: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsRealmDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsRealmDelete.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdScopeMappingsRealmDelete.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsRealmGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsRealmGet.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmPost: async (realm: string, id: string, roleRepresentation: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmClientsIdScopeMappingsRealmPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmClientsIdScopeMappingsRealmPost.'); - } - // verify required parameter 'roleRepresentation' is not null or undefined - if (roleRepresentation === null || roleRepresentation === undefined) { - throw new RequiredError('roleRepresentation','Required parameter roleRepresentation was null or undefined when calling realmClientsIdScopeMappingsRealmPost.'); - } - const localVarPath = `/{realm}/clients/{id}/scope-mappings/realm` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof roleRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(roleRepresentation !== undefined ? roleRepresentation : {}) : (roleRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * ScopeMappingsApi - functional programming interface - * @export - */ -export const ScopeMappingsApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsClientsClientAvailableGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsClientsClientDelete(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsClientsClientGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsClientsClientPost(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsRealmAvailableGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsRealmAvailableGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsRealmCompositeGet(realm, id, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsRealmDelete(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsRealmGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsRealmGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientScopesIdScopeMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientScopesIdScopeMappingsRealmPost(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsClientsClientAvailableGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsClientsClientDelete(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsClientsClientGet(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsClientsClientPost(realm, id, client, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsRealmAvailableGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsRealmAvailableGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsRealmCompositeGet(realm, id, briefRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsRealmDelete(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsRealmGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsRealmGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmClientsIdScopeMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await ScopeMappingsApiAxiosParamCreator(configuration).realmClientsIdScopeMappingsRealmPost(realm, id, roleRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * ScopeMappingsApi - factory interface - * @export - */ -export const ScopeMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsClientsClientGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmAvailableGet(realm: string, id: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsRealmAvailableGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmGet(realm: string, id: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsRealmGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientScopesIdScopeMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientScopesIdScopeMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientGet(realm: string, id: string, client: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsClientsClientGet(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmAvailableGet(realm: string, id: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsRealmAvailableGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmGet(realm: string, id: string, options?: any): AxiosPromise> { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsRealmGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmClientsIdScopeMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any): AxiosPromise { - return ScopeMappingsApiFp(configuration).realmClientsIdScopeMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * ScopeMappingsApi - object-oriented interface - * @export - * @class ScopeMappingsApi - * @extends {BaseAPI} - */ -export class ScopeMappingsApi extends BaseAPI { - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsClientsClientGet(realm: string, id: string, client: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsClientsClientGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsRealmAvailableGet(realm: string, id: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsRealmAvailableGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsRealmGet(realm: string, id: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsRealmGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client scope (not name) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientScopesIdScopeMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientScopesIdScopeMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary The available client-level roles Returns the roles for the client that can be associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsClientsClientAvailableGet(realm: string, id: string, client: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsClientsClientAvailableGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective client roles Returns the roles for the client that are associated with the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsClientsClientCompositeGet(realm: string, id: string, client: string, briefRepresentation?: boolean, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsClientsClientCompositeGet(realm, id, client, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove client-level roles from the client’s scope. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsClientsClientDelete(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsClientsClientDelete(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get the roles associated with a client’s scope Returns roles for the client. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsClientsClientGet(realm: string, id: string, client: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsClientsClientGet(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add client-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {string} client - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsClientsClientPost(realm: string, id: string, client: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsClientsClientPost(realm, id, client, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles that are available to attach to this client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsRealmAvailableGet(realm: string, id: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsRealmAvailableGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists. - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {boolean} [briefRepresentation] if false, return roles with their attributes - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsRealmCompositeGet(realm: string, id: string, briefRepresentation?: boolean, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsRealmCompositeGet(realm, id, briefRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove a set of realm-level roles from the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsRealmDelete(realm: string, id: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsRealmDelete(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get realm-level roles associated with the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsRealmGet(realm: string, id: string, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsRealmGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add a set of realm-level roles to the client’s scope - * @param {string} realm realm name (not id!) - * @param {string} id id of client (not client-id) - * @param {Array} roleRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ScopeMappingsApi - */ - public realmClientsIdScopeMappingsRealmPost(realm: string, id: string, roleRepresentation: Array, options?: any) { - return ScopeMappingsApiFp(this.configuration).realmClientsIdScopeMappingsRealmPost(realm, id, roleRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * UserStorageProviderApi - axios parameter creator - * @export - */ -export const UserStorageProviderApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328 - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - idNameGet: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling idNameGet.'); - } - const localVarPath = `/{id}/name` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328 - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdNameGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUserStorageIdNameGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUserStorageIdNameGet.'); - } - const localVarPath = `/{realm}/user-storage/{id}/name` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove imported users - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdRemoveImportedUsersPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUserStorageIdRemoveImportedUsersPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUserStorageIdRemoveImportedUsersPost.'); - } - const localVarPath = `/{realm}/user-storage/{id}/remove-imported-users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\" - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [action] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdSyncPost: async (realm: string, id: string, action?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUserStorageIdSyncPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUserStorageIdSyncPost.'); - } - const localVarPath = `/{realm}/user-storage/{id}/sync` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (action !== undefined) { - localVarQueryParameter['action'] = action; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Unlink imported users from a storage provider - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdUnlinkUsersPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUserStorageIdUnlinkUsersPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUserStorageIdUnlinkUsersPost.'); - } - const localVarPath = `/{realm}/user-storage/{id}/unlink-users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Trigger sync of mapper data related to ldap mapper (roles, groups, …​) direction is \"fedToKeycloak\" or \"keycloakToFed\" - * @param {string} realm realm name (not id!) - * @param {string} parentId - * @param {string} id - * @param {string} [direction] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageParentIdMappersIdSyncPost: async (realm: string, parentId: string, id: string, direction?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUserStorageParentIdMappersIdSyncPost.'); - } - // verify required parameter 'parentId' is not null or undefined - if (parentId === null || parentId === undefined) { - throw new RequiredError('parentId','Required parameter parentId was null or undefined when calling realmUserStorageParentIdMappersIdSyncPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUserStorageParentIdMappersIdSyncPost.'); - } - const localVarPath = `/{realm}/user-storage/{parentId}/mappers/{id}/sync` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"parentId"}}`, encodeURIComponent(String(parentId))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (direction !== undefined) { - localVarQueryParameter['direction'] = direction; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * UserStorageProviderApi - functional programming interface - * @export - */ -export const UserStorageProviderApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328 - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async idNameGet(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await UserStorageProviderApiAxiosParamCreator(configuration).idNameGet(id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328 - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUserStorageIdNameGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await UserStorageProviderApiAxiosParamCreator(configuration).realmUserStorageIdNameGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove imported users - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUserStorageIdRemoveImportedUsersPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UserStorageProviderApiAxiosParamCreator(configuration).realmUserStorageIdRemoveImportedUsersPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\" - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [action] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUserStorageIdSyncPost(realm: string, id: string, action?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UserStorageProviderApiAxiosParamCreator(configuration).realmUserStorageIdSyncPost(realm, id, action, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Unlink imported users from a storage provider - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUserStorageIdUnlinkUsersPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UserStorageProviderApiAxiosParamCreator(configuration).realmUserStorageIdUnlinkUsersPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Trigger sync of mapper data related to ldap mapper (roles, groups, …​) direction is \"fedToKeycloak\" or \"keycloakToFed\" - * @param {string} realm realm name (not id!) - * @param {string} parentId - * @param {string} id - * @param {string} [direction] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUserStorageParentIdMappersIdSyncPost(realm: string, parentId: string, id: string, direction?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UserStorageProviderApiAxiosParamCreator(configuration).realmUserStorageParentIdMappersIdSyncPost(realm, parentId, id, direction, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * UserStorageProviderApi - factory interface - * @export - */ -export const UserStorageProviderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328 - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - idNameGet(id: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return UserStorageProviderApiFp(configuration).idNameGet(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328 - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdNameGet(realm: string, id: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return UserStorageProviderApiFp(configuration).realmUserStorageIdNameGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove imported users - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdRemoveImportedUsersPost(realm: string, id: string, options?: any): AxiosPromise { - return UserStorageProviderApiFp(configuration).realmUserStorageIdRemoveImportedUsersPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\" - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [action] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdSyncPost(realm: string, id: string, action?: string, options?: any): AxiosPromise { - return UserStorageProviderApiFp(configuration).realmUserStorageIdSyncPost(realm, id, action, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Unlink imported users from a storage provider - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageIdUnlinkUsersPost(realm: string, id: string, options?: any): AxiosPromise { - return UserStorageProviderApiFp(configuration).realmUserStorageIdUnlinkUsersPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Trigger sync of mapper data related to ldap mapper (roles, groups, …​) direction is \"fedToKeycloak\" or \"keycloakToFed\" - * @param {string} realm realm name (not id!) - * @param {string} parentId - * @param {string} id - * @param {string} [direction] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUserStorageParentIdMappersIdSyncPost(realm: string, parentId: string, id: string, direction?: string, options?: any): AxiosPromise { - return UserStorageProviderApiFp(configuration).realmUserStorageParentIdMappersIdSyncPost(realm, parentId, id, direction, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * UserStorageProviderApi - object-oriented interface - * @export - * @class UserStorageProviderApi - * @extends {BaseAPI} - */ -export class UserStorageProviderApi extends BaseAPI { - /** - * - * @summary Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328 - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserStorageProviderApi - */ - public idNameGet(id: string, options?: any) { - return UserStorageProviderApiFp(this.configuration).idNameGet(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328 - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserStorageProviderApi - */ - public realmUserStorageIdNameGet(realm: string, id: string, options?: any) { - return UserStorageProviderApiFp(this.configuration).realmUserStorageIdNameGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove imported users - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserStorageProviderApi - */ - public realmUserStorageIdRemoveImportedUsersPost(realm: string, id: string, options?: any) { - return UserStorageProviderApiFp(this.configuration).realmUserStorageIdRemoveImportedUsersPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\" - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {string} [action] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserStorageProviderApi - */ - public realmUserStorageIdSyncPost(realm: string, id: string, action?: string, options?: any) { - return UserStorageProviderApiFp(this.configuration).realmUserStorageIdSyncPost(realm, id, action, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Unlink imported users from a storage provider - * @param {string} realm realm name (not id!) - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserStorageProviderApi - */ - public realmUserStorageIdUnlinkUsersPost(realm: string, id: string, options?: any) { - return UserStorageProviderApiFp(this.configuration).realmUserStorageIdUnlinkUsersPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Trigger sync of mapper data related to ldap mapper (roles, groups, …​) direction is \"fedToKeycloak\" or \"keycloakToFed\" - * @param {string} realm realm name (not id!) - * @param {string} parentId - * @param {string} id - * @param {string} [direction] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UserStorageProviderApi - */ - public realmUserStorageParentIdMappersIdSyncPost(realm: string, parentId: string, id: string, direction?: string, options?: any) { - return UserStorageProviderApiFp(this.configuration).realmUserStorageParentIdMappersIdSyncPost(realm, parentId, id, direction, options).then((request) => request(this.axios, this.basePath)); - } - -} - - -/** - * UsersApi - axios parameter creator - * @export - */ -export const UsersApiAxiosParamCreator = function (configuration?: Configuration) { - return { - /** - * - * @summary Returns the number of users that match the given criteria. - * @param {string} realm realm name (not id!) - * @param {string} [email] email filter - * @param {boolean} [emailVerified] - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {string} [firstName] first name filter - * @param {string} [lastName] last name filter - * @param {string} [search] arbitrary search string for all the fields below - * @param {string} [username] username filter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersCountGet: async (realm: string, email?: string, emailVerified?: boolean, enabled?: boolean, firstName?: string, lastName?: string, search?: string, username?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersCountGet.'); - } - const localVarPath = `/{realm}/users/count` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (email !== undefined) { - localVarQueryParameter['email'] = email; - } - - if (emailVerified !== undefined) { - localVarQueryParameter['emailVerified'] = emailVerified; - } - - if (enabled !== undefined) { - localVarQueryParameter['enabled'] = enabled; - } - - if (firstName !== undefined) { - localVarQueryParameter['firstName'] = firstName; - } - - if (lastName !== undefined) { - localVarQueryParameter['lastName'] = lastName; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (username !== undefined) { - localVarQueryParameter['username'] = username; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] Boolean which defines whether brief representations are returned (default: false) - * @param {string} [email] A String contained in email, or the complete email, if param \"exact\" is true - * @param {boolean} [emailVerified] whether the email has been verified - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {boolean} [exact] Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly - * @param {number} [first] Pagination offset - * @param {string} [firstName] A String contained in firstName, or the complete firstName, if param \"exact\" is true - * @param {string} [idpAlias] The alias of an Identity Provider linked to the user - * @param {string} [idpUserId] The userId at an Identity Provider linked to the user - * @param {string} [lastName] A String contained in lastName, or the complete lastName, if param \"exact\" is true - * @param {number} [max] Maximum results size (defaults to 100) - * @param {string} [q] A query to search for custom attributes, in the format \'key1:value2 key2:value2\' - * @param {string} [search] A String contained in username, first or last name, or email - * @param {string} [username] A String contained in username, or the complete username, if param \"exact\" is true - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersGet: async (realm: string, briefRepresentation?: boolean, email?: string, emailVerified?: boolean, enabled?: boolean, exact?: boolean, first?: number, firstName?: string, idpAlias?: string, idpUserId?: string, lastName?: string, max?: number, q?: string, search?: string, username?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersGet.'); - } - const localVarPath = `/{realm}/users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (email !== undefined) { - localVarQueryParameter['email'] = email; - } - - if (emailVerified !== undefined) { - localVarQueryParameter['emailVerified'] = emailVerified; - } - - if (enabled !== undefined) { - localVarQueryParameter['enabled'] = enabled; - } - - if (exact !== undefined) { - localVarQueryParameter['exact'] = exact; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (firstName !== undefined) { - localVarQueryParameter['firstName'] = firstName; - } - - if (idpAlias !== undefined) { - localVarQueryParameter['idpAlias'] = idpAlias; - } - - if (idpUserId !== undefined) { - localVarQueryParameter['idpUserId'] = idpUserId; - } - - if (lastName !== undefined) { - localVarQueryParameter['lastName'] = lastName; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (q !== undefined) { - localVarQueryParameter['q'] = q; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - if (username !== undefined) { - localVarQueryParameter['username'] = username; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Return credential types, which are provided by the user storage where user is stored. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdConfiguredUserStorageCredentialTypesGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdConfiguredUserStorageCredentialTypesGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdConfiguredUserStorageCredentialTypesGet.'); - } - const localVarPath = `/{realm}/users/{id}/configured-user-storage-credential-types` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Revoke consent and offline tokens for particular client from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client Client id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdConsentsClientDelete: async (realm: string, id: string, client: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdConsentsClientDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdConsentsClientDelete.'); - } - // verify required parameter 'client' is not null or undefined - if (client === null || client === undefined) { - throw new RequiredError('client','Required parameter client was null or undefined when calling realmUsersIdConsentsClientDelete.'); - } - const localVarPath = `/{realm}/users/{id}/consents/{client}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"client"}}`, encodeURIComponent(String(client))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get consents granted by the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdConsentsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdConsentsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdConsentsGet.'); - } - const localVarPath = `/{realm}/users/{id}/consents` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove a credential for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdDelete: async (realm: string, id: string, credentialId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdCredentialsCredentialIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdCredentialsCredentialIdDelete.'); - } - // verify required parameter 'credentialId' is not null or undefined - if (credentialId === null || credentialId === undefined) { - throw new RequiredError('credentialId','Required parameter credentialId was null or undefined when calling realmUsersIdCredentialsCredentialIdDelete.'); - } - const localVarPath = `/{realm}/users/{id}/credentials/{credentialId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Move a credential to a position behind another credential - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {string} newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost: async (realm: string, id: string, credentialId: string, newPreviousCredentialId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost.'); - } - // verify required parameter 'credentialId' is not null or undefined - if (credentialId === null || credentialId === undefined) { - throw new RequiredError('credentialId','Required parameter credentialId was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost.'); - } - // verify required parameter 'newPreviousCredentialId' is not null or undefined - if (newPreviousCredentialId === null || newPreviousCredentialId === undefined) { - throw new RequiredError('newPreviousCredentialId','Required parameter newPreviousCredentialId was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost.'); - } - const localVarPath = `/{realm}/users/{id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId))) - .replace(`{${"newPreviousCredentialId"}}`, encodeURIComponent(String(newPreviousCredentialId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Move a credential to a first position in the credentials list of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdMoveToFirstPost: async (realm: string, id: string, credentialId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveToFirstPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveToFirstPost.'); - } - // verify required parameter 'credentialId' is not null or undefined - if (credentialId === null || credentialId === undefined) { - throw new RequiredError('credentialId','Required parameter credentialId was null or undefined when calling realmUsersIdCredentialsCredentialIdMoveToFirstPost.'); - } - const localVarPath = `/{realm}/users/{id}/credentials/{credentialId}/moveToFirst` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update a credential label for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdUserLabelPut: async (realm: string, id: string, credentialId: string, body: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdCredentialsCredentialIdUserLabelPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdCredentialsCredentialIdUserLabelPut.'); - } - // verify required parameter 'credentialId' is not null or undefined - if (credentialId === null || credentialId === undefined) { - throw new RequiredError('credentialId','Required parameter credentialId was null or undefined when calling realmUsersIdCredentialsCredentialIdUserLabelPut.'); - } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling realmUsersIdCredentialsCredentialIdUserLabelPut.'); - } - const localVarPath = `/{realm}/users/{id}/credentials/{credentialId}/userLabel` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"credentialId"}}`, encodeURIComponent(String(credentialId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'text/plain'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdCredentialsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdCredentialsGet.'); - } - const localVarPath = `/{realm}/users/{id}/credentials` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Delete the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdDelete: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdDelete.'); - } - const localVarPath = `/{realm}/users/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Disable all credentials for a user of a specific type - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdDisableCredentialTypesPut: async (realm: string, id: string, requestBody: Array, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdDisableCredentialTypesPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdDisableCredentialTypesPut.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmUsersIdDisableCredentialTypesPut.'); - } - const localVarPath = `/{realm}/users/{id}/disable-credential-types` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Send a update account email to the user An email contains a link the user can click to perform a set of required actions. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody required actions the user needs to complete - * @param {string} [clientId] Client id - * @param {number} [lifespan] Number of seconds after which the generated token expires - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdExecuteActionsEmailPut: async (realm: string, id: string, requestBody: Array, clientId?: string, lifespan?: number, redirectUri?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdExecuteActionsEmailPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdExecuteActionsEmailPut.'); - } - // verify required parameter 'requestBody' is not null or undefined - if (requestBody === null || requestBody === undefined) { - throw new RequiredError('requestBody','Required parameter requestBody was null or undefined when calling realmUsersIdExecuteActionsEmailPut.'); - } - const localVarPath = `/{realm}/users/{id}/execute-actions-email` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (clientId !== undefined) { - localVarQueryParameter['client_id'] = clientId; - } - - if (lifespan !== undefined) { - localVarQueryParameter['lifespan'] = lifespan; - } - - if (redirectUri !== undefined) { - localVarQueryParameter['redirect_uri'] = redirectUri; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof requestBody !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(requestBody !== undefined ? requestBody : {}) : (requestBody || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get social logins associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdFederatedIdentityGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdFederatedIdentityGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdFederatedIdentityGet.'); - } - const localVarPath = `/{realm}/users/{id}/federated-identity` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove a social login provider from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdFederatedIdentityProviderDelete: async (realm: string, id: string, provider: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdFederatedIdentityProviderDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdFederatedIdentityProviderDelete.'); - } - // verify required parameter 'provider' is not null or undefined - if (provider === null || provider === undefined) { - throw new RequiredError('provider','Required parameter provider was null or undefined when calling realmUsersIdFederatedIdentityProviderDelete.'); - } - const localVarPath = `/{realm}/users/{id}/federated-identity/{provider}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"provider"}}`, encodeURIComponent(String(provider))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Add a social login provider to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {FederatedIdentityRepresentation} federatedIdentityRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdFederatedIdentityProviderPost: async (realm: string, id: string, provider: string, federatedIdentityRepresentation: FederatedIdentityRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdFederatedIdentityProviderPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdFederatedIdentityProviderPost.'); - } - // verify required parameter 'provider' is not null or undefined - if (provider === null || provider === undefined) { - throw new RequiredError('provider','Required parameter provider was null or undefined when calling realmUsersIdFederatedIdentityProviderPost.'); - } - // verify required parameter 'federatedIdentityRepresentation' is not null or undefined - if (federatedIdentityRepresentation === null || federatedIdentityRepresentation === undefined) { - throw new RequiredError('federatedIdentityRepresentation','Required parameter federatedIdentityRepresentation was null or undefined when calling realmUsersIdFederatedIdentityProviderPost.'); - } - const localVarPath = `/{realm}/users/{id}/federated-identity/{provider}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"provider"}}`, encodeURIComponent(String(provider))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof federatedIdentityRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(federatedIdentityRepresentation !== undefined ? federatedIdentityRepresentation : {}) : (federatedIdentityRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get representation of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdGet.'); - } - const localVarPath = `/{realm}/users/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsCountGet: async (realm: string, id: string, search?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdGroupsCountGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdGroupsCountGet.'); - } - const localVarPath = `/{realm}/users/{id}/groups/count` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsGet: async (realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdGroupsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdGroupsGet.'); - } - const localVarPath = `/{realm}/users/{id}/groups` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (briefRepresentation !== undefined) { - localVarQueryParameter['briefRepresentation'] = briefRepresentation; - } - - if (first !== undefined) { - localVarQueryParameter['first'] = first; - } - - if (max !== undefined) { - localVarQueryParameter['max'] = max; - } - - if (search !== undefined) { - localVarQueryParameter['search'] = search; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsGroupIdDelete: async (realm: string, id: string, groupId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdGroupsGroupIdDelete.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdGroupsGroupIdDelete.'); - } - // verify required parameter 'groupId' is not null or undefined - if (groupId === null || groupId === undefined) { - throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling realmUsersIdGroupsGroupIdDelete.'); - } - const localVarPath = `/{realm}/users/{id}/groups/{groupId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsGroupIdPut: async (realm: string, id: string, groupId: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdGroupsGroupIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdGroupsGroupIdPut.'); - } - // verify required parameter 'groupId' is not null or undefined - if (groupId === null || groupId === undefined) { - throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling realmUsersIdGroupsGroupIdPut.'); - } - const localVarPath = `/{realm}/users/{id}/groups/{groupId}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Impersonate the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdImpersonationPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdImpersonationPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdImpersonationPost.'); - } - const localVarPath = `/{realm}/users/{id}/impersonation` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdLogoutPost: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdLogoutPost.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdLogoutPost.'); - } - const localVarPath = `/{realm}/users/{id}/logout` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get offline sessions associated with the user and client - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdOfflineSessionsClientUuidGet: async (realm: string, id: string, clientUuid: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdOfflineSessionsClientUuidGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdOfflineSessionsClientUuidGet.'); - } - // verify required parameter 'clientUuid' is not null or undefined - if (clientUuid === null || clientUuid === undefined) { - throw new RequiredError('clientUuid','Required parameter clientUuid was null or undefined when calling realmUsersIdOfflineSessionsClientUuidGet.'); - } - const localVarPath = `/{realm}/users/{id}/offline-sessions/{clientUuid}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"clientUuid"}}`, encodeURIComponent(String(clientUuid))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Update the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdPut: async (realm: string, id: string, userRepresentation: UserRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdPut.'); - } - // verify required parameter 'userRepresentation' is not null or undefined - if (userRepresentation === null || userRepresentation === undefined) { - throw new RequiredError('userRepresentation','Required parameter userRepresentation was null or undefined when calling realmUsersIdPut.'); - } - const localVarPath = `/{realm}/users/{id}` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof userRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(userRepresentation !== undefined ? userRepresentation : {}) : (userRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Set up a new password for the user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {CredentialRepresentation} credentialRepresentation The representation must contain a rawPassword with the plain-text password - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdResetPasswordPut: async (realm: string, id: string, credentialRepresentation: CredentialRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdResetPasswordPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdResetPasswordPut.'); - } - // verify required parameter 'credentialRepresentation' is not null or undefined - if (credentialRepresentation === null || credentialRepresentation === undefined) { - throw new RequiredError('credentialRepresentation','Required parameter credentialRepresentation was null or undefined when calling realmUsersIdResetPasswordPut.'); - } - const localVarPath = `/{realm}/users/{id}/reset-password` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof credentialRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(credentialRepresentation !== undefined ? credentialRepresentation : {}) : (credentialRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Send an email-verification email to the user An email contains a link the user can click to verify their email address. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [clientId] Client id - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdSendVerifyEmailPut: async (realm: string, id: string, clientId?: string, redirectUri?: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdSendVerifyEmailPut.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdSendVerifyEmailPut.'); - } - const localVarPath = `/{realm}/users/{id}/send-verify-email` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - if (clientId !== undefined) { - localVarQueryParameter['client_id'] = clientId; - } - - if (redirectUri !== undefined) { - localVarQueryParameter['redirect_uri'] = redirectUri; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Get sessions associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdSessionsGet: async (realm: string, id: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersIdSessionsGet.'); - } - // verify required parameter 'id' is not null or undefined - if (id === null || id === undefined) { - throw new RequiredError('id','Required parameter id was null or undefined when calling realmUsersIdSessionsGet.'); - } - const localVarPath = `/{realm}/users/{id}/sessions` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))) - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @summary Create a new user Username must be unique. - * @param {string} realm realm name (not id!) - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersPost: async (realm: string, userRepresentation: UserRepresentation, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersPost.'); - } - // verify required parameter 'userRepresentation' is not null or undefined - if (userRepresentation === null || userRepresentation === undefined) { - throw new RequiredError('userRepresentation','Required parameter userRepresentation was null or undefined when calling realmUsersPost.'); - } - const localVarPath = `/{realm}/users` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof userRepresentation !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(userRepresentation !== undefined ? userRepresentation : {}) : (userRepresentation || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersProfileGet: async (realm: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersProfileGet.'); - } - const localVarPath = `/{realm}/users/profile` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersProfilePut: async (realm: string, body: string, options: any = {}): Promise => { - // verify required parameter 'realm' is not null or undefined - if (realm === null || realm === undefined) { - throw new RequiredError('realm','Required parameter realm was null or undefined when calling realmUsersProfilePut.'); - } - // verify required parameter 'body' is not null or undefined - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling realmUsersProfilePut.'); - } - const localVarPath = `/{realm}/users/profile` - .replace(`{${"realm"}}`, encodeURIComponent(String(realm))); - const localVarUrlObj = globalImportUrl.parse(localVarPath, true); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - // authentication access_token required - // http bearer authentication required - if (configuration && configuration.accessToken) { - const accessToken = typeof configuration.accessToken === 'function' - ? configuration.accessToken() - : configuration.accessToken; - localVarHeaderParameter["Authorization"] = "Bearer " + accessToken; - } - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query}; - // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943 - delete localVarUrlObj.search; - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; - localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); - - return { - url: globalImportUrl.format(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - } -}; - -/** - * UsersApi - functional programming interface - * @export - */ -export const UsersApiFp = function(configuration?: Configuration) { - return { - /** - * - * @summary Returns the number of users that match the given criteria. - * @param {string} realm realm name (not id!) - * @param {string} [email] email filter - * @param {boolean} [emailVerified] - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {string} [firstName] first name filter - * @param {string} [lastName] last name filter - * @param {string} [search] arbitrary search string for all the fields below - * @param {string} [username] username filter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersCountGet(realm: string, email?: string, emailVerified?: boolean, enabled?: boolean, firstName?: string, lastName?: string, search?: string, username?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersCountGet(realm, email, emailVerified, enabled, firstName, lastName, search, username, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] Boolean which defines whether brief representations are returned (default: false) - * @param {string} [email] A String contained in email, or the complete email, if param \"exact\" is true - * @param {boolean} [emailVerified] whether the email has been verified - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {boolean} [exact] Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly - * @param {number} [first] Pagination offset - * @param {string} [firstName] A String contained in firstName, or the complete firstName, if param \"exact\" is true - * @param {string} [idpAlias] The alias of an Identity Provider linked to the user - * @param {string} [idpUserId] The userId at an Identity Provider linked to the user - * @param {string} [lastName] A String contained in lastName, or the complete lastName, if param \"exact\" is true - * @param {number} [max] Maximum results size (defaults to 100) - * @param {string} [q] A query to search for custom attributes, in the format \'key1:value2 key2:value2\' - * @param {string} [search] A String contained in username, first or last name, or email - * @param {string} [username] A String contained in username, or the complete username, if param \"exact\" is true - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersGet(realm: string, briefRepresentation?: boolean, email?: string, emailVerified?: boolean, enabled?: boolean, exact?: boolean, first?: number, firstName?: string, idpAlias?: string, idpUserId?: string, lastName?: string, max?: number, q?: string, search?: string, username?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersGet(realm, briefRepresentation, email, emailVerified, enabled, exact, first, firstName, idpAlias, idpUserId, lastName, max, q, search, username, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Return credential types, which are provided by the user storage where user is stored. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdConfiguredUserStorageCredentialTypesGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdConfiguredUserStorageCredentialTypesGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Revoke consent and offline tokens for particular client from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client Client id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdConsentsClientDelete(realm: string, id: string, client: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdConsentsClientDelete(realm, id, client, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get consents granted by the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdConsentsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdConsentsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove a credential for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdCredentialsCredentialIdDelete(realm: string, id: string, credentialId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdCredentialsCredentialIdDelete(realm, id, credentialId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Move a credential to a position behind another credential - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {string} newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(realm: string, id: string, credentialId: string, newPreviousCredentialId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(realm, id, credentialId, newPreviousCredentialId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Move a credential to a first position in the credentials list of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdCredentialsCredentialIdMoveToFirstPost(realm: string, id: string, credentialId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdCredentialsCredentialIdMoveToFirstPost(realm, id, credentialId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update a credential label for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdCredentialsCredentialIdUserLabelPut(realm: string, id: string, credentialId: string, body: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdCredentialsCredentialIdUserLabelPut(realm, id, credentialId, body, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdCredentialsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdCredentialsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Delete the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdDelete(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdDelete(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Disable all credentials for a user of a specific type - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdDisableCredentialTypesPut(realm: string, id: string, requestBody: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdDisableCredentialTypesPut(realm, id, requestBody, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Send a update account email to the user An email contains a link the user can click to perform a set of required actions. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody required actions the user needs to complete - * @param {string} [clientId] Client id - * @param {number} [lifespan] Number of seconds after which the generated token expires - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdExecuteActionsEmailPut(realm: string, id: string, requestBody: Array, clientId?: string, lifespan?: number, redirectUri?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdExecuteActionsEmailPut(realm, id, requestBody, clientId, lifespan, redirectUri, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get social logins associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdFederatedIdentityGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdFederatedIdentityGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove a social login provider from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdFederatedIdentityProviderDelete(realm: string, id: string, provider: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdFederatedIdentityProviderDelete(realm, id, provider, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Add a social login provider to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {FederatedIdentityRepresentation} federatedIdentityRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdFederatedIdentityProviderPost(realm: string, id: string, provider: string, federatedIdentityRepresentation: FederatedIdentityRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdFederatedIdentityProviderPost(realm, id, provider, federatedIdentityRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get representation of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdGroupsCountGet(realm: string, id: string, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdGroupsCountGet(realm, id, search, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdGroupsGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdGroupsGet(realm, id, briefRepresentation, first, max, search, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdGroupsGroupIdDelete(realm: string, id: string, groupId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdGroupsGroupIdDelete(realm, id, groupId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdGroupsGroupIdPut(realm: string, id: string, groupId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdGroupsGroupIdPut(realm, id, groupId, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Impersonate the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdImpersonationPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdImpersonationPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdLogoutPost(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdLogoutPost(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get offline sessions associated with the user and client - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdOfflineSessionsClientUuidGet(realm: string, id: string, clientUuid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdOfflineSessionsClientUuidGet(realm, id, clientUuid, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Update the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdPut(realm: string, id: string, userRepresentation: UserRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdPut(realm, id, userRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Set up a new password for the user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {CredentialRepresentation} credentialRepresentation The representation must contain a rawPassword with the plain-text password - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdResetPasswordPut(realm: string, id: string, credentialRepresentation: CredentialRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdResetPasswordPut(realm, id, credentialRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Send an email-verification email to the user An email contains a link the user can click to verify their email address. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [clientId] Client id - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdSendVerifyEmailPut(realm: string, id: string, clientId?: string, redirectUri?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdSendVerifyEmailPut(realm, id, clientId, redirectUri, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Get sessions associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersIdSessionsGet(realm: string, id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersIdSessionsGet(realm, id, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @summary Create a new user Username must be unique. - * @param {string} realm realm name (not id!) - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersPost(realm: string, userRepresentation: UserRepresentation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersPost(realm, userRepresentation, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersProfileGet(realm: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersProfileGet(realm, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async realmUsersProfilePut(realm: string, body: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await UsersApiAxiosParamCreator(configuration).realmUsersProfilePut(realm, body, options); - return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; - return axios.request(axiosRequestArgs); - }; - }, - } -}; - -/** - * UsersApi - factory interface - * @export - */ -export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { - return { - /** - * - * @summary Returns the number of users that match the given criteria. - * @param {string} realm realm name (not id!) - * @param {string} [email] email filter - * @param {boolean} [emailVerified] - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {string} [firstName] first name filter - * @param {string} [lastName] last name filter - * @param {string} [search] arbitrary search string for all the fields below - * @param {string} [username] username filter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersCountGet(realm: string, email?: string, emailVerified?: boolean, enabled?: boolean, firstName?: string, lastName?: string, search?: string, username?: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersCountGet(realm, email, emailVerified, enabled, firstName, lastName, search, username, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] Boolean which defines whether brief representations are returned (default: false) - * @param {string} [email] A String contained in email, or the complete email, if param \"exact\" is true - * @param {boolean} [emailVerified] whether the email has been verified - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {boolean} [exact] Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly - * @param {number} [first] Pagination offset - * @param {string} [firstName] A String contained in firstName, or the complete firstName, if param \"exact\" is true - * @param {string} [idpAlias] The alias of an Identity Provider linked to the user - * @param {string} [idpUserId] The userId at an Identity Provider linked to the user - * @param {string} [lastName] A String contained in lastName, or the complete lastName, if param \"exact\" is true - * @param {number} [max] Maximum results size (defaults to 100) - * @param {string} [q] A query to search for custom attributes, in the format \'key1:value2 key2:value2\' - * @param {string} [search] A String contained in username, first or last name, or email - * @param {string} [username] A String contained in username, or the complete username, if param \"exact\" is true - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersGet(realm: string, briefRepresentation?: boolean, email?: string, emailVerified?: boolean, enabled?: boolean, exact?: boolean, first?: number, firstName?: string, idpAlias?: string, idpUserId?: string, lastName?: string, max?: number, q?: string, search?: string, username?: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersGet(realm, briefRepresentation, email, emailVerified, enabled, exact, first, firstName, idpAlias, idpUserId, lastName, max, q, search, username, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Return credential types, which are provided by the user storage where user is stored. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdConfiguredUserStorageCredentialTypesGet(realm: string, id: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdConfiguredUserStorageCredentialTypesGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Revoke consent and offline tokens for particular client from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client Client id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdConsentsClientDelete(realm: string, id: string, client: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdConsentsClientDelete(realm, id, client, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get consents granted by the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdConsentsGet(realm: string, id: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdConsentsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove a credential for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdDelete(realm: string, id: string, credentialId: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdCredentialsCredentialIdDelete(realm, id, credentialId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Move a credential to a position behind another credential - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {string} newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(realm: string, id: string, credentialId: string, newPreviousCredentialId: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(realm, id, credentialId, newPreviousCredentialId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Move a credential to a first position in the credentials list of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdMoveToFirstPost(realm: string, id: string, credentialId: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdCredentialsCredentialIdMoveToFirstPost(realm, id, credentialId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update a credential label for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsCredentialIdUserLabelPut(realm: string, id: string, credentialId: string, body: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdCredentialsCredentialIdUserLabelPut(realm, id, credentialId, body, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdCredentialsGet(realm: string, id: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdCredentialsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Delete the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdDelete(realm: string, id: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdDelete(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Disable all credentials for a user of a specific type - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdDisableCredentialTypesPut(realm: string, id: string, requestBody: Array, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdDisableCredentialTypesPut(realm, id, requestBody, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Send a update account email to the user An email contains a link the user can click to perform a set of required actions. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody required actions the user needs to complete - * @param {string} [clientId] Client id - * @param {number} [lifespan] Number of seconds after which the generated token expires - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdExecuteActionsEmailPut(realm: string, id: string, requestBody: Array, clientId?: string, lifespan?: number, redirectUri?: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdExecuteActionsEmailPut(realm, id, requestBody, clientId, lifespan, redirectUri, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get social logins associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdFederatedIdentityGet(realm: string, id: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdFederatedIdentityGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove a social login provider from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdFederatedIdentityProviderDelete(realm: string, id: string, provider: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdFederatedIdentityProviderDelete(realm, id, provider, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Add a social login provider to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {FederatedIdentityRepresentation} federatedIdentityRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdFederatedIdentityProviderPost(realm: string, id: string, provider: string, federatedIdentityRepresentation: FederatedIdentityRepresentation, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdFederatedIdentityProviderPost(realm, id, provider, federatedIdentityRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get representation of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGet(realm: string, id: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsCountGet(realm: string, id: string, search?: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return UsersApiFp(configuration).realmUsersIdGroupsCountGet(realm, id, search, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdGroupsGet(realm, id, briefRepresentation, first, max, search, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsGroupIdDelete(realm: string, id: string, groupId: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdGroupsGroupIdDelete(realm, id, groupId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdGroupsGroupIdPut(realm: string, id: string, groupId: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdGroupsGroupIdPut(realm, id, groupId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Impersonate the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdImpersonationPost(realm: string, id: string, options?: any): AxiosPromise<{ [key: string]: object; }> { - return UsersApiFp(configuration).realmUsersIdImpersonationPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdLogoutPost(realm: string, id: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdLogoutPost(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get offline sessions associated with the user and client - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdOfflineSessionsClientUuidGet(realm: string, id: string, clientUuid: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdOfflineSessionsClientUuidGet(realm, id, clientUuid, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Update the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdPut(realm: string, id: string, userRepresentation: UserRepresentation, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdPut(realm, id, userRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Set up a new password for the user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {CredentialRepresentation} credentialRepresentation The representation must contain a rawPassword with the plain-text password - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdResetPasswordPut(realm: string, id: string, credentialRepresentation: CredentialRepresentation, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdResetPasswordPut(realm, id, credentialRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Send an email-verification email to the user An email contains a link the user can click to verify their email address. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [clientId] Client id - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdSendVerifyEmailPut(realm: string, id: string, clientId?: string, redirectUri?: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersIdSendVerifyEmailPut(realm, id, clientId, redirectUri, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Get sessions associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersIdSessionsGet(realm: string, id: string, options?: any): AxiosPromise> { - return UsersApiFp(configuration).realmUsersIdSessionsGet(realm, id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @summary Create a new user Username must be unique. - * @param {string} realm realm name (not id!) - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersPost(realm: string, userRepresentation: UserRepresentation, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersPost(realm, userRepresentation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersProfileGet(realm: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersProfileGet(realm, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - realmUsersProfilePut(realm: string, body: string, options?: any): AxiosPromise { - return UsersApiFp(configuration).realmUsersProfilePut(realm, body, options).then((request) => request(axios, basePath)); - }, - }; -}; - -/** - * UsersApi - object-oriented interface - * @export - * @class UsersApi - * @extends {BaseAPI} - */ -export class UsersApi extends BaseAPI { - /** - * - * @summary Returns the number of users that match the given criteria. - * @param {string} realm realm name (not id!) - * @param {string} [email] email filter - * @param {boolean} [emailVerified] - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {string} [firstName] first name filter - * @param {string} [lastName] last name filter - * @param {string} [search] arbitrary search string for all the fields below - * @param {string} [username] username filter - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersCountGet(realm: string, email?: string, emailVerified?: boolean, enabled?: boolean, firstName?: string, lastName?: string, search?: string, username?: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersCountGet(realm, email, emailVerified, enabled, firstName, lastName, search, username, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get users Returns a stream of users, filtered according to query parameters. - * @param {string} realm realm name (not id!) - * @param {boolean} [briefRepresentation] Boolean which defines whether brief representations are returned (default: false) - * @param {string} [email] A String contained in email, or the complete email, if param \"exact\" is true - * @param {boolean} [emailVerified] whether the email has been verified - * @param {boolean} [enabled] Boolean representing if user is enabled or not - * @param {boolean} [exact] Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly - * @param {number} [first] Pagination offset - * @param {string} [firstName] A String contained in firstName, or the complete firstName, if param \"exact\" is true - * @param {string} [idpAlias] The alias of an Identity Provider linked to the user - * @param {string} [idpUserId] The userId at an Identity Provider linked to the user - * @param {string} [lastName] A String contained in lastName, or the complete lastName, if param \"exact\" is true - * @param {number} [max] Maximum results size (defaults to 100) - * @param {string} [q] A query to search for custom attributes, in the format \'key1:value2 key2:value2\' - * @param {string} [search] A String contained in username, first or last name, or email - * @param {string} [username] A String contained in username, or the complete username, if param \"exact\" is true - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersGet(realm: string, briefRepresentation?: boolean, email?: string, emailVerified?: boolean, enabled?: boolean, exact?: boolean, first?: number, firstName?: string, idpAlias?: string, idpUserId?: string, lastName?: string, max?: number, q?: string, search?: string, username?: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersGet(realm, briefRepresentation, email, emailVerified, enabled, exact, first, firstName, idpAlias, idpUserId, lastName, max, q, search, username, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Return credential types, which are provided by the user storage where user is stored. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdConfiguredUserStorageCredentialTypesGet(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdConfiguredUserStorageCredentialTypesGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Revoke consent and offline tokens for particular client from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} client Client id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdConsentsClientDelete(realm: string, id: string, client: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdConsentsClientDelete(realm, id, client, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get consents granted by the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdConsentsGet(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdConsentsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove a credential for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdCredentialsCredentialIdDelete(realm: string, id: string, credentialId: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdCredentialsCredentialIdDelete(realm, id, credentialId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Move a credential to a position behind another credential - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {string} newPreviousCredentialId The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(realm: string, id: string, credentialId: string, newPreviousCredentialId: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdCredentialsCredentialIdMoveAfterNewPreviousCredentialIdPost(realm, id, credentialId, newPreviousCredentialId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Move a credential to a first position in the credentials list of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId The credential to move - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdCredentialsCredentialIdMoveToFirstPost(realm: string, id: string, credentialId: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdCredentialsCredentialIdMoveToFirstPost(realm, id, credentialId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update a credential label for a user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} credentialId - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdCredentialsCredentialIdUserLabelPut(realm: string, id: string, credentialId: string, body: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdCredentialsCredentialIdUserLabelPut(realm, id, credentialId, body, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdCredentialsGet(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdCredentialsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Delete the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdDelete(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdDelete(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Disable all credentials for a user of a specific type - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdDisableCredentialTypesPut(realm: string, id: string, requestBody: Array, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdDisableCredentialTypesPut(realm, id, requestBody, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Send a update account email to the user An email contains a link the user can click to perform a set of required actions. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {Array} requestBody required actions the user needs to complete - * @param {string} [clientId] Client id - * @param {number} [lifespan] Number of seconds after which the generated token expires - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdExecuteActionsEmailPut(realm: string, id: string, requestBody: Array, clientId?: string, lifespan?: number, redirectUri?: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdExecuteActionsEmailPut(realm, id, requestBody, clientId, lifespan, redirectUri, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get social logins associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdFederatedIdentityGet(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdFederatedIdentityGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove a social login provider from user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdFederatedIdentityProviderDelete(realm: string, id: string, provider: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdFederatedIdentityProviderDelete(realm, id, provider, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Add a social login provider to the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} provider Social login provider id - * @param {FederatedIdentityRepresentation} federatedIdentityRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdFederatedIdentityProviderPost(realm: string, id: string, provider: string, federatedIdentityRepresentation: FederatedIdentityRepresentation, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdFederatedIdentityProviderPost(realm, id, provider, federatedIdentityRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get representation of the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdGet(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdGroupsCountGet(realm: string, id: string, search?: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdGroupsCountGet(realm, id, search, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {boolean} [briefRepresentation] - * @param {number} [first] - * @param {number} [max] - * @param {string} [search] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdGroupsGet(realm: string, id: string, briefRepresentation?: boolean, first?: number, max?: number, search?: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdGroupsGet(realm, id, briefRepresentation, first, max, search, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdGroupsGroupIdDelete(realm: string, id: string, groupId: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdGroupsGroupIdDelete(realm, id, groupId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} groupId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdGroupsGroupIdPut(realm: string, id: string, groupId: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdGroupsGroupIdPut(realm, id, groupId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Impersonate the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdImpersonationPost(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdImpersonationPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdLogoutPost(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdLogoutPost(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get offline sessions associated with the user and client - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} clientUuid - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdOfflineSessionsClientUuidGet(realm: string, id: string, clientUuid: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdOfflineSessionsClientUuidGet(realm, id, clientUuid, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Update the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdPut(realm: string, id: string, userRepresentation: UserRepresentation, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdPut(realm, id, userRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Set up a new password for the user. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {CredentialRepresentation} credentialRepresentation The representation must contain a rawPassword with the plain-text password - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdResetPasswordPut(realm: string, id: string, credentialRepresentation: CredentialRepresentation, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdResetPasswordPut(realm, id, credentialRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Send an email-verification email to the user An email contains a link the user can click to verify their email address. - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {string} [clientId] Client id - * @param {string} [redirectUri] Redirect uri - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdSendVerifyEmailPut(realm: string, id: string, clientId?: string, redirectUri?: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdSendVerifyEmailPut(realm, id, clientId, redirectUri, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Get sessions associated with the user - * @param {string} realm realm name (not id!) - * @param {string} id User id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersIdSessionsGet(realm: string, id: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersIdSessionsGet(realm, id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @summary Create a new user Username must be unique. - * @param {string} realm realm name (not id!) - * @param {UserRepresentation} userRepresentation - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersPost(realm: string, userRepresentation: UserRepresentation, options?: any) { - return UsersApiFp(this.configuration).realmUsersPost(realm, userRepresentation, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersProfileGet(realm: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersProfileGet(realm, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} realm realm name (not id!) - * @param {string} body - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof UsersApi - */ - public realmUsersProfilePut(realm: string, body: string, options?: any) { - return UsersApiFp(this.configuration).realmUsersProfilePut(realm, body, options).then((request) => request(this.axios, this.basePath)); - } - -} - - diff --git a/backend/keycloak/kc-client/base.ts b/backend/keycloak/kc-client/base.ts deleted file mode 100644 index 3c45359..0000000 --- a/backend/keycloak/kc-client/base.ts +++ /dev/null @@ -1,70 +0,0 @@ -// tslint: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 { Configuration } from "./configuration"; -// Some imports not used depending on template conditions -// @ts-ignore -import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; - -export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); - -/** - * - * @export - */ -export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", -}; - -/** - * - * @export - * @interface RequestArgs - */ -export interface RequestArgs { - url: string; - options: any; -} - -/** - * - * @export - * @class BaseAPI - */ -export class BaseAPI { - protected configuration: Configuration | undefined; - - constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { - if (configuration) { - this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; - } - } -}; - -/** - * - * @export - * @class RequiredError - * @extends {Error} - */ -export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; - constructor(public field: string, msg?: string) { - super(msg); - } -} diff --git a/backend/keycloak/kc-client/configuration.ts b/backend/keycloak/kc-client/configuration.ts deleted file mode 100644 index b6dc8ab..0000000 --- a/backend/keycloak/kc-client/configuration.ts +++ /dev/null @@ -1,75 +0,0 @@ -// tslint: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 interface ConfigurationParameters { - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - username?: string; - password?: string; - accessToken?: string | ((name?: string, scopes?: string[]) => string); - basePath?: string; - baseOptions?: any; -} - -export class Configuration { - /** - * parameter for apiKey security - * @param name security name - * @memberof Configuration - */ - apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - username?: string; - /** - * parameter for basic security - * - * @type {string} - * @memberof Configuration - */ - password?: string; - /** - * parameter for oauth2 security - * @param name security name - * @param scopes oauth2 scope - * @memberof Configuration - */ - accessToken?: string | ((name?: string, scopes?: string[]) => string); - /** - * override base path - * - * @type {string} - * @memberof Configuration - */ - basePath?: string; - /** - * base options for axios calls - * - * @type {any} - * @memberof Configuration - */ - baseOptions?: any; - - constructor(param: ConfigurationParameters = {}) { - this.apiKey = param.apiKey; - this.username = param.username; - this.password = param.password; - this.accessToken = param.accessToken; - this.basePath = param.basePath; - this.baseOptions = param.baseOptions; - } -} diff --git a/backend/keycloak/kc-client/git_push.sh b/backend/keycloak/kc-client/git_push.sh deleted file mode 100644 index ced3be2..0000000 --- a/backend/keycloak/kc-client/git_push.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/backend/keycloak/kc-client/index.ts b/backend/keycloak/kc-client/index.ts deleted file mode 100644 index 93d5e82..0000000 --- a/backend/keycloak/kc-client/index.ts +++ /dev/null @@ -1,16 +0,0 @@ -// tslint: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 * from "./api"; -export * from "./configuration"; diff --git a/backend/keycloak/openapi.specs.json b/backend/keycloak/openapi.specs.json deleted file mode 100644 index 5d4cefc..0000000 --- a/backend/keycloak/openapi.specs.json +++ /dev/null @@ -1,14214 +0,0 @@ -{ - "openapi": "3.0.2", - "info": { - "title": "Keycloak Admin REST API", - "description": "This is a REST API reference for the Keycloak Admin", - "version": "1" - }, - "paths": { - "/": { - "get": { - "tags": [ - "Root" - ], - "summary": "Get themes, social providers, auth providers, and event listeners available on this server", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ServerInfoRepresentation" - } - } - } - } - } - }, - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Import a realm Imports a realm from a full representation of that realm.", - "requestBody": { - "description": "JSON representation of the realm", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RealmRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - } - }, - "/{id}/name": { - "get": { - "tags": [ - "User Storage Provider" - ], - "summary": "Need this for admin console to display simple name of provider when displaying client detail KEYCLOAK-4328", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get the top-level representation of the realm It will not include nested information like User and Client representations.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RealmRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Realms Admin" - ], - "summary": "Update the top-level information of the realm Any user, roles or client information in the representation will be ignored.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RealmRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "summary": "Delete the realm", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/admin-events": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get admin events Returns all admin events, or filters events based on URL query parameters listed here", - "parameters": [ - { - "in": "query", - "name": "authClient", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "authIpAddress", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "authRealm", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "authUser", - "description": "user id", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "dateFrom", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "dateTo", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "Maximum results size (defaults to 100)", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "operationTypes", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form" - }, - { - "in": "query", - "name": "resourcePath", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "resourceTypes", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "summary": "Delete all admin events", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/attack-detection/brute-force/users": { - "delete": { - "tags": [ - "Attack Detection" - ], - "summary": "Clear any user login failures for all users This can release temporary disabled users", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/attack-detection/brute-force/users/{userId}": { - "get": { - "tags": [ - "Attack Detection" - ], - "summary": "Get status of a username in brute force detection", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "delete": { - "tags": [ - "Attack Detection" - ], - "summary": "Clear any user login failures for the user This can release temporary disabled user", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "userId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/authenticator-providers": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get authenticator providers Returns a stream of authenticator providers.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/client-authenticator-providers": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get client authenticator providers Returns a stream of client authenticator providers.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/config-description/{providerId}": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get authenticator provider’s configuration description", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticatorConfigInfoRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "providerId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/config/{id}": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get authenticator configuration", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Authentication Management" - ], - "summary": "Update authenticator configuration", - "requestBody": { - "description": "JSON describing new state of authenticator configuration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Authentication Management" - ], - "summary": "Delete authenticator configuration", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "Configuration id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/executions": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Add new authentication execution", - "requestBody": { - "description": "JSON model describing authentication execution", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationExecutionRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/executions/{executionId}": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get Single Execution", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Authentication Management" - ], - "summary": "Delete execution", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "executionId", - "description": "Execution id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/executions/{executionId}/config": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Update execution with new configuration", - "requestBody": { - "description": "JSON with new configuration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "executionId", - "description": "Execution id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/executions/{executionId}/lower-priority": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Lower execution’s priority", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "executionId", - "description": "Execution id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/executions/{executionId}/raise-priority": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Raise execution’s priority", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "executionId", - "description": "Execution id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/flows": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get authentication flows Returns a stream of authentication flows.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Create a new authentication flow", - "requestBody": { - "description": "Authentication flow representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/flows/{flowAlias}/copy": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object", - "requestBody": { - "description": "JSON containing 'newName' attribute", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "flowAlias", - "description": "Name of the existing authentication flow", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/flows/{flowAlias}/executions": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get authentication executions for a flow", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "put": { - "tags": [ - "Authentication Management" - ], - "summary": "Update authentication executions of a Flow", - "requestBody": { - "description": "AuthenticationExecutionInfoRepresentation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationExecutionInfoRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "flowAlias", - "description": "Flow alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/flows/{flowAlias}/executions/execution": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Add new authentication execution to a flow", - "requestBody": { - "description": "New execution JSON data containing 'provider' attribute", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "flowAlias", - "description": "Alias of parent flow", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/flows/{flowAlias}/executions/flow": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Add new flow with new execution to existing flow", - "requestBody": { - "description": "New authentication flow / execution JSON data containing 'alias', 'type', 'provider', and 'description' attributes", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "flowAlias", - "description": "Alias of parent authentication flow", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/flows/{id}": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get authentication flow for id", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Authentication Management" - ], - "summary": "Update an authentication flow", - "requestBody": { - "description": "Authentication flow representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Authentication Management" - ], - "summary": "Delete an authentication flow", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "Flow id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/form-action-providers": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get form action providers Returns a stream of form action providers.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/form-providers": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get form providers Returns a stream of form providers.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/per-client-config-description": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get configuration descriptions for all clients", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/register-required-action": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Register a new required actions", - "requestBody": { - "description": "JSON containing 'providerId', and 'name' attributes.", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/required-actions": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get required actions Returns a stream of required actions.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/required-actions/{alias}": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get required action for alias", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RequiredActionProviderRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Authentication Management" - ], - "summary": "Update required action", - "requestBody": { - "description": "JSON describing new state of required action", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RequiredActionProviderRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Authentication Management" - ], - "summary": "Delete required action", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "description": "Alias of required action", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/required-actions/{alias}/lower-priority": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Lower required action’s priority", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "description": "Alias of required action", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/required-actions/{alias}/raise-priority": { - "post": { - "tags": [ - "Authentication Management" - ], - "summary": "Raise required action’s priority", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "description": "Alias of required action", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/authentication/unregistered-required-actions": { - "get": { - "tags": [ - "Authentication Management" - ], - "summary": "Get unregistered required actions Returns a stream of unregistered required actions.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clear-keys-cache": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Clear cache of external public keys (Public keys of clients or Identity providers)", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clear-realm-cache": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Clear realm cache", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clear-user-cache": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Clear user cache", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-description-converter": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Base path for importing clients under this realm.", - "requestBody": { - "content": { - "text/plain": { - "schema": { - "type": "string" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-policies/policies": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientPoliciesRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Realms Admin" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientPoliciesRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-policies/profiles": { - "get": { - "tags": [ - "Realms Admin" - ], - "parameters": [ - { - "in": "query", - "name": "include-global-profiles", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientProfilesRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Realms Admin" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientProfilesRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-registration-policy/providers": { - "get": { - "tags": [ - "Client Registration Policy" - ], - "summary": "Base path for retrieve providers with the configProperties properly filled", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes": { - "get": { - "tags": [ - "Client Scopes" - ], - "summary": "Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Client Scopes" - ], - "summary": "Create a new client scope Client Scope’s name must be unique!", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientScopeRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}": { - "get": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Get mapper by id", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Update the mapper", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Delete the mapper", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id1", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id2", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}": { - "get": { - "tags": [ - "Client Scopes" - ], - "summary": "Get representation of the client scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientScopeRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Client Scopes" - ], - "summary": "Update the client scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientScopeRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Client Scopes" - ], - "summary": "Delete the client scope", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/protocol-mappers/add-models": { - "post": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Create multiple mappers", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/protocol-mappers/models": { - "get": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Get mappers", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Create a mapper", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}": { - "get": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Get mappers by name for a specific protocol", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "protocol", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/scope-mappings/clients/{client}": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get the roles associated with a client’s scope Returns roles for the client.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Scope Mappings" - ], - "summary": "Add client-level roles to the client’s scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Scope Mappings" - ], - "summary": "Remove client-level roles from the client’s scope.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "The available client-level roles Returns the roles for the client that can be associated with the client’s scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get effective client roles Returns the roles for the client that are associated with the client’s scope.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/scope-mappings/realm": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get realm-level roles associated with the client’s scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Scope Mappings" - ], - "summary": "Add a set of realm-level roles to the client’s scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Scope Mappings" - ], - "summary": "Remove a set of realm-level roles from the client’s scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/scope-mappings/realm/available": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get realm-level roles that are available to attach to this client’s scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-scopes/{id}/scope-mappings/realm/composite": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client scope (not name)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/client-session-stats": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get client session stats Returns a JSON map.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get clients belonging to the realm.", - "parameters": [ - { - "in": "query", - "name": "clientId", - "description": "filter by clientId", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "description": "the first result", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "the max results to return", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "q", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "description": "whether this is a search query or a getClientById query", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "viewableOnly", - "description": "filter clients that cannot be viewed in full by admin", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Clients" - ], - "summary": "Create a new client Client’s client_id must be unique!", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients-initial-access": { - "get": { - "tags": [ - "Client Initial Access" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Client Initial Access" - ], - "summary": "Create a new initial access token.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientInitialAccessCreatePresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientInitialAccessPresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients-initial-access/{id}": { - "delete": { - "tags": [ - "Client Initial Access" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id1}/protocol-mappers/models/{id2}": { - "get": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Get mapper by id", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Update the mapper", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Delete the mapper", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id1", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id2", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get representation of the client", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Clients" - ], - "summary": "Update the client", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Clients" - ], - "summary": "Delete the client", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/certificates/{attr}": { - "get": { - "tags": [ - "Client Attribute Certificate" - ], - "summary": "Get key info", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CertificateRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "attr", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/certificates/{attr}/download": { - "post": { - "tags": [ - "Client Attribute Certificate" - ], - "summary": "Get a keystore file for the client, containing private key and public certificate", - "requestBody": { - "description": "Keystore configuration as JSON", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/KeyStoreConfig" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "byte" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "attr", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/certificates/{attr}/generate": { - "post": { - "tags": [ - "Client Attribute Certificate" - ], - "summary": "Generate a new certificate with new key pair", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CertificateRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "attr", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/certificates/{attr}/generate-and-download": { - "post": { - "tags": [ - "Client Attribute Certificate" - ], - "summary": "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.", - "requestBody": { - "description": "Keystore configuration as JSON", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/KeyStoreConfig" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/octet-stream": { - "schema": { - "type": "string", - "format": "byte" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "attr", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/certificates/{attr}/upload": { - "post": { - "tags": [ - "Client Attribute Certificate" - ], - "summary": "Upload certificate and eventually private key", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CertificateRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "attr", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/certificates/{attr}/upload-certificate": { - "post": { - "tags": [ - "Client Attribute Certificate" - ], - "summary": "Upload only certificate, not private key", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CertificateRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "attr", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/client-secret": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get the client secret", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CredentialRepresentation" - } - } - } - } - } - }, - "post": { - "tags": [ - "Clients" - ], - "summary": "Generate a new secret for the client", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CredentialRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/client-secret/rotated": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get the rotated client secret", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CredentialRepresentation" - } - } - } - } - } - }, - "delete": { - "tags": [ - "Clients" - ], - "summary": "Invalidate the rotated secret for the client", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/default-client-scopes": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get default client scopes.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/default-client-scopes/{clientScopeId}": { - "put": { - "tags": [ - "Clients" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Clients" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientScopeId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Create JSON with payload of example access token", - "parameters": [ - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "userId", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AccessToken" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/evaluate-scopes/generate-example-id-token": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Create JSON with payload of example id token", - "parameters": [ - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "userId", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IDToken" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/evaluate-scopes/generate-example-userinfo": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Create JSON with payload of example user info", - "parameters": [ - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "userId", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/evaluate-scopes/protocol-mappers": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Return list of all protocol mappers, which will be used when generating tokens issued for particular client.", - "parameters": [ - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get effective scope mapping of all roles of particular role container, which this client is defacto allowed to have in the accessToken issued for him.", - "parameters": [ - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "roleContainerId", - "description": "either realm name OR client UUID", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get roles, which this client doesn’t have scope for and can’t have them in the accessToken issued for him.", - "parameters": [ - { - "in": "query", - "name": "scope", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "roleContainerId", - "description": "either realm name OR client UUID", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/installation/providers/{providerId}": { - "get": { - "tags": [ - "Clients" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "providerId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/management/permissions": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Clients" - ], - "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/nodes": { - "post": { - "tags": [ - "Clients" - ], - "summary": "Register a cluster node with the client Manually register cluster node to this client - usually it’s not needed to call this directly as adapter should handle by sending registration request to Keycloak", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/nodes/{node}": { - "delete": { - "tags": [ - "Clients" - ], - "summary": "Unregister a cluster node from the client", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "node", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/offline-session-count": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get application offline session count Returns a number of offline user sessions associated with this client { \"count\": number }", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/offline-sessions": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get offline sessions for client Returns a list of offline user sessions associated with this client", - "parameters": [ - { - "in": "query", - "name": "first", - "description": "Paging offset", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "Maximum results size (defaults to 100)", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/optional-client-scopes": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get optional client scopes.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}": { - "put": { - "tags": [ - "Clients" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Clients" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientScopeId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/protocol-mappers/add-models": { - "post": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Create multiple mappers", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/protocol-mappers/models": { - "get": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Get mappers", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Create a mapper", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}": { - "get": { - "tags": [ - "Protocol Mappers" - ], - "summary": "Get mappers by name for a specific protocol", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "protocol", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/push-revocation": { - "post": { - "tags": [ - "Clients" - ], - "summary": "Push the client’s revocation policy to its admin URL If the client has an admin URL, push revocation policy to it.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GlobalRequestResult" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/registration-access-token": { - "post": { - "tags": [ - "Clients" - ], - "summary": "Generate a new registration access token for the client", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ClientRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get all roles for the realm or client", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Roles" - ], - "summary": "Create a new role for the realm or client", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get a role by name", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Roles" - ], - "summary": "Update a role by name", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Roles" - ], - "summary": "Delete a role by name", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}/composites": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get composites of the role", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Roles" - ], - "summary": "Add a composite to the role", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Roles" - ], - "summary": "Remove roles from the role’s composite", - "requestBody": { - "description": "roles to remove", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get client-level roles for the client that are in the role’s composite", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientUuid", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}/composites/realm": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get realm-level roles of the role’s composite", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}/groups": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Returns a stream of groups that have the specified role name", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return a full representation of the {@code GroupRepresentation} objects.", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "description": "first result to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "maximum number of results to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "the role name.", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}/management/permissions": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Roles" - ], - "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/roles/{role-name}/users": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Returns a stream of users that have the specified role name.", - "parameters": [ - { - "in": "query", - "name": "first", - "description": "first result to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "maximum number of results to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "the role name.", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/scope-mappings/clients/{client}": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get the roles associated with a client’s scope Returns roles for the client.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Scope Mappings" - ], - "summary": "Add client-level roles to the client’s scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Scope Mappings" - ], - "summary": "Remove client-level roles from the client’s scope.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/scope-mappings/clients/{client}/available": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "The available client-level roles Returns the roles for the client that can be associated with the client’s scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/scope-mappings/clients/{client}/composite": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get effective client roles Returns the roles for the client that are associated with the client’s scope.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/scope-mappings/realm": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get realm-level roles associated with the client’s scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Scope Mappings" - ], - "summary": "Add a set of realm-level roles to the client’s scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Scope Mappings" - ], - "summary": "Remove a set of realm-level roles from the client’s scope", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/scope-mappings/realm/available": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get realm-level roles that are available to attach to this client’s scope", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/scope-mappings/realm/composite": { - "get": { - "tags": [ - "Scope Mappings" - ], - "summary": "Get effective realm-level roles associated with the client’s scope What this does is recurse any composite roles associated with the client’s scope and adds the roles to this lists.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/service-account-user": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get a user dedicated to the service account", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/session-count": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get application session count Returns a number of user sessions associated with this client { \"count\": number }", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/test-nodes-available": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GlobalRequestResult" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/clients/{id}/user-sessions": { - "get": { - "tags": [ - "Clients" - ], - "summary": "Get user sessions for client Returns a list of user sessions associated with this client", - "parameters": [ - { - "in": "query", - "name": "first", - "description": "Paging offset", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "Maximum results size (defaults to 100)", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "id of client (not client-id)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/components": { - "get": { - "tags": [ - "Component" - ], - "parameters": [ - { - "in": "query", - "name": "name", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "parent", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "type", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Component" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ComponentRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/components/{id}": { - "get": { - "tags": [ - "Component" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ComponentRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Component" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ComponentRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Component" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/components/{id}/sub-component-types": { - "get": { - "tags": [ - "Component" - ], - "summary": "List of subcomponent types that are available to configure for a particular parent component.", - "parameters": [ - { - "in": "query", - "name": "type", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/credential-registrators": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/default-default-client-scopes": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get realm default client scopes.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/default-default-client-scopes/{clientScopeId}": { - "put": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientScopeId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/default-groups": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get group hierarchy.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/default-groups/{groupId}": { - "put": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "groupId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/default-optional-client-scopes": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get realm optional client scopes.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/default-optional-client-scopes/{clientScopeId}": { - "put": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientScopeId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/events": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get events Returns all events, or filters them based on URL query parameters listed here", - "parameters": [ - { - "in": "query", - "name": "client", - "description": "App or oauth client name", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "dateFrom", - "description": "From date", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "dateTo", - "description": "To date", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "description": "Paging offset", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "ipAddress", - "description": "IP address", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "Maximum results size (defaults to 100)", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "type", - "description": "The types of events to return", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form" - }, - { - "in": "query", - "name": "user", - "description": "User id", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "summary": "Delete all events", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/events/config": { - "get": { - "tags": [ - "Realms Admin" - ], - "summary": "Get the events provider configuration Returns JSON object with events provider configuration", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RealmEventsConfigRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Realms Admin" - ], - "summary": "Update the events provider Change the events provider and/or its configuration", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RealmEventsConfigRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/group-by-path/{path}": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "path", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups": { - "get": { - "tags": [ - "Groups" - ], - "summary": "Get group hierarchy.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Groups" - ], - "summary": "create or add a top level realm groupSet or create child.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/count": { - "get": { - "tags": [ - "Groups" - ], - "summary": "Returns the groups counts.", - "parameters": [ - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "top", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}": { - "get": { - "tags": [ - "Groups" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Groups" - ], - "summary": "Update group, ignores subgroups.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Groups" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/children": { - "post": { - "tags": [ - "Groups" - ], - "summary": "Set or create child.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GroupRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/management/permissions": { - "get": { - "tags": [ - "Groups" - ], - "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Groups" - ], - "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/members": { - "get": { - "tags": [ - "Groups" - ], - "summary": "Get users Returns a stream of users, filtered according to query parameters", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "Only return basic information (only guaranteed to return id, username, created, first and last name,\n email, enabled state, email verification state, federation link, and access.\n Note that it means that namely user attributes, required actions, and not before are not returned.)", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "description": "Pagination offset", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "Maximum results size (defaults to 100)", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get role mappings", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MappingsRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings/clients/{client}": { - "get": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Get client-level role mappings for the user, and the app", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Add client-level roles to the user role mapping", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Delete client-level roles from user role mapping", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings/clients/{client}/available": { - "get": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Get available client-level roles that can be mapped to the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings/clients/{client}/composite": { - "get": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Get effective client-level role mappings This recurses any composite roles", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings/realm": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get realm-level role mappings", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Role Mapper" - ], - "summary": "Add realm-level role mappings to the user", - "requestBody": { - "description": "Roles to add", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Role Mapper" - ], - "summary": "Delete realm-level role mappings", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings/realm/available": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get realm-level roles that can be mapped", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/groups/{id}/role-mappings/realm/composite": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get effective realm-level role mappings This will recurse all composite roles to get the result.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/import-config": { - "post": { - "tags": [ - "Identity Providers" - ], - "summary": "Import identity provider from uploaded JSON file", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Get identity providers", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Identity Providers" - ], - "summary": "Create a new identity provider", - "requestBody": { - "description": "JSON body", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityProviderRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances/{alias}": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Get the identity provider", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityProviderRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Identity Providers" - ], - "summary": "Update the identity provider", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityProviderRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Identity Providers" - ], - "summary": "Delete the identity provider", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances/{alias}/export": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Export public broker configuration for identity provider", - "parameters": [ - { - "in": "query", - "name": "format", - "description": "Format to use", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances/{alias}/management/permissions": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Identity Providers" - ], - "summary": "Return object stating whether client Authorization permissions have been initialized or not and a reference", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances/{alias}/mapper-types": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Get mapper types for identity provider", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances/{alias}/mappers": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Get mappers for identity provider", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Identity Providers" - ], - "summary": "Add a mapper to identity provider", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/instances/{alias}/mappers/{id}": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Get mapper by id for the identity provider", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Identity Providers" - ], - "summary": "Update a mapper for the identity provider", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Identity Providers" - ], - "summary": "Delete a mapper for the identity provider", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "alias", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "Mapper id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/identity-provider/providers/{provider_id}": { - "get": { - "tags": [ - "Identity Providers" - ], - "summary": "Get identity providers", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "provider_id", - "description": "Provider id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/keys": { - "get": { - "tags": [ - "Key" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/KeysMetadataRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/ldap-server-capabilities": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Get LDAP supported extensions.", - "requestBody": { - "description": "LDAP configuration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TestLdapConnectionRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/localization": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/localization/{locale}": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "post": { - "tags": [ - "Realms Admin" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "locale", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/localization/{locale}/{key}": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "text/plain": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "put": { - "tags": [ - "Realms Admin" - ], - "requestBody": { - "content": { - "text/plain": { - "schema": { - "type": "string" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "locale", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "key", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/logout-all": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Removes all user sessions.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GlobalRequestResult" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/partial-export": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Partial export of existing realm into a JSON file.", - "parameters": [ - { - "in": "query", - "name": "exportClients", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "exportGroupsAndRoles", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RealmRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/partialImport": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Partial import from a JSON file to an existing realm.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PartialImportRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/push-revocation": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Push the realm’s revocation policy to any client that has an admin url associated with it.", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get all roles for the realm or client", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Roles" - ], - "summary": "Create a new role for the realm or client", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles-by-id/{role-id}": { - "get": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Get a specific role’s representation", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Update the role", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Delete the role", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-id", - "description": "id of role", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles-by-id/{role-id}/composites": { - "get": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Get role’s children Returns a set of role’s children provided the role is a composite.", - "parameters": [ - { - "in": "query", - "name": "first", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Make the role a composite role by associating some child roles", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Remove a set of roles from the role’s composite", - "requestBody": { - "description": "A set of roles to be removed", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-id", - "description": "Role id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}": { - "get": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Get client-level roles for the client that are in the role’s composite", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientUuid", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles-by-id/{role-id}/composites/realm": { - "get": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Get realm-level roles that are in the role’s composite", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles-by-id/{role-id}/management/permissions": { - "get": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Return object stating whether role Authoirzation permissions have been initialized or not and a reference", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Roles (by ID)" - ], - "summary": "Return object stating whether role Authoirzation permissions have been initialized or not and a reference", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get a role by name", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Roles" - ], - "summary": "Update a role by name", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Roles" - ], - "summary": "Delete a role by name", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}/composites": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get composites of the role", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Roles" - ], - "summary": "Add a composite to the role", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Roles" - ], - "summary": "Remove roles from the role’s composite", - "requestBody": { - "description": "roles to remove", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}/composites/clients/{clientUuid}": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get client-level roles for the client that are in the role’s composite", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientUuid", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}/composites/realm": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Get realm-level roles of the role’s composite", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "role’s name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}/groups": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Returns a stream of groups that have the specified role name", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return a full representation of the {@code GroupRepresentation} objects.", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "description": "first result to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "maximum number of results to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "the role name.", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}/management/permissions": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Roles" - ], - "summary": "Return object stating whether role Authorization permissions have been initialized or not and a reference", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/roles/{role-name}/users": { - "get": { - "tags": [ - "Roles" - ], - "summary": "Returns a stream of users that have the specified role name.", - "parameters": [ - { - "in": "query", - "name": "first", - "description": "first result to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "maximum number of results to return. Ignored if negative or {@code null}.", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "role-name", - "description": "the role name.", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/sessions/{session}": { - "delete": { - "tags": [ - "Realms Admin" - ], - "summary": "Remove a specific user session.", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "session", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/testLDAPConnection": { - "post": { - "tags": [ - "Realms Admin" - ], - "summary": "Test LDAP connection", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TestLdapConnectionRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/testSMTPConnection": { - "post": { - "tags": [ - "Realms Admin" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/user-storage/{id}/name": { - "get": { - "tags": [ - "User Storage Provider" - ], - "summary": "Need this for admin console to display simple name of provider when displaying user detail KEYCLOAK-4328", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/user-storage/{id}/remove-imported-users": { - "post": { - "tags": [ - "User Storage Provider" - ], - "summary": "Remove imported users", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/user-storage/{id}/sync": { - "post": { - "tags": [ - "User Storage Provider" - ], - "summary": "Trigger sync of users Action can be \"triggerFullSync\" or \"triggerChangedUsersSync\"", - "parameters": [ - { - "in": "query", - "name": "action", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SynchronizationResult" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/user-storage/{id}/unlink-users": { - "post": { - "tags": [ - "User Storage Provider" - ], - "summary": "Unlink imported users from a storage provider", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/user-storage/{parentId}/mappers/{id}/sync": { - "post": { - "tags": [ - "User Storage Provider" - ], - "summary": "Trigger sync of mapper data related to ldap mapper (roles, groups, …​) direction is \"fedToKeycloak\" or \"keycloakToFed\"", - "parameters": [ - { - "in": "query", - "name": "direction", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SynchronizationResult" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "parentId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users": { - "get": { - "tags": [ - "Users" - ], - "summary": "Get users Returns a stream of users, filtered according to query parameters.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "Boolean which defines whether brief representations are returned (default: false)", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "email", - "description": "A String contained in email, or the complete email, if param \"exact\" is true", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "emailVerified", - "description": "whether the email has been verified", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "enabled", - "description": "Boolean representing if user is enabled or not", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "exact", - "description": "Boolean which defines whether the params \"last\", \"first\", \"email\" and \"username\" must match exactly", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "description": "Pagination offset", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "firstName", - "description": "A String contained in firstName, or the complete firstName, if param \"exact\" is true", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "idpAlias", - "description": "The alias of an Identity Provider linked to the user", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "idpUserId", - "description": "The userId at an Identity Provider linked to the user", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "lastName", - "description": "A String contained in lastName, or the complete lastName, if param \"exact\" is true", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "description": "Maximum results size (defaults to 100)", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "q", - "description": "A query to search for custom attributes, in the format 'key1:value2 key2:value2'", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "description": "A String contained in username, first or last name, or email", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "username", - "description": "A String contained in username, or the complete username, if param \"exact\" is true", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Users" - ], - "summary": "Create a new user Username must be unique.", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users-management-permissions": { - "get": { - "tags": [ - "Realms Admin" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "put": { - "tags": [ - "Realms Admin" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ManagementPermissionReference" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/count": { - "get": { - "tags": [ - "Users" - ], - "summary": "Returns the number of users that match the given criteria.", - "parameters": [ - { - "in": "query", - "name": "email", - "description": "email filter", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "emailVerified", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "enabled", - "description": "Boolean representing if user is enabled or not", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "firstName", - "description": "first name filter", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "lastName", - "description": "last name filter", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "description": "arbitrary search string for all the fields below", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "username", - "description": "username filter", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "integer", - "format": "int32" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/profile": { - "get": { - "tags": [ - "Users" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - } - } - } - }, - "put": { - "tags": [ - "Users" - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "string" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}": { - "get": { - "tags": [ - "Users" - ], - "summary": "Get representation of the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRepresentation" - } - } - } - } - } - }, - "put": { - "tags": [ - "Users" - ], - "summary": "Update the user", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Users" - ], - "summary": "Delete the user", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/configured-user-storage-credential-types": { - "get": { - "tags": [ - "Users" - ], - "summary": "Return credential types, which are provided by the user storage where user is stored.", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/consents": { - "get": { - "tags": [ - "Users" - ], - "summary": "Get consents granted by the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/consents/{client}": { - "delete": { - "tags": [ - "Users" - ], - "summary": "Revoke consent and offline tokens for particular client from user", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "description": "Client id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/credentials": { - "get": { - "tags": [ - "Users" - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/credentials/{credentialId}": { - "delete": { - "tags": [ - "Users" - ], - "summary": "Remove a credential for a user", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "credentialId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}": { - "post": { - "tags": [ - "Users" - ], - "summary": "Move a credential to a position behind another credential", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "credentialId", - "description": "The credential to move", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "newPreviousCredentialId", - "description": "The credential that will be the previous element in the list. If set to null, the moved credential will be the first element in the list.", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/credentials/{credentialId}/moveToFirst": { - "post": { - "tags": [ - "Users" - ], - "summary": "Move a credential to a first position in the credentials list of the user", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "credentialId", - "description": "The credential to move", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/credentials/{credentialId}/userLabel": { - "put": { - "tags": [ - "Users" - ], - "summary": "Update a credential label for a user", - "requestBody": { - "content": { - "text/plain": { - "schema": { - "type": "string" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "credentialId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/disable-credential-types": { - "put": { - "tags": [ - "Users" - ], - "summary": "Disable all credentials for a user of a specific type", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/execute-actions-email": { - "put": { - "tags": [ - "Users" - ], - "summary": "Send a update account email to the user An email contains a link the user can click to perform a set of required actions.", - "parameters": [ - { - "in": "query", - "name": "client_id", - "description": "Client id", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "lifespan", - "description": "Number of seconds after which the generated token expires", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "redirect_uri", - "description": "Redirect uri", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "requestBody": { - "description": "required actions the user needs to complete", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/federated-identity": { - "get": { - "tags": [ - "Users" - ], - "summary": "Get social logins associated with the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/federated-identity/{provider}": { - "post": { - "tags": [ - "Users" - ], - "summary": "Add a social login provider to the user", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FederatedIdentityRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Users" - ], - "summary": "Remove a social login provider from user", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "provider", - "description": "Social login provider id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/groups": { - "get": { - "tags": [ - "Users" - ], - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "schema": { - "type": "boolean" - }, - "style": "form" - }, - { - "in": "query", - "name": "first", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "max", - "schema": { - "type": "integer", - "format": "int32" - }, - "style": "form" - }, - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/groups/count": { - "get": { - "tags": [ - "Users" - ], - "parameters": [ - { - "in": "query", - "name": "search", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/groups/{groupId}": { - "put": { - "tags": [ - "Users" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Users" - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "groupId", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/impersonation": { - "post": { - "tags": [ - "Users" - ], - "summary": "Impersonate the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/logout": { - "post": { - "tags": [ - "Users" - ], - "summary": "Remove all user sessions associated with the user Also send notification to all clients that have an admin URL to invalidate the sessions for the particular user.", - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/offline-sessions/{clientUuid}": { - "get": { - "tags": [ - "Users" - ], - "summary": "Get offline sessions associated with the user and client", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "clientUuid", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/reset-password": { - "put": { - "tags": [ - "Users" - ], - "summary": "Set up a new password for the user.", - "requestBody": { - "description": "The representation must contain a rawPassword with the plain-text password", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CredentialRepresentation" - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get role mappings", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MappingsRepresentation" - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings/clients/{client}": { - "get": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Get client-level role mappings for the user, and the app", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Add client-level roles to the user role mapping", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Delete client-level roles from user role mapping", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings/clients/{client}/available": { - "get": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Get available client-level roles that can be mapped to the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings/clients/{client}/composite": { - "get": { - "tags": [ - "Client Role Mappings" - ], - "summary": "Get effective client-level role mappings This recurses any composite roles", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "client", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings/realm": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get realm-level role mappings", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "post": { - "tags": [ - "Role Mapper" - ], - "summary": "Add realm-level role mappings to the user", - "requestBody": { - "description": "Roles to add", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "delete": { - "tags": [ - "Role Mapper" - ], - "summary": "Delete realm-level role mappings", - "requestBody": { - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "required": true - }, - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings/realm/available": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get realm-level roles that can be mapped", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/role-mappings/realm/composite": { - "get": { - "tags": [ - "Role Mapper" - ], - "summary": "Get effective realm-level role mappings This will recurse all composite roles to get the result.", - "parameters": [ - { - "in": "query", - "name": "briefRepresentation", - "description": "if false, return roles with their attributes", - "schema": { - "type": "boolean" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/send-verify-email": { - "put": { - "tags": [ - "Users" - ], - "summary": "Send an email-verification email to the user An email contains a link the user can click to verify their email address.", - "parameters": [ - { - "in": "query", - "name": "client_id", - "description": "Client id", - "schema": { - "type": "string" - }, - "style": "form" - }, - { - "in": "query", - "name": "redirect_uri", - "description": "Redirect uri", - "schema": { - "type": "string" - }, - "style": "form" - } - ], - "responses": { - "2XX": { - "description": "success" - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - }, - "/{realm}/users/{id}/sessions": { - "get": { - "tags": [ - "Users" - ], - "summary": "Get sessions associated with the user", - "responses": { - "2XX": { - "description": "success", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - } - } - } - } - } - }, - "parameters": [ - { - "in": "path", - "name": "realm", - "description": "realm name (not id!)", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - }, - { - "in": "path", - "name": "id", - "description": "User id", - "required": true, - "schema": { - "type": "string" - }, - "style": "simple" - } - ] - } - }, - "components": { - "securitySchemes": { - "access_token": { - "type": "http", - "scheme": "bearer", - "bearerFormat": null - } - }, - "schemas": { - "AccessToken": { - "type": "object", - "properties": { - "acr": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/AddressClaimSet" - }, - "allowed-origins": { - "type": "array", - "items": { - "type": "string" - } - }, - "at_hash": { - "type": "string" - }, - "auth_time": { - "type": "integer", - "format": "int64" - }, - "authorization": { - "$ref": "#/components/schemas/AccessToken-Authorization" - }, - "azp": { - "type": "string" - }, - "birthdate": { - "type": "string" - }, - "c_hash": { - "type": "string" - }, - "category": { - "type": "string", - "enum": [ - "INTERNAL", - "ACCESS", - "ID", - "ADMIN", - "USERINFO", - "LOGOUT", - "AUTHORIZATION_RESPONSE" - ] - }, - "claims_locales": { - "type": "string" - }, - "cnf": { - "$ref": "#/components/schemas/AccessToken-CertConf" - }, - "email": { - "type": "string" - }, - "email_verified": { - "type": "boolean" - }, - "exp": { - "type": "integer", - "format": "int64" - }, - "family_name": { - "type": "string" - }, - "gender": { - "type": "string" - }, - "given_name": { - "type": "string" - }, - "iat": { - "type": "integer", - "format": "int64" - }, - "iss": { - "type": "string" - }, - "jti": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "middle_name": { - "type": "string" - }, - "name": { - "type": "string" - }, - "nbf": { - "type": "integer", - "format": "int64" - }, - "nickname": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "otherClaims": { - "type": "object", - "additionalProperties": true - }, - "phone_number": { - "type": "string" - }, - "phone_number_verified": { - "type": "boolean" - }, - "picture": { - "type": "string" - }, - "preferred_username": { - "type": "string" - }, - "profile": { - "type": "string" - }, - "realm_access": { - "$ref": "#/components/schemas/AccessToken-Access" - }, - "s_hash": { - "type": "string" - }, - "scope": { - "type": "string" - }, - "session_state": { - "type": "string" - }, - "sid": { - "type": "string" - }, - "sub": { - "type": "string" - }, - "trusted-certs": { - "type": "array", - "items": { - "type": "string" - } - }, - "typ": { - "type": "string" - }, - "updated_at": { - "type": "integer", - "format": "int64" - }, - "website": { - "type": "string" - }, - "zoneinfo": { - "type": "string" - } - } - }, - "AccessToken-Access": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "verify_caller": { - "type": "boolean" - } - } - }, - "AccessToken-Authorization": { - "type": "object", - "properties": { - "permissions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Permission" - } - } - } - }, - "AccessToken-CertConf": { - "type": "object", - "properties": { - "x5t#S256": { - "type": "string" - } - } - }, - "AddressClaimSet": { - "type": "object", - "properties": { - "country": { - "type": "string" - }, - "formatted": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "AuthenticationExecutionExportRepresentation": { - "type": "object", - "properties": { - "authenticator": { - "type": "string" - }, - "authenticatorConfig": { - "type": "string" - }, - "authenticatorFlow": { - "type": "boolean" - }, - "flowAlias": { - "type": "string" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "requirement": { - "type": "string" - }, - "userSetupAllowed": { - "type": "boolean" - } - } - }, - "AuthenticationExecutionInfoRepresentation": { - "type": "object", - "properties": { - "alias": { - "type": "string" - }, - "authenticationConfig": { - "type": "string" - }, - "authenticationFlow": { - "type": "boolean" - }, - "configurable": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "flowId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "index": { - "type": "integer", - "format": "int32" - }, - "level": { - "type": "integer", - "format": "int32" - }, - "providerId": { - "type": "string" - }, - "requirement": { - "type": "string" - }, - "requirementChoices": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "AuthenticationExecutionRepresentation": { - "type": "object", - "properties": { - "authenticator": { - "type": "string" - }, - "authenticatorConfig": { - "type": "string" - }, - "authenticatorFlow": { - "type": "boolean" - }, - "flowId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "parentFlow": { - "type": "string" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "requirement": { - "type": "string" - } - } - }, - "AuthenticationFlowRepresentation": { - "type": "object", - "properties": { - "alias": { - "type": "string" - }, - "authenticationExecutions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AuthenticationExecutionExportRepresentation" - } - }, - "builtIn": { - "type": "boolean" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "topLevel": { - "type": "boolean" - } - } - }, - "AuthenticatorConfigInfoRepresentation": { - "type": "object", - "properties": { - "helpText": { - "type": "string" - }, - "name": { - "type": "string" - }, - "properties": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ConfigPropertyRepresentation" - } - }, - "providerId": { - "type": "string" - } - } - }, - "AuthenticatorConfigRepresentation": { - "type": "object", - "properties": { - "alias": { - "type": "string" - }, - "config": { - "type": "object", - "additionalProperties": true - }, - "id": { - "type": "string" - } - } - }, - "CertificateRepresentation": { - "type": "object", - "properties": { - "certificate": { - "type": "string" - }, - "kid": { - "type": "string" - }, - "privateKey": { - "type": "string" - }, - "publicKey": { - "type": "string" - } - } - }, - "ClientInitialAccessCreatePresentation": { - "type": "object", - "properties": { - "count": { - "type": "integer", - "format": "int32" - }, - "expiration": { - "type": "integer", - "format": "int32" - } - } - }, - "ClientInitialAccessPresentation": { - "type": "object", - "properties": { - "count": { - "type": "integer", - "format": "int32" - }, - "expiration": { - "type": "integer", - "format": "int32" - }, - "id": { - "type": "string" - }, - "remainingCount": { - "type": "integer", - "format": "int32" - }, - "timestamp": { - "type": "integer", - "format": "int32" - }, - "token": { - "type": "string" - } - } - }, - "ClientMappingsRepresentation": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "id": { - "type": "string" - }, - "mappings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "ClientPoliciesRepresentation": { - "type": "object", - "properties": { - "policies": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientPolicyRepresentation" - } - } - } - }, - "ClientPolicyConditionRepresentation": { - "type": "object", - "properties": { - "condition": { - "type": "string" - }, - "configuration": { - "$ref": "#/components/schemas/JsonNode" - } - } - }, - "ClientPolicyExecutorRepresentation": { - "type": "object", - "properties": { - "configuration": { - "$ref": "#/components/schemas/JsonNode" - }, - "executor": { - "type": "string" - } - } - }, - "ClientPolicyRepresentation": { - "type": "object", - "properties": { - "conditions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientPolicyConditionRepresentation" - } - }, - "description": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "profiles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ClientProfileRepresentation": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "executors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientPolicyExecutorRepresentation" - } - }, - "name": { - "type": "string" - } - } - }, - "ClientProfilesRepresentation": { - "type": "object", - "properties": { - "globalProfiles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientProfileRepresentation" - } - }, - "profiles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientProfileRepresentation" - } - } - } - }, - "ClientRepresentation": { - "type": "object", - "properties": { - "access": { - "type": "object", - "additionalProperties": true - }, - "adminUrl": { - "type": "string" - }, - "alwaysDisplayInConsole": { - "type": "boolean" - }, - "attributes": { - "type": "object", - "additionalProperties": true - }, - "authenticationFlowBindingOverrides": { - "type": "object", - "additionalProperties": true - }, - "authorizationServicesEnabled": { - "type": "boolean" - }, - "authorizationSettings": { - "$ref": "#/components/schemas/ResourceServerRepresentation" - }, - "baseUrl": { - "type": "string" - }, - "bearerOnly": { - "type": "boolean" - }, - "clientAuthenticatorType": { - "type": "string" - }, - "clientId": { - "type": "string" - }, - "consentRequired": { - "type": "boolean" - }, - "defaultClientScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "description": { - "type": "string" - }, - "directAccessGrantsEnabled": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - }, - "frontchannelLogout": { - "type": "boolean" - }, - "fullScopeAllowed": { - "type": "boolean" - }, - "id": { - "type": "string" - }, - "implicitFlowEnabled": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "nodeReRegistrationTimeout": { - "type": "integer", - "format": "int32" - }, - "notBefore": { - "type": "integer", - "format": "int32" - }, - "oauth2DeviceAuthorizationGrantEnabled": { - "type": "boolean" - }, - "optionalClientScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "origin": { - "type": "string" - }, - "protocol": { - "type": "string" - }, - "protocolMappers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - }, - "publicClient": { - "type": "boolean" - }, - "redirectUris": { - "type": "array", - "items": { - "type": "string" - } - }, - "registeredNodes": { - "type": "object", - "additionalProperties": true - }, - "registrationAccessToken": { - "type": "string" - }, - "rootUrl": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "serviceAccountsEnabled": { - "type": "boolean" - }, - "standardFlowEnabled": { - "type": "boolean" - }, - "surrogateAuthRequired": { - "type": "boolean" - }, - "webOrigins": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ClientScopeEvaluateResource-ProtocolMapperEvaluationRepresentation": { - "type": "object", - "properties": { - "containerId": { - "type": "string" - }, - "containerName": { - "type": "string" - }, - "containerType": { - "type": "string" - }, - "mapperId": { - "type": "string" - }, - "mapperName": { - "type": "string" - }, - "protocolMapper": { - "type": "string" - } - } - }, - "ClientScopeRepresentation": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "additionalProperties": true - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "protocol": { - "type": "string" - }, - "protocolMappers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - } - } - }, - "ComponentExportRepresentation": { - "type": "object", - "properties": { - "config": { - "$ref": "#/components/schemas/MultivaluedHashMap" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "subComponents": { - "$ref": "#/components/schemas/MultivaluedHashMap" - }, - "subType": { - "type": "string" - } - } - }, - "ComponentRepresentation": { - "type": "object", - "properties": { - "config": { - "$ref": "#/components/schemas/MultivaluedHashMap" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "parentId": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "providerType": { - "type": "string" - }, - "subType": { - "type": "string" - } - } - }, - "ConfigPropertyRepresentation": { - "type": "object", - "properties": { - "defaultValue": { - "type": "object" - }, - "helpText": { - "type": "string" - }, - "label": { - "type": "string" - }, - "name": { - "type": "string" - }, - "options": { - "type": "array", - "items": { - "type": "string" - } - }, - "readOnly": { - "type": "boolean" - }, - "secret": { - "type": "boolean" - }, - "type": { - "type": "string" - } - } - }, - "CredentialRepresentation": { - "type": "object", - "properties": { - "createdDate": { - "type": "integer", - "format": "int64" - }, - "credentialData": { - "type": "string" - }, - "id": { - "type": "string" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "secretData": { - "type": "string" - }, - "temporary": { - "type": "boolean" - }, - "type": { - "type": "string" - }, - "userLabel": { - "type": "string" - }, - "value": { - "type": "string" - } - } - }, - "FederatedIdentityRepresentation": { - "type": "object", - "properties": { - "identityProvider": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "userName": { - "type": "string" - } - } - }, - "GlobalRequestResult": { - "type": "object", - "properties": { - "failedRequests": { - "type": "array", - "items": { - "type": "string" - } - }, - "successRequests": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "GroupRepresentation": { - "type": "object", - "properties": { - "access": { - "type": "object", - "additionalProperties": true - }, - "attributes": { - "type": "object", - "additionalProperties": true - }, - "clientRoles": { - "type": "object", - "additionalProperties": true - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "path": { - "type": "string" - }, - "realmRoles": { - "type": "array", - "items": { - "type": "string" - } - }, - "subGroups": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GroupRepresentation" - } - } - } - }, - "IDToken": { - "type": "object", - "properties": { - "acr": { - "type": "string" - }, - "address": { - "$ref": "#/components/schemas/AddressClaimSet" - }, - "at_hash": { - "type": "string" - }, - "auth_time": { - "type": "integer", - "format": "int64" - }, - "azp": { - "type": "string" - }, - "birthdate": { - "type": "string" - }, - "c_hash": { - "type": "string" - }, - "category": { - "type": "string", - "enum": [ - "INTERNAL", - "ACCESS", - "ID", - "ADMIN", - "USERINFO", - "LOGOUT", - "AUTHORIZATION_RESPONSE" - ] - }, - "claims_locales": { - "type": "string" - }, - "email": { - "type": "string" - }, - "email_verified": { - "type": "boolean" - }, - "exp": { - "type": "integer", - "format": "int64" - }, - "family_name": { - "type": "string" - }, - "gender": { - "type": "string" - }, - "given_name": { - "type": "string" - }, - "iat": { - "type": "integer", - "format": "int64" - }, - "iss": { - "type": "string" - }, - "jti": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "middle_name": { - "type": "string" - }, - "name": { - "type": "string" - }, - "nbf": { - "type": "integer", - "format": "int64" - }, - "nickname": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "otherClaims": { - "type": "object", - "additionalProperties": true - }, - "phone_number": { - "type": "string" - }, - "phone_number_verified": { - "type": "boolean" - }, - "picture": { - "type": "string" - }, - "preferred_username": { - "type": "string" - }, - "profile": { - "type": "string" - }, - "s_hash": { - "type": "string" - }, - "session_state": { - "type": "string" - }, - "sid": { - "type": "string" - }, - "sub": { - "type": "string" - }, - "typ": { - "type": "string" - }, - "updated_at": { - "type": "integer", - "format": "int64" - }, - "website": { - "type": "string" - }, - "zoneinfo": { - "type": "string" - } - } - }, - "IdentityProviderMapperRepresentation": { - "type": "object", - "properties": { - "config": { - "type": "object", - "additionalProperties": true - }, - "id": { - "type": "string" - }, - "identityProviderAlias": { - "type": "string" - }, - "identityProviderMapper": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "IdentityProviderRepresentation": { - "type": "object", - "properties": { - "addReadTokenRoleOnCreate": { - "type": "boolean" - }, - "alias": { - "type": "string" - }, - "config": { - "type": "object", - "additionalProperties": true - }, - "displayName": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "firstBrokerLoginFlowAlias": { - "type": "string" - }, - "internalId": { - "type": "string" - }, - "linkOnly": { - "type": "boolean" - }, - "postBrokerLoginFlowAlias": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "storeToken": { - "type": "boolean" - }, - "trustEmail": { - "type": "boolean" - } - } - }, - "JsonNode": { - "type": "object", - "properties": { - "array": { - "type": "boolean" - }, - "bigDecimal": { - "type": "boolean" - }, - "bigInteger": { - "type": "boolean" - }, - "binary": { - "type": "boolean" - }, - "boolean": { - "type": "boolean" - }, - "containerNode": { - "type": "boolean" - }, - "double": { - "type": "boolean" - }, - "empty": { - "type": "boolean" - }, - "float": { - "type": "boolean" - }, - "floatingPointNumber": { - "type": "boolean" - }, - "int": { - "type": "boolean" - }, - "integralNumber": { - "type": "boolean" - }, - "long": { - "type": "boolean" - }, - "missingNode": { - "type": "boolean" - }, - "nodeType": { - "type": "string", - "enum": [ - "ARRAY", - "BINARY", - "BOOLEAN", - "MISSING", - "NULL", - "NUMBER", - "OBJECT", - "POJO", - "STRING" - ] - }, - "null": { - "type": "boolean" - }, - "number": { - "type": "boolean" - }, - "object": { - "type": "boolean" - }, - "pojo": { - "type": "boolean" - }, - "short": { - "type": "boolean" - }, - "textual": { - "type": "boolean" - }, - "valueNode": { - "type": "boolean" - } - } - }, - "KeyStoreConfig": { - "type": "object", - "properties": { - "format": { - "type": "string" - }, - "keyAlias": { - "type": "string" - }, - "keyPassword": { - "type": "string" - }, - "realmAlias": { - "type": "string" - }, - "realmCertificate": { - "type": "boolean" - }, - "storePassword": { - "type": "string" - } - } - }, - "KeysMetadataRepresentation": { - "type": "object", - "properties": { - "active": { - "type": "object", - "additionalProperties": true - }, - "keys": { - "type": "array", - "items": { - "$ref": "#/components/schemas/KeysMetadataRepresentation-KeyMetadataRepresentation" - } - } - } - }, - "KeysMetadataRepresentation-KeyMetadataRepresentation": { - "type": "object", - "properties": { - "algorithm": { - "type": "string" - }, - "certificate": { - "type": "string" - }, - "kid": { - "type": "string" - }, - "providerId": { - "type": "string" - }, - "providerPriority": { - "type": "integer", - "format": "int64" - }, - "publicKey": { - "type": "string" - }, - "status": { - "type": "string" - }, - "type": { - "type": "string" - }, - "use": { - "type": "string", - "enum": [ - "SIG", - "ENC" - ] - } - } - }, - "ManagementPermissionReference": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - }, - "resource": { - "type": "string" - }, - "scopePermissions": { - "type": "object", - "additionalProperties": true - } - } - }, - "MappingsRepresentation": { - "type": "object", - "properties": { - "clientMappings": { - "type": "object", - "additionalProperties": true - }, - "realmMappings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "MemoryInfoRepresentation": { - "type": "object", - "properties": { - "free": { - "type": "integer", - "format": "int64" - }, - "freeFormated": { - "type": "string" - }, - "freePercentage": { - "type": "integer", - "format": "int64" - }, - "total": { - "type": "integer", - "format": "int64" - }, - "totalFormated": { - "type": "string" - }, - "used": { - "type": "integer", - "format": "int64" - }, - "usedFormated": { - "type": "string" - } - } - }, - "MultivaluedHashMap": { - "type": "object", - "properties": { - "empty": { - "type": "boolean" - }, - "loadFactor": { - "type": "number", - "format": "float" - }, - "threshold": { - "type": "integer", - "format": "int32" - } - } - }, - "PartialImportRepresentation": { - "type": "object", - "properties": { - "clients": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientRepresentation" - } - }, - "groups": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GroupRepresentation" - } - }, - "identityProviders": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityProviderRepresentation" - } - }, - "ifResourceExists": { - "type": "string" - }, - "policy": { - "type": "string", - "enum": [ - "SKIP", - "OVERWRITE", - "FAIL" - ] - }, - "roles": { - "$ref": "#/components/schemas/RolesRepresentation" - }, - "users": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRepresentation" - } - } - } - }, - "PasswordPolicyTypeRepresentation": { - "type": "object", - "properties": { - "configType": { - "type": "string" - }, - "defaultValue": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "id": { - "type": "string" - }, - "multipleSupported": { - "type": "boolean" - } - } - }, - "Permission": { - "type": "object", - "properties": { - "claims": { - "type": "object", - "additionalProperties": true - }, - "rsid": { - "type": "string" - }, - "rsname": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "PolicyRepresentation": { - "type": "object", - "properties": { - "config": { - "type": "object", - "additionalProperties": true - }, - "decisionStrategy": { - "type": "string", - "enum": [ - "AFFIRMATIVE", - "UNANIMOUS", - "CONSENSUS" - ] - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "logic": { - "type": "string", - "enum": [ - "POSITIVE", - "NEGATIVE" - ] - }, - "name": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "policies": { - "type": "array", - "items": { - "type": "string" - } - }, - "resources": { - "type": "array", - "items": { - "type": "string" - } - }, - "resourcesData": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResourceRepresentation" - } - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "scopesData": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ScopeRepresentation" - } - }, - "type": { - "type": "string" - } - } - }, - "ProfileInfoRepresentation": { - "type": "object", - "properties": { - "disabledFeatures": { - "type": "array", - "items": { - "type": "string" - } - }, - "experimentalFeatures": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "previewFeatures": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ProtocolMapperRepresentation": { - "type": "object", - "properties": { - "config": { - "type": "object", - "additionalProperties": true - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "protocol": { - "type": "string" - }, - "protocolMapper": { - "type": "string" - } - } - }, - "ProviderRepresentation": { - "type": "object", - "properties": { - "operationalInfo": { - "type": "object", - "additionalProperties": true - }, - "order": { - "type": "integer", - "format": "int32" - } - } - }, - "RealmEventsConfigRepresentation": { - "type": "object", - "properties": { - "adminEventsDetailsEnabled": { - "type": "boolean" - }, - "adminEventsEnabled": { - "type": "boolean" - }, - "enabledEventTypes": { - "type": "array", - "items": { - "type": "string" - } - }, - "eventsEnabled": { - "type": "boolean" - }, - "eventsExpiration": { - "type": "integer", - "format": "int64" - }, - "eventsListeners": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "RealmRepresentation": { - "type": "object", - "properties": { - "accessCodeLifespan": { - "type": "integer", - "format": "int32" - }, - "accessCodeLifespanLogin": { - "type": "integer", - "format": "int32" - }, - "accessCodeLifespanUserAction": { - "type": "integer", - "format": "int32" - }, - "accessTokenLifespan": { - "type": "integer", - "format": "int32" - }, - "accessTokenLifespanForImplicitFlow": { - "type": "integer", - "format": "int32" - }, - "accountTheme": { - "type": "string" - }, - "actionTokenGeneratedByAdminLifespan": { - "type": "integer", - "format": "int32" - }, - "actionTokenGeneratedByUserLifespan": { - "type": "integer", - "format": "int32" - }, - "adminEventsDetailsEnabled": { - "type": "boolean" - }, - "adminEventsEnabled": { - "type": "boolean" - }, - "adminTheme": { - "type": "string" - }, - "attributes": { - "type": "object", - "additionalProperties": true - }, - "authenticationFlows": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - } - }, - "authenticatorConfig": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - } - }, - "browserFlow": { - "type": "string" - }, - "browserSecurityHeaders": { - "type": "object", - "additionalProperties": true - }, - "bruteForceProtected": { - "type": "boolean" - }, - "clientAuthenticationFlow": { - "type": "string" - }, - "clientOfflineSessionIdleTimeout": { - "type": "integer", - "format": "int32" - }, - "clientOfflineSessionMaxLifespan": { - "type": "integer", - "format": "int32" - }, - "clientPolicies": { - "$ref": "#/components/schemas/JsonNode" - }, - "clientProfiles": { - "$ref": "#/components/schemas/JsonNode" - }, - "clientScopeMappings": { - "type": "object", - "additionalProperties": true - }, - "clientScopes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientScopeRepresentation" - } - }, - "clientSessionIdleTimeout": { - "type": "integer", - "format": "int32" - }, - "clientSessionMaxLifespan": { - "type": "integer", - "format": "int32" - }, - "clients": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ClientRepresentation" - } - }, - "components": { - "$ref": "#/components/schemas/MultivaluedHashMap" - }, - "defaultDefaultClientScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "defaultGroups": { - "type": "array", - "items": { - "type": "string" - } - }, - "defaultLocale": { - "type": "string" - }, - "defaultOptionalClientScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "defaultRole": { - "$ref": "#/components/schemas/RoleRepresentation" - }, - "defaultSignatureAlgorithm": { - "type": "string" - }, - "directGrantFlow": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "displayNameHtml": { - "type": "string" - }, - "dockerAuthenticationFlow": { - "type": "string" - }, - "duplicateEmailsAllowed": { - "type": "boolean" - }, - "editUsernameAllowed": { - "type": "boolean" - }, - "emailTheme": { - "type": "string" - }, - "enabled": { - "type": "boolean" - }, - "enabledEventTypes": { - "type": "array", - "items": { - "type": "string" - } - }, - "eventsEnabled": { - "type": "boolean" - }, - "eventsExpiration": { - "type": "integer", - "format": "int64" - }, - "eventsListeners": { - "type": "array", - "items": { - "type": "string" - } - }, - "failureFactor": { - "type": "integer", - "format": "int32" - }, - "federatedUsers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRepresentation" - } - }, - "groups": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GroupRepresentation" - } - }, - "id": { - "type": "string" - }, - "identityProviderMappers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - } - }, - "identityProviders": { - "type": "array", - "items": { - "$ref": "#/components/schemas/IdentityProviderRepresentation" - } - }, - "internationalizationEnabled": { - "type": "boolean" - }, - "keycloakVersion": { - "type": "string" - }, - "loginTheme": { - "type": "string" - }, - "loginWithEmailAllowed": { - "type": "boolean" - }, - "maxDeltaTimeSeconds": { - "type": "integer", - "format": "int32" - }, - "maxFailureWaitSeconds": { - "type": "integer", - "format": "int32" - }, - "minimumQuickLoginWaitSeconds": { - "type": "integer", - "format": "int32" - }, - "notBefore": { - "type": "integer", - "format": "int32" - }, - "oAuth2DeviceCodeLifespan": { - "type": "integer", - "format": "int32" - }, - "oAuth2DevicePollingInterval": { - "type": "integer", - "format": "int32" - }, - "oauth2DeviceCodeLifespan": { - "type": "integer", - "format": "int32" - }, - "oauth2DevicePollingInterval": { - "type": "integer", - "format": "int32" - }, - "offlineSessionIdleTimeout": { - "type": "integer", - "format": "int32" - }, - "offlineSessionMaxLifespan": { - "type": "integer", - "format": "int32" - }, - "offlineSessionMaxLifespanEnabled": { - "type": "boolean" - }, - "otpPolicyAlgorithm": { - "type": "string" - }, - "otpPolicyDigits": { - "type": "integer", - "format": "int32" - }, - "otpPolicyInitialCounter": { - "type": "integer", - "format": "int32" - }, - "otpPolicyLookAheadWindow": { - "type": "integer", - "format": "int32" - }, - "otpPolicyPeriod": { - "type": "integer", - "format": "int32" - }, - "otpPolicyType": { - "type": "string" - }, - "otpSupportedApplications": { - "type": "array", - "items": { - "type": "string" - } - }, - "passwordPolicy": { - "type": "string" - }, - "permanentLockout": { - "type": "boolean" - }, - "protocolMappers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - } - }, - "quickLoginCheckMilliSeconds": { - "type": "integer", - "format": "int64" - }, - "realm": { - "type": "string" - }, - "refreshTokenMaxReuse": { - "type": "integer", - "format": "int32" - }, - "registrationAllowed": { - "type": "boolean" - }, - "registrationEmailAsUsername": { - "type": "boolean" - }, - "registrationFlow": { - "type": "string" - }, - "rememberMe": { - "type": "boolean" - }, - "requiredActions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RequiredActionProviderRepresentation" - } - }, - "resetCredentialsFlow": { - "type": "string" - }, - "resetPasswordAllowed": { - "type": "boolean" - }, - "revokeRefreshToken": { - "type": "boolean" - }, - "roles": { - "$ref": "#/components/schemas/RolesRepresentation" - }, - "scopeMappings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ScopeMappingRepresentation" - } - }, - "smtpServer": { - "type": "object", - "additionalProperties": true - }, - "sslRequired": { - "type": "string" - }, - "ssoSessionIdleTimeout": { - "type": "integer", - "format": "int32" - }, - "ssoSessionIdleTimeoutRememberMe": { - "type": "integer", - "format": "int32" - }, - "ssoSessionMaxLifespan": { - "type": "integer", - "format": "int32" - }, - "ssoSessionMaxLifespanRememberMe": { - "type": "integer", - "format": "int32" - }, - "supportedLocales": { - "type": "array", - "items": { - "type": "string" - } - }, - "userFederationMappers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserFederationMapperRepresentation" - } - }, - "userFederationProviders": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserFederationProviderRepresentation" - } - }, - "userManagedAccessAllowed": { - "type": "boolean" - }, - "users": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRepresentation" - } - }, - "verifyEmail": { - "type": "boolean" - }, - "waitIncrementSeconds": { - "type": "integer", - "format": "int32" - }, - "webAuthnPolicyAcceptableAaguids": { - "type": "array", - "items": { - "type": "string" - } - }, - "webAuthnPolicyAttestationConveyancePreference": { - "type": "string" - }, - "webAuthnPolicyAuthenticatorAttachment": { - "type": "string" - }, - "webAuthnPolicyAvoidSameAuthenticatorRegister": { - "type": "boolean" - }, - "webAuthnPolicyCreateTimeout": { - "type": "integer", - "format": "int32" - }, - "webAuthnPolicyPasswordlessAcceptableAaguids": { - "type": "array", - "items": { - "type": "string" - } - }, - "webAuthnPolicyPasswordlessAttestationConveyancePreference": { - "type": "string" - }, - "webAuthnPolicyPasswordlessAuthenticatorAttachment": { - "type": "string" - }, - "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister": { - "type": "boolean" - }, - "webAuthnPolicyPasswordlessCreateTimeout": { - "type": "integer", - "format": "int32" - }, - "webAuthnPolicyPasswordlessRequireResidentKey": { - "type": "string" - }, - "webAuthnPolicyPasswordlessRpEntityName": { - "type": "string" - }, - "webAuthnPolicyPasswordlessRpId": { - "type": "string" - }, - "webAuthnPolicyPasswordlessSignatureAlgorithms": { - "type": "array", - "items": { - "type": "string" - } - }, - "webAuthnPolicyPasswordlessUserVerificationRequirement": { - "type": "string" - }, - "webAuthnPolicyRequireResidentKey": { - "type": "string" - }, - "webAuthnPolicyRpEntityName": { - "type": "string" - }, - "webAuthnPolicyRpId": { - "type": "string" - }, - "webAuthnPolicySignatureAlgorithms": { - "type": "array", - "items": { - "type": "string" - } - }, - "webAuthnPolicyUserVerificationRequirement": { - "type": "string" - } - } - }, - "RequiredActionProviderRepresentation": { - "type": "object", - "properties": { - "alias": { - "type": "string" - }, - "config": { - "type": "object", - "additionalProperties": true - }, - "defaultAction": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - }, - "name": { - "type": "string" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "providerId": { - "type": "string" - } - } - }, - "ResourceRepresentation": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "additionalProperties": true - }, - "displayName": { - "type": "string" - }, - "icon_uri": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ownerManagedAccess": { - "type": "boolean" - }, - "scopes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ScopeRepresentation" - } - }, - "type": { - "type": "string" - }, - "uris": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ResourceServerRepresentation": { - "type": "object", - "properties": { - "allowRemoteResourceManagement": { - "type": "boolean" - }, - "clientId": { - "type": "string" - }, - "decisionStrategy": { - "type": "string", - "enum": [ - "AFFIRMATIVE", - "UNANIMOUS", - "CONSENSUS" - ] - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "policies": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PolicyRepresentation" - } - }, - "policyEnforcementMode": { - "type": "string", - "enum": [ - "ENFORCING", - "PERMISSIVE", - "DISABLED" - ] - }, - "resources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResourceRepresentation" - } - }, - "scopes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ScopeRepresentation" - } - } - } - }, - "RoleRepresentation": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "additionalProperties": true - }, - "clientRole": { - "type": "boolean" - }, - "composite": { - "type": "boolean" - }, - "composites": { - "$ref": "#/components/schemas/RoleRepresentation-Composites" - }, - "containerId": { - "type": "string" - }, - "description": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "RoleRepresentation-Composites": { - "type": "object", - "properties": { - "client": { - "type": "object", - "additionalProperties": true - }, - "realm": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "RolesRepresentation": { - "type": "object", - "properties": { - "client": { - "type": "object", - "additionalProperties": true - }, - "realm": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RoleRepresentation" - } - } - } - }, - "ScopeMappingRepresentation": { - "type": "object", - "properties": { - "client": { - "type": "string" - }, - "clientScope": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "self": { - "type": "string" - } - } - }, - "ScopeRepresentation": { - "type": "object", - "properties": { - "displayName": { - "type": "string" - }, - "iconUri": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "policies": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PolicyRepresentation" - } - }, - "resources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResourceRepresentation" - } - } - } - }, - "ServerInfoRepresentation": { - "type": "object", - "properties": { - "builtinProtocolMappers": { - "type": "object", - "additionalProperties": true - }, - "clientImporters": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "clientInstallations": { - "type": "object", - "additionalProperties": true - }, - "componentTypes": { - "type": "object", - "additionalProperties": true - }, - "enums": { - "type": "object", - "additionalProperties": true - }, - "identityProviders": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "memoryInfo": { - "$ref": "#/components/schemas/MemoryInfoRepresentation" - }, - "passwordPolicies": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PasswordPolicyTypeRepresentation" - } - }, - "profileInfo": { - "$ref": "#/components/schemas/ProfileInfoRepresentation" - }, - "protocolMapperTypes": { - "type": "object", - "additionalProperties": true - }, - "providers": { - "type": "object", - "additionalProperties": true - }, - "socialProviders": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": true - } - }, - "systemInfo": { - "$ref": "#/components/schemas/SystemInfoRepresentation" - }, - "themes": { - "type": "object", - "additionalProperties": true - } - } - }, - "SpiInfoRepresentation": { - "type": "object", - "properties": { - "internal": { - "type": "boolean" - }, - "providers": { - "type": "object", - "additionalProperties": true - } - } - }, - "SynchronizationResult": { - "type": "object", - "properties": { - "added": { - "type": "integer", - "format": "int32" - }, - "failed": { - "type": "integer", - "format": "int32" - }, - "ignored": { - "type": "boolean" - }, - "removed": { - "type": "integer", - "format": "int32" - }, - "status": { - "type": "string" - }, - "updated": { - "type": "integer", - "format": "int32" - } - } - }, - "SystemInfoRepresentation": { - "type": "object", - "properties": { - "fileEncoding": { - "type": "string" - }, - "javaHome": { - "type": "string" - }, - "javaRuntime": { - "type": "string" - }, - "javaVendor": { - "type": "string" - }, - "javaVersion": { - "type": "string" - }, - "javaVm": { - "type": "string" - }, - "javaVmVersion": { - "type": "string" - }, - "osArchitecture": { - "type": "string" - }, - "osName": { - "type": "string" - }, - "osVersion": { - "type": "string" - }, - "serverTime": { - "type": "string" - }, - "uptime": { - "type": "string" - }, - "uptimeMillis": { - "type": "integer", - "format": "int64" - }, - "userDir": { - "type": "string" - }, - "userLocale": { - "type": "string" - }, - "userName": { - "type": "string" - }, - "userTimezone": { - "type": "string" - }, - "version": { - "type": "string" - } - } - }, - "TestLdapConnectionRepresentation": { - "type": "object", - "properties": { - "action": { - "type": "string" - }, - "authType": { - "type": "string" - }, - "bindCredential": { - "type": "string" - }, - "bindDn": { - "type": "string" - }, - "componentId": { - "type": "string" - }, - "connectionTimeout": { - "type": "string" - }, - "connectionUrl": { - "type": "string" - }, - "startTls": { - "type": "string" - }, - "useTruststoreSpi": { - "type": "string" - } - } - }, - "UserConsentRepresentation": { - "type": "object", - "properties": { - "clientId": { - "type": "string" - }, - "createdDate": { - "type": "integer", - "format": "int64" - }, - "grantedClientScopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "lastUpdatedDate": { - "type": "integer", - "format": "int64" - } - } - }, - "UserFederationMapperRepresentation": { - "type": "object", - "properties": { - "config": { - "type": "object", - "additionalProperties": true - }, - "federationMapperType": { - "type": "string" - }, - "federationProviderDisplayName": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "UserFederationProviderRepresentation": { - "type": "object", - "properties": { - "changedSyncPeriod": { - "type": "integer", - "format": "int32" - }, - "config": { - "type": "object", - "additionalProperties": true - }, - "displayName": { - "type": "string" - }, - "fullSyncPeriod": { - "type": "integer", - "format": "int32" - }, - "id": { - "type": "string" - }, - "lastSync": { - "type": "integer", - "format": "int32" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "providerName": { - "type": "string" - } - } - }, - "UserRepresentation": { - "type": "object", - "properties": { - "access": { - "type": "object", - "additionalProperties": true - }, - "attributes": { - "type": "object", - "additionalProperties": true - }, - "clientConsents": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserConsentRepresentation" - } - }, - "clientRoles": { - "type": "object", - "additionalProperties": true - }, - "createdTimestamp": { - "type": "integer", - "format": "int64" - }, - "credentials": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CredentialRepresentation" - } - }, - "disableableCredentialTypes": { - "type": "array", - "items": { - "type": "string" - } - }, - "email": { - "type": "string" - }, - "emailVerified": { - "type": "boolean" - }, - "enabled": { - "type": "boolean" - }, - "federatedIdentities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/FederatedIdentityRepresentation" - } - }, - "federationLink": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "groups": { - "type": "array", - "items": { - "type": "string" - } - }, - "id": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "notBefore": { - "type": "integer", - "format": "int32" - }, - "origin": { - "type": "string" - }, - "realmRoles": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiredActions": { - "type": "array", - "items": { - "type": "string" - } - }, - "self": { - "type": "string" - }, - "serviceAccountClientId": { - "type": "string" - }, - "username": { - "type": "string" - } - } - } - } - }, - "security": [ - { - "access_token": [] - } - ], - "externalDocs": { - "description": "Schema source code", - "url": "https://github.com/keycloak/keycloak/tree/6.0.1/core/src/main/java/org/keycloak/representations" - } - } \ No newline at end of file diff --git a/backend/keycloak/openapi.specs.yml b/backend/keycloak/openapi.specs.yml deleted file mode 100644 index 3767f0a..0000000 --- a/backend/keycloak/openapi.specs.yml +++ /dev/null @@ -1,9368 +0,0 @@ ---- -openapi: 3.0.2 -info: - title: Keycloak Admin REST API - description: This is a REST API reference for the Keycloak Admin - version: '1' -paths: -# Login Manualisht - # "/auth/realms/{realm}": - # get: - # tags: - # - Login - # summary: Login - # responses: - # 2XX: - # description: success - # content: - # application/json: - # schema: - # "$ref": "#/components/schemas/LoginResponse" - # post: - # tags: - # - Login to Realm - # summary: Login with Username/Email and password - # requestBody: - # description: JSON representation of the realm - # content: - # application/json: - # schema: - # "$ref": "#/components/schemas/RealmRepresentation" - # required: true - # responses: - # 2XX: - # description: success -#end Login - "/": - get: - tags: - - Root - summary: Get themes, social providers, auth providers, and event listeners available - on this server - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ServerInfoRepresentation" - post: - tags: - - Realms Admin - summary: Import a realm Imports a realm from a full representation of that - realm. - requestBody: - description: JSON representation of the realm - content: - application/json: - schema: - "$ref": "#/components/schemas/RealmRepresentation" - required: true - responses: - 2XX: - description: success - "/{id}/name": - get: - tags: - - User Storage Provider - summary: Need this for admin console to display simple name of provider when - displaying client detail KEYCLOAK-4328 - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}": - get: - tags: - - Realms Admin - summary: Get the top-level representation of the realm It will not include - nested information like User and Client representations. - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RealmRepresentation" - put: - tags: - - Realms Admin - summary: Update the top-level information of the realm Any user, roles or - client information in the representation will be ignored. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RealmRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - summary: Delete the realm - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/admin-events": - get: - tags: - - Realms Admin - summary: Get admin events Returns all admin events, or filters events based - on URL query parameters listed here - parameters: - - in: query - name: authClient - schema: - type: string - style: form - - in: query - name: authIpAddress - schema: - type: string - style: form - - in: query - name: authRealm - schema: - type: string - style: form - - in: query - name: authUser - description: user id - schema: - type: string - style: form - - in: query - name: dateFrom - schema: - type: string - style: form - - in: query - name: dateTo - schema: - type: string - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - - in: query - name: operationTypes - schema: - type: array - items: - type: string - style: form - - in: query - name: resourcePath - schema: - type: string - style: form - - in: query - name: resourceTypes - schema: - type: array - items: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - delete: - tags: - - Realms Admin - summary: Delete all admin events - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/attack-detection/brute-force/users": - delete: - tags: - - Attack Detection - summary: Clear any user login failures for all users This can release temporary - disabled users - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/attack-detection/brute-force/users/{userId}": - get: - tags: - - Attack Detection - summary: Get status of a username in brute force detection - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - delete: - tags: - - Attack Detection - summary: Clear any user login failures for the user This can release temporary - disabled user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: userId - required: true - schema: - type: string - style: simple - "/{realm}/authentication/authenticator-providers": - get: - tags: - - Authentication Management - summary: Get authenticator providers Returns a stream of authenticator providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/client-authenticator-providers": - get: - tags: - - Authentication Management - summary: Get client authenticator providers Returns a stream of client authenticator - providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/config-description/{providerId}": - get: - tags: - - Authentication Management - summary: Get authenticator provider’s configuration description - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticatorConfigInfoRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: providerId - required: true - schema: - type: string - style: simple - "/{realm}/authentication/config/{id}": - get: - tags: - - Authentication Management - summary: Get authenticator configuration - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - put: - tags: - - Authentication Management - summary: Update authenticator configuration - requestBody: - description: JSON describing new state of authenticator configuration - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete authenticator configuration - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: Configuration id - required: true - schema: - type: string - style: simple - "/{realm}/authentication/executions": - post: - tags: - - Authentication Management - summary: Add new authentication execution - requestBody: - description: JSON model describing authentication execution - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticationExecutionRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/executions/{executionId}": - get: - tags: - - Authentication Management - summary: Get Single Execution - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete execution - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - "/{realm}/authentication/executions/{executionId}/config": - post: - tags: - - Authentication Management - summary: Update execution with new configuration - requestBody: - description: JSON with new configuration - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - "/{realm}/authentication/executions/{executionId}/lower-priority": - post: - tags: - - Authentication Management - summary: Lower execution’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - "/{realm}/authentication/executions/{executionId}/raise-priority": - post: - tags: - - Authentication Management - summary: Raise execution’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - "/{realm}/authentication/flows": - get: - tags: - - Authentication Management - summary: Get authentication flows Returns a stream of authentication flows. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Authentication Management - summary: Create a new authentication flow - requestBody: - description: Authentication flow representation - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/flows/{flowAlias}/copy": - post: - tags: - - Authentication Management - summary: Copy existing authentication flow under a new name The new name is - given as 'newName' attribute of the passed JSON object - requestBody: - description: JSON containing 'newName' attribute - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Name of the existing authentication flow - required: true - schema: - type: string - style: simple - "/{realm}/authentication/flows/{flowAlias}/executions": - get: - tags: - - Authentication Management - summary: Get authentication executions for a flow - responses: - 2XX: - description: success - put: - tags: - - Authentication Management - summary: Update authentication executions of a Flow - requestBody: - description: AuthenticationExecutionInfoRepresentation - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticationExecutionInfoRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Flow alias - required: true - schema: - type: string - style: simple - "/{realm}/authentication/flows/{flowAlias}/executions/execution": - post: - tags: - - Authentication Management - summary: Add new authentication execution to a flow - requestBody: - description: New execution JSON data containing 'provider' attribute - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Alias of parent flow - required: true - schema: - type: string - style: simple - "/{realm}/authentication/flows/{flowAlias}/executions/flow": - post: - tags: - - Authentication Management - summary: Add new flow with new execution to existing flow - requestBody: - description: New authentication flow / execution JSON data containing 'alias', - 'type', 'provider', and 'description' attributes - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Alias of parent authentication flow - required: true - schema: - type: string - style: simple - "/{realm}/authentication/flows/{id}": - get: - tags: - - Authentication Management - summary: Get authentication flow for id - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - put: - tags: - - Authentication Management - summary: Update an authentication flow - requestBody: - description: Authentication flow representation - content: - application/json: - schema: - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete an authentication flow - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: Flow id - required: true - schema: - type: string - style: simple - "/{realm}/authentication/form-action-providers": - get: - tags: - - Authentication Management - summary: Get form action providers Returns a stream of form action providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/form-providers": - get: - tags: - - Authentication Management - summary: Get form providers Returns a stream of form providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/per-client-config-description": - get: - tags: - - Authentication Management - summary: Get configuration descriptions for all clients - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/register-required-action": - post: - tags: - - Authentication Management - summary: Register a new required actions - requestBody: - description: JSON containing 'providerId', and 'name' attributes. - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/required-actions": - get: - tags: - - Authentication Management - summary: Get required actions Returns a stream of required actions. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/authentication/required-actions/{alias}": - get: - tags: - - Authentication Management - summary: Get required action for alias - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RequiredActionProviderRepresentation" - put: - tags: - - Authentication Management - summary: Update required action - requestBody: - description: JSON describing new state of required action - content: - application/json: - schema: - "$ref": "#/components/schemas/RequiredActionProviderRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete required action - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - description: Alias of required action - required: true - schema: - type: string - style: simple - "/{realm}/authentication/required-actions/{alias}/lower-priority": - post: - tags: - - Authentication Management - summary: Lower required action’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - description: Alias of required action - required: true - schema: - type: string - style: simple - "/{realm}/authentication/required-actions/{alias}/raise-priority": - post: - tags: - - Authentication Management - summary: Raise required action’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - description: Alias of required action - required: true - schema: - type: string - style: simple - "/{realm}/authentication/unregistered-required-actions": - get: - tags: - - Authentication Management - summary: Get unregistered required actions Returns a stream of unregistered - required actions. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clear-keys-cache": - post: - tags: - - Realms Admin - summary: Clear cache of external public keys (Public keys of clients or Identity - providers) - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clear-realm-cache": - post: - tags: - - Realms Admin - summary: Clear realm cache - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clear-user-cache": - post: - tags: - - Realms Admin - summary: Clear user cache - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/client-description-converter": - post: - tags: - - Realms Admin - summary: Base path for importing clients under this realm. - requestBody: - content: - text/plain: - schema: - type: string - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/client-policies/policies": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientPoliciesRepresentation" - put: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientPoliciesRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/client-policies/profiles": - get: - tags: - - Realms Admin - parameters: - - in: query - name: include-global-profiles - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientProfilesRepresentation" - put: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientProfilesRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/client-registration-policy/providers": - get: - tags: - - Client Registration Policy - summary: Base path for retrieve providers with the configProperties properly - filled - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes": - get: - tags: - - Client Scopes - summary: Get client scopes belonging to the realm Returns a list of client - scopes belonging to the realm - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Scopes - summary: Create a new client scope Client Scope’s name must be unique! - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientScopeRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}": - get: - tags: - - Protocol Mappers - summary: Get mapper by id - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - put: - tags: - - Protocol Mappers - summary: Update the mapper - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Protocol Mappers - summary: Delete the mapper - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id1 - required: true - schema: - type: string - style: simple - - in: path - name: id2 - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}": - get: - tags: - - Client Scopes - summary: Get representation of the client scope - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientScopeRepresentation" - put: - tags: - - Client Scopes - summary: Update the client scope - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientScopeRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Client Scopes - summary: Delete the client scope - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/protocol-mappers/add-models": - post: - tags: - - Protocol Mappers - summary: Create multiple mappers - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/protocol-mappers/models": - get: - tags: - - Protocol Mappers - summary: Get mappers - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Protocol Mappers - summary: Create a mapper - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}": - get: - tags: - - Protocol Mappers - summary: Get mappers by name for a specific protocol - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: protocol - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/scope-mappings/clients/{client}": - get: - tags: - - Scope Mappings - summary: Get the roles associated with a client’s scope Returns roles for - the client. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add client-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove client-level roles from the client’s scope. - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available": - get: - tags: - - Scope Mappings - summary: The available client-level roles Returns the roles for the client - that can be associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite": - get: - tags: - - Scope Mappings - summary: Get effective client roles Returns the roles for the client that - are associated with the client’s scope. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/scope-mappings/realm": - get: - tags: - - Scope Mappings - summary: Get realm-level roles associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add a set of realm-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove a set of realm-level roles from the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/scope-mappings/realm/available": - get: - tags: - - Scope Mappings - summary: Get realm-level roles that are available to attach to this client’s - scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - "/{realm}/client-scopes/{id}/scope-mappings/realm/composite": - get: - tags: - - Scope Mappings - summary: Get effective realm-level roles associated with the client’s scope What - this does is recurse any composite roles associated with the client’s scope - and adds the roles to this lists. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - "/{realm}/client-session-stats": - get: - tags: - - Realms Admin - summary: Get client session stats Returns a JSON map. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clients": - get: - tags: - - Clients - summary: Get clients belonging to the realm. - parameters: - - in: query - name: clientId - description: filter by clientId - schema: - type: string - style: form - - in: query - name: first - description: the first result - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: the max results to return - schema: - type: integer - format: int32 - style: form - - in: query - name: q - schema: - type: string - style: form - - in: query - name: search - description: whether this is a search query or a getClientById query - schema: - type: boolean - style: form - - in: query - name: viewableOnly - description: filter clients that cannot be viewed in full by admin - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Clients - summary: Create a new client Client’s client_id must be unique! - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clients-initial-access": - get: - tags: - - Client Initial Access - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Initial Access - summary: Create a new initial access token. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientInitialAccessCreatePresentation" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientInitialAccessPresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clients-initial-access/{id}": - delete: - tags: - - Client Initial Access - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id1}/protocol-mappers/models/{id2}": - get: - tags: - - Protocol Mappers - summary: Get mapper by id - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - put: - tags: - - Protocol Mappers - summary: Update the mapper - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Protocol Mappers - summary: Delete the mapper - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id1 - required: true - schema: - type: string - style: simple - - in: path - name: id2 - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}": - get: - tags: - - Clients - summary: Get representation of the client - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientRepresentation" - put: - tags: - - Clients - summary: Update the client - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Clients - summary: Delete the client - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/certificates/{attr}": - get: - tags: - - Client Attribute Certificate - summary: Get key info - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CertificateRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/certificates/{attr}/download": - post: - tags: - - Client Attribute Certificate - summary: Get a keystore file for the client, containing private key and public - certificate - requestBody: - description: Keystore configuration as JSON - content: - application/json: - schema: - "$ref": "#/components/schemas/KeyStoreConfig" - required: true - responses: - 2XX: - description: success - content: - application/octet-stream: - schema: - type: string - format: byte - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/certificates/{attr}/generate": - post: - tags: - - Client Attribute Certificate - summary: Generate a new certificate with new key pair - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CertificateRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/certificates/{attr}/generate-and-download": - post: - tags: - - Client Attribute Certificate - summary: 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. - requestBody: - description: Keystore configuration as JSON - content: - application/json: - schema: - "$ref": "#/components/schemas/KeyStoreConfig" - required: true - responses: - 2XX: - description: success - content: - application/octet-stream: - schema: - type: string - format: byte - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/certificates/{attr}/upload": - post: - tags: - - Client Attribute Certificate - summary: Upload certificate and eventually private key - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CertificateRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/certificates/{attr}/upload-certificate": - post: - tags: - - Client Attribute Certificate - summary: Upload only certificate, not private key - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CertificateRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/client-secret": - get: - tags: - - Clients - summary: Get the client secret - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CredentialRepresentation" - post: - tags: - - Clients - summary: Generate a new secret for the client - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CredentialRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/client-secret/rotated": - get: - tags: - - Clients - summary: Get the rotated client secret - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/CredentialRepresentation" - delete: - tags: - - Clients - summary: Invalidate the rotated secret for the client - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/default-client-scopes": - get: - tags: - - Clients - summary: Get default client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/default-client-scopes/{clientScopeId}": - put: - tags: - - Clients - responses: - 2XX: - description: success - delete: - tags: - - Clients - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/evaluate-scopes/generate-example-access-token": - get: - tags: - - Clients - summary: Create JSON with payload of example access token - parameters: - - in: query - name: scope - schema: - type: string - style: form - - in: query - name: userId - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/AccessToken" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/evaluate-scopes/generate-example-id-token": - get: - tags: - - Clients - summary: Create JSON with payload of example id token - parameters: - - in: query - name: scope - schema: - type: string - style: form - - in: query - name: userId - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/IDToken" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/evaluate-scopes/generate-example-userinfo": - get: - tags: - - Clients - summary: Create JSON with payload of example user info - parameters: - - in: query - name: scope - schema: - type: string - style: form - - in: query - name: userId - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/evaluate-scopes/protocol-mappers": - get: - tags: - - Clients - summary: Return list of all protocol mappers, which will be used when generating - tokens issued for particular client. - parameters: - - in: query - name: scope - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted": - get: - tags: - - Clients - summary: Get effective scope mapping of all roles of particular role container, - which this client is defacto allowed to have in the accessToken issued for - him. - parameters: - - in: query - name: scope - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: roleContainerId - description: either realm name OR client UUID - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted": - get: - tags: - - Clients - summary: Get roles, which this client doesn’t have scope for and can’t have - them in the accessToken issued for him. - parameters: - - in: query - name: scope - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: roleContainerId - description: either realm name OR client UUID - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/installation/providers/{providerId}": - get: - tags: - - Clients - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: providerId - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/management/permissions": - get: - tags: - - Clients - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Clients - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/nodes": - post: - tags: - - Clients - summary: Register a cluster node with the client Manually register cluster - node to this client - usually it’s not needed to call this directly as adapter - should handle by sending registration request to Keycloak - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/nodes/{node}": - delete: - tags: - - Clients - summary: Unregister a cluster node from the client - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: node - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/offline-session-count": - get: - tags: - - Clients - summary: 'Get application offline session count Returns a number of offline - user sessions associated with this client { "count": number }' - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/offline-sessions": - get: - tags: - - Clients - summary: Get offline sessions for client Returns a list of offline user sessions - associated with this client - parameters: - - in: query - name: first - description: Paging offset - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/optional-client-scopes": - get: - tags: - - Clients - summary: Get optional client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/optional-client-scopes/{clientScopeId}": - put: - tags: - - Clients - responses: - 2XX: - description: success - delete: - tags: - - Clients - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/protocol-mappers/add-models": - post: - tags: - - Protocol Mappers - summary: Create multiple mappers - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/protocol-mappers/models": - get: - tags: - - Protocol Mappers - summary: Get mappers - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Protocol Mappers - summary: Create a mapper - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/protocol-mappers/protocol/{protocol}": - get: - tags: - - Protocol Mappers - summary: Get mappers by name for a specific protocol - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: protocol - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/push-revocation": - post: - tags: - - Clients - summary: Push the client’s revocation policy to its admin URL If the client - has an admin URL, push revocation policy to it. - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/GlobalRequestResult" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/registration-access-token": - post: - tags: - - Clients - summary: Generate a new registration access token for the client - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ClientRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles": - get: - tags: - - Roles - summary: Get all roles for the realm or client - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Create a new role for the realm or client - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}": - get: - tags: - - Roles - summary: Get a role by name - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - put: - tags: - - Roles - summary: Update a role by name - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Delete a role by name - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}/composites": - get: - tags: - - Roles - summary: Get composites of the role - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Add a composite to the role - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Remove roles from the role’s composite - requestBody: - description: roles to remove - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}": - get: - tags: - - Roles - summary: Get client-level roles for the client that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}/composites/realm": - get: - tags: - - Roles - summary: Get realm-level roles of the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}/groups": - get: - tags: - - Roles - summary: Returns a stream of groups that have the specified role name - parameters: - - in: query - name: briefRepresentation - description: if false, return a full representation of the {@code GroupRepresentation} - objects. - schema: - type: boolean - style: form - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or {@code - null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}/management/permissions": - get: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/roles/{role-name}/users": - get: - tags: - - Roles - summary: Returns a stream of users that have the specified role name. - parameters: - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or {@code - null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/scope-mappings/clients/{client}": - get: - tags: - - Scope Mappings - summary: Get the roles associated with a client’s scope Returns roles for - the client. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add client-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove client-level roles from the client’s scope. - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/scope-mappings/clients/{client}/available": - get: - tags: - - Scope Mappings - summary: The available client-level roles Returns the roles for the client - that can be associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/scope-mappings/clients/{client}/composite": - get: - tags: - - Scope Mappings - summary: Get effective client roles Returns the roles for the client that - are associated with the client’s scope. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/scope-mappings/realm": - get: - tags: - - Scope Mappings - summary: Get realm-level roles associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add a set of realm-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove a set of realm-level roles from the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/scope-mappings/realm/available": - get: - tags: - - Scope Mappings - summary: Get realm-level roles that are available to attach to this client’s - scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/scope-mappings/realm/composite": - get: - tags: - - Scope Mappings - summary: Get effective realm-level roles associated with the client’s scope What - this does is recurse any composite roles associated with the client’s scope - and adds the roles to this lists. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/service-account-user": - get: - tags: - - Clients - summary: Get a user dedicated to the service account - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/UserRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/session-count": - get: - tags: - - Clients - summary: 'Get application session count Returns a number of user sessions - associated with this client { "count": number }' - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/test-nodes-available": - get: - tags: - - Clients - summary: Test if registered cluster nodes are available Tests availability - by sending 'ping' request to all cluster nodes. - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/GlobalRequestResult" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/clients/{id}/user-sessions": - get: - tags: - - Clients - summary: Get user sessions for client Returns a list of user sessions associated - with this client - parameters: - - in: query - name: first - description: Paging offset - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - "/{realm}/components": - get: - tags: - - Component - parameters: - - in: query - name: name - schema: - type: string - style: form - - in: query - name: parent - schema: - type: string - style: form - - in: query - name: type - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Component - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ComponentRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/components/{id}": - get: - tags: - - Component - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ComponentRepresentation" - put: - tags: - - Component - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ComponentRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Component - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/components/{id}/sub-component-types": - get: - tags: - - Component - summary: List of subcomponent types that are available to configure for a particular - parent component. - parameters: - - in: query - name: type - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/credential-registrators": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/default-default-client-scopes": - get: - tags: - - Realms Admin - summary: Get realm default client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/default-default-client-scopes/{clientScopeId}": - put: - tags: - - Realms Admin - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - "/{realm}/default-groups": - get: - tags: - - Realms Admin - summary: Get group hierarchy. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/default-groups/{groupId}": - put: - tags: - - Realms Admin - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: groupId - required: true - schema: - type: string - style: simple - "/{realm}/default-optional-client-scopes": - get: - tags: - - Realms Admin - summary: Get realm optional client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/default-optional-client-scopes/{clientScopeId}": - put: - tags: - - Realms Admin - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - "/{realm}/events": - get: - tags: - - Realms Admin - summary: Get events Returns all events, or filters them based on URL query - parameters listed here - parameters: - - in: query - name: client - description: App or oauth client name - schema: - type: string - style: form - - in: query - name: dateFrom - description: From date - schema: - type: string - style: form - - in: query - name: dateTo - description: To date - schema: - type: string - style: form - - in: query - name: first - description: Paging offset - schema: - type: integer - format: int32 - style: form - - in: query - name: ipAddress - description: IP address - schema: - type: string - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - - in: query - name: type - description: The types of events to return - schema: - type: array - items: - type: string - style: form - - in: query - name: user - description: User id - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - delete: - tags: - - Realms Admin - summary: Delete all events - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/events/config": - get: - tags: - - Realms Admin - summary: Get the events provider configuration Returns JSON object with events - provider configuration - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RealmEventsConfigRepresentation" - put: - tags: - - Realms Admin - summary: Update the events provider Change the events provider and/or its - configuration - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RealmEventsConfigRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/group-by-path/{path}": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/GroupRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: path - required: true - schema: - type: string - style: simple - "/{realm}/groups": - get: - tags: - - Groups - summary: Get group hierarchy. - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Groups - summary: create or add a top level realm groupSet or create child. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/GroupRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/groups/count": - get: - tags: - - Groups - summary: Returns the groups counts. - parameters: - - in: query - name: search - schema: - type: string - style: form - - in: query - name: top - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}": - get: - tags: - - Groups - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/GroupRepresentation" - put: - tags: - - Groups - summary: Update group, ignores subgroups. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/GroupRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Groups - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/children": - post: - tags: - - Groups - summary: Set or create child. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/GroupRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/management/permissions": - get: - tags: - - Groups - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Groups - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/members": - get: - tags: - - Groups - summary: Get users Returns a stream of users, filtered according to query - parameters - parameters: - - in: query - name: briefRepresentation - description: |- - Only return basic information (only guaranteed to return id, username, created, first and last name, - email, enabled state, email verification state, federation link, and access. - Note that it means that namely user attributes, required actions, and not before are not returned.) - schema: - type: boolean - style: form - - in: query - name: first - description: Pagination offset - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings": - get: - tags: - - Role Mapper - summary: Get role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/MappingsRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings/clients/{client}": - get: - tags: - - Client Role Mappings - summary: Get client-level role mappings for the user, and the app - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Role Mappings - summary: Add client-level roles to the user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Client Role Mappings - summary: Delete client-level roles from user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings/clients/{client}/available": - get: - tags: - - Client Role Mappings - summary: Get available client-level roles that can be mapped to the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings/clients/{client}/composite": - get: - tags: - - Client Role Mappings - summary: Get effective client-level role mappings This recurses any composite - roles - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings/realm": - get: - tags: - - Role Mapper - summary: Get realm-level role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Role Mapper - summary: Add realm-level role mappings to the user - requestBody: - description: Roles to add - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Role Mapper - summary: Delete realm-level role mappings - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings/realm/available": - get: - tags: - - Role Mapper - summary: Get realm-level roles that can be mapped - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/groups/{id}/role-mappings/realm/composite": - get: - tags: - - Role Mapper - summary: Get effective realm-level role mappings This will recurse all composite - roles to get the result. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/import-config": - post: - tags: - - Identity Providers - summary: Import identity provider from uploaded JSON file - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances": - get: - tags: - - Identity Providers - summary: Get identity providers - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Identity Providers - summary: Create a new identity provider - requestBody: - description: JSON body - content: - application/json: - schema: - "$ref": "#/components/schemas/IdentityProviderRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances/{alias}": - get: - tags: - - Identity Providers - summary: Get the identity provider - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/IdentityProviderRepresentation" - put: - tags: - - Identity Providers - summary: Update the identity provider - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/IdentityProviderRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Identity Providers - summary: Delete the identity provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances/{alias}/export": - get: - tags: - - Identity Providers - summary: Export public broker configuration for identity provider - parameters: - - in: query - name: format - description: Format to use - schema: - type: string - style: form - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances/{alias}/management/permissions": - get: - tags: - - Identity Providers - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Identity Providers - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances/{alias}/mapper-types": - get: - tags: - - Identity Providers - summary: Get mapper types for identity provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances/{alias}/mappers": - get: - tags: - - Identity Providers - summary: Get mappers for identity provider - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Identity Providers - summary: Add a mapper to identity provider - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/instances/{alias}/mappers/{id}": - get: - tags: - - Identity Providers - summary: Get mapper by id for the identity provider - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - put: - tags: - - Identity Providers - summary: Update a mapper for the identity provider - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Identity Providers - summary: Delete a mapper for the identity provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - - in: path - name: id - description: Mapper id - required: true - schema: - type: string - style: simple - "/{realm}/identity-provider/providers/{provider_id}": - get: - tags: - - Identity Providers - summary: Get identity providers - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: provider_id - description: Provider id - required: true - schema: - type: string - style: simple - "/{realm}/keys": - get: - tags: - - Key - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/KeysMetadataRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/ldap-server-capabilities": - post: - tags: - - Realms Admin - summary: Get LDAP supported extensions. - requestBody: - description: LDAP configuration - content: - application/json: - schema: - "$ref": "#/components/schemas/TestLdapConnectionRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/localization": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/localization/{locale}": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - post: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: locale - required: true - schema: - type: string - style: simple - "/{realm}/localization/{locale}/{key}": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - text/plain: - schema: - type: string - put: - tags: - - Realms Admin - requestBody: - content: - text/plain: - schema: - type: string - required: true - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: locale - required: true - schema: - type: string - style: simple - - in: path - name: key - required: true - schema: - type: string - style: simple - "/{realm}/logout-all": - post: - tags: - - Realms Admin - summary: Removes all user sessions. - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/GlobalRequestResult" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/partial-export": - post: - tags: - - Realms Admin - summary: Partial export of existing realm into a JSON file. - parameters: - - in: query - name: exportClients - schema: - type: boolean - style: form - - in: query - name: exportGroupsAndRoles - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RealmRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/partialImport": - post: - tags: - - Realms Admin - summary: Partial import from a JSON file to an existing realm. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/PartialImportRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/push-revocation": - post: - tags: - - Realms Admin - summary: Push the realm’s revocation policy to any client that has an admin - url associated with it. - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/roles": - get: - tags: - - Roles - summary: Get all roles for the realm or client - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Create a new role for the realm or client - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/roles-by-id/{role-id}": - get: - tags: - - Roles (by ID) - summary: Get a specific role’s representation - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - put: - tags: - - Roles (by ID) - summary: Update the role - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles (by ID) - summary: Delete the role - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - description: id of role - required: true - schema: - type: string - style: simple - "/{realm}/roles-by-id/{role-id}/composites": - get: - tags: - - Roles (by ID) - summary: Get role’s children Returns a set of role’s children provided the - role is a composite. - parameters: - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles (by ID) - summary: Make the role a composite role by associating some child roles - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles (by ID) - summary: Remove a set of roles from the role’s composite - requestBody: - description: A set of roles to be removed - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - description: Role id - required: true - schema: - type: string - style: simple - "/{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}": - get: - tags: - - Roles (by ID) - summary: Get client-level roles for the client that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - "/{realm}/roles-by-id/{role-id}/composites/realm": - get: - tags: - - Roles (by ID) - summary: Get realm-level roles that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - required: true - schema: - type: string - style: simple - "/{realm}/roles-by-id/{role-id}/management/permissions": - get: - tags: - - Roles (by ID) - summary: Return object stating whether role Authoirzation permissions have been - initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Roles (by ID) - summary: Return object stating whether role Authoirzation permissions have been - initialized or not and a reference - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}": - get: - tags: - - Roles - summary: Get a role by name - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - put: - tags: - - Roles - summary: Update a role by name - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Delete a role by name - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}/composites": - get: - tags: - - Roles - summary: Get composites of the role - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Add a composite to the role - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Remove roles from the role’s composite - requestBody: - description: roles to remove - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}/composites/clients/{clientUuid}": - get: - tags: - - Roles - summary: Get client-level roles for the client that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}/composites/realm": - get: - tags: - - Roles - summary: Get realm-level roles of the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}/groups": - get: - tags: - - Roles - summary: Returns a stream of groups that have the specified role name - parameters: - - in: query - name: briefRepresentation - description: if false, return a full representation of the {@code GroupRepresentation} - objects. - schema: - type: boolean - style: form - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or {@code - null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}/management/permissions": - get: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - required: true - schema: - type: string - style: simple - "/{realm}/roles/{role-name}/users": - get: - tags: - - Roles - summary: Returns a stream of users that have the specified role name. - parameters: - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or {@code - null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - "/{realm}/sessions/{session}": - delete: - tags: - - Realms Admin - summary: Remove a specific user session. - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: session - required: true - schema: - type: string - style: simple - "/{realm}/testLDAPConnection": - post: - tags: - - Realms Admin - summary: Test LDAP connection - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/TestLdapConnectionRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/testSMTPConnection": - post: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/user-storage/{id}/name": - get: - tags: - - User Storage Provider - summary: Need this for admin console to display simple name of provider when - displaying user detail KEYCLOAK-4328 - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/user-storage/{id}/remove-imported-users": - post: - tags: - - User Storage Provider - summary: Remove imported users - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/user-storage/{id}/sync": - post: - tags: - - User Storage Provider - summary: Trigger sync of users Action can be "triggerFullSync" or "triggerChangedUsersSync" - parameters: - - in: query - name: action - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/SynchronizationResult" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/user-storage/{id}/unlink-users": - post: - tags: - - User Storage Provider - summary: Unlink imported users from a storage provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/user-storage/{parentId}/mappers/{id}/sync": - post: - tags: - - User Storage Provider - summary: Trigger sync of mapper data related to ldap mapper (roles, groups, - …​) direction is "fedToKeycloak" or "keycloakToFed" - parameters: - - in: query - name: direction - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/SynchronizationResult" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: parentId - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - "/{realm}/users": - get: - tags: - - Users - summary: Get users Returns a stream of users, filtered according to query - parameters. - parameters: - - in: query - name: briefRepresentation - description: 'Boolean which defines whether brief representations are returned - (default: false)' - schema: - type: boolean - style: form - - in: query - name: email - description: A String contained in email, or the complete email, if param - "exact" is true - schema: - type: string - style: form - - in: query - name: emailVerified - description: whether the email has been verified - schema: - type: boolean - style: form - - in: query - name: enabled - description: Boolean representing if user is enabled or not - schema: - type: boolean - style: form - - in: query - name: exact - description: Boolean which defines whether the params "last", "first", "email" - and "username" must match exactly - schema: - type: boolean - style: form - - in: query - name: first - description: Pagination offset - schema: - type: integer - format: int32 - style: form - - in: query - name: firstName - description: A String contained in firstName, or the complete firstName, if - param "exact" is true - schema: - type: string - style: form - - in: query - name: idpAlias - description: The alias of an Identity Provider linked to the user - schema: - type: string - style: form - - in: query - name: idpUserId - description: The userId at an Identity Provider linked to the user - schema: - type: string - style: form - - in: query - name: lastName - description: A String contained in lastName, or the complete lastName, if - param "exact" is true - schema: - type: string - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - - in: query - name: q - description: A query to search for custom attributes, in the format 'key1:value2 - key2:value2' - schema: - type: string - style: form - - in: query - name: search - description: A String contained in username, first or last name, or email - schema: - type: string - style: form - - in: query - name: username - description: A String contained in username, or the complete username, if - param "exact" is true - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Users - summary: Create a new user Username must be unique. - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/UserRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/users-management-permissions": - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - put: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/ManagementPermissionReference" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/users/count": - get: - tags: - - Users - summary: Returns the number of users that match the given criteria. - parameters: - - in: query - name: email - description: email filter - schema: - type: string - style: form - - in: query - name: emailVerified - schema: - type: boolean - style: form - - in: query - name: enabled - description: Boolean representing if user is enabled or not - schema: - type: boolean - style: form - - in: query - name: firstName - description: first name filter - schema: - type: string - style: form - - in: query - name: lastName - description: last name filter - schema: - type: string - style: form - - in: query - name: search - description: arbitrary search string for all the fields below - schema: - type: string - style: form - - in: query - name: username - description: username filter - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: integer - format: int32 - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/users/profile": - get: - tags: - - Users - responses: - 2XX: - description: success - content: - application/json: - schema: - type: string - put: - tags: - - Users - requestBody: - content: - application/json: - schema: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}": - get: - tags: - - Users - summary: Get representation of the user - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/UserRepresentation" - put: - tags: - - Users - summary: Update the user - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/UserRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Users - summary: Delete the user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/configured-user-storage-credential-types": - get: - tags: - - Users - summary: Return credential types, which are provided by the user storage where - user is stored. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/consents": - get: - tags: - - Users - summary: Get consents granted by the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/consents/{client}": - delete: - tags: - - Users - summary: Revoke consent and offline tokens for particular client from user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - description: Client id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/credentials": - get: - tags: - - Users - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/credentials/{credentialId}": - delete: - tags: - - Users - summary: Remove a credential for a user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}": - post: - tags: - - Users - summary: Move a credential to a position behind another credential - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - description: The credential to move - required: true - schema: - type: string - style: simple - - in: path - name: newPreviousCredentialId - description: The credential that will be the previous element in the list. If - set to null, the moved credential will be the first element in the list. - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/credentials/{credentialId}/moveToFirst": - post: - tags: - - Users - summary: Move a credential to a first position in the credentials list of the - user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - description: The credential to move - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/credentials/{credentialId}/userLabel": - put: - tags: - - Users - summary: Update a credential label for a user - requestBody: - content: - text/plain: - schema: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/disable-credential-types": - put: - tags: - - Users - summary: Disable all credentials for a user of a specific type - requestBody: - content: - application/json: - schema: - type: array - items: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/execute-actions-email": - put: - tags: - - Users - summary: Send a update account email to the user An email contains a link - the user can click to perform a set of required actions. - parameters: - - in: query - name: client_id - description: Client id - schema: - type: string - style: form - - in: query - name: lifespan - description: Number of seconds after which the generated token expires - schema: - type: integer - format: int32 - style: form - - in: query - name: redirect_uri - description: Redirect uri - schema: - type: string - style: form - requestBody: - description: required actions the user needs to complete - content: - application/json: - schema: - type: array - items: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/federated-identity": - get: - tags: - - Users - summary: Get social logins associated with the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/federated-identity/{provider}": - post: - tags: - - Users - summary: Add a social login provider to the user - requestBody: - content: - application/json: - schema: - "$ref": "#/components/schemas/FederatedIdentityRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Users - summary: Remove a social login provider from user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: provider - description: Social login provider id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/groups": - get: - tags: - - Users - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/groups/count": - get: - tags: - - Users - parameters: - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/groups/{groupId}": - put: - tags: - - Users - responses: - 2XX: - description: success - delete: - tags: - - Users - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: groupId - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/impersonation": - post: - tags: - - Users - summary: Impersonate the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/logout": - post: - tags: - - Users - summary: Remove all user sessions associated with the user Also send notification - to all clients that have an admin URL to invalidate the sessions for the particular - user. - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/offline-sessions/{clientUuid}": - get: - tags: - - Users - summary: Get offline sessions associated with the user and client - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/reset-password": - put: - tags: - - Users - summary: Set up a new password for the user. - requestBody: - description: The representation must contain a rawPassword with the plain-text - password - content: - application/json: - schema: - "$ref": "#/components/schemas/CredentialRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings": - get: - tags: - - Role Mapper - summary: Get role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - "$ref": "#/components/schemas/MappingsRepresentation" - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings/clients/{client}": - get: - tags: - - Client Role Mappings - summary: Get client-level role mappings for the user, and the app - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Role Mappings - summary: Add client-level roles to the user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Client Role Mappings - summary: Delete client-level roles from user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings/clients/{client}/available": - get: - tags: - - Client Role Mappings - summary: Get available client-level roles that can be mapped to the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings/clients/{client}/composite": - get: - tags: - - Client Role Mappings - summary: Get effective client-level role mappings This recurses any composite - roles - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings/realm": - get: - tags: - - Role Mapper - summary: Get realm-level role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Role Mapper - summary: Add realm-level role mappings to the user - requestBody: - description: Roles to add - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - delete: - tags: - - Role Mapper - summary: Delete realm-level role mappings - requestBody: - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings/realm/available": - get: - tags: - - Role Mapper - summary: Get realm-level roles that can be mapped - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/role-mappings/realm/composite": - get: - tags: - - Role Mapper - summary: Get effective realm-level role mappings This will recurse all composite - roles to get the result. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/send-verify-email": - put: - tags: - - Users - summary: Send an email-verification email to the user An email contains a - link the user can click to verify their email address. - parameters: - - in: query - name: client_id - description: Client id - schema: - type: string - style: form - - in: query - name: redirect_uri - description: Redirect uri - schema: - type: string - style: form - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - "/{realm}/users/{id}/sessions": - get: - tags: - - Users - summary: Get sessions associated with the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple -components: - securitySchemes: - access_token: - type: http - scheme: bearer - bearerFormat: - schemas: - #LoginResponse Manual - # LoginResponse: - # type: object - # properties: - # access_token: - # type: string - # expires_in: - # type: integer - # format: int32 - # refresh_token: - # type: string - # refresh_expires_in: - # type: integer - # format: int32 - # token_type: - # type: string - # not-before-policy: - # type: integer - # format: int32 - # session_state: - # type: string - # token_type: - # scope: string - #EndLoginResponse - AccessToken: - type: object - properties: - acr: - type: string - address: - "$ref": "#/components/schemas/AddressClaimSet" - allowed-origins: - type: array - items: - type: string - at_hash: - type: string - auth_time: - type: integer - format: int64 - authorization: - "$ref": "#/components/schemas/AccessToken-Authorization" - azp: - type: string - birthdate: - type: string - c_hash: - type: string - category: - type: string - enum: - - INTERNAL - - ACCESS - - ID - - ADMIN - - USERINFO - - LOGOUT - - AUTHORIZATION_RESPONSE - claims_locales: - type: string - cnf: - "$ref": "#/components/schemas/AccessToken-CertConf" - email: - type: string - email_verified: - type: boolean - exp: - type: integer - format: int64 - family_name: - type: string - gender: - type: string - given_name: - type: string - iat: - type: integer - format: int64 - iss: - type: string - jti: - type: string - locale: - type: string - middle_name: - type: string - name: - type: string - nbf: - type: integer - format: int64 - nickname: - type: string - nonce: - type: string - otherClaims: - type: object - additionalProperties: true - phone_number: - type: string - phone_number_verified: - type: boolean - picture: - type: string - preferred_username: - type: string - profile: - type: string - realm_access: - "$ref": "#/components/schemas/AccessToken-Access" - s_hash: - type: string - scope: - type: string - session_state: - type: string - sid: - type: string - sub: - type: string - trusted-certs: - type: array - items: - type: string - typ: - type: string - updated_at: - type: integer - format: int64 - website: - type: string - zoneinfo: - type: string - AccessToken-Access: - type: object - properties: - roles: - type: array - items: - type: string - verify_caller: - type: boolean - AccessToken-Authorization: - type: object - properties: - permissions: - type: array - items: - "$ref": "#/components/schemas/Permission" - AccessToken-CertConf: - type: object - properties: - x5t#S256: - type: string - AddressClaimSet: - type: object - properties: - country: - type: string - formatted: - type: string - locality: - type: string - postal_code: - type: string - region: - type: string - street_address: - type: string - AuthenticationExecutionExportRepresentation: - type: object - properties: - authenticator: - type: string - authenticatorConfig: - type: string - authenticatorFlow: - type: boolean - flowAlias: - type: string - priority: - type: integer - format: int32 - requirement: - type: string - userSetupAllowed: - type: boolean - AuthenticationExecutionInfoRepresentation: - type: object - properties: - alias: - type: string - authenticationConfig: - type: string - authenticationFlow: - type: boolean - configurable: - type: boolean - description: - type: string - displayName: - type: string - flowId: - type: string - id: - type: string - index: - type: integer - format: int32 - level: - type: integer - format: int32 - providerId: - type: string - requirement: - type: string - requirementChoices: - type: array - items: - type: string - AuthenticationExecutionRepresentation: - type: object - properties: - authenticator: - type: string - authenticatorConfig: - type: string - authenticatorFlow: - type: boolean - flowId: - type: string - id: - type: string - parentFlow: - type: string - priority: - type: integer - format: int32 - requirement: - type: string - AuthenticationFlowRepresentation: - type: object - properties: - alias: - type: string - authenticationExecutions: - type: array - items: - "$ref": "#/components/schemas/AuthenticationExecutionExportRepresentation" - builtIn: - type: boolean - description: - type: string - id: - type: string - providerId: - type: string - topLevel: - type: boolean - AuthenticatorConfigInfoRepresentation: - type: object - properties: - helpText: - type: string - name: - type: string - properties: - type: array - items: - "$ref": "#/components/schemas/ConfigPropertyRepresentation" - providerId: - type: string - AuthenticatorConfigRepresentation: - type: object - properties: - alias: - type: string - config: - type: object - additionalProperties: true - id: - type: string - CertificateRepresentation: - type: object - properties: - certificate: - type: string - kid: - type: string - privateKey: - type: string - publicKey: - type: string - ClientInitialAccessCreatePresentation: - type: object - properties: - count: - type: integer - format: int32 - expiration: - type: integer - format: int32 - ClientInitialAccessPresentation: - type: object - properties: - count: - type: integer - format: int32 - expiration: - type: integer - format: int32 - id: - type: string - remainingCount: - type: integer - format: int32 - timestamp: - type: integer - format: int32 - token: - type: string - ClientMappingsRepresentation: - type: object - properties: - client: - type: string - id: - type: string - mappings: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - ClientPoliciesRepresentation: - type: object - properties: - policies: - type: array - items: - "$ref": "#/components/schemas/ClientPolicyRepresentation" - ClientPolicyConditionRepresentation: - type: object - properties: - condition: - type: string - configuration: - "$ref": "#/components/schemas/JsonNode" - ClientPolicyExecutorRepresentation: - type: object - properties: - configuration: - "$ref": "#/components/schemas/JsonNode" - executor: - type: string - ClientPolicyRepresentation: - type: object - properties: - conditions: - type: array - items: - "$ref": "#/components/schemas/ClientPolicyConditionRepresentation" - description: - type: string - enabled: - type: boolean - name: - type: string - profiles: - type: array - items: - type: string - ClientProfileRepresentation: - type: object - properties: - description: - type: string - executors: - type: array - items: - "$ref": "#/components/schemas/ClientPolicyExecutorRepresentation" - name: - type: string - ClientProfilesRepresentation: - type: object - properties: - globalProfiles: - type: array - items: - "$ref": "#/components/schemas/ClientProfileRepresentation" - profiles: - type: array - items: - "$ref": "#/components/schemas/ClientProfileRepresentation" - ClientRepresentation: - type: object - properties: - access: - type: object - additionalProperties: true - adminUrl: - type: string - alwaysDisplayInConsole: - type: boolean - attributes: - type: object - additionalProperties: true - authenticationFlowBindingOverrides: - type: object - additionalProperties: true - authorizationServicesEnabled: - type: boolean - authorizationSettings: - "$ref": "#/components/schemas/ResourceServerRepresentation" - baseUrl: - type: string - bearerOnly: - type: boolean - clientAuthenticatorType: - type: string - clientId: - type: string - consentRequired: - type: boolean - defaultClientScopes: - type: array - items: - type: string - description: - type: string - directAccessGrantsEnabled: - type: boolean - enabled: - type: boolean - frontchannelLogout: - type: boolean - fullScopeAllowed: - type: boolean - id: - type: string - implicitFlowEnabled: - type: boolean - name: - type: string - nodeReRegistrationTimeout: - type: integer - format: int32 - notBefore: - type: integer - format: int32 - oauth2DeviceAuthorizationGrantEnabled: - type: boolean - optionalClientScopes: - type: array - items: - type: string - origin: - type: string - protocol: - type: string - protocolMappers: - type: array - items: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - publicClient: - type: boolean - redirectUris: - type: array - items: - type: string - registeredNodes: - type: object - additionalProperties: true - registrationAccessToken: - type: string - rootUrl: - type: string - secret: - type: string - serviceAccountsEnabled: - type: boolean - standardFlowEnabled: - type: boolean - surrogateAuthRequired: - type: boolean - webOrigins: - type: array - items: - type: string - ClientScopeEvaluateResource-ProtocolMapperEvaluationRepresentation: - type: object - properties: - containerId: - type: string - containerName: - type: string - containerType: - type: string - mapperId: - type: string - mapperName: - type: string - protocolMapper: - type: string - ClientScopeRepresentation: - type: object - properties: - attributes: - type: object - additionalProperties: true - description: - type: string - id: - type: string - name: - type: string - protocol: - type: string - protocolMappers: - type: array - items: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - ComponentExportRepresentation: - type: object - properties: - config: - "$ref": "#/components/schemas/MultivaluedHashMap" - id: - type: string - name: - type: string - providerId: - type: string - subComponents: - "$ref": "#/components/schemas/MultivaluedHashMap" - subType: - type: string - ComponentRepresentation: - type: object - properties: - config: - "$ref": "#/components/schemas/MultivaluedHashMap" - id: - type: string - name: - type: string - parentId: - type: string - providerId: - type: string - providerType: - type: string - subType: - type: string - ConfigPropertyRepresentation: - type: object - properties: - defaultValue: - type: object - helpText: - type: string - label: - type: string - name: - type: string - options: - type: array - items: - type: string - readOnly: - type: boolean - secret: - type: boolean - type: - type: string - CredentialRepresentation: - type: object - properties: - createdDate: - type: integer - format: int64 - credentialData: - type: string - id: - type: string - priority: - type: integer - format: int32 - secretData: - type: string - temporary: - type: boolean - type: - type: string - userLabel: - type: string - value: - type: string - FederatedIdentityRepresentation: - type: object - properties: - identityProvider: - type: string - userId: - type: string - userName: - type: string - GlobalRequestResult: - type: object - properties: - failedRequests: - type: array - items: - type: string - successRequests: - type: array - items: - type: string - GroupRepresentation: - type: object - properties: - access: - type: object - additionalProperties: true - attributes: - type: object - additionalProperties: true - clientRoles: - type: object - additionalProperties: true - id: - type: string - name: - type: string - path: - type: string - realmRoles: - type: array - items: - type: string - subGroups: - type: array - items: - "$ref": "#/components/schemas/GroupRepresentation" - IDToken: - type: object - properties: - acr: - type: string - address: - "$ref": "#/components/schemas/AddressClaimSet" - at_hash: - type: string - auth_time: - type: integer - format: int64 - azp: - type: string - birthdate: - type: string - c_hash: - type: string - category: - type: string - enum: - - INTERNAL - - ACCESS - - ID - - ADMIN - - USERINFO - - LOGOUT - - AUTHORIZATION_RESPONSE - claims_locales: - type: string - email: - type: string - email_verified: - type: boolean - exp: - type: integer - format: int64 - family_name: - type: string - gender: - type: string - given_name: - type: string - iat: - type: integer - format: int64 - iss: - type: string - jti: - type: string - locale: - type: string - middle_name: - type: string - name: - type: string - nbf: - type: integer - format: int64 - nickname: - type: string - nonce: - type: string - otherClaims: - type: object - additionalProperties: true - phone_number: - type: string - phone_number_verified: - type: boolean - picture: - type: string - preferred_username: - type: string - profile: - type: string - s_hash: - type: string - session_state: - type: string - sid: - type: string - sub: - type: string - typ: - type: string - updated_at: - type: integer - format: int64 - website: - type: string - zoneinfo: - type: string - IdentityProviderMapperRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - id: - type: string - identityProviderAlias: - type: string - identityProviderMapper: - type: string - name: - type: string - IdentityProviderRepresentation: - type: object - properties: - addReadTokenRoleOnCreate: - type: boolean - alias: - type: string - config: - type: object - additionalProperties: true - displayName: - type: string - enabled: - type: boolean - firstBrokerLoginFlowAlias: - type: string - internalId: - type: string - linkOnly: - type: boolean - postBrokerLoginFlowAlias: - type: string - providerId: - type: string - storeToken: - type: boolean - trustEmail: - type: boolean - JsonNode: - type: object - properties: - array: - type: boolean - bigDecimal: - type: boolean - bigInteger: - type: boolean - binary: - type: boolean - boolean: - type: boolean - containerNode: - type: boolean - double: - type: boolean - empty: - type: boolean - float: - type: boolean - floatingPointNumber: - type: boolean - int: - type: boolean - integralNumber: - type: boolean - long: - type: boolean - missingNode: - type: boolean - nodeType: - type: string - enum: - - ARRAY - - BINARY - - BOOLEAN - - MISSING - - 'NULL' - - NUMBER - - OBJECT - - POJO - - STRING - 'null': - type: boolean - number: - type: boolean - object: - type: boolean - pojo: - type: boolean - short: - type: boolean - textual: - type: boolean - valueNode: - type: boolean - KeyStoreConfig: - type: object - properties: - format: - type: string - keyAlias: - type: string - keyPassword: - type: string - realmAlias: - type: string - realmCertificate: - type: boolean - storePassword: - type: string - KeysMetadataRepresentation: - type: object - properties: - active: - type: object - additionalProperties: true - keys: - type: array - items: - "$ref": "#/components/schemas/KeysMetadataRepresentation-KeyMetadataRepresentation" - KeysMetadataRepresentation-KeyMetadataRepresentation: - type: object - properties: - algorithm: - type: string - certificate: - type: string - kid: - type: string - providerId: - type: string - providerPriority: - type: integer - format: int64 - publicKey: - type: string - status: - type: string - type: - type: string - use: - type: string - enum: - - SIG - - ENC - ManagementPermissionReference: - type: object - properties: - enabled: - type: boolean - resource: - type: string - scopePermissions: - type: object - additionalProperties: true - MappingsRepresentation: - type: object - properties: - clientMappings: - type: object - additionalProperties: true - realmMappings: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - MemoryInfoRepresentation: - type: object - properties: - free: - type: integer - format: int64 - freeFormated: - type: string - freePercentage: - type: integer - format: int64 - total: - type: integer - format: int64 - totalFormated: - type: string - used: - type: integer - format: int64 - usedFormated: - type: string - MultivaluedHashMap: - type: object - properties: - empty: - type: boolean - loadFactor: - type: number - format: float - threshold: - type: integer - format: int32 - PartialImportRepresentation: - type: object - properties: - clients: - type: array - items: - "$ref": "#/components/schemas/ClientRepresentation" - groups: - type: array - items: - "$ref": "#/components/schemas/GroupRepresentation" - identityProviders: - type: array - items: - "$ref": "#/components/schemas/IdentityProviderRepresentation" - ifResourceExists: - type: string - policy: - type: string - enum: - - SKIP - - OVERWRITE - - FAIL - roles: - "$ref": "#/components/schemas/RolesRepresentation" - users: - type: array - items: - "$ref": "#/components/schemas/UserRepresentation" - PasswordPolicyTypeRepresentation: - type: object - properties: - configType: - type: string - defaultValue: - type: string - displayName: - type: string - id: - type: string - multipleSupported: - type: boolean - Permission: - type: object - properties: - claims: - type: object - additionalProperties: true - rsid: - type: string - rsname: - type: string - scopes: - type: array - items: - type: string - PolicyRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - decisionStrategy: - type: string - enum: - - AFFIRMATIVE - - UNANIMOUS - - CONSENSUS - description: - type: string - id: - type: string - logic: - type: string - enum: - - POSITIVE - - NEGATIVE - name: - type: string - owner: - type: string - policies: - type: array - items: - type: string - resources: - type: array - items: - type: string - resourcesData: - type: array - items: - "$ref": "#/components/schemas/ResourceRepresentation" - scopes: - type: array - items: - type: string - scopesData: - type: array - items: - "$ref": "#/components/schemas/ScopeRepresentation" - type: - type: string - ProfileInfoRepresentation: - type: object - properties: - disabledFeatures: - type: array - items: - type: string - experimentalFeatures: - type: array - items: - type: string - name: - type: string - previewFeatures: - type: array - items: - type: string - ProtocolMapperRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - id: - type: string - name: - type: string - protocol: - type: string - protocolMapper: - type: string - ProviderRepresentation: - type: object - properties: - operationalInfo: - type: object - additionalProperties: true - order: - type: integer - format: int32 - RealmEventsConfigRepresentation: - type: object - properties: - adminEventsDetailsEnabled: - type: boolean - adminEventsEnabled: - type: boolean - enabledEventTypes: - type: array - items: - type: string - eventsEnabled: - type: boolean - eventsExpiration: - type: integer - format: int64 - eventsListeners: - type: array - items: - type: string - RealmRepresentation: - type: object - properties: - accessCodeLifespan: - type: integer - format: int32 - accessCodeLifespanLogin: - type: integer - format: int32 - accessCodeLifespanUserAction: - type: integer - format: int32 - accessTokenLifespan: - type: integer - format: int32 - accessTokenLifespanForImplicitFlow: - type: integer - format: int32 - accountTheme: - type: string - actionTokenGeneratedByAdminLifespan: - type: integer - format: int32 - actionTokenGeneratedByUserLifespan: - type: integer - format: int32 - adminEventsDetailsEnabled: - type: boolean - adminEventsEnabled: - type: boolean - adminTheme: - type: string - attributes: - type: object - additionalProperties: true - authenticationFlows: - type: array - items: - "$ref": "#/components/schemas/AuthenticationFlowRepresentation" - authenticatorConfig: - type: array - items: - "$ref": "#/components/schemas/AuthenticatorConfigRepresentation" - browserFlow: - type: string - browserSecurityHeaders: - type: object - additionalProperties: true - bruteForceProtected: - type: boolean - clientAuthenticationFlow: - type: string - clientOfflineSessionIdleTimeout: - type: integer - format: int32 - clientOfflineSessionMaxLifespan: - type: integer - format: int32 - clientPolicies: - "$ref": "#/components/schemas/JsonNode" - clientProfiles: - "$ref": "#/components/schemas/JsonNode" - clientScopeMappings: - type: object - additionalProperties: true - clientScopes: - type: array - items: - "$ref": "#/components/schemas/ClientScopeRepresentation" - clientSessionIdleTimeout: - type: integer - format: int32 - clientSessionMaxLifespan: - type: integer - format: int32 - clients: - type: array - items: - "$ref": "#/components/schemas/ClientRepresentation" - components: - "$ref": "#/components/schemas/MultivaluedHashMap" - defaultDefaultClientScopes: - type: array - items: - type: string - defaultGroups: - type: array - items: - type: string - defaultLocale: - type: string - defaultOptionalClientScopes: - type: array - items: - type: string - defaultRole: - "$ref": "#/components/schemas/RoleRepresentation" - defaultSignatureAlgorithm: - type: string - directGrantFlow: - type: string - displayName: - type: string - displayNameHtml: - type: string - dockerAuthenticationFlow: - type: string - duplicateEmailsAllowed: - type: boolean - editUsernameAllowed: - type: boolean - emailTheme: - type: string - enabled: - type: boolean - enabledEventTypes: - type: array - items: - type: string - eventsEnabled: - type: boolean - eventsExpiration: - type: integer - format: int64 - eventsListeners: - type: array - items: - type: string - failureFactor: - type: integer - format: int32 - federatedUsers: - type: array - items: - "$ref": "#/components/schemas/UserRepresentation" - groups: - type: array - items: - "$ref": "#/components/schemas/GroupRepresentation" - id: - type: string - identityProviderMappers: - type: array - items: - "$ref": "#/components/schemas/IdentityProviderMapperRepresentation" - identityProviders: - type: array - items: - "$ref": "#/components/schemas/IdentityProviderRepresentation" - internationalizationEnabled: - type: boolean - keycloakVersion: - type: string - loginTheme: - type: string - loginWithEmailAllowed: - type: boolean - maxDeltaTimeSeconds: - type: integer - format: int32 - maxFailureWaitSeconds: - type: integer - format: int32 - minimumQuickLoginWaitSeconds: - type: integer - format: int32 - notBefore: - type: integer - format: int32 - oAuth2DeviceCodeLifespan: - type: integer - format: int32 - oAuth2DevicePollingInterval: - type: integer - format: int32 - oauth2DeviceCodeLifespan: - type: integer - format: int32 - oauth2DevicePollingInterval: - type: integer - format: int32 - offlineSessionIdleTimeout: - type: integer - format: int32 - offlineSessionMaxLifespan: - type: integer - format: int32 - offlineSessionMaxLifespanEnabled: - type: boolean - otpPolicyAlgorithm: - type: string - otpPolicyDigits: - type: integer - format: int32 - otpPolicyInitialCounter: - type: integer - format: int32 - otpPolicyLookAheadWindow: - type: integer - format: int32 - otpPolicyPeriod: - type: integer - format: int32 - otpPolicyType: - type: string - otpSupportedApplications: - type: array - items: - type: string - passwordPolicy: - type: string - permanentLockout: - type: boolean - protocolMappers: - type: array - items: - "$ref": "#/components/schemas/ProtocolMapperRepresentation" - quickLoginCheckMilliSeconds: - type: integer - format: int64 - realm: - type: string - refreshTokenMaxReuse: - type: integer - format: int32 - registrationAllowed: - type: boolean - registrationEmailAsUsername: - type: boolean - registrationFlow: - type: string - rememberMe: - type: boolean - requiredActions: - type: array - items: - "$ref": "#/components/schemas/RequiredActionProviderRepresentation" - resetCredentialsFlow: - type: string - resetPasswordAllowed: - type: boolean - revokeRefreshToken: - type: boolean - roles: - "$ref": "#/components/schemas/RolesRepresentation" - scopeMappings: - type: array - items: - "$ref": "#/components/schemas/ScopeMappingRepresentation" - smtpServer: - type: object - additionalProperties: true - sslRequired: - type: string - ssoSessionIdleTimeout: - type: integer - format: int32 - ssoSessionIdleTimeoutRememberMe: - type: integer - format: int32 - ssoSessionMaxLifespan: - type: integer - format: int32 - ssoSessionMaxLifespanRememberMe: - type: integer - format: int32 - supportedLocales: - type: array - items: - type: string - userFederationMappers: - type: array - items: - "$ref": "#/components/schemas/UserFederationMapperRepresentation" - userFederationProviders: - type: array - items: - "$ref": "#/components/schemas/UserFederationProviderRepresentation" - userManagedAccessAllowed: - type: boolean - users: - type: array - items: - "$ref": "#/components/schemas/UserRepresentation" - verifyEmail: - type: boolean - waitIncrementSeconds: - type: integer - format: int32 - webAuthnPolicyAcceptableAaguids: - type: array - items: - type: string - webAuthnPolicyAttestationConveyancePreference: - type: string - webAuthnPolicyAuthenticatorAttachment: - type: string - webAuthnPolicyAvoidSameAuthenticatorRegister: - type: boolean - webAuthnPolicyCreateTimeout: - type: integer - format: int32 - webAuthnPolicyPasswordlessAcceptableAaguids: - type: array - items: - type: string - webAuthnPolicyPasswordlessAttestationConveyancePreference: - type: string - webAuthnPolicyPasswordlessAuthenticatorAttachment: - type: string - webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: - type: boolean - webAuthnPolicyPasswordlessCreateTimeout: - type: integer - format: int32 - webAuthnPolicyPasswordlessRequireResidentKey: - type: string - webAuthnPolicyPasswordlessRpEntityName: - type: string - webAuthnPolicyPasswordlessRpId: - type: string - webAuthnPolicyPasswordlessSignatureAlgorithms: - type: array - items: - type: string - webAuthnPolicyPasswordlessUserVerificationRequirement: - type: string - webAuthnPolicyRequireResidentKey: - type: string - webAuthnPolicyRpEntityName: - type: string - webAuthnPolicyRpId: - type: string - webAuthnPolicySignatureAlgorithms: - type: array - items: - type: string - webAuthnPolicyUserVerificationRequirement: - type: string - RequiredActionProviderRepresentation: - type: object - properties: - alias: - type: string - config: - type: object - additionalProperties: true - defaultAction: - type: boolean - enabled: - type: boolean - name: - type: string - priority: - type: integer - format: int32 - providerId: - type: string - ResourceRepresentation: - type: object - properties: - id: - type: string - attributes: - type: object - additionalProperties: true - displayName: - type: string - icon_uri: - type: string - name: - type: string - ownerManagedAccess: - type: boolean - scopes: - type: array - items: - "$ref": "#/components/schemas/ScopeRepresentation" - type: - type: string - uris: - type: array - items: - type: string - ResourceServerRepresentation: - type: object - properties: - allowRemoteResourceManagement: - type: boolean - clientId: - type: string - decisionStrategy: - type: string - enum: - - AFFIRMATIVE - - UNANIMOUS - - CONSENSUS - id: - type: string - name: - type: string - policies: - type: array - items: - "$ref": "#/components/schemas/PolicyRepresentation" - policyEnforcementMode: - type: string - enum: - - ENFORCING - - PERMISSIVE - - DISABLED - resources: - type: array - items: - "$ref": "#/components/schemas/ResourceRepresentation" - scopes: - type: array - items: - "$ref": "#/components/schemas/ScopeRepresentation" - RoleRepresentation: - type: object - properties: - attributes: - type: object - additionalProperties: true - clientRole: - type: boolean - composite: - type: boolean - composites: - "$ref": "#/components/schemas/RoleRepresentation-Composites" - containerId: - type: string - description: - type: string - id: - type: string - name: - type: string - RoleRepresentation-Composites: - type: object - properties: - client: - type: object - additionalProperties: true - realm: - type: array - items: - type: string - RolesRepresentation: - type: object - properties: - client: - type: object - additionalProperties: true - realm: - type: array - items: - "$ref": "#/components/schemas/RoleRepresentation" - ScopeMappingRepresentation: - type: object - properties: - client: - type: string - clientScope: - type: string - roles: - type: array - items: - type: string - self: - type: string - ScopeRepresentation: - type: object - properties: - displayName: - type: string - iconUri: - type: string - id: - type: string - name: - type: string - policies: - type: array - items: - "$ref": "#/components/schemas/PolicyRepresentation" - resources: - type: array - items: - "$ref": "#/components/schemas/ResourceRepresentation" - ServerInfoRepresentation: - type: object - properties: - builtinProtocolMappers: - type: object - additionalProperties: true - clientImporters: - type: array - items: - type: object - additionalProperties: true - clientInstallations: - type: object - additionalProperties: true - componentTypes: - type: object - additionalProperties: true - enums: - type: object - additionalProperties: true - identityProviders: - type: array - items: - type: object - additionalProperties: true - memoryInfo: - "$ref": "#/components/schemas/MemoryInfoRepresentation" - passwordPolicies: - type: array - items: - "$ref": "#/components/schemas/PasswordPolicyTypeRepresentation" - profileInfo: - "$ref": "#/components/schemas/ProfileInfoRepresentation" - protocolMapperTypes: - type: object - additionalProperties: true - providers: - type: object - additionalProperties: true - socialProviders: - type: array - items: - type: object - additionalProperties: true - systemInfo: - "$ref": "#/components/schemas/SystemInfoRepresentation" - themes: - type: object - additionalProperties: true - SpiInfoRepresentation: - type: object - properties: - internal: - type: boolean - providers: - type: object - additionalProperties: true - SynchronizationResult: - type: object - properties: - added: - type: integer - format: int32 - failed: - type: integer - format: int32 - ignored: - type: boolean - removed: - type: integer - format: int32 - status: - type: string - updated: - type: integer - format: int32 - SystemInfoRepresentation: - type: object - properties: - fileEncoding: - type: string - javaHome: - type: string - javaRuntime: - type: string - javaVendor: - type: string - javaVersion: - type: string - javaVm: - type: string - javaVmVersion: - type: string - osArchitecture: - type: string - osName: - type: string - osVersion: - type: string - serverTime: - type: string - uptime: - type: string - uptimeMillis: - type: integer - format: int64 - userDir: - type: string - userLocale: - type: string - userName: - type: string - userTimezone: - type: string - version: - type: string - TestLdapConnectionRepresentation: - type: object - properties: - action: - type: string - authType: - type: string - bindCredential: - type: string - bindDn: - type: string - componentId: - type: string - connectionTimeout: - type: string - connectionUrl: - type: string - startTls: - type: string - useTruststoreSpi: - type: string - UserConsentRepresentation: - type: object - properties: - clientId: - type: string - createdDate: - type: integer - format: int64 - grantedClientScopes: - type: array - items: - type: string - lastUpdatedDate: - type: integer - format: int64 - UserFederationMapperRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - federationMapperType: - type: string - federationProviderDisplayName: - type: string - id: - type: string - name: - type: string - UserFederationProviderRepresentation: - type: object - properties: - changedSyncPeriod: - type: integer - format: int32 - config: - type: object - additionalProperties: true - displayName: - type: string - fullSyncPeriod: - type: integer - format: int32 - id: - type: string - lastSync: - type: integer - format: int32 - priority: - type: integer - format: int32 - providerName: - type: string - UserRepresentation: - type: object - properties: - access: - type: object - additionalProperties: true - attributes: - type: object - additionalProperties: true - clientConsents: - type: array - items: - "$ref": "#/components/schemas/UserConsentRepresentation" - clientRoles: - type: object - additionalProperties: true - createdTimestamp: - type: integer - format: int64 - credentials: - type: array - items: - "$ref": "#/components/schemas/CredentialRepresentation" - disableableCredentialTypes: - type: array - items: - type: string - email: - type: string - emailVerified: - type: boolean - enabled: - type: boolean - federatedIdentities: - type: array - items: - "$ref": "#/components/schemas/FederatedIdentityRepresentation" - federationLink: - type: string - firstName: - type: string - groups: - type: array - items: - type: string - id: - type: string - lastName: - type: string - notBefore: - type: integer - format: int32 - origin: - type: string - realmRoles: - type: array - items: - type: string - requiredActions: - type: array - items: - type: string - self: - type: string - serviceAccountClientId: - type: string - username: - type: string -security: -- access_token: [] -externalDocs: - description: Schema source code - url: https://github.com/keycloak/keycloak/tree/6.0.1/core/src/main/java/org/keycloak/representations diff --git a/backend/keycloak/openapi.yaml b/backend/keycloak/openapi.yaml deleted file mode 100644 index d414bf5..0000000 --- a/backend/keycloak/openapi.yaml +++ /dev/null @@ -1,9318 +0,0 @@ -openapi: 3.0.2 -info: - version: 1.0.0 - title: Keycloak Admin REST API - license: - name: MIT - -paths: - /: - get: - tags: - - Root - summary: Get themes, social providers, auth providers, and event listeners available - on this server - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ServerInfoRepresentation' - post: - tags: - - Realms Admin - summary: Import a realm Imports a realm from a full representation of that - realm. - requestBody: - description: JSON representation of the realm - content: - application/json: - schema: - $ref: '#/components/schemas/RealmRepresentation' - required: true - responses: - 2XX: - description: success - /{id}/name: - get: - tags: - - User Storage Provider - summary: Need this for admin console to display simple name of provider when - displaying client detail KEYCLOAK-4328 - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}: - get: - tags: - - Realms Admin - summary: Get the top-level representation of the realm It will not include - nested information like User and Client representations. - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RealmRepresentation' - put: - tags: - - Realms Admin - summary: Update the top-level information of the realm Any user, roles or - client information in the representation will be ignored. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RealmRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - summary: Delete the realm - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/admin-events: - get: - tags: - - Realms Admin - summary: Get admin events Returns all admin events, or filters events based - on URL query parameters listed here - parameters: - - in: query - name: authClient - schema: - type: string - style: form - - in: query - name: authIpAddress - schema: - type: string - style: form - - in: query - name: authRealm - schema: - type: string - style: form - - in: query - name: authUser - description: user id - schema: - type: string - style: form - - in: query - name: dateFrom - schema: - type: string - style: form - - in: query - name: dateTo - schema: - type: string - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - - in: query - name: operationTypes - schema: - type: array - items: - type: string - style: form - - in: query - name: resourcePath - schema: - type: string - style: form - - in: query - name: resourceTypes - schema: - type: array - items: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - delete: - tags: - - Realms Admin - summary: Delete all admin events - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/attack-detection/brute-force/users: - delete: - tags: - - Attack Detection - summary: Clear any user login failures for all users This can release temporary - disabled users - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/attack-detection/brute-force/users/{userId}: - get: - tags: - - Attack Detection - summary: Get status of a username in brute force detection - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - delete: - tags: - - Attack Detection - summary: Clear any user login failures for the user This can release temporary - disabled user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: userId - required: true - schema: - type: string - style: simple - /{realm}/authentication/authenticator-providers: - get: - tags: - - Authentication Management - summary: Get authenticator providers Returns a stream of authenticator providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/client-authenticator-providers: - get: - tags: - - Authentication Management - summary: Get client authenticator providers Returns a stream of client authenticator - providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/config-description/{providerId}: - get: - tags: - - Authentication Management - summary: Get authenticator provider’s configuration description - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorConfigInfoRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: providerId - required: true - schema: - type: string - style: simple - /{realm}/authentication/config/{id}: - get: - tags: - - Authentication Management - summary: Get authenticator configuration - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorConfigRepresentation' - put: - tags: - - Authentication Management - summary: Update authenticator configuration - requestBody: - description: JSON describing new state of authenticator configuration - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorConfigRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete authenticator configuration - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: Configuration id - required: true - schema: - type: string - style: simple - /{realm}/authentication/executions: - post: - tags: - - Authentication Management - summary: Add new authentication execution - requestBody: - description: JSON model describing authentication execution - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticationExecutionRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/executions/{executionId}: - get: - tags: - - Authentication Management - summary: Get Single Execution - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete execution - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - /{realm}/authentication/executions/{executionId}/config: - post: - tags: - - Authentication Management - summary: Update execution with new configuration - requestBody: - description: JSON with new configuration - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticatorConfigRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - /{realm}/authentication/executions/{executionId}/lower-priority: - post: - tags: - - Authentication Management - summary: Lower execution’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - /{realm}/authentication/executions/{executionId}/raise-priority: - post: - tags: - - Authentication Management - summary: Raise execution’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: executionId - description: Execution id - required: true - schema: - type: string - style: simple - /{realm}/authentication/flows: - get: - tags: - - Authentication Management - summary: Get authentication flows Returns a stream of authentication flows. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Authentication Management - summary: Create a new authentication flow - requestBody: - description: Authentication flow representation - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticationFlowRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/flows/{flowAlias}/copy: - post: - tags: - - Authentication Management - summary: Copy existing authentication flow under a new name The new name is - given as 'newName' attribute of the passed JSON object - requestBody: - description: JSON containing 'newName' attribute - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Name of the existing authentication flow - required: true - schema: - type: string - style: simple - /{realm}/authentication/flows/{flowAlias}/executions: - get: - tags: - - Authentication Management - summary: Get authentication executions for a flow - responses: - 2XX: - description: success - put: - tags: - - Authentication Management - summary: Update authentication executions of a Flow - requestBody: - description: AuthenticationExecutionInfoRepresentation - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticationExecutionInfoRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Flow alias - required: true - schema: - type: string - style: simple - /{realm}/authentication/flows/{flowAlias}/executions/execution: - post: - tags: - - Authentication Management - summary: Add new authentication execution to a flow - requestBody: - description: New execution JSON data containing 'provider' attribute - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Alias of parent flow - required: true - schema: - type: string - style: simple - /{realm}/authentication/flows/{flowAlias}/executions/flow: - post: - tags: - - Authentication Management - summary: Add new flow with new execution to existing flow - requestBody: - description: New authentication flow / execution JSON data containing 'alias', - 'type', 'provider', and 'description' attributes - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: flowAlias - description: Alias of parent authentication flow - required: true - schema: - type: string - style: simple - /{realm}/authentication/flows/{id}: - get: - tags: - - Authentication Management - summary: Get authentication flow for id - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticationFlowRepresentation' - put: - tags: - - Authentication Management - summary: Update an authentication flow - requestBody: - description: Authentication flow representation - content: - application/json: - schema: - $ref: '#/components/schemas/AuthenticationFlowRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete an authentication flow - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: Flow id - required: true - schema: - type: string - style: simple - /{realm}/authentication/form-action-providers: - get: - tags: - - Authentication Management - summary: Get form action providers Returns a stream of form action providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/form-providers: - get: - tags: - - Authentication Management - summary: Get form providers Returns a stream of form providers. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/per-client-config-description: - get: - tags: - - Authentication Management - summary: Get configuration descriptions for all clients - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/register-required-action: - post: - tags: - - Authentication Management - summary: Register a new required actions - requestBody: - description: JSON containing 'providerId', and 'name' attributes. - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/required-actions: - get: - tags: - - Authentication Management - summary: Get required actions Returns a stream of required actions. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/authentication/required-actions/{alias}: - get: - tags: - - Authentication Management - summary: Get required action for alias - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RequiredActionProviderRepresentation' - put: - tags: - - Authentication Management - summary: Update required action - requestBody: - description: JSON describing new state of required action - content: - application/json: - schema: - $ref: '#/components/schemas/RequiredActionProviderRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Authentication Management - summary: Delete required action - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - description: Alias of required action - required: true - schema: - type: string - style: simple - /{realm}/authentication/required-actions/{alias}/lower-priority: - post: - tags: - - Authentication Management - summary: Lower required action’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - description: Alias of required action - required: true - schema: - type: string - style: simple - /{realm}/authentication/required-actions/{alias}/raise-priority: - post: - tags: - - Authentication Management - summary: Raise required action’s priority - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - description: Alias of required action - required: true - schema: - type: string - style: simple - /{realm}/authentication/unregistered-required-actions: - get: - tags: - - Authentication Management - summary: Get unregistered required actions Returns a stream of unregistered - required actions. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clear-keys-cache: - post: - tags: - - Realms Admin - summary: Clear cache of external public keys (Public keys of clients or Identity - providers) - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clear-realm-cache: - post: - tags: - - Realms Admin - summary: Clear realm cache - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clear-user-cache: - post: - tags: - - Realms Admin - summary: Clear user cache - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/client-description-converter: - post: - tags: - - Realms Admin - summary: Base path for importing clients under this realm. - requestBody: - content: - text/plain: - schema: - type: string - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/client-policies/policies: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientPoliciesRepresentation' - put: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientPoliciesRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/client-policies/profiles: - get: - tags: - - Realms Admin - parameters: - - in: query - name: include-global-profiles - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientProfilesRepresentation' - put: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientProfilesRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/client-registration-policy/providers: - get: - tags: - - Client Registration Policy - summary: Base path for retrieve providers with the configProperties properly - filled - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes: - get: - tags: - - Client Scopes - summary: Get client scopes belonging to the realm Returns a list of client - scopes belonging to the realm - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Scopes - summary: Create a new client scope Client Scope’s name must be unique! - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientScopeRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id1}/protocol-mappers/models/{id2}: - get: - tags: - - Protocol Mappers - summary: Get mapper by id - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - put: - tags: - - Protocol Mappers - summary: Update the mapper - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Protocol Mappers - summary: Delete the mapper - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id1 - required: true - schema: - type: string - style: simple - - in: path - name: id2 - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}: - get: - tags: - - Client Scopes - summary: Get representation of the client scope - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientScopeRepresentation' - put: - tags: - - Client Scopes - summary: Update the client scope - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientScopeRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Client Scopes - summary: Delete the client scope - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/protocol-mappers/add-models: - post: - tags: - - Protocol Mappers - summary: Create multiple mappers - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/protocol-mappers/models: - get: - tags: - - Protocol Mappers - summary: Get mappers - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Protocol Mappers - summary: Create a mapper - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/protocol-mappers/protocol/{protocol}: - get: - tags: - - Protocol Mappers - summary: Get mappers by name for a specific protocol - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: protocol - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/scope-mappings/clients/{client}: - get: - tags: - - Scope Mappings - summary: Get the roles associated with a client’s scope Returns roles for - the client. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add client-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove client-level roles from the client’s scope. - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/scope-mappings/clients/{client}/available: - get: - tags: - - Scope Mappings - summary: The available client-level roles Returns the roles for the client - that can be associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/scope-mappings/clients/{client}/composite: - get: - tags: - - Scope Mappings - summary: Get effective client roles Returns the roles for the client that - are associated with the client’s scope. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/scope-mappings/realm: - get: - tags: - - Scope Mappings - summary: Get realm-level roles associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add a set of realm-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove a set of realm-level roles from the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/scope-mappings/realm/available: - get: - tags: - - Scope Mappings - summary: Get realm-level roles that are available to attach to this client’s - scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - /{realm}/client-scopes/{id}/scope-mappings/realm/composite: - get: - tags: - - Scope Mappings - summary: Get effective realm-level roles associated with the client’s scope What - this does is recurse any composite roles associated with the client’s scope - and adds the roles to this lists. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client scope (not name) - required: true - schema: - type: string - style: simple - /{realm}/client-session-stats: - get: - tags: - - Realms Admin - summary: Get client session stats Returns a JSON map. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clients: - get: - tags: - - Clients - summary: Get clients belonging to the realm. - parameters: - - in: query - name: clientId - description: filter by clientId - schema: - type: string - style: form - - in: query - name: first - description: the first result - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: the max results to return - schema: - type: integer - format: int32 - style: form - - in: query - name: q - schema: - type: string - style: form - - in: query - name: search - description: whether this is a search query or a getClientById query - schema: - type: boolean - style: form - - in: query - name: viewableOnly - description: filter clients that cannot be viewed in full by admin - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Clients - summary: Create a new client Client’s client_id must be unique! - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clients-initial-access: - get: - tags: - - Client Initial Access - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Initial Access - summary: Create a new initial access token. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientInitialAccessCreatePresentation' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientInitialAccessPresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clients-initial-access/{id}: - delete: - tags: - - Client Initial Access - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/clients/{id1}/protocol-mappers/models/{id2}: - get: - tags: - - Protocol Mappers - summary: Get mapper by id - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - put: - tags: - - Protocol Mappers - summary: Update the mapper - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Protocol Mappers - summary: Delete the mapper - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id1 - required: true - schema: - type: string - style: simple - - in: path - name: id2 - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}: - get: - tags: - - Clients - summary: Get representation of the client - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRepresentation' - put: - tags: - - Clients - summary: Update the client - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Clients - summary: Delete the client - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/certificates/{attr}: - get: - tags: - - Client Attribute Certificate - summary: Get key info - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CertificateRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/certificates/{attr}/download: - post: - tags: - - Client Attribute Certificate - summary: Get a keystore file for the client, containing private key and public - certificate - requestBody: - description: Keystore configuration as JSON - content: - application/json: - schema: - $ref: '#/components/schemas/KeyStoreConfig' - required: true - responses: - 2XX: - description: success - content: - application/octet-stream: - schema: - type: string - format: byte - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/certificates/{attr}/generate: - post: - tags: - - Client Attribute Certificate - summary: Generate a new certificate with new key pair - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CertificateRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/certificates/{attr}/generate-and-download: - post: - tags: - - Client Attribute Certificate - summary: 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. - requestBody: - description: Keystore configuration as JSON - content: - application/json: - schema: - $ref: '#/components/schemas/KeyStoreConfig' - required: true - responses: - 2XX: - description: success - content: - application/octet-stream: - schema: - type: string - format: byte - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/certificates/{attr}/upload: - post: - tags: - - Client Attribute Certificate - summary: Upload certificate and eventually private key - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CertificateRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/certificates/{attr}/upload-certificate: - post: - tags: - - Client Attribute Certificate - summary: Upload only certificate, not private key - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CertificateRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: attr - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/client-secret: - get: - tags: - - Clients - summary: Get the client secret - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CredentialRepresentation' - post: - tags: - - Clients - summary: Generate a new secret for the client - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CredentialRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/client-secret/rotated: - get: - tags: - - Clients - summary: Get the rotated client secret - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/CredentialRepresentation' - delete: - tags: - - Clients - summary: Invalidate the rotated secret for the client - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/default-client-scopes: - get: - tags: - - Clients - summary: Get default client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/default-client-scopes/{clientScopeId}: - put: - tags: - - Clients - responses: - 2XX: - description: success - delete: - tags: - - Clients - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/evaluate-scopes/generate-example-access-token: - get: - tags: - - Clients - summary: Create JSON with payload of example access token - parameters: - - in: query - name: scope - schema: - type: string - style: form - - in: query - name: userId - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/AccessToken' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/evaluate-scopes/generate-example-id-token: - get: - tags: - - Clients - summary: Create JSON with payload of example id token - parameters: - - in: query - name: scope - schema: - type: string - style: form - - in: query - name: userId - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/IDToken' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/evaluate-scopes/generate-example-userinfo: - get: - tags: - - Clients - summary: Create JSON with payload of example user info - parameters: - - in: query - name: scope - schema: - type: string - style: form - - in: query - name: userId - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/evaluate-scopes/protocol-mappers: - get: - tags: - - Clients - summary: Return list of all protocol mappers, which will be used when generating - tokens issued for particular client. - parameters: - - in: query - name: scope - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/granted: - get: - tags: - - Clients - summary: Get effective scope mapping of all roles of particular role container, - which this client is defacto allowed to have in the accessToken issued for - him. - parameters: - - in: query - name: scope - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: roleContainerId - description: either realm name OR client UUID - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted: - get: - tags: - - Clients - summary: Get roles, which this client doesn’t have scope for and can’t have - them in the accessToken issued for him. - parameters: - - in: query - name: scope - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: roleContainerId - description: either realm name OR client UUID - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/installation/providers/{providerId}: - get: - tags: - - Clients - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: providerId - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/management/permissions: - get: - tags: - - Clients - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Clients - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/nodes: - post: - tags: - - Clients - summary: Register a cluster node with the client Manually register cluster - node to this client - usually it’s not needed to call this directly as adapter - should handle by sending registration request to Keycloak - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/nodes/{node}: - delete: - tags: - - Clients - summary: Unregister a cluster node from the client - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: node - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/offline-session-count: - get: - tags: - - Clients - summary: 'Get application offline session count Returns a number of offline - user sessions associated with this client { "count": number }' - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/offline-sessions: - get: - tags: - - Clients - summary: Get offline sessions for client Returns a list of offline user sessions - associated with this client - parameters: - - in: query - name: first - description: Paging offset - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/optional-client-scopes: - get: - tags: - - Clients - summary: Get optional client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/optional-client-scopes/{clientScopeId}: - put: - tags: - - Clients - responses: - 2XX: - description: success - delete: - tags: - - Clients - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/protocol-mappers/add-models: - post: - tags: - - Protocol Mappers - summary: Create multiple mappers - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/protocol-mappers/models: - get: - tags: - - Protocol Mappers - summary: Get mappers - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Protocol Mappers - summary: Create a mapper - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/protocol-mappers/protocol/{protocol}: - get: - tags: - - Protocol Mappers - summary: Get mappers by name for a specific protocol - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: protocol - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/push-revocation: - post: - tags: - - Clients - summary: Push the client’s revocation policy to its admin URL If the client - has an admin URL, push revocation policy to it. - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/GlobalRequestResult' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/registration-access-token: - post: - tags: - - Clients - summary: Generate a new registration access token for the client - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ClientRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles: - get: - tags: - - Roles - summary: Get all roles for the realm or client - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Create a new role for the realm or client - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}: - get: - tags: - - Roles - summary: Get a role by name - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - put: - tags: - - Roles - summary: Update a role by name - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Delete a role by name - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}/composites: - get: - tags: - - Roles - summary: Get composites of the role - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Add a composite to the role - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Remove roles from the role’s composite - requestBody: - description: roles to remove - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}/composites/clients/{clientUuid}: - get: - tags: - - Roles - summary: Get client-level roles for the client that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}/composites/realm: - get: - tags: - - Roles - summary: Get realm-level roles of the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}/groups: - get: - tags: - - Roles - summary: Returns a stream of groups that have the specified role name - parameters: - - in: query - name: briefRepresentation - description: if false, return a full representation of the {@code GroupRepresentation} - objects. - schema: - type: boolean - style: form - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or - {@code null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}/management/permissions: - get: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/roles/{role-name}/users: - get: - tags: - - Roles - summary: Returns a stream of users that have the specified role name. - parameters: - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or - {@code null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/scope-mappings/clients/{client}: - get: - tags: - - Scope Mappings - summary: Get the roles associated with a client’s scope Returns roles for - the client. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add client-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove client-level roles from the client’s scope. - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/scope-mappings/clients/{client}/available: - get: - tags: - - Scope Mappings - summary: The available client-level roles Returns the roles for the client - that can be associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/scope-mappings/clients/{client}/composite: - get: - tags: - - Scope Mappings - summary: Get effective client roles Returns the roles for the client that - are associated with the client’s scope. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/scope-mappings/realm: - get: - tags: - - Scope Mappings - summary: Get realm-level roles associated with the client’s scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Scope Mappings - summary: Add a set of realm-level roles to the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Scope Mappings - summary: Remove a set of realm-level roles from the client’s scope - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/scope-mappings/realm/available: - get: - tags: - - Scope Mappings - summary: Get realm-level roles that are available to attach to this client’s - scope - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/scope-mappings/realm/composite: - get: - tags: - - Scope Mappings - summary: Get effective realm-level roles associated with the client’s scope What - this does is recurse any composite roles associated with the client’s scope - and adds the roles to this lists. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/service-account-user: - get: - tags: - - Clients - summary: Get a user dedicated to the service account - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UserRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/session-count: - get: - tags: - - Clients - summary: 'Get application session count Returns a number of user sessions - associated with this client { "count": number }' - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/test-nodes-available: - get: - tags: - - Clients - summary: Test if registered cluster nodes are available Tests availability - by sending 'ping' request to all cluster nodes. - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/GlobalRequestResult' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/clients/{id}/user-sessions: - get: - tags: - - Clients - summary: Get user sessions for client Returns a list of user sessions associated - with this client - parameters: - - in: query - name: first - description: Paging offset - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: id of client (not client-id) - required: true - schema: - type: string - style: simple - /{realm}/components: - get: - tags: - - Component - parameters: - - in: query - name: name - schema: - type: string - style: form - - in: query - name: parent - schema: - type: string - style: form - - in: query - name: type - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Component - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComponentRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/components/{id}: - get: - tags: - - Component - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ComponentRepresentation' - put: - tags: - - Component - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ComponentRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Component - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/components/{id}/sub-component-types: - get: - tags: - - Component - summary: List of subcomponent types that are available to configure for a particular - parent component. - parameters: - - in: query - name: type - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/credential-registrators: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/default-default-client-scopes: - get: - tags: - - Realms Admin - summary: Get realm default client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/default-default-client-scopes/{clientScopeId}: - put: - tags: - - Realms Admin - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - /{realm}/default-groups: - get: - tags: - - Realms Admin - summary: Get group hierarchy. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/default-groups/{groupId}: - put: - tags: - - Realms Admin - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: groupId - required: true - schema: - type: string - style: simple - /{realm}/default-optional-client-scopes: - get: - tags: - - Realms Admin - summary: Get realm optional client scopes. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/default-optional-client-scopes/{clientScopeId}: - put: - tags: - - Realms Admin - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientScopeId - required: true - schema: - type: string - style: simple - /{realm}/events: - get: - tags: - - Realms Admin - summary: Get events Returns all events, or filters them based on URL query - parameters listed here - parameters: - - in: query - name: client - description: App or oauth client name - schema: - type: string - style: form - - in: query - name: dateFrom - description: From date - schema: - type: string - style: form - - in: query - name: dateTo - description: To date - schema: - type: string - style: form - - in: query - name: first - description: Paging offset - schema: - type: integer - format: int32 - style: form - - in: query - name: ipAddress - description: IP address - schema: - type: string - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - - in: query - name: type - description: The types of events to return - schema: - type: array - items: - type: string - style: form - - in: query - name: user - description: User id - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - delete: - tags: - - Realms Admin - summary: Delete all events - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/events/config: - get: - tags: - - Realms Admin - summary: Get the events provider configuration Returns JSON object with events - provider configuration - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RealmEventsConfigRepresentation' - put: - tags: - - Realms Admin - summary: Update the events provider Change the events provider and/or its - configuration - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RealmEventsConfigRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/group-by-path/{path}: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: path - required: true - schema: - type: string - style: simple - /{realm}/groups: - get: - tags: - - Groups - summary: Get group hierarchy. - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Groups - summary: create or add a top level realm groupSet or create child. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/groups/count: - get: - tags: - - Groups - summary: Returns the groups counts. - parameters: - - in: query - name: search - schema: - type: string - style: form - - in: query - name: top - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}: - get: - tags: - - Groups - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRepresentation' - put: - tags: - - Groups - summary: Update group, ignores subgroups. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Groups - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/children: - post: - tags: - - Groups - summary: Set or create child. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/management/permissions: - get: - tags: - - Groups - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Groups - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/members: - get: - tags: - - Groups - summary: Get users Returns a stream of users, filtered according to query - parameters - parameters: - - in: query - name: briefRepresentation - description: "Only return basic information (only guaranteed to return id,\ - \ username, created, first and last name,\n email, enabled state, email\ - \ verification state, federation link, and access.\n Note that it means\ - \ that namely user attributes, required actions, and not before are not\ - \ returned.)" - schema: - type: boolean - style: form - - in: query - name: first - description: Pagination offset - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings: - get: - tags: - - Role Mapper - summary: Get role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/MappingsRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings/clients/{client}: - get: - tags: - - Client Role Mappings - summary: Get client-level role mappings for the user, and the app - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Role Mappings - summary: Add client-level roles to the user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Client Role Mappings - summary: Delete client-level roles from user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings/clients/{client}/available: - get: - tags: - - Client Role Mappings - summary: Get available client-level roles that can be mapped to the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings/clients/{client}/composite: - get: - tags: - - Client Role Mappings - summary: Get effective client-level role mappings This recurses any composite - roles - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings/realm: - get: - tags: - - Role Mapper - summary: Get realm-level role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Role Mapper - summary: Add realm-level role mappings to the user - requestBody: - description: Roles to add - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Role Mapper - summary: Delete realm-level role mappings - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings/realm/available: - get: - tags: - - Role Mapper - summary: Get realm-level roles that can be mapped - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/groups/{id}/role-mappings/realm/composite: - get: - tags: - - Role Mapper - summary: Get effective realm-level role mappings This will recurse all composite - roles to get the result. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/import-config: - post: - tags: - - Identity Providers - summary: Import identity provider from uploaded JSON file - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances: - get: - tags: - - Identity Providers - summary: Get identity providers - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Identity Providers - summary: Create a new identity provider - requestBody: - description: JSON body - content: - application/json: - schema: - $ref: '#/components/schemas/IdentityProviderRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances/{alias}: - get: - tags: - - Identity Providers - summary: Get the identity provider - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/IdentityProviderRepresentation' - put: - tags: - - Identity Providers - summary: Update the identity provider - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/IdentityProviderRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Identity Providers - summary: Delete the identity provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances/{alias}/export: - get: - tags: - - Identity Providers - summary: Export public broker configuration for identity provider - parameters: - - in: query - name: format - description: Format to use - schema: - type: string - style: form - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances/{alias}/management/permissions: - get: - tags: - - Identity Providers - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Identity Providers - summary: Return object stating whether client Authorization permissions have - been initialized or not and a reference - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances/{alias}/mapper-types: - get: - tags: - - Identity Providers - summary: Get mapper types for identity provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances/{alias}/mappers: - get: - tags: - - Identity Providers - summary: Get mappers for identity provider - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Identity Providers - summary: Add a mapper to identity provider - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/IdentityProviderMapperRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/instances/{alias}/mappers/{id}: - get: - tags: - - Identity Providers - summary: Get mapper by id for the identity provider - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/IdentityProviderMapperRepresentation' - put: - tags: - - Identity Providers - summary: Update a mapper for the identity provider - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/IdentityProviderMapperRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Identity Providers - summary: Delete a mapper for the identity provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: alias - required: true - schema: - type: string - style: simple - - in: path - name: id - description: Mapper id - required: true - schema: - type: string - style: simple - /{realm}/identity-provider/providers/{provider_id}: - get: - tags: - - Identity Providers - summary: Get identity providers - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: provider_id - description: Provider id - required: true - schema: - type: string - style: simple - /{realm}/keys: - get: - tags: - - Key - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/KeysMetadataRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/ldap-server-capabilities: - post: - tags: - - Realms Admin - summary: Get LDAP supported extensions. - requestBody: - description: LDAP configuration - content: - application/json: - schema: - $ref: '#/components/schemas/TestLdapConnectionRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/localization: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/localization/{locale}: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - post: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: locale - required: true - schema: - type: string - style: simple - /{realm}/localization/{locale}/{key}: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - text/plain: - schema: - type: string - put: - tags: - - Realms Admin - requestBody: - content: - text/plain: - schema: - type: string - required: true - responses: - 2XX: - description: success - delete: - tags: - - Realms Admin - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: locale - required: true - schema: - type: string - style: simple - - in: path - name: key - required: true - schema: - type: string - style: simple - /{realm}/logout-all: - post: - tags: - - Realms Admin - summary: Removes all user sessions. - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/GlobalRequestResult' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/partial-export: - post: - tags: - - Realms Admin - summary: Partial export of existing realm into a JSON file. - parameters: - - in: query - name: exportClients - schema: - type: boolean - style: form - - in: query - name: exportGroupsAndRoles - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RealmRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/partialImport: - post: - tags: - - Realms Admin - summary: Partial import from a JSON file to an existing realm. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PartialImportRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/push-revocation: - post: - tags: - - Realms Admin - summary: Push the realm’s revocation policy to any client that has an admin - url associated with it. - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/roles: - get: - tags: - - Roles - summary: Get all roles for the realm or client - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Create a new role for the realm or client - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/roles-by-id/{role-id}: - get: - tags: - - Roles (by ID) - summary: Get a specific role’s representation - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - put: - tags: - - Roles (by ID) - summary: Update the role - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles (by ID) - summary: Delete the role - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - description: id of role - required: true - schema: - type: string - style: simple - /{realm}/roles-by-id/{role-id}/composites: - get: - tags: - - Roles (by ID) - summary: Get role’s children Returns a set of role’s children provided the - role is a composite. - parameters: - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles (by ID) - summary: Make the role a composite role by associating some child roles - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles (by ID) - summary: Remove a set of roles from the role’s composite - requestBody: - description: A set of roles to be removed - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - description: Role id - required: true - schema: - type: string - style: simple - /{realm}/roles-by-id/{role-id}/composites/clients/{clientUuid}: - get: - tags: - - Roles (by ID) - summary: Get client-level roles for the client that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - /{realm}/roles-by-id/{role-id}/composites/realm: - get: - tags: - - Roles (by ID) - summary: Get realm-level roles that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - required: true - schema: - type: string - style: simple - /{realm}/roles-by-id/{role-id}/management/permissions: - get: - tags: - - Roles (by ID) - summary: Return object stating whether role Authoirzation permissions have been - initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Roles (by ID) - summary: Return object stating whether role Authoirzation permissions have been - initialized or not and a reference - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-id - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}: - get: - tags: - - Roles - summary: Get a role by name - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - put: - tags: - - Roles - summary: Update a role by name - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Delete a role by name - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}/composites: - get: - tags: - - Roles - summary: Get composites of the role - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Roles - summary: Add a composite to the role - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Roles - summary: Remove roles from the role’s composite - requestBody: - description: roles to remove - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}/composites/clients/{clientUuid}: - get: - tags: - - Roles - summary: Get client-level roles for the client that are in the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}/composites/realm: - get: - tags: - - Roles - summary: Get realm-level roles of the role’s composite - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: role’s name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}/groups: - get: - tags: - - Roles - summary: Returns a stream of groups that have the specified role name - parameters: - - in: query - name: briefRepresentation - description: if false, return a full representation of the {@code GroupRepresentation} - objects. - schema: - type: boolean - style: form - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or - {@code null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}/management/permissions: - get: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Roles - summary: Return object stating whether role Authorization permissions have been - initialized or not and a reference - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - required: true - schema: - type: string - style: simple - /{realm}/roles/{role-name}/users: - get: - tags: - - Roles - summary: Returns a stream of users that have the specified role name. - parameters: - - in: query - name: first - description: first result to return. Ignored if negative or {@code null}. - schema: - type: integer - format: int32 - style: form - - in: query - name: max - description: maximum number of results to return. Ignored if negative or - {@code null}. - schema: - type: integer - format: int32 - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: role-name - description: the role name. - required: true - schema: - type: string - style: simple - /{realm}/sessions/{session}: - delete: - tags: - - Realms Admin - summary: Remove a specific user session. - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: session - required: true - schema: - type: string - style: simple - /{realm}/testLDAPConnection: - post: - tags: - - Realms Admin - summary: Test LDAP connection - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TestLdapConnectionRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/testSMTPConnection: - post: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - type: object - additionalProperties: true - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/user-storage/{id}/name: - get: - tags: - - User Storage Provider - summary: Need this for admin console to display simple name of provider when - displaying user detail KEYCLOAK-4328 - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/user-storage/{id}/remove-imported-users: - post: - tags: - - User Storage Provider - summary: Remove imported users - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/user-storage/{id}/sync: - post: - tags: - - User Storage Provider - summary: Trigger sync of users Action can be "triggerFullSync" or "triggerChangedUsersSync" - parameters: - - in: query - name: action - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/SynchronizationResult' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/user-storage/{id}/unlink-users: - post: - tags: - - User Storage Provider - summary: Unlink imported users from a storage provider - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/user-storage/{parentId}/mappers/{id}/sync: - post: - tags: - - User Storage Provider - summary: Trigger sync of mapper data related to ldap mapper (roles, groups, - …​) direction is "fedToKeycloak" or "keycloakToFed" - parameters: - - in: query - name: direction - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/SynchronizationResult' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: parentId - required: true - schema: - type: string - style: simple - - in: path - name: id - required: true - schema: - type: string - style: simple - /{realm}/users: - get: - tags: - - Users - summary: Get users Returns a stream of users, filtered according to query - parameters. - parameters: - - in: query - name: briefRepresentation - description: 'Boolean which defines whether brief representations are returned - (default: false)' - schema: - type: boolean - style: form - - in: query - name: email - description: A String contained in email, or the complete email, if param - "exact" is true - schema: - type: string - style: form - - in: query - name: emailVerified - description: whether the email has been verified - schema: - type: boolean - style: form - - in: query - name: enabled - description: Boolean representing if user is enabled or not - schema: - type: boolean - style: form - - in: query - name: exact - description: Boolean which defines whether the params "last", "first", "email" - and "username" must match exactly - schema: - type: boolean - style: form - - in: query - name: first - description: Pagination offset - schema: - type: integer - format: int32 - style: form - - in: query - name: firstName - description: A String contained in firstName, or the complete firstName, - if param "exact" is true - schema: - type: string - style: form - - in: query - name: idpAlias - description: The alias of an Identity Provider linked to the user - schema: - type: string - style: form - - in: query - name: idpUserId - description: The userId at an Identity Provider linked to the user - schema: - type: string - style: form - - in: query - name: lastName - description: A String contained in lastName, or the complete lastName, if - param "exact" is true - schema: - type: string - style: form - - in: query - name: max - description: Maximum results size (defaults to 100) - schema: - type: integer - format: int32 - style: form - - in: query - name: q - description: A query to search for custom attributes, in the format 'key1:value2 - key2:value2' - schema: - type: string - style: form - - in: query - name: search - description: A String contained in username, first or last name, or email - schema: - type: string - style: form - - in: query - name: username - description: A String contained in username, or the complete username, if - param "exact" is true - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Users - summary: Create a new user Username must be unique. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UserRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/users-management-permissions: - get: - tags: - - Realms Admin - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - put: - tags: - - Realms Admin - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - required: true - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/ManagementPermissionReference' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/users/count: - get: - tags: - - Users - summary: Returns the number of users that match the given criteria. - parameters: - - in: query - name: email - description: email filter - schema: - type: string - style: form - - in: query - name: emailVerified - schema: - type: boolean - style: form - - in: query - name: enabled - description: Boolean representing if user is enabled or not - schema: - type: boolean - style: form - - in: query - name: firstName - description: first name filter - schema: - type: string - style: form - - in: query - name: lastName - description: last name filter - schema: - type: string - style: form - - in: query - name: search - description: arbitrary search string for all the fields below - schema: - type: string - style: form - - in: query - name: username - description: username filter - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: integer - format: int32 - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/users/profile: - get: - tags: - - Users - responses: - 2XX: - description: success - content: - application/json: - schema: - type: string - put: - tags: - - Users - requestBody: - content: - application/json: - schema: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - /{realm}/users/{id}: - get: - tags: - - Users - summary: Get representation of the user - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/UserRepresentation' - put: - tags: - - Users - summary: Update the user - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UserRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Users - summary: Delete the user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/configured-user-storage-credential-types: - get: - tags: - - Users - summary: Return credential types, which are provided by the user storage where - user is stored. - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/consents: - get: - tags: - - Users - summary: Get consents granted by the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/consents/{client}: - delete: - tags: - - Users - summary: Revoke consent and offline tokens for particular client from user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - description: Client id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/credentials: - get: - tags: - - Users - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/credentials/{credentialId}: - delete: - tags: - - Users - summary: Remove a credential for a user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}: - post: - tags: - - Users - summary: Move a credential to a position behind another credential - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - description: The credential to move - required: true - schema: - type: string - style: simple - - in: path - name: newPreviousCredentialId - description: The credential that will be the previous element in the list. - If set to null, the moved credential will be the first element in the list. - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/credentials/{credentialId}/moveToFirst: - post: - tags: - - Users - summary: Move a credential to a first position in the credentials list of the - user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - description: The credential to move - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/credentials/{credentialId}/userLabel: - put: - tags: - - Users - summary: Update a credential label for a user - requestBody: - content: - text/plain: - schema: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: credentialId - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/disable-credential-types: - put: - tags: - - Users - summary: Disable all credentials for a user of a specific type - requestBody: - content: - application/json: - schema: - type: array - items: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/execute-actions-email: - put: - tags: - - Users - summary: Send a update account email to the user An email contains a link - the user can click to perform a set of required actions. - parameters: - - in: query - name: client_id - description: Client id - schema: - type: string - style: form - - in: query - name: lifespan - description: Number of seconds after which the generated token expires - schema: - type: integer - format: int32 - style: form - - in: query - name: redirect_uri - description: Redirect uri - schema: - type: string - style: form - requestBody: - description: required actions the user needs to complete - content: - application/json: - schema: - type: array - items: - type: string - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/federated-identity: - get: - tags: - - Users - summary: Get social logins associated with the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/federated-identity/{provider}: - post: - tags: - - Users - summary: Add a social login provider to the user - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/FederatedIdentityRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Users - summary: Remove a social login provider from user - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: provider - description: Social login provider id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/groups: - get: - tags: - - Users - parameters: - - in: query - name: briefRepresentation - schema: - type: boolean - style: form - - in: query - name: first - schema: - type: integer - format: int32 - style: form - - in: query - name: max - schema: - type: integer - format: int32 - style: form - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/groups/count: - get: - tags: - - Users - parameters: - - in: query - name: search - schema: - type: string - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/groups/{groupId}: - put: - tags: - - Users - responses: - 2XX: - description: success - delete: - tags: - - Users - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: groupId - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/impersonation: - post: - tags: - - Users - summary: Impersonate the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/logout: - post: - tags: - - Users - summary: Remove all user sessions associated with the user Also send notification - to all clients that have an admin URL to invalidate the sessions for the particular - user. - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/offline-sessions/{clientUuid}: - get: - tags: - - Users - summary: Get offline sessions associated with the user and client - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: clientUuid - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/reset-password: - put: - tags: - - Users - summary: Set up a new password for the user. - requestBody: - description: The representation must contain a rawPassword with the plain-text - password - content: - application/json: - schema: - $ref: '#/components/schemas/CredentialRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings: - get: - tags: - - Role Mapper - summary: Get role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - $ref: '#/components/schemas/MappingsRepresentation' - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings/clients/{client}: - get: - tags: - - Client Role Mappings - summary: Get client-level role mappings for the user, and the app - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Client Role Mappings - summary: Add client-level roles to the user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Client Role Mappings - summary: Delete client-level roles from user role mapping - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings/clients/{client}/available: - get: - tags: - - Client Role Mappings - summary: Get available client-level roles that can be mapped to the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings/clients/{client}/composite: - get: - tags: - - Client Role Mappings - summary: Get effective client-level role mappings This recurses any composite - roles - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - - in: path - name: client - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings/realm: - get: - tags: - - Role Mapper - summary: Get realm-level role mappings - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - post: - tags: - - Role Mapper - summary: Add realm-level role mappings to the user - requestBody: - description: Roles to add - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - delete: - tags: - - Role Mapper - summary: Delete realm-level role mappings - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - required: true - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings/realm/available: - get: - tags: - - Role Mapper - summary: Get realm-level roles that can be mapped - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/role-mappings/realm/composite: - get: - tags: - - Role Mapper - summary: Get effective realm-level role mappings This will recurse all composite - roles to get the result. - parameters: - - in: query - name: briefRepresentation - description: if false, return roles with their attributes - schema: - type: boolean - style: form - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/send-verify-email: - put: - tags: - - Users - summary: Send an email-verification email to the user An email contains a - link the user can click to verify their email address. - parameters: - - in: query - name: client_id - description: Client id - schema: - type: string - style: form - - in: query - name: redirect_uri - description: Redirect uri - schema: - type: string - style: form - responses: - 2XX: - description: success - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple - /{realm}/users/{id}/sessions: - get: - tags: - - Users - summary: Get sessions associated with the user - responses: - 2XX: - description: success - content: - application/json: - schema: - type: array - items: - type: object - additionalProperties: true - parameters: - - in: path - name: realm - description: realm name (not id!) - required: true - schema: - type: string - style: simple - - in: path - name: id - description: User id - required: true - schema: - type: string - style: simple -components: - securitySchemes: - access_token: - type: http - scheme: bearer - bearerFormat: string - schemas: - AccessToken: - type: object - properties: - acr: - type: string - address: - $ref: '#/components/schemas/AddressClaimSet' - allowed-origins: - type: array - items: - type: string - at_hash: - type: string - auth_time: - type: integer - format: int64 - authorization: - $ref: '#/components/schemas/AccessToken-Authorization' - azp: - type: string - birthdate: - type: string - c_hash: - type: string - category: - type: string - enum: - - INTERNAL - - ACCESS - - ID - - ADMIN - - USERINFO - - LOGOUT - - AUTHORIZATION_RESPONSE - claims_locales: - type: string - cnf: - $ref: '#/components/schemas/AccessToken-CertConf' - email: - type: string - email_verified: - type: boolean - exp: - type: integer - format: int64 - family_name: - type: string - gender: - type: string - given_name: - type: string - iat: - type: integer - format: int64 - iss: - type: string - jti: - type: string - locale: - type: string - middle_name: - type: string - name: - type: string - nbf: - type: integer - format: int64 - nickname: - type: string - nonce: - type: string - otherClaims: - type: object - additionalProperties: true - phone_number: - type: string - phone_number_verified: - type: boolean - picture: - type: string - preferred_username: - type: string - profile: - type: string - realm_access: - $ref: '#/components/schemas/AccessToken-Access' - s_hash: - type: string - scope: - type: string - session_state: - type: string - sid: - type: string - sub: - type: string - trusted-certs: - type: array - items: - type: string - typ: - type: string - updated_at: - type: integer - format: int64 - website: - type: string - zoneinfo: - type: string - AccessToken-Access: - type: object - properties: - roles: - type: array - items: - type: string - verify_caller: - type: boolean - AccessToken-Authorization: - type: object - properties: - permissions: - type: array - items: - $ref: '#/components/schemas/Permission' - AccessToken-CertConf: - type: object - properties: - x5t#S256: - type: string - AddressClaimSet: - type: object - properties: - country: - type: string - formatted: - type: string - locality: - type: string - postal_code: - type: string - region: - type: string - street_address: - type: string - AuthenticationExecutionExportRepresentation: - type: object - properties: - authenticator: - type: string - authenticatorConfig: - type: string - authenticatorFlow: - type: boolean - flowAlias: - type: string - priority: - type: integer - format: int32 - requirement: - type: string - userSetupAllowed: - type: boolean - AuthenticationExecutionInfoRepresentation: - type: object - properties: - alias: - type: string - authenticationConfig: - type: string - authenticationFlow: - type: boolean - configurable: - type: boolean - description: - type: string - displayName: - type: string - flowId: - type: string - id: - type: string - index: - type: integer - format: int32 - level: - type: integer - format: int32 - providerId: - type: string - requirement: - type: string - requirementChoices: - type: array - items: - type: string - AuthenticationExecutionRepresentation: - type: object - properties: - authenticator: - type: string - authenticatorConfig: - type: string - authenticatorFlow: - type: boolean - flowId: - type: string - id: - type: string - parentFlow: - type: string - priority: - type: integer - format: int32 - requirement: - type: string - AuthenticationFlowRepresentation: - type: object - properties: - alias: - type: string - authenticationExecutions: - type: array - items: - $ref: '#/components/schemas/AuthenticationExecutionExportRepresentation' - builtIn: - type: boolean - description: - type: string - id: - type: string - providerId: - type: string - topLevel: - type: boolean - AuthenticatorConfigInfoRepresentation: - type: object - properties: - helpText: - type: string - name: - type: string - properties: - type: array - items: - $ref: '#/components/schemas/ConfigPropertyRepresentation' - providerId: - type: string - AuthenticatorConfigRepresentation: - type: object - properties: - alias: - type: string - config: - type: object - additionalProperties: true - id: - type: string - CertificateRepresentation: - type: object - properties: - certificate: - type: string - kid: - type: string - privateKey: - type: string - publicKey: - type: string - ClientInitialAccessCreatePresentation: - type: object - properties: - count: - type: integer - format: int32 - expiration: - type: integer - format: int32 - ClientInitialAccessPresentation: - type: object - properties: - count: - type: integer - format: int32 - expiration: - type: integer - format: int32 - id: - type: string - remainingCount: - type: integer - format: int32 - timestamp: - type: integer - format: int32 - token: - type: string - ClientMappingsRepresentation: - type: object - properties: - client: - type: string - id: - type: string - mappings: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - ClientPoliciesRepresentation: - type: object - properties: - policies: - type: array - items: - $ref: '#/components/schemas/ClientPolicyRepresentation' - ClientPolicyConditionRepresentation: - type: object - properties: - condition: - type: string - configuration: - $ref: '#/components/schemas/JsonNode' - ClientPolicyExecutorRepresentation: - type: object - properties: - configuration: - $ref: '#/components/schemas/JsonNode' - executor: - type: string - ClientPolicyRepresentation: - type: object - properties: - conditions: - type: array - items: - $ref: '#/components/schemas/ClientPolicyConditionRepresentation' - description: - type: string - enabled: - type: boolean - name: - type: string - profiles: - type: array - items: - type: string - ClientProfileRepresentation: - type: object - properties: - description: - type: string - executors: - type: array - items: - $ref: '#/components/schemas/ClientPolicyExecutorRepresentation' - name: - type: string - ClientProfilesRepresentation: - type: object - properties: - globalProfiles: - type: array - items: - $ref: '#/components/schemas/ClientProfileRepresentation' - profiles: - type: array - items: - $ref: '#/components/schemas/ClientProfileRepresentation' - ClientRepresentation: - type: object - properties: - access: - type: object - additionalProperties: true - adminUrl: - type: string - alwaysDisplayInConsole: - type: boolean - attributes: - type: object - additionalProperties: true - authenticationFlowBindingOverrides: - type: object - additionalProperties: true - authorizationServicesEnabled: - type: boolean - authorizationSettings: - $ref: '#/components/schemas/ResourceServerRepresentation' - baseUrl: - type: string - bearerOnly: - type: boolean - clientAuthenticatorType: - type: string - clientId: - type: string - consentRequired: - type: boolean - defaultClientScopes: - type: array - items: - type: string - description: - type: string - directAccessGrantsEnabled: - type: boolean - enabled: - type: boolean - frontchannelLogout: - type: boolean - fullScopeAllowed: - type: boolean - id: - type: string - implicitFlowEnabled: - type: boolean - name: - type: string - nodeReRegistrationTimeout: - type: integer - format: int32 - notBefore: - type: integer - format: int32 - oauth2DeviceAuthorizationGrantEnabled: - type: boolean - optionalClientScopes: - type: array - items: - type: string - origin: - type: string - protocol: - type: string - protocolMappers: - type: array - items: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - publicClient: - type: boolean - redirectUris: - type: array - items: - type: string - registeredNodes: - type: object - additionalProperties: true - registrationAccessToken: - type: string - rootUrl: - type: string - secret: - type: string - serviceAccountsEnabled: - type: boolean - standardFlowEnabled: - type: boolean - surrogateAuthRequired: - type: boolean - webOrigins: - type: array - items: - type: string - ClientScopeEvaluateResource-ProtocolMapperEvaluationRepresentation: - type: object - properties: - containerId: - type: string - containerName: - type: string - containerType: - type: string - mapperId: - type: string - mapperName: - type: string - protocolMapper: - type: string - ClientScopeRepresentation: - type: object - properties: - attributes: - type: object - additionalProperties: true - description: - type: string - id: - type: string - name: - type: string - protocol: - type: string - protocolMappers: - type: array - items: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - ComponentExportRepresentation: - type: object - properties: - config: - $ref: '#/components/schemas/MultivaluedHashMap' - id: - type: string - name: - type: string - providerId: - type: string - subComponents: - $ref: '#/components/schemas/MultivaluedHashMap' - subType: - type: string - ComponentRepresentation: - type: object - properties: - config: - $ref: '#/components/schemas/MultivaluedHashMap' - id: - type: string - name: - type: string - parentId: - type: string - providerId: - type: string - providerType: - type: string - subType: - type: string - ConfigPropertyRepresentation: - type: object - properties: - defaultValue: - type: object - helpText: - type: string - label: - type: string - name: - type: string - options: - type: array - items: - type: string - readOnly: - type: boolean - secret: - type: boolean - type: - type: string - CredentialRepresentation: - type: object - properties: - createdDate: - type: integer - format: int64 - credentialData: - type: string - id: - type: string - priority: - type: integer - format: int32 - secretData: - type: string - temporary: - type: boolean - type: - type: string - userLabel: - type: string - value: - type: string - FederatedIdentityRepresentation: - type: object - properties: - identityProvider: - type: string - userId: - type: string - userName: - type: string - GlobalRequestResult: - type: object - properties: - failedRequests: - type: array - items: - type: string - successRequests: - type: array - items: - type: string - GroupRepresentation: - type: object - properties: - access: - type: object - additionalProperties: true - attributes: - type: object - additionalProperties: true - clientRoles: - type: object - additionalProperties: true - id: - type: string - name: - type: string - path: - type: string - realmRoles: - type: array - items: - type: string - subGroups: - type: array - items: - $ref: '#/components/schemas/GroupRepresentation' - IDToken: - type: object - properties: - acr: - type: string - address: - $ref: '#/components/schemas/AddressClaimSet' - at_hash: - type: string - auth_time: - type: integer - format: int64 - azp: - type: string - birthdate: - type: string - c_hash: - type: string - category: - type: string - enum: - - INTERNAL - - ACCESS - - ID - - ADMIN - - USERINFO - - LOGOUT - - AUTHORIZATION_RESPONSE - claims_locales: - type: string - email: - type: string - email_verified: - type: boolean - exp: - type: integer - format: int64 - family_name: - type: string - gender: - type: string - given_name: - type: string - iat: - type: integer - format: int64 - iss: - type: string - jti: - type: string - locale: - type: string - middle_name: - type: string - name: - type: string - nbf: - type: integer - format: int64 - nickname: - type: string - nonce: - type: string - otherClaims: - type: object - additionalProperties: true - phone_number: - type: string - phone_number_verified: - type: boolean - picture: - type: string - preferred_username: - type: string - profile: - type: string - s_hash: - type: string - session_state: - type: string - sid: - type: string - sub: - type: string - typ: - type: string - updated_at: - type: integer - format: int64 - website: - type: string - zoneinfo: - type: string - IdentityProviderMapperRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - id: - type: string - identityProviderAlias: - type: string - identityProviderMapper: - type: string - name: - type: string - IdentityProviderRepresentation: - type: object - properties: - addReadTokenRoleOnCreate: - type: boolean - alias: - type: string - config: - type: object - additionalProperties: true - displayName: - type: string - enabled: - type: boolean - firstBrokerLoginFlowAlias: - type: string - internalId: - type: string - linkOnly: - type: boolean - postBrokerLoginFlowAlias: - type: string - providerId: - type: string - storeToken: - type: boolean - trustEmail: - type: boolean - JsonNode: - type: object - properties: - array: - type: boolean - bigDecimal: - type: boolean - bigInteger: - type: boolean - binary: - type: boolean - boolean: - type: boolean - containerNode: - type: boolean - double: - type: boolean - empty: - type: boolean - float: - type: boolean - floatingPointNumber: - type: boolean - int: - type: boolean - integralNumber: - type: boolean - long: - type: boolean - missingNode: - type: boolean - nodeType: - type: string - enum: - - ARRAY - - BINARY - - BOOLEAN - - MISSING - - 'NULL' - - NUMBER - - OBJECT - - POJO - - STRING - 'null': - type: boolean - number: - type: boolean - object: - type: boolean - pojo: - type: boolean - short: - type: boolean - textual: - type: boolean - valueNode: - type: boolean - KeyStoreConfig: - type: object - properties: - format: - type: string - keyAlias: - type: string - keyPassword: - type: string - realmAlias: - type: string - realmCertificate: - type: boolean - storePassword: - type: string - KeysMetadataRepresentation: - type: object - properties: - active: - type: object - additionalProperties: true - keys: - type: array - items: - $ref: '#/components/schemas/KeysMetadataRepresentation-KeyMetadataRepresentation' - KeysMetadataRepresentation-KeyMetadataRepresentation: - type: object - properties: - algorithm: - type: string - certificate: - type: string - kid: - type: string - providerId: - type: string - providerPriority: - type: integer - format: int64 - publicKey: - type: string - status: - type: string - type: - type: string - use: - type: string - enum: - - SIG - - ENC - ManagementPermissionReference: - type: object - properties: - enabled: - type: boolean - resource: - type: string - scopePermissions: - type: object - additionalProperties: true - MappingsRepresentation: - type: object - properties: - clientMappings: - type: object - additionalProperties: true - realmMappings: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - MemoryInfoRepresentation: - type: object - properties: - free: - type: integer - format: int64 - freeFormated: - type: string - freePercentage: - type: integer - format: int64 - total: - type: integer - format: int64 - totalFormated: - type: string - used: - type: integer - format: int64 - usedFormated: - type: string - MultivaluedHashMap: - type: object - properties: - empty: - type: boolean - loadFactor: - type: number - format: float - threshold: - type: integer - format: int32 - PartialImportRepresentation: - type: object - properties: - clients: - type: array - items: - $ref: '#/components/schemas/ClientRepresentation' - groups: - type: array - items: - $ref: '#/components/schemas/GroupRepresentation' - identityProviders: - type: array - items: - $ref: '#/components/schemas/IdentityProviderRepresentation' - ifResourceExists: - type: string - policy: - type: string - enum: - - SKIP - - OVERWRITE - - FAIL - roles: - $ref: '#/components/schemas/RolesRepresentation' - users: - type: array - items: - $ref: '#/components/schemas/UserRepresentation' - PasswordPolicyTypeRepresentation: - type: object - properties: - configType: - type: string - defaultValue: - type: string - displayName: - type: string - id: - type: string - multipleSupported: - type: boolean - Permission: - type: object - properties: - claims: - type: object - additionalProperties: true - rsid: - type: string - rsname: - type: string - scopes: - type: array - items: - type: string - PolicyRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - decisionStrategy: - type: string - enum: - - AFFIRMATIVE - - UNANIMOUS - - CONSENSUS - description: - type: string - id: - type: string - logic: - type: string - enum: - - POSITIVE - - NEGATIVE - name: - type: string - owner: - type: string - policies: - type: array - items: - type: string - resources: - type: array - items: - type: string - resourcesData: - type: array - items: - $ref: '#/components/schemas/ResourceRepresentation' - scopes: - type: array - items: - type: string - scopesData: - type: array - items: - $ref: '#/components/schemas/ScopeRepresentation' - type: - type: string - ProfileInfoRepresentation: - type: object - properties: - disabledFeatures: - type: array - items: - type: string - experimentalFeatures: - type: array - items: - type: string - name: - type: string - previewFeatures: - type: array - items: - type: string - ProtocolMapperRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - id: - type: string - name: - type: string - protocol: - type: string - protocolMapper: - type: string - ProviderRepresentation: - type: object - properties: - operationalInfo: - type: object - additionalProperties: true - order: - type: integer - format: int32 - RealmEventsConfigRepresentation: - type: object - properties: - adminEventsDetailsEnabled: - type: boolean - adminEventsEnabled: - type: boolean - enabledEventTypes: - type: array - items: - type: string - eventsEnabled: - type: boolean - eventsExpiration: - type: integer - format: int64 - eventsListeners: - type: array - items: - type: string - RealmRepresentation: - type: object - properties: - accessCodeLifespan: - type: integer - format: int32 - accessCodeLifespanLogin: - type: integer - format: int32 - accessCodeLifespanUserAction: - type: integer - format: int32 - accessTokenLifespan: - type: integer - format: int32 - accessTokenLifespanForImplicitFlow: - type: integer - format: int32 - accountTheme: - type: string - actionTokenGeneratedByAdminLifespan: - type: integer - format: int32 - actionTokenGeneratedByUserLifespan: - type: integer - format: int32 - adminEventsDetailsEnabled: - type: boolean - adminEventsEnabled: - type: boolean - adminTheme: - type: string - attributes: - type: object - additionalProperties: true - authenticationFlows: - type: array - items: - $ref: '#/components/schemas/AuthenticationFlowRepresentation' - authenticatorConfig: - type: array - items: - $ref: '#/components/schemas/AuthenticatorConfigRepresentation' - browserFlow: - type: string - browserSecurityHeaders: - type: object - additionalProperties: true - bruteForceProtected: - type: boolean - clientAuthenticationFlow: - type: string - clientOfflineSessionIdleTimeout: - type: integer - format: int32 - clientOfflineSessionMaxLifespan: - type: integer - format: int32 - clientPolicies: - $ref: '#/components/schemas/JsonNode' - clientProfiles: - $ref: '#/components/schemas/JsonNode' - clientScopeMappings: - type: object - additionalProperties: true - clientScopes: - type: array - items: - $ref: '#/components/schemas/ClientScopeRepresentation' - clientSessionIdleTimeout: - type: integer - format: int32 - clientSessionMaxLifespan: - type: integer - format: int32 - clients: - type: array - items: - $ref: '#/components/schemas/ClientRepresentation' - components: - $ref: '#/components/schemas/MultivaluedHashMap' - defaultDefaultClientScopes: - type: array - items: - type: string - defaultGroups: - type: array - items: - type: string - defaultLocale: - type: string - defaultOptionalClientScopes: - type: array - items: - type: string - defaultRole: - $ref: '#/components/schemas/RoleRepresentation' - defaultSignatureAlgorithm: - type: string - directGrantFlow: - type: string - displayName: - type: string - displayNameHtml: - type: string - dockerAuthenticationFlow: - type: string - duplicateEmailsAllowed: - type: boolean - editUsernameAllowed: - type: boolean - emailTheme: - type: string - enabled: - type: boolean - enabledEventTypes: - type: array - items: - type: string - eventsEnabled: - type: boolean - eventsExpiration: - type: integer - format: int64 - eventsListeners: - type: array - items: - type: string - failureFactor: - type: integer - format: int32 - federatedUsers: - type: array - items: - $ref: '#/components/schemas/UserRepresentation' - groups: - type: array - items: - $ref: '#/components/schemas/GroupRepresentation' - id: - type: string - identityProviderMappers: - type: array - items: - $ref: '#/components/schemas/IdentityProviderMapperRepresentation' - identityProviders: - type: array - items: - $ref: '#/components/schemas/IdentityProviderRepresentation' - internationalizationEnabled: - type: boolean - keycloakVersion: - type: string - loginTheme: - type: string - loginWithEmailAllowed: - type: boolean - maxDeltaTimeSeconds: - type: integer - format: int32 - maxFailureWaitSeconds: - type: integer - format: int32 - minimumQuickLoginWaitSeconds: - type: integer - format: int32 - notBefore: - type: integer - format: int32 - oAuth2DeviceCodeLifespan: - type: integer - format: int32 - oAuth2DevicePollingInterval: - type: integer - format: int32 - oauth2DeviceCodeLifespan: - type: integer - format: int32 - oauth2DevicePollingInterval: - type: integer - format: int32 - offlineSessionIdleTimeout: - type: integer - format: int32 - offlineSessionMaxLifespan: - type: integer - format: int32 - offlineSessionMaxLifespanEnabled: - type: boolean - otpPolicyAlgorithm: - type: string - otpPolicyDigits: - type: integer - format: int32 - otpPolicyInitialCounter: - type: integer - format: int32 - otpPolicyLookAheadWindow: - type: integer - format: int32 - otpPolicyPeriod: - type: integer - format: int32 - otpPolicyType: - type: string - otpSupportedApplications: - type: array - items: - type: string - passwordPolicy: - type: string - permanentLockout: - type: boolean - protocolMappers: - type: array - items: - $ref: '#/components/schemas/ProtocolMapperRepresentation' - quickLoginCheckMilliSeconds: - type: integer - format: int64 - realm: - type: string - refreshTokenMaxReuse: - type: integer - format: int32 - registrationAllowed: - type: boolean - registrationEmailAsUsername: - type: boolean - registrationFlow: - type: string - rememberMe: - type: boolean - requiredActions: - type: array - items: - $ref: '#/components/schemas/RequiredActionProviderRepresentation' - resetCredentialsFlow: - type: string - resetPasswordAllowed: - type: boolean - revokeRefreshToken: - type: boolean - roles: - $ref: '#/components/schemas/RolesRepresentation' - scopeMappings: - type: array - items: - $ref: '#/components/schemas/ScopeMappingRepresentation' - smtpServer: - type: object - additionalProperties: true - sslRequired: - type: string - ssoSessionIdleTimeout: - type: integer - format: int32 - ssoSessionIdleTimeoutRememberMe: - type: integer - format: int32 - ssoSessionMaxLifespan: - type: integer - format: int32 - ssoSessionMaxLifespanRememberMe: - type: integer - format: int32 - supportedLocales: - type: array - items: - type: string - userFederationMappers: - type: array - items: - $ref: '#/components/schemas/UserFederationMapperRepresentation' - userFederationProviders: - type: array - items: - $ref: '#/components/schemas/UserFederationProviderRepresentation' - userManagedAccessAllowed: - type: boolean - users: - type: array - items: - $ref: '#/components/schemas/UserRepresentation' - verifyEmail: - type: boolean - waitIncrementSeconds: - type: integer - format: int32 - webAuthnPolicyAcceptableAaguids: - type: array - items: - type: string - webAuthnPolicyAttestationConveyancePreference: - type: string - webAuthnPolicyAuthenticatorAttachment: - type: string - webAuthnPolicyAvoidSameAuthenticatorRegister: - type: boolean - webAuthnPolicyCreateTimeout: - type: integer - format: int32 - webAuthnPolicyPasswordlessAcceptableAaguids: - type: array - items: - type: string - webAuthnPolicyPasswordlessAttestationConveyancePreference: - type: string - webAuthnPolicyPasswordlessAuthenticatorAttachment: - type: string - webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister: - type: boolean - webAuthnPolicyPasswordlessCreateTimeout: - type: integer - format: int32 - webAuthnPolicyPasswordlessRequireResidentKey: - type: string - webAuthnPolicyPasswordlessRpEntityName: - type: string - webAuthnPolicyPasswordlessRpId: - type: string - webAuthnPolicyPasswordlessSignatureAlgorithms: - type: array - items: - type: string - webAuthnPolicyPasswordlessUserVerificationRequirement: - type: string - webAuthnPolicyRequireResidentKey: - type: string - webAuthnPolicyRpEntityName: - type: string - webAuthnPolicyRpId: - type: string - webAuthnPolicySignatureAlgorithms: - type: array - items: - type: string - webAuthnPolicyUserVerificationRequirement: - type: string - RequiredActionProviderRepresentation: - type: object - properties: - alias: - type: string - config: - type: object - additionalProperties: true - defaultAction: - type: boolean - enabled: - type: boolean - name: - type: string - priority: - type: integer - format: int32 - providerId: - type: string - ResourceRepresentation: - type: object - properties: - id: - type: string - attributes: - type: object - additionalProperties: true - displayName: - type: string - icon_uri: - type: string - name: - type: string - ownerManagedAccess: - type: boolean - scopes: - type: array - items: - $ref: '#/components/schemas/ScopeRepresentation' - type: - type: string - uris: - type: array - items: - type: string - ResourceServerRepresentation: - type: object - properties: - allowRemoteResourceManagement: - type: boolean - clientId: - type: string - decisionStrategy: - type: string - enum: - - AFFIRMATIVE - - UNANIMOUS - - CONSENSUS - id: - type: string - name: - type: string - policies: - type: array - items: - $ref: '#/components/schemas/PolicyRepresentation' - policyEnforcementMode: - type: string - enum: - - ENFORCING - - PERMISSIVE - - DISABLED - resources: - type: array - items: - $ref: '#/components/schemas/ResourceRepresentation' - scopes: - type: array - items: - $ref: '#/components/schemas/ScopeRepresentation' - RoleRepresentation: - type: object - properties: - attributes: - type: object - additionalProperties: true - clientRole: - type: boolean - composite: - type: boolean - composites: - $ref: '#/components/schemas/RoleRepresentation-Composites' - containerId: - type: string - description: - type: string - id: - type: string - name: - type: string - RoleRepresentation-Composites: - type: object - properties: - client: - type: object - additionalProperties: true - realm: - type: array - items: - type: string - RolesRepresentation: - type: object - properties: - client: - type: object - additionalProperties: true - realm: - type: array - items: - $ref: '#/components/schemas/RoleRepresentation' - ScopeMappingRepresentation: - type: object - properties: - client: - type: string - clientScope: - type: string - roles: - type: array - items: - type: string - self: - type: string - ScopeRepresentation: - type: object - properties: - displayName: - type: string - iconUri: - type: string - id: - type: string - name: - type: string - policies: - type: array - items: - $ref: '#/components/schemas/PolicyRepresentation' - resources: - type: array - items: - $ref: '#/components/schemas/ResourceRepresentation' - ServerInfoRepresentation: - type: object - properties: - builtinProtocolMappers: - type: object - additionalProperties: true - clientImporters: - type: array - items: - type: object - additionalProperties: true - clientInstallations: - type: object - additionalProperties: true - componentTypes: - type: object - additionalProperties: true - enums: - type: object - additionalProperties: true - identityProviders: - type: array - items: - type: object - additionalProperties: true - memoryInfo: - $ref: '#/components/schemas/MemoryInfoRepresentation' - passwordPolicies: - type: array - items: - $ref: '#/components/schemas/PasswordPolicyTypeRepresentation' - profileInfo: - $ref: '#/components/schemas/ProfileInfoRepresentation' - protocolMapperTypes: - type: object - additionalProperties: true - providers: - type: object - additionalProperties: true - socialProviders: - type: array - items: - type: object - additionalProperties: true - systemInfo: - $ref: '#/components/schemas/SystemInfoRepresentation' - themes: - type: object - additionalProperties: true - SpiInfoRepresentation: - type: object - properties: - internal: - type: boolean - providers: - type: object - additionalProperties: true - SynchronizationResult: - type: object - properties: - added: - type: integer - format: int32 - failed: - type: integer - format: int32 - ignored: - type: boolean - removed: - type: integer - format: int32 - status: - type: string - updated: - type: integer - format: int32 - SystemInfoRepresentation: - type: object - properties: - fileEncoding: - type: string - javaHome: - type: string - javaRuntime: - type: string - javaVendor: - type: string - javaVersion: - type: string - javaVm: - type: string - javaVmVersion: - type: string - osArchitecture: - type: string - osName: - type: string - osVersion: - type: string - serverTime: - type: string - uptime: - type: string - uptimeMillis: - type: integer - format: int64 - userDir: - type: string - userLocale: - type: string - userName: - type: string - userTimezone: - type: string - version: - type: string - TestLdapConnectionRepresentation: - type: object - properties: - action: - type: string - authType: - type: string - bindCredential: - type: string - bindDn: - type: string - componentId: - type: string - connectionTimeout: - type: string - connectionUrl: - type: string - startTls: - type: string - useTruststoreSpi: - type: string - UserConsentRepresentation: - type: object - properties: - clientId: - type: string - createdDate: - type: integer - format: int64 - grantedClientScopes: - type: array - items: - type: string - lastUpdatedDate: - type: integer - format: int64 - UserFederationMapperRepresentation: - type: object - properties: - config: - type: object - additionalProperties: true - federationMapperType: - type: string - federationProviderDisplayName: - type: string - id: - type: string - name: - type: string - UserFederationProviderRepresentation: - type: object - properties: - changedSyncPeriod: - type: integer - format: int32 - config: - type: object - additionalProperties: true - displayName: - type: string - fullSyncPeriod: - type: integer - format: int32 - id: - type: string - lastSync: - type: integer - format: int32 - priority: - type: integer - format: int32 - providerName: - type: string - UserRepresentation: - type: object - properties: - access: - type: object - additionalProperties: true - attributes: - type: object - additionalProperties: true - clientConsents: - type: array - items: - $ref: '#/components/schemas/UserConsentRepresentation' - clientRoles: - type: object - additionalProperties: true - createdTimestamp: - type: integer - format: int64 - credentials: - type: array - items: - $ref: '#/components/schemas/CredentialRepresentation' - disableableCredentialTypes: - type: array - items: - type: string - email: - type: string - emailVerified: - type: boolean - enabled: - type: boolean - federatedIdentities: - type: array - items: - $ref: '#/components/schemas/FederatedIdentityRepresentation' - federationLink: - type: string - firstName: - type: string - groups: - type: array - items: - type: string - id: - type: string - lastName: - type: string - notBefore: - type: integer - format: int32 - origin: - type: string - realmRoles: - type: array - items: - type: string - requiredActions: - type: array - items: - type: string - self: - type: string - serviceAccountClientId: - type: string - username: - type: string -security: - - access_token: [] -externalDocs: - description: Schema source code - url: https://github.com/keycloak/keycloak/tree/6.0.1/core/src/main/java/org/keycloak/representations \ No newline at end of file diff --git a/backend/openapitools.json b/backend/openapitools.json deleted file mode 100644 index 061a772..0000000 --- a/backend/openapitools.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", - "spaces": 2, - "generator-cli": { - "version": "6.0.1" - } -} diff --git a/backend/package.json b/backend/package.json index d73c4df..85fe549 100644 --- a/backend/package.json +++ b/backend/package.json @@ -13,6 +13,7 @@ "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "node dist/main", + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage", @@ -20,19 +21,13 @@ "test:e2e": "jest --config ./test/jest-e2e.json" }, "dependencies": { - "@nestjs/axios": "^0.1.0", "@nestjs/common": "^9.0.0", - "@nestjs/config": "^2.2.0", "@nestjs/core": "^9.0.0", - "@nestjs/mapped-types": "*", "@nestjs/platform-express": "^9.0.0", - "@nestjs/swagger": "^6.1.2", - "axios": "^0.27.2", - "openid-client": "^5.1.9", "reflect-metadata": "^0.1.13", - "request": "^2.88.2", "rimraf": "^3.0.2", - "rxjs": "^7.2.0" + "rxjs": "^7.2.0", + "supertokens-node": "^11.3.0" }, "devDependencies": { "@nestjs/cli": "^9.0.0", @@ -42,7 +37,11 @@ "@types/jest": "28.1.8", "@types/node": "^16.0.0", "@types/supertest": "^2.0.11", - "isomorphic-fetch": "^3.0.0", + "@typescript-eslint/eslint-plugin": "^5.0.0", + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^8.0.1", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-prettier": "^4.0.0", "jest": "28.1.3", "prettier": "^2.3.2", "source-map-support": "^0.5.20", @@ -51,7 +50,7 @@ "ts-loader": "^9.2.3", "ts-node": "^10.0.0", "tsconfig-paths": "4.1.0", - "typescript": "~4.7.4" + "typescript": "^4.7.4" }, "jest": { "moduleFileExtensions": [ diff --git a/backend/src/app.controller.spec.ts b/backend/src/app.controller.spec.ts new file mode 100644 index 0000000..d22f389 --- /dev/null +++ b/backend/src/app.controller.spec.ts @@ -0,0 +1,22 @@ +import { Test, TestingModule } from '@nestjs/testing'; +import { AppController } from './app.controller'; +import { AppService } from './app.service'; + +describe('AppController', () => { + let appController: AppController; + + beforeEach(async () => { + const app: TestingModule = await Test.createTestingModule({ + controllers: [AppController], + providers: [AppService], + }).compile(); + + appController = app.get(AppController); + }); + + describe('root', () => { + it('should return "Hello World!"', () => { + expect(appController.getHello()).toBe('Hello World!'); + }); + }); +}); diff --git a/backend/src/app.controller.ts b/backend/src/app.controller.ts index 6315fa3..cce879e 100644 --- a/backend/src/app.controller.ts +++ b/backend/src/app.controller.ts @@ -1,11 +1,12 @@ import { Controller, Get } from '@nestjs/common'; +import { AppService } from './app.service'; @Controller() export class AppController { - // constructor() {} + constructor(private readonly appService: AppService) {} @Get() getHello(): string { - return 'Home'; + return this.appService.getHello(); } } diff --git a/backend/src/app.module.ts b/backend/src/app.module.ts index 1808341..8662803 100644 --- a/backend/src/app.module.ts +++ b/backend/src/app.module.ts @@ -1,17 +1,10 @@ import { Module } from '@nestjs/common'; -import { ConfigModule } from '@nestjs/config'; import { AppController } from './app.controller'; -import { AuthModule } from './auth/auth.module'; +import { AppService } from './app.service'; @Module({ - imports: [ - ConfigModule.forRoot({ - isGlobal: true, - expandVariables: true, - }), - AuthModule, - ], + imports: [], controllers: [AppController], - providers: [], + providers: [AppService], }) export class AppModule {} diff --git a/backend/src/app.service.ts b/backend/src/app.service.ts new file mode 100644 index 0000000..927d7cc --- /dev/null +++ b/backend/src/app.service.ts @@ -0,0 +1,8 @@ +import { Injectable } from '@nestjs/common'; + +@Injectable() +export class AppService { + getHello(): string { + return 'Hello World!'; + } +} diff --git a/backend/src/auth/auth.module.ts b/backend/src/auth/auth.module.ts deleted file mode 100644 index de9e523..0000000 --- a/backend/src/auth/auth.module.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Module } from '@nestjs/common'; -import { LoginModule } from './login/login.module'; -import { RegisterModule } from './register/register.module'; - -@Module({ - imports: [LoginModule, RegisterModule], -}) -export class AuthModule {} diff --git a/backend/src/auth/login/dto/kc.data.dto.ts b/backend/src/auth/login/dto/kc.data.dto.ts deleted file mode 100644 index 51ad8a9..0000000 --- a/backend/src/auth/login/dto/kc.data.dto.ts +++ /dev/null @@ -1,8 +0,0 @@ -export class KeycloakDataDto { - client_id: string; - client_secret: string; - grant_type: string; - username?: string; - email?: string; - password: string; -} diff --git a/backend/src/auth/login/dto/login.dto.ts b/backend/src/auth/login/dto/login.dto.ts deleted file mode 100644 index f0b4b6c..0000000 --- a/backend/src/auth/login/dto/login.dto.ts +++ /dev/null @@ -1,5 +0,0 @@ -export class LoginDto { - username?: string; - email?: string; - password: string; -} diff --git a/backend/src/auth/login/dto/token.dto.ts b/backend/src/auth/login/dto/token.dto.ts deleted file mode 100644 index e319a4b..0000000 --- a/backend/src/auth/login/dto/token.dto.ts +++ /dev/null @@ -1,10 +0,0 @@ -export class TokenDto { - access_token: string; - expires_in: number; - refresh_token: string; - refresh_expires_in: number; - token_type: string; - 'not-before-policy': number; - session_state: string; - scope: string; -} diff --git a/backend/src/auth/login/entities/login.entity.ts b/backend/src/auth/login/entities/login.entity.ts deleted file mode 100644 index 792f38c..0000000 --- a/backend/src/auth/login/entities/login.entity.ts +++ /dev/null @@ -1 +0,0 @@ -export class Login {} diff --git a/backend/src/auth/login/login.controller.ts b/backend/src/auth/login/login.controller.ts deleted file mode 100644 index 42f0e73..0000000 --- a/backend/src/auth/login/login.controller.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Controller, Post, Body, Get } from '@nestjs/common'; -import { LoginService } from './login.service'; -import { LoginDto } from './dto/login.dto'; - -@Controller('login') -export class LoginController { - constructor(private readonly loginService: LoginService) {} - - @Post() - login(@Body() createLoginDto: LoginDto) { - return this.loginService.login(createLoginDto); - } - - @Post() - logout(@Body() createLoginDto: LoginDto) { - return "Logout"; - } -} diff --git a/backend/src/auth/login/login.module.ts b/backend/src/auth/login/login.module.ts deleted file mode 100644 index a6cbfce..0000000 --- a/backend/src/auth/login/login.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Module } from '@nestjs/common'; -import { LoginService } from './login.service'; -import { LoginController } from './login.controller'; - -@Module({ - imports: [], - controllers: [LoginController], - providers: [LoginService], -}) -export class LoginModule {} diff --git a/backend/src/auth/login/login.service.ts b/backend/src/auth/login/login.service.ts deleted file mode 100644 index deabd3d..0000000 --- a/backend/src/auth/login/login.service.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; -import { LoginDto } from './dto/login.dto'; -import { Issuer } from 'openid-client'; - -@Injectable() -export class LoginService { - async login(loginDto: LoginDto) { - const { username, password } = loginDto; - - const keycloakIssuer = await Issuer.discover( - `${process.env.KC_BASE_URL}/auth/realms/${process.env.KC_REALM}`, - ); - - const openIdConnectClient = new keycloakIssuer.Client({ - client_id: process.env.KC_CLIENT_ID || 'client_id', - client_secret: process.env.KC_CLIENT_SECRET || 'client_secret', - }); - - try { - const token = await openIdConnectClient.grant({ - grant_type: process.env.KC_GRANT_TYPE || 'grant_type', - username, - password, - }); - - return token; - } catch (error) { - throw new HttpException(error.error_description, HttpStatus.UNAUTHORIZED); - } - } -} - -// { -// "error": "invalid_grant", -// "error_description": "Invalid user credentials", -// "name": "OPError" -// } diff --git a/backend/src/auth/register/dto/create-user.dto.ts b/backend/src/auth/register/dto/create-user.dto.ts deleted file mode 100644 index 0311be1..0000000 --- a/backend/src/auth/register/dto/create-user.dto.ts +++ /dev/null @@ -1 +0,0 @@ -export class CreateUserDto {} diff --git a/backend/src/auth/register/dto/update-user.dto.ts b/backend/src/auth/register/dto/update-user.dto.ts deleted file mode 100644 index dfd37fb..0000000 --- a/backend/src/auth/register/dto/update-user.dto.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { PartialType } from '@nestjs/mapped-types'; -import { CreateUserDto } from './create-user.dto'; - -export class UpdateUserDto extends PartialType(CreateUserDto) {} diff --git a/backend/src/auth/register/entities/register.entity.ts b/backend/src/auth/register/entities/register.entity.ts deleted file mode 100644 index 8af02c4..0000000 --- a/backend/src/auth/register/entities/register.entity.ts +++ /dev/null @@ -1 +0,0 @@ -export class Register {} diff --git a/backend/src/auth/register/register.controller.ts b/backend/src/auth/register/register.controller.ts deleted file mode 100644 index 1589a8c..0000000 --- a/backend/src/auth/register/register.controller.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { - Controller, - Get, - Post, - Body, - Patch, - Param, - Delete, - Headers, -} from '@nestjs/common'; -import { RegisterService } from './register.service'; -import { CreateUserDto } from './dto/create-user.dto'; -import { UpdateUserDto } from './dto/update-user.dto'; - -@Controller('register') -export class RegisterController { - constructor(private readonly registerService: RegisterService) {} - - @Post() - create( - @Headers('Authorization') accessToken: string, - @Body() createUserDto: CreateUserDto, - ) { - return this.registerService.create(accessToken, createUserDto); - } - - @Get() - findAll(@Headers('Authorization') accessToken: string) { - return this.registerService.findAll(accessToken); - } - - @Get(':id') - findOne(@Param('id') id: string) { - return this.registerService.findOne(+id); - } - - @Patch(':id') - update(@Param('id') id: string, @Body() updateUserDto: UpdateUserDto) { - return this.registerService.update(+id, updateUserDto); - } - - @Delete(':id') - remove(@Param('id') id: string) { - return this.registerService.remove(+id); - } -} diff --git a/backend/src/auth/register/register.module.ts b/backend/src/auth/register/register.module.ts deleted file mode 100644 index 2adb202..0000000 --- a/backend/src/auth/register/register.module.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Module } from '@nestjs/common'; -import { RegisterService } from './register.service'; -import { RegisterController } from './register.controller'; - -@Module({ - imports: [], - controllers: [RegisterController], - providers: [RegisterService] -}) -export class RegisterModule {} diff --git a/backend/src/auth/register/register.service.ts b/backend/src/auth/register/register.service.ts deleted file mode 100644 index c8456b2..0000000 --- a/backend/src/auth/register/register.service.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { Body, Injectable } from '@nestjs/common'; -import { - Configuration, - CredentialRepresentation, - UserRepresentation, - UsersApi, -} from '../../../keycloak/kc-client'; -import { UpdateUserDto } from './dto/update-user.dto'; - -@Injectable() -export class RegisterService { - async create(accessToken: string, userRepresentation: UserRepresentation) { - accessToken = accessToken.replace('Bearer ', ''); - const basePath = `${process.env.KC_BASE_URL}/auth/admin/realms`; - const usersApi = new UsersApi({ basePath, accessToken }); - try { - const registereredUser = await usersApi.realmUsersPost( - process.env.KC_REALM, - userRepresentation, - ); - // console.log(registereredUser); - - try { - const newUserRegistered = await usersApi.realmUsersGet( - process.env.KC_REALM, - true, - userRepresentation.email, - ); - if (newUserRegistered.data.length > 0) { - const userFound: UserRepresentation = newUserRegistered.data[0]; - console.log(userFound.id); - - try { - const credentialRepresentation: CredentialRepresentation = {temporary: false, value: "1234"} - const setUserPassword = await usersApi.realmUsersIdResetPasswordPut(process.env.KC_REALM, userFound.id, credentialRepresentation) - } catch (error) { - - } - - try { - // Ska nevoje te nsim email. - const sendMailToCreatedUser = - await usersApi.realmUsersIdSendVerifyEmailPut( - process.env.KC_REALM, - userFound.id, - process.env.KC_CLIENT_ID, - 'http://localhost:3000', - { - headers: { - 'Content-Type': 'application/json', - }, - }, - ); - console.log(sendMailToCreatedUser); - } catch (error) { - console.log(error); - } - } - } catch (error) { - // console.log(error); - return error.data; - } - - return registereredUser.data; - // try { - // const sendMail = await usersApi.realmUsersIdSendVerifyEmailPut(process.env.KC_REALM, registereredUser.data.id) - // } catch (error) { - - // } - } catch (error) { - console.log(error); - return error.response.data; - } - } - - async findAll(accessToken: string) { - accessToken = accessToken.replace('Bearer ', ''); - - const basePath = `${process.env.KC_BASE_URL}/auth/admin/realms`; - const usersApi = new UsersApi({ basePath, accessToken }); - try { - const users = await usersApi.realmUsersGet(process.env.KC_REALM); - return users.data; - } catch (error) { - return error.data; - } - } - - findOne(id: number) { - return `This action returns a #${id} register`; - } - - update(id: number, updateRegisterDto: UpdateUserDto) { - return `This action updates a #${id} register`; - } - - remove(id: number) { - return `This action removes a #${id} register`; - } -} diff --git a/backend/src/main.ts b/backend/src/main.ts index 20dffc6..13cad38 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -3,6 +3,6 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); - await app.listen(process.env.APP_PORT || '3000'); + await app.listen(3000); } bootstrap(); diff --git a/backend/yarn.lock b/backend/yarn.lock index 8621f98..073f41d 100644 --- a/backend/yarn.lock +++ b/backend/yarn.lock @@ -10,17 +10,6 @@ "@jridgewell/gen-mapping" "^0.1.0" "@jridgewell/trace-mapping" "^0.3.9" -"@angular-devkit/core@14.2.0": - version "14.2.0" - resolved "https://registry.yarnpkg.com/@angular-devkit/core/-/core-14.2.0.tgz#20b84e76ddef3c2c85dc7ec2d92fc0844431a431" - integrity sha512-IwiS6uDs3drR4i3nuqVinh5jtI1SHIyn/OaoWL6t3V7Y6b65BdJN1liyd+WBUEZmEwGCkY2/FjnLx1G8Dflc8A== - dependencies: - ajv "8.11.0" - ajv-formats "2.1.1" - jsonc-parser "3.1.0" - rxjs "6.6.7" - source-map "0.7.4" - "@angular-devkit/core@14.2.1": version "14.2.1" resolved "https://registry.yarnpkg.com/@angular-devkit/core/-/core-14.2.1.tgz#7ce14efdb5fce687bb4f13bef03d4b67e971b22e" @@ -32,29 +21,18 @@ rxjs "6.6.7" source-map "0.7.4" -"@angular-devkit/schematics-cli@14.2.0": - version "14.2.0" - resolved "https://registry.yarnpkg.com/@angular-devkit/schematics-cli/-/schematics-cli-14.2.0.tgz#2d42112ad9a1290d4a3adaabc20e20bb0d651c2c" - integrity sha512-qUOBP8f4lnzA81anG4+65hMhBWulcS23FfY6ih2Z57On+I9q5WIeIJmj9frfhLbaHETgYTLKw1SLS5+DW1IG+Q== +"@angular-devkit/schematics-cli@14.2.1": + version "14.2.1" + resolved "https://registry.yarnpkg.com/@angular-devkit/schematics-cli/-/schematics-cli-14.2.1.tgz#cbea1e4a47880ee4e3eb4816d25a104b4f9fcc10" + integrity sha512-JyyVvxxnZyh9gzN7Ee8c3/BuswIFEwfnJ0EMT7goMSpEkvFn0HDln3Oi/FY0INmNeWN6EfRre0/eoeS9NtV1DA== dependencies: - "@angular-devkit/core" "14.2.0" - "@angular-devkit/schematics" "14.2.0" + "@angular-devkit/core" "14.2.1" + "@angular-devkit/schematics" "14.2.1" ansi-colors "4.1.3" inquirer "8.2.4" symbol-observable "4.0.0" yargs-parser "21.1.1" -"@angular-devkit/schematics@14.2.0": - version "14.2.0" - resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-14.2.0.tgz#cf5feffadcb0a304512fcd4bfc11b3bf0c8f7787" - integrity sha512-5H78HBAYshCKSYsjIr4K33TkS6CMB7IZpZunisSDiX23fHa1IvIkDrpbXlfMvZykHbcmKA/nt2wHMIsQl0YNuw== - dependencies: - "@angular-devkit/core" "14.2.0" - jsonc-parser "3.1.0" - magic-string "0.26.2" - ora "5.4.1" - rxjs "6.6.7" - "@angular-devkit/schematics@14.2.1": version "14.2.1" resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-14.2.1.tgz#9d66080e60ab32d1b44c854cabc8f5cbb421d877" @@ -73,47 +51,47 @@ dependencies: "@babel/highlight" "^7.18.6" -"@babel/compat-data@^7.18.8": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.13.tgz#6aff7b350a1e8c3e40b029e46cbe78e24a913483" - integrity sha512-5yUzC5LqyTFp2HLmDoxGQelcdYgSpP9xsnMWBphAscOdFrHSAVbLNzWiy32sVNDqJRDiJK6klfDnAgu6PAGSHw== +"@babel/compat-data@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.19.0.tgz#2a592fd89bacb1fcde68de31bee4f2f2dacb0e86" + integrity sha512-y5rqgTTPTmaF5e2nVhOxw+Ur9HDJLsWb6U/KpgUzRZEdPfE6VOubXBKLdbcUTijzRptednSBDQbYZBOSqJxpJw== "@babel/core@^7.11.6", "@babel/core@^7.12.3": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.13.tgz#9be8c44512751b05094a4d3ab05fc53a47ce00ac" - integrity sha512-ZisbOvRRusFktksHSG6pjj1CSvkPkcZq/KHD45LAkVP/oiHJkNBZWfpvlLmX8OtHDG8IuzsFlVRWo08w7Qxn0A== + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.19.0.tgz#d2f5f4f2033c00de8096be3c9f45772563e150c3" + integrity sha512-reM4+U7B9ss148rh2n1Qs9ASS+w94irYXga7c2jaQv9RVzpS7Mv1a9rnYYwuDa45G+DkORt9g6An2k/V4d9LbQ== dependencies: "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.18.13" - "@babel/helper-compilation-targets" "^7.18.9" - "@babel/helper-module-transforms" "^7.18.9" - "@babel/helpers" "^7.18.9" - "@babel/parser" "^7.18.13" + "@babel/generator" "^7.19.0" + "@babel/helper-compilation-targets" "^7.19.0" + "@babel/helper-module-transforms" "^7.19.0" + "@babel/helpers" "^7.19.0" + "@babel/parser" "^7.19.0" "@babel/template" "^7.18.10" - "@babel/traverse" "^7.18.13" - "@babel/types" "^7.18.13" + "@babel/traverse" "^7.19.0" + "@babel/types" "^7.19.0" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.1" semver "^6.3.0" -"@babel/generator@^7.18.13", "@babel/generator@^7.7.2": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.13.tgz#59550cbb9ae79b8def15587bdfbaa388c4abf212" - integrity sha512-CkPg8ySSPuHTYPJYo7IRALdqyjM9HCbt/3uOBEFbzyGVP6Mn8bwFPB0jX6982JVNBlYzM1nnPkfjuXSOPtQeEQ== +"@babel/generator@^7.19.0", "@babel/generator@^7.7.2": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.19.0.tgz#785596c06425e59334df2ccee63ab166b738419a" + integrity sha512-S1ahxf1gZ2dpoiFgA+ohK9DIpz50bJ0CWs7Zlzb54Z4sG8qmdIrGrVqmy1sAtTVRb+9CU6U8VqT9L0Zj7hxHVg== dependencies: - "@babel/types" "^7.18.13" + "@babel/types" "^7.19.0" "@jridgewell/gen-mapping" "^0.3.2" jsesc "^2.5.1" -"@babel/helper-compilation-targets@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz#69e64f57b524cde3e5ff6cc5a9f4a387ee5563bf" - integrity sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg== +"@babel/helper-compilation-targets@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.19.0.tgz#537ec8339d53e806ed422f1e06c8f17d55b96bb0" + integrity sha512-Ai5bNWXIvwDvWM7njqsG3feMlL9hCVQsPYXodsZyLwshYkZVJt59Gftau4VrE8S9IT9asd2uSP1hG6wCNw+sXA== dependencies: - "@babel/compat-data" "^7.18.8" + "@babel/compat-data" "^7.19.0" "@babel/helper-validator-option" "^7.18.6" browserslist "^4.20.2" semver "^6.3.0" @@ -123,13 +101,13 @@ resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== -"@babel/helper-function-name@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0" - integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A== +"@babel/helper-function-name@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz#941574ed5390682e872e52d3f38ce9d1bef4648c" + integrity sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w== dependencies: - "@babel/template" "^7.18.6" - "@babel/types" "^7.18.9" + "@babel/template" "^7.18.10" + "@babel/types" "^7.19.0" "@babel/helper-hoist-variables@^7.18.6": version "7.18.6" @@ -145,24 +123,24 @@ dependencies: "@babel/types" "^7.18.6" -"@babel/helper-module-transforms@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz#5a1079c005135ed627442df31a42887e80fcb712" - integrity sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g== +"@babel/helper-module-transforms@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.19.0.tgz#309b230f04e22c58c6a2c0c0c7e50b216d350c30" + integrity sha512-3HBZ377Fe14RbLIA+ac3sY4PTgpxHVkFrESaWhoI5PuyXPBBX8+C34qblV9G89ZtycGJCmCI/Ut+VUDK4bltNQ== dependencies: "@babel/helper-environment-visitor" "^7.18.9" "@babel/helper-module-imports" "^7.18.6" "@babel/helper-simple-access" "^7.18.6" "@babel/helper-split-export-declaration" "^7.18.6" "@babel/helper-validator-identifier" "^7.18.6" - "@babel/template" "^7.18.6" - "@babel/traverse" "^7.18.9" - "@babel/types" "^7.18.9" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.0" + "@babel/types" "^7.19.0" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.8.0": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz#4b8aea3b069d8cb8a72cdfe28ddf5ceca695ef2f" - integrity sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w== + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz#4796bb14961521f0f8715990bee2fb6e51ce21bf" + integrity sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw== "@babel/helper-simple-access@^7.18.6": version "7.18.6" @@ -193,14 +171,14 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== -"@babel/helpers@^7.18.9": - version "7.18.9" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.9.tgz#4bef3b893f253a1eced04516824ede94dcfe7ff9" - integrity sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ== +"@babel/helpers@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.19.0.tgz#f30534657faf246ae96551d88dd31e9d1fa1fc18" + integrity sha512-DRBCKGwIEdqY3+rPJgG/dKfQy9+08rHIAJx8q2p+HSWP87s2HCrQmaAMMyMll2kIXKCW0cO1RdQskx15Xakftg== dependencies: - "@babel/template" "^7.18.6" - "@babel/traverse" "^7.18.9" - "@babel/types" "^7.18.9" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.19.0" + "@babel/types" "^7.19.0" "@babel/highlight@^7.18.6": version "7.18.6" @@ -211,10 +189,10 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.18.13": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.13.tgz#5b2dd21cae4a2c5145f1fbd8ca103f9313d3b7e4" - integrity sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.19.0": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.19.0.tgz#497fcafb1d5b61376959c1c338745ef0577aa02c" + integrity sha512-74bEXKX2h+8rrfQUfsBfuZZHzsEs6Eql4pqy/T4Nn6Y9wNPggQOqD6z6pn5Bl8ZfysKouFZT/UXEH94ummEeQw== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -307,7 +285,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.18.6" -"@babel/template@^7.18.10", "@babel/template@^7.18.6", "@babel/template@^7.3.3": +"@babel/template@^7.18.10", "@babel/template@^7.3.3": version "7.18.10" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== @@ -316,26 +294,26 @@ "@babel/parser" "^7.18.10" "@babel/types" "^7.18.10" -"@babel/traverse@^7.18.13", "@babel/traverse@^7.18.9", "@babel/traverse@^7.7.2": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.13.tgz#5ab59ef51a997b3f10c4587d648b9696b6cb1a68" - integrity sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA== +"@babel/traverse@^7.19.0", "@babel/traverse@^7.7.2": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.19.0.tgz#eb9c561c7360005c592cc645abafe0c3c4548eed" + integrity sha512-4pKpFRDh+utd2mbRC8JLnlsMUii3PMHjpL6a0SZ4NMZy7YFP9aXORxEhdMVOc9CpWtDF09IkciQLEhK7Ml7gRA== dependencies: "@babel/code-frame" "^7.18.6" - "@babel/generator" "^7.18.13" + "@babel/generator" "^7.19.0" "@babel/helper-environment-visitor" "^7.18.9" - "@babel/helper-function-name" "^7.18.9" + "@babel/helper-function-name" "^7.19.0" "@babel/helper-hoist-variables" "^7.18.6" "@babel/helper-split-export-declaration" "^7.18.6" - "@babel/parser" "^7.18.13" - "@babel/types" "^7.18.13" + "@babel/parser" "^7.19.0" + "@babel/types" "^7.19.0" debug "^4.1.0" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.13", "@babel/types@^7.18.6", "@babel/types@^7.18.9", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.18.13" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.13.tgz#30aeb9e514f4100f7c1cb6e5ba472b30e48f519a" - integrity sha512-ePqfTihzW0W6XAU+aMw2ykilisStJfDnsejDCXRchCcMJ4O0+8DhPXf2YUbZ6wjBlsEmZwLK/sPweWtu8hcJYQ== +"@babel/types@^7.0.0", "@babel/types@^7.18.10", "@babel/types@^7.18.6", "@babel/types@^7.19.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3": + version "7.19.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.19.0.tgz#75f21d73d73dc0351f3368d28db73465f4814600" + integrity sha512-YuGopBq3ke25BVSiS6fgF49Ul9gH1x70Bcr6bqRLjWCkcX8Hre1/5+z+IiWOIerRMSSEfGZVB9z9kyq7wVs9YA== dependencies: "@babel/helper-string-parser" "^7.18.10" "@babel/helper-validator-identifier" "^7.18.6" @@ -358,6 +336,45 @@ dependencies: "@jridgewell/trace-mapping" "0.3.9" +"@eslint/eslintrc@^1.3.1": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.1.tgz#de0807bfeffc37b964a7d0400e0c348ce5a2543d" + integrity sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.4.0" + globals "^13.15.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + +"@humanwhocodes/config-array@^0.10.4": + version "0.10.4" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.4.tgz#01e7366e57d2ad104feea63e72248f22015c520c" + integrity sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw== + dependencies: + "@humanwhocodes/object-schema" "^1.2.1" + debug "^4.1.1" + minimatch "^3.0.4" + +"@humanwhocodes/gitignore-to-minimatch@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz#316b0a63b91c10e53f242efb4ace5c3b34e8728d" + integrity sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA== + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -623,21 +640,14 @@ "@jridgewell/resolve-uri" "^3.0.3" "@jridgewell/sourcemap-codec" "^1.4.10" -"@nestjs/axios@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@nestjs/axios/-/axios-0.1.0.tgz#6cf93df11ef93b598b3c7411adb980eedd13b3e3" - integrity sha512-b2TT2X6BFbnNoeteiaxCIiHaFcSbVW+S5yygYqiIq5i6H77yIU3IVuLdpQkHq8/EqOWFwMopLN8jdkUT71Am9w== - dependencies: - axios "0.27.2" - "@nestjs/cli@^9.0.0": - version "9.1.1" - resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-9.1.1.tgz#d84c1655a41bcbda9b42ffa6ba7344f0f471efc4" - integrity sha512-fZzE2f/PnIhbwGg6dKniwwOjQt71g6EUKdgW1oOohUq/Bi79fpzj0Zoucej+9e75HZmVhCUuh8eN/xYqiLmk6g== + version "9.1.2" + resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-9.1.2.tgz#12d24ef44dd034bcfece8750e5bb7122cfe3e300" + integrity sha512-J/mFYM/L03//MiKcYX113MkTbA88cjb+4pNdLjeOpVRCbfbQh1zArehGAOvas9+SNRUzUYj31vI1snYKXc0j1g== dependencies: - "@angular-devkit/core" "14.2.0" - "@angular-devkit/schematics" "14.2.0" - "@angular-devkit/schematics-cli" "14.2.0" + "@angular-devkit/core" "14.2.1" + "@angular-devkit/schematics" "14.2.1" + "@angular-devkit/schematics-cli" "14.2.1" "@nestjs/schematics" "^9.0.0" chalk "3.0.0" chokidar "3.5.3" @@ -655,7 +665,7 @@ tsconfig-paths "4.1.0" tsconfig-paths-webpack-plugin "4.0.0" typescript "4.7.4" - webpack "5.73.0" + webpack "5.74.0" webpack-node-externals "3.0.0" "@nestjs/common@^9.0.0": @@ -667,16 +677,6 @@ tslib "2.4.0" uuid "8.3.2" -"@nestjs/config@^2.2.0": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@nestjs/config/-/config-2.2.0.tgz#9f3da35f7c4a58724c0a0817d6f04b66e6703430" - integrity sha512-78Eg6oMbCy3D/YvqeiGBTOWei1Jwi3f2pSIZcZ1QxY67kYsJzTRTkwRT8Iv30DbK0sGKc1mcloDLD5UXgZAZtg== - dependencies: - dotenv "16.0.1" - dotenv-expand "8.0.3" - lodash "4.17.21" - uuid "8.3.2" - "@nestjs/core@^9.0.0": version "9.0.11" resolved "https://registry.yarnpkg.com/@nestjs/core/-/core-9.0.11.tgz#1bed969d81685f17d4a01f854c43a222dd3e13ce" @@ -690,11 +690,6 @@ tslib "2.4.0" uuid "8.3.2" -"@nestjs/mapped-types@*", "@nestjs/mapped-types@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@nestjs/mapped-types/-/mapped-types-1.1.0.tgz#54a9fa61079635dd6c3c75fd9593f20b2302a55b" - integrity sha512-+2kSly4P1QI+9eGt+/uGyPdEG1hVz7nbpqPHWZVYgoqz8eOHljpXPag+UCVRw9zo2XCu4sgNUIGe8Uk0+OvUQg== - "@nestjs/platform-express@^9.0.0": version "9.0.11" resolved "https://registry.yarnpkg.com/@nestjs/platform-express/-/platform-express-9.0.11.tgz#49110e02944f3ea4b14936b3ffaa1060230e642e" @@ -707,9 +702,9 @@ tslib "2.4.0" "@nestjs/schematics@^9.0.0": - version "9.0.2" - resolved "https://registry.yarnpkg.com/@nestjs/schematics/-/schematics-9.0.2.tgz#0b822094b25e87dfe19bad1f6a75719bc91550a7" - integrity sha512-pMjdz3YVX1XwTt065oVJjVno/mdbcfoY2nGyMh9lnLkYmAaY9OprT2VASi51AfcKvUhQXbQyuhk9Vvwzr/5NcA== + version "9.0.3" + resolved "https://registry.yarnpkg.com/@nestjs/schematics/-/schematics-9.0.3.tgz#175218350fb3829c9a903e980046a11950310e24" + integrity sha512-kZrU/lrpVd2cnK8I3ibDb3Wi1ppl3wX3U3lVWoL+DzRRoezWKkh8upEL4q0koKmuXnsmLiu3UPxFeMOrJV7TSA== dependencies: "@angular-devkit/core" "14.2.1" "@angular-devkit/schematics" "14.2.1" @@ -717,17 +712,6 @@ jsonc-parser "3.2.0" pluralize "8.0.0" -"@nestjs/swagger@^6.1.2": - version "6.1.2" - resolved "https://registry.yarnpkg.com/@nestjs/swagger/-/swagger-6.1.2.tgz#5eb9c134fc976f16c139ecaf80a7f02a5d33da46" - integrity sha512-RU1DeTDyuN/lRXKFWaf7I9LYF34/ale3IIGeY3romAcXL/N9W0+50Ek3ou+Ajd5FqpLqzt7saYhnaQegVuU4UQ== - dependencies: - "@nestjs/mapped-types" "1.1.0" - js-yaml "4.1.0" - lodash "4.17.21" - path-to-regexp "3.2.0" - swagger-ui-dist "4.14.0" - "@nestjs/testing@^9.0.0": version "9.0.11" resolved "https://registry.yarnpkg.com/@nestjs/testing/-/testing-9.0.11.tgz#8e60107a7aaf9fc7b2bf29d473c2bdb1887de017" @@ -735,6 +719,27 @@ dependencies: tslib "2.4.0" +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + "@nuxtjs/opencollective@0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz#620ce1044f7ac77185e825e1936115bb38e2681c" @@ -744,10 +749,15 @@ consola "^2.15.0" node-fetch "^2.6.1" +"@panva/asn1.js@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@panva/asn1.js/-/asn1.js-1.0.0.tgz#dd55ae7b8129e02049f009408b97c61ccf9032f6" + integrity sha512-UdkG3mLEqXgnlKsWanWcgb6dOjUzJ+XC5f+aWw30qrtjxeNUSfKX1cd5FBzOaXQumoe9nIqeZUvrRJS03HCCtw== + "@sinclair/typebox@^0.24.1": - version "0.24.35" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.35.tgz#7b5ca127aefe3ed482bb60f874bebbe3143e82f5" - integrity sha512-iN6ehuDndiTiDz2F+Orv/+oHJR+PrGv+38oghCddpsW4YEZl5qyLsWxSwYUWrKEOfjpGtXDFW6scJtjpzSLeSw== + version "0.24.37" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.24.37.tgz#3ea4cf8f3cf8a943c17baf5bb7b33587afa5f76b" + integrity sha512-8xuD57tNMHs7R0YUzFp0xqIVOTJDbFHnEN/JTej5d5o/dTx4OSsURKTT9dkWl6ghMk4zs3AYe1bi7UK0NnJ4oA== "@sinonjs/commons@^1.7.0": version "1.8.3" @@ -915,25 +925,32 @@ expect "^28.0.0" pretty-format "^28.0.0" -"@types/json-schema@*", "@types/json-schema@^7.0.8": +"@types/json-schema@*", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/jsonwebtoken@^8.5.8": + version "8.5.9" + resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.9.tgz#2c064ecb0b3128d837d2764aa0b117b0ff6e4586" + integrity sha512-272FMnFGzAVMGtu9tkr29hRL6bZj4Zs1KZNeHLnKqAvp06tAIcarTMwOh8/8bz4FmKRcMxZhZNeUAQsNLoiPhg== + dependencies: + "@types/node" "*" + "@types/mime@*": version "3.0.1" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10" integrity sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA== "@types/node@*": - version "18.7.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.14.tgz#0fe081752a3333392d00586d815485a17c2cf3c9" - integrity sha512-6bbDaETVi8oyIARulOE9qF1/Qdi/23z6emrUh0fNJRUmjznqrixD4MpGDdgOFk5Xb0m2H6Xu42JGdvAxaJR/wA== + version "18.7.15" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.7.15.tgz#20ae1ec80c57ee844b469f968a1cd511d4088b29" + integrity sha512-XnjpaI8Bgc3eBag2Aw4t2Uj/49lLBSStHWfqKvIuXD7FIrZyMLWp8KuAFHAqxMZYTF9l08N1ctUn9YNybZJVmQ== "@types/node@^16.0.0": - version "16.11.56" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.56.tgz#dcbb617669481e158e0f1c6204d1c768cd675901" - integrity sha512-aFcUkv7EddxxOa/9f74DINReQ/celqH8DiB3fRYgVDM2Xm5QJL8sl80QKuAnGvwAsMn+H3IFA6WCrQh1CY7m1A== + version "16.11.57" + resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.57.tgz#786f74cef16acf2c5eb11795b6c3f7ae93596662" + integrity sha512-diBb5AE2V8h9Fs9zEDtBwSeLvIACng/aAkdZ3ujMV+cGuIQ9Nc/V+wQqurk9HJp8ni5roBxQHW21z/ZYbGDivg== "@types/parse-json@^4.0.0": version "4.0.0" @@ -995,6 +1012,87 @@ dependencies: "@types/yargs-parser" "*" +"@typescript-eslint/eslint-plugin@^5.0.0": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.36.2.tgz#6df092a20e0f9ec748b27f293a12cb39d0c1fe4d" + integrity sha512-OwwR8LRwSnI98tdc2z7mJYgY60gf7I9ZfGjN5EjCwwns9bdTuQfAXcsjSB2wSQ/TVNYSGKf4kzVXbNGaZvwiXw== + dependencies: + "@typescript-eslint/scope-manager" "5.36.2" + "@typescript-eslint/type-utils" "5.36.2" + "@typescript-eslint/utils" "5.36.2" + debug "^4.3.4" + functional-red-black-tree "^1.0.1" + ignore "^5.2.0" + regexpp "^3.2.0" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/parser@^5.0.0": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.36.2.tgz#3ddf323d3ac85a25295a55fcb9c7a49ab4680ddd" + integrity sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA== + dependencies: + "@typescript-eslint/scope-manager" "5.36.2" + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/typescript-estree" "5.36.2" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz#a75eb588a3879ae659514780831370642505d1cd" + integrity sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw== + dependencies: + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/visitor-keys" "5.36.2" + +"@typescript-eslint/type-utils@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.36.2.tgz#752373f4babf05e993adf2cd543a763632826391" + integrity sha512-rPQtS5rfijUWLouhy6UmyNquKDPhQjKsaKH0WnY6hl/07lasj8gPaH2UD8xWkePn6SC+jW2i9c2DZVDnL+Dokw== + dependencies: + "@typescript-eslint/typescript-estree" "5.36.2" + "@typescript-eslint/utils" "5.36.2" + debug "^4.3.4" + tsutils "^3.21.0" + +"@typescript-eslint/types@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.36.2.tgz#a5066e500ebcfcee36694186ccc57b955c05faf9" + integrity sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ== + +"@typescript-eslint/typescript-estree@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz#0c93418b36c53ba0bc34c61fe9405c4d1d8fe560" + integrity sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w== + dependencies: + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/visitor-keys" "5.36.2" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.36.2.tgz#b01a76f0ab244404c7aefc340c5015d5ce6da74c" + integrity sha512-uNcopWonEITX96v9pefk9DC1bWMdkweeSsewJ6GeC7L6j2t0SJywisgkr9wUTtXk90fi2Eljj90HSHm3OGdGRg== + dependencies: + "@types/json-schema" "^7.0.9" + "@typescript-eslint/scope-manager" "5.36.2" + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/typescript-estree" "5.36.2" + eslint-scope "^5.1.1" + eslint-utils "^3.0.0" + +"@typescript-eslint/visitor-keys@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz#2f8f78da0a3bad3320d2ac24965791ac39dace5a" + integrity sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A== + dependencies: + "@typescript-eslint/types" "5.36.2" + eslint-visitor-keys "^3.3.0" + "@webassemblyjs/ast@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7" @@ -1139,16 +1237,28 @@ acorn-import-assertions@^1.7.6: resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz#ba2b5939ce62c238db6d93d81c9b111b29b855e9" integrity sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw== +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + acorn-walk@^8.1.1: version "8.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== -acorn@^8.4.1, acorn@^8.5.0: +acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.8.0: version "8.8.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + ajv-formats@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" @@ -1171,7 +1281,7 @@ ajv@8.11.0, ajv@^8.0.0: require-from-string "^2.0.2" uri-js "^4.2.2" -ajv@^6.12.3, ajv@^6.12.5: +ajv@^6.10.0, ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -1252,45 +1362,34 @@ array-flatten@1.1.1: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + asap@^2.0.0: version "2.0.6" resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== -asn1@~0.2.3: - version "0.2.6" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" - integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== - dependencies: - safer-buffer "~2.1.0" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== - -aws4@^1.8.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" - integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== - -axios@0.27.2, axios@^0.27.2: - version "0.27.2" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.27.2.tgz#207658cc8621606e586c85db4b41a750e756d972" - integrity sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ== +axios@0.21.4: + version "0.21.4" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" + integrity sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg== dependencies: - follow-redirects "^1.14.9" - form-data "^4.0.0" + follow-redirects "^1.14.0" + +axios@^0.26.1: + version "0.26.1" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9" + integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA== + dependencies: + follow-redirects "^1.14.8" babel-jest@^28.1.3: version "28.1.3" @@ -1362,13 +1461,6 @@ base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== - dependencies: - tweetnacl "^0.14.3" - binary-extensions@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" @@ -1383,6 +1475,22 @@ bl@^4.1.0: inherits "^2.0.4" readable-stream "^3.4.0" +body-parser@1.19.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" + integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== + dependencies: + bytes "3.1.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.2" + http-errors "1.7.2" + iconv-lite "0.4.24" + on-finished "~2.3.0" + qs "6.7.0" + raw-body "2.4.0" + type-is "~1.6.17" + body-parser@1.20.0: version "1.20.0" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.0.tgz#3de69bd89011c11573d7bfee6a64f11b6bd27cc5" @@ -1440,6 +1548,11 @@ bser@2.1.1: dependencies: node-int64 "^0.4.0" +buffer-equal-constant-time@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" + integrity sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA== + buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -1460,6 +1573,11 @@ busboy@^1.0.0: dependencies: streamsearch "^1.1.0" +bytes@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" + integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== + bytes@3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" @@ -1493,11 +1611,6 @@ caniuse-lite@^1.0.30001370: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001390.tgz#158a43011e7068ef7fc73590e9fd91a7cece5e7f" integrity sha512-sS4CaUM+/+vqQUlCvCJ2WtDlV81aWtHhqeEVkLokVJJa3ViN4zDxAGfq9R8i1m90uGHxo99cy10Od+lvn3hf0g== -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== - chalk@3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" @@ -1603,6 +1716,16 @@ clone@^1.0.2: resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== +co-body@6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/co-body/-/co-body-6.1.0.tgz#d87a8efc3564f9bfe3aced8ef5cd04c7a8766547" + integrity sha512-m7pOT6CdLN7FuXUcpuz/8lfQ/L77x8SchHCF4G0RBTJO20Wzmhn5Sp4/5WsKy8OSpifBSUrmg83qEqaDHdyFuQ== + dependencies: + inflation "^2.0.0" + qs "^6.5.2" + raw-body "^2.3.3" + type-is "^1.6.16" + co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" @@ -1637,7 +1760,7 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: +combined-stream@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== @@ -1703,6 +1826,11 @@ cookie-signature@1.0.6: resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== +cookie@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" + integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== + cookie@0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.5.0.tgz#d1f5d71adec6558c58f389987c366aa47e994f8b" @@ -1713,11 +1841,6 @@ cookiejar@^2.1.3: resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.3.tgz#fc7a6216e408e74414b90230050842dacda75acc" integrity sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ== -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== - core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" @@ -1747,7 +1870,7 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-spawn@^7.0.0, cross-spawn@^7.0.3: +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -1756,12 +1879,10 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== - dependencies: - assert-plus "^1.0.0" +dayjs@^1.8.29: + version "1.11.5" + resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.5.tgz#00e8cc627f231f9499c19b38af49f56dc0ac5e93" + integrity sha512-CAdX5Q3YW3Gclyo5Vpqkgpj8fSdLQcRuzfX6mC6Phy0nfJ0eGYOeS7m4mt2plDWLAtA4TqTakvbboHvUxfe4iA== debug@2.6.9: version "2.6.9" @@ -1770,7 +1891,7 @@ debug@2.6.9: dependencies: ms "2.0.0" -debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1782,6 +1903,11 @@ dedent@^0.7.0: resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + deepmerge@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" @@ -1804,6 +1930,11 @@ depd@2.0.0: resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== + destroy@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" @@ -1832,23 +1963,26 @@ diff@^4.0.1: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -dotenv-expand@8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-8.0.3.tgz#29016757455bcc748469c83a19b36aaf2b83dd6e" - integrity sha512-SErOMvge0ZUyWd5B0NXMQlDkN+8r+HhVUsxgOO7IoPDOdDRD2JjExpN6y3KnFR66jsJMwSn1pqIivhU5rcJiNg== - -dotenv@16.0.1: - version "16.0.1" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.1.tgz#8f8f9d94876c35dac989876a5d3a82a267fdce1d" - integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ== - -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" + path-type "^4.0.0" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +ecdsa-sig-formatter@1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf" + integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== + dependencies: + safe-buffer "^5.0.1" ee-first@1.1.1: version "1.1.1" @@ -1856,9 +1990,9 @@ ee-first@1.1.1: integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== electron-to-chromium@^1.4.202: - version "1.4.241" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.241.tgz#5aa03ab94db590d8269f4518157c24b1efad34d6" - integrity sha512-e7Wsh4ilaioBZ5bMm6+F4V5c11dh56/5Jwz7Hl5Tu1J7cnB+Pqx5qIF2iC7HPpfyQMqGSvvLP5bBAIDd2gAtGw== + version "1.4.242" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.242.tgz#51284820b0e6f6ce6c60d3945a3c4f9e4bd88f5f" + integrity sha512-nPdgMWtjjWGCtreW/2adkrB2jyHjClo9PtVhR6rW+oxa4E4Wom642Tn+5LslHP3XPL5MCpkn5/UEY60EXylNeQ== emittery@^0.10.2: version "0.10.2" @@ -1882,7 +2016,7 @@ end-of-stream@^1.1.0: dependencies: once "^1.4.0" -enhanced-resolve@^5.0.0, enhanced-resolve@^5.7.0, enhanced-resolve@^5.9.3: +enhanced-resolve@^5.0.0, enhanced-resolve@^5.10.0, enhanced-resolve@^5.7.0: version "5.10.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz#0dc579c3bb2a1032e357ac45b8f3a6f3ad4fb1e6" integrity sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ== @@ -1922,7 +2056,24 @@ escape-string-regexp@^2.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -eslint-scope@5.1.1: +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +eslint-config-prettier@^8.3.0: + version "8.5.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1" + integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q== + +eslint-plugin-prettier@^4.0.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" + integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-scope@5.1.1, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -1930,11 +2081,97 @@ eslint-scope@5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" +eslint-scope@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642" + integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint-visitor-keys@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" + integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== + +eslint@^8.0.1: + version "8.23.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.23.0.tgz#a184918d288820179c6041bb3ddcc99ce6eea040" + integrity sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA== + dependencies: + "@eslint/eslintrc" "^1.3.1" + "@humanwhocodes/config-array" "^0.10.4" + "@humanwhocodes/gitignore-to-minimatch" "^1.0.2" + "@humanwhocodes/module-importer" "^1.0.1" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.1.1" + eslint-utils "^3.0.0" + eslint-visitor-keys "^3.3.0" + espree "^9.4.0" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + functional-red-black-tree "^1.0.1" + glob-parent "^6.0.1" + globals "^13.15.0" + globby "^11.1.0" + grapheme-splitter "^1.0.4" + ignore "^5.2.0" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.1" + regexpp "^3.2.0" + strip-ansi "^6.0.1" + strip-json-comments "^3.1.0" + text-table "^0.2.0" + +espree@^9.4.0: + version "9.4.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.4.0.tgz#cd4bc3d6e9336c433265fc0aa016fc1aaf182f8a" + integrity sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw== + dependencies: + acorn "^8.8.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.3.0" + esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== + dependencies: + estraverse "^5.1.0" + esrecurse@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" @@ -1947,11 +2184,16 @@ estraverse@^4.1.1: resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== -estraverse@^5.2.0: +estraverse@^5.1.0, estraverse@^5.2.0: version "5.3.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" @@ -2045,11 +2287,6 @@ express@4.18.1: utils-merge "1.0.1" vary "~1.1.2" -extend@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - external-editor@^3.0.3: version "3.1.0" resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" @@ -2059,31 +2296,49 @@ external-editor@^3.0.3: iconv-lite "^0.4.24" tmp "^0.0.33" -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== - -extsprintf@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" - integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== - -fast-deep-equal@^3.1.1: +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^3.2.9: + version "3.2.11" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" + integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + fast-safe-stringify@2.1.1, fast-safe-stringify@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== +fastq@^1.6.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" + integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== + dependencies: + reusify "^1.0.4" + fb-watchman@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" @@ -2098,6 +2353,13 @@ figures@^3.0.0: dependencies: escape-string-regexp "^1.0.5" +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -2126,16 +2388,32 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -follow-redirects@^1.14.9: +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + +flatted@^3.1.0: + version "3.2.7" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.7.tgz#609f39207cb614b89d0765b477cb2d437fbf9787" + integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ== + +follow-redirects@^1.14.0, follow-redirects@^1.14.8: version "1.15.1" resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.1.tgz#0ca6a452306c9b276e4d3127483e29575e207ad5" integrity sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA== -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== - fork-ts-checker-webpack-plugin@7.2.13: version "7.2.13" resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-7.2.13.tgz#51ffd6a2f96f03ab64b92f8aedf305dbf3dee0f1" @@ -2163,15 +2441,6 @@ form-data@^4.0.0: combined-stream "^1.0.8" mime-types "^2.1.12" -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - formidable@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/formidable/-/formidable-2.0.1.tgz#4310bc7965d185536f9565184dee74fbb75557ff" @@ -2221,6 +2490,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== + gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -2257,20 +2531,20 @@ get-stream@^6.0.0: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== - dependencies: - assert-plus "^1.0.0" - -glob-parent@~5.1.2: +glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== dependencies: is-glob "^4.0.1" +glob-parent@^6.0.1: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob-to-regexp@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" @@ -2293,23 +2567,34 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globals@^13.15.0: + version "13.17.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.17.0.tgz#902eb1e680a41da93945adbdcb5a9f361ba69bd4" + integrity sha512-1C+6nQRb1GwGMKm2dH/E7enFAMxGTmGI7/dEdhy/DNelv85w9B72t3uc5frtMNXIbzrarJJ/lTCjcaZwbLJmyw== + dependencies: + type-fest "^0.20.2" + +globby@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.9: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" +grapheme-splitter@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" + integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== has-flag@^3.0.0: version "3.0.0" @@ -2343,6 +2628,17 @@ html-escaper@^2.0.0: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== +http-errors@1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" + integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + http-errors@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" @@ -2354,14 +2650,13 @@ http-errors@2.0.0: statuses "2.0.1" toidentifier "1.0.1" -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" + agent-base "6" + debug "4" human-signals@^1.1.1: version "1.1.1" @@ -2385,7 +2680,12 @@ ieee754@^1.1.13: resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -import-fresh@^3.2.1: +ignore@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" + integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== + +import-fresh@^3.0.0, import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -2406,6 +2706,11 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== +inflation@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/inflation/-/inflation-2.0.0.tgz#8b417e47c28f925a45133d914ca1fd389107f30f" + integrity sha512-m3xv4hJYR2oXw4o4Y5l6P5P16WYmazYof+el6Al3f+YlggGj6qT9kImBAnzDelRALnP5d3h4jGBPKzYCizjZZw== + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -2419,6 +2724,11 @@ inherits@2, inherits@2.0.4, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== + inquirer@7.3.3: version "7.3.3" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.3.3.tgz#04d176b2af04afc157a83fd7c100e98ee0aad003" @@ -2503,7 +2813,7 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^4.0.1, is-glob@~4.0.1: +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -2525,11 +2835,6 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - is-unicode-supported@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" @@ -2545,19 +2850,6 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -isomorphic-fetch@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz#0267b005049046d2421207215d45d6a262b8b8b4" - integrity sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA== - dependencies: - node-fetch "^2.6.1" - whatwg-fetch "^3.4.1" - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== - istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" @@ -2972,23 +3264,18 @@ jest@28.1.3: import-local "^3.0.2" jest-cli "^28.1.3" -jose@^4.1.4: - version "4.9.2" - resolved "https://registry.yarnpkg.com/jose/-/jose-4.9.2.tgz#268994df4443b9c191de0b001c2e3796ac6cf368" - integrity sha512-EqKvu2PqJCD3Jrg3PvcYZVS7D21qMVLSYMDAFcOdGUEOpJSLNtJO7NjLANvu3SYHVl6pdP2ff7ve6EZW2nX7Nw== +jose@^2.0.5: + version "2.0.6" + resolved "https://registry.yarnpkg.com/jose/-/jose-2.0.6.tgz#894ba19169af339d3911be933f913dd02fc57c7c" + integrity sha512-FVoPY7SflDodE4lknJmbAHSUjLCzE2H1F6MS0RYKMQ8SR+lNccpMf8R4eqkNYyyUjR5qZReOzZo5C5YiHOCjjg== + dependencies: + "@panva/asn1.js" "^1.0.0" js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" @@ -2997,10 +3284,12 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" jsesc@^2.5.1: version "2.5.2" @@ -3022,15 +3311,10 @@ json-schema-traverse@^1.0.0: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== -json-schema@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" - integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== json5@^2.2.1: version "2.2.1" @@ -3056,15 +3340,50 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -jsprim@^1.2.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" - integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== +jsonwebtoken@^8.5.1: + version "8.5.1" + resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" + integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w== dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.4.0" - verror "1.10.0" + jws "^3.2.2" + lodash.includes "^4.3.0" + lodash.isboolean "^3.0.3" + lodash.isinteger "^4.0.4" + lodash.isnumber "^3.0.3" + lodash.isplainobject "^4.0.6" + lodash.isstring "^4.0.1" + lodash.once "^4.0.0" + ms "^2.1.1" + semver "^5.6.0" + +jwa@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.4.1.tgz#743c32985cb9e98655530d53641b66c8645b039a" + integrity sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA== + dependencies: + buffer-equal-constant-time "1.0.1" + ecdsa-sig-formatter "1.0.11" + safe-buffer "^5.0.1" + +jwks-rsa@^2.0.5, jwks-rsa@^2.1.3: + version "2.1.4" + resolved "https://registry.yarnpkg.com/jwks-rsa/-/jwks-rsa-2.1.4.tgz#38ebfbe9cb4cdce3be070e6575796304917bae97" + integrity sha512-mpArfgPkUpX11lNtGxsF/szkasUcbWHGplZl/uFvFO2NuMHmt0dQXIihh0rkPU2yQd5niQtuUHbXnG/WKiXF6Q== + dependencies: + "@types/express" "^4.17.13" + "@types/jsonwebtoken" "^8.5.8" + debug "^4.3.4" + jose "^2.0.5" + limiter "^1.1.5" + lru-memoizer "^2.1.4" + +jws@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.2.tgz#001099f3639468c9414000e99995fa52fb478304" + integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA== + dependencies: + jwa "^1.4.1" + safe-buffer "^5.0.1" kleur@^3.0.3: version "3.0.3" @@ -3076,6 +3395,24 @@ leven@^3.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +libphonenumber-js@^1.9.44: + version "1.10.13" + resolved "https://registry.yarnpkg.com/libphonenumber-js/-/libphonenumber-js-1.10.13.tgz#0b5833c7fdbf671140530d83531c6753f7e0ea3c" + integrity sha512-b74iyWmwb4GprAUPjPkJ11GTC7KX4Pd3onpJfKxYyY8y9Rbb4ERY47LvCMEDM09WD3thiLDMXtkfDK/AX+zT7Q== + +limiter@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.5.tgz#8f92a25b3b16c6131293a0cc834b4a838a2aa7c2" + integrity sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA== + lines-and-columns@^1.1.6: version "1.2.4" resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" @@ -3093,12 +3430,64 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.clonedeep@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" + integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ== + +lodash.includes@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" + integrity sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w== + +lodash.isboolean@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" + integrity sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg== + +lodash.isinteger@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" + integrity sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA== + +lodash.isnumber@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" + integrity sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw== + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA== + +lodash.isstring@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" + integrity sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw== + lodash.memoize@4.x: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== -lodash@4.17.21, lodash@^4.17.19, lodash@^4.17.21: +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +lodash.once@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" + integrity sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg== + +lodash@^4.17.19, lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -3118,6 +3507,22 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" +lru-cache@~4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.0.2.tgz#1d17679c069cda5d040991a09dbc2c0db377e55e" + integrity sha512-uQw9OqphAGiZhkuPlpFGmdTU2tEuhxTourM/19qGJrxBPHAr/f8BT1a0i/lOclESnGatdJG/UCkP9kZB/Lh1iw== + dependencies: + pseudomap "^1.0.1" + yallist "^2.0.0" + +lru-memoizer@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/lru-memoizer/-/lru-memoizer-2.1.4.tgz#b864d92b557f00b1eeb322156a0409cb06dafac6" + integrity sha512-IXAq50s4qwrOBrXJklY+KhgZF+5y98PDaNo0gi/v2KQBFLyWr+JyFvijZXkGKjQj/h9c0OwoE+JZbwUXce76hQ== + dependencies: + lodash.clonedeep "^4.5.0" + lru-cache "~4.0.0" + macos-release@^2.5.0: version "2.5.0" resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.0.tgz#067c2c88b5f3fb3c56a375b2ec93826220fa1ff2" @@ -3171,6 +3576,11 @@ merge-stream@^2.0.0: resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== +merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + methods@^1.1.2, methods@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" @@ -3189,7 +3599,7 @@ mime-db@1.52.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.19, mime-types@~2.1.24, mime-types@~2.1.34: +mime-types@^2.1.12, mime-types@^2.1.27, mime-types@~2.1.24, mime-types@~2.1.34: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== @@ -3211,7 +3621,7 @@ mimic-fn@^2.1.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== -minimatch@^3.0.4, minimatch@^3.1.1: +minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -3240,7 +3650,7 @@ ms@2.1.2: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== -ms@2.1.3: +ms@2.1.3, ms@^2.1.1: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -3307,6 +3717,11 @@ node-releases@^2.0.6: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== +nodemailer@^6.7.2: + version "6.7.8" + resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.7.8.tgz#9f1af9911314960c0b889079e1754e8d9e3f740a" + integrity sha512-2zaTFGqZixVmTxpJRCFC+Vk5eGRd/fYtvIR+dl5u9QXLTQWGIf48x/JXvo58g9sa0bU6To04XUv554Paykum3g== + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" @@ -3319,11 +3734,6 @@ npm-run-path@^4.0.0, npm-run-path@^4.0.1: dependencies: path-key "^3.0.0" -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== - object-assign@^4, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -3334,21 +3744,11 @@ object-hash@3.0.0: resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9" integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw== -object-hash@^2.0.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-2.2.0.tgz#5ad518581eefc443bd763472b8ff2e9c2c0d54a5" - integrity sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw== - object-inspect@^1.9.0: version "1.12.2" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== -oidc-token-hash@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/oidc-token-hash/-/oidc-token-hash-5.0.1.tgz#ae6beec3ec20f0fd885e5400d175191d6e2f10c6" - integrity sha512-EvoOtz6FIEBzE+9q253HsLCVRiK/0doEJ2HCvvqMQb3dHZrP3WlJKYtJ55CRTw4jmYomzH4wkPuCj/I3ZvpKxQ== - on-finished@2.4.1: version "2.4.1" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" @@ -3356,6 +3756,13 @@ on-finished@2.4.1: dependencies: ee-first "1.1.1" +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== + dependencies: + ee-first "1.1.1" + once@1.4.0, once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" @@ -3370,15 +3777,17 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" -openid-client@^5.1.9: - version "5.1.9" - resolved "https://registry.yarnpkg.com/openid-client/-/openid-client-5.1.9.tgz#6887e75ad3fa8d0c78d0ed693a5ea107d39b54de" - integrity sha512-o/11Xos2fRPpK1zQrPfSIhIusFrAkqGSPwkD0UlUB+CCuRzd7zrrBJwIjgnVv3VUSif9ZGXh2d3GSJNH2Koh5g== +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== dependencies: - jose "^4.1.4" - lru-cache "^6.0.0" - object-hash "^2.0.1" - oidc-token-hash "^5.0.1" + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" ora@5.4.1, ora@^5.4.1: version "5.4.1" @@ -3415,7 +3824,7 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.1.0: +p-limit@^3.0.2, p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -3429,6 +3838,13 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -3491,11 +3907,6 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== - picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" @@ -3523,6 +3934,23 @@ pluralize@8.0.0: resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== +pop-iterate@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/pop-iterate/-/pop-iterate-1.0.1.tgz#ceacfdab4abf353d7a0f2aaa2c1fc7b3f9413ba3" + integrity sha512-HRCx4+KJE30JhX84wBN4+vja9bNfysxg1y28l0DuJmkoaICiv2ZSilKddbS48pq50P8d2erAhqDLbp47yv3MbQ== + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + prettier@^2.3.2: version "2.7.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" @@ -3559,10 +3987,15 @@ proxy-addr@~2.0.7: forwarded "0.2.0" ipaddr.js "1.9.1" -psl@^1.1.28: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== +pseudomap@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ== + +psl@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" + integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== pump@^3.0.0: version "3.0.0" @@ -3572,11 +4005,20 @@ pump@^3.0.0: end-of-stream "^1.1.0" once "^1.3.1" -punycode@^2.1.0, punycode@^2.1.1: +punycode@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== +q@2.0.x: + version "2.0.3" + resolved "https://registry.yarnpkg.com/q/-/q-2.0.3.tgz#75b8db0255a1a5af82f58c3f3aaa1efec7d0d134" + integrity sha512-gv6vLGcmAOg96/fgo3d9tvA4dJNZL3fMyBqVRrGxQ+Q/o4k9QzbJ3NQF9cOO/71wRodoXhaPgphvMFU68qVAJQ== + dependencies: + asap "^2.0.0" + pop-iterate "^1.0.1" + weak-map "^1.0.5" + qs@6.10.3: version "6.10.3" resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz#d6cde1b2ffca87b5aa57889816c5f81535e22e8e" @@ -3584,22 +4026,32 @@ qs@6.10.3: dependencies: side-channel "^1.0.4" +qs@6.7.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" + integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== + qs@6.9.3: version "6.9.3" resolved "https://registry.yarnpkg.com/qs/-/qs-6.9.3.tgz#bfadcd296c2d549f1dffa560619132c977f5008e" integrity sha512-EbZYNarm6138UKKq46tdx08Yo/q9ZhFoAXAI1meAFd2GtbRDhbZY2WQSICskT0c5q99aFzLG1D4nvTk9tqfXIw== -qs@^6.10.3: +qs@^6.10.3, qs@^6.5.2, qs@^6.9.4: version "6.11.0" resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== dependencies: side-channel "^1.0.4" -qs@~6.5.2: - version "6.5.3" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" - integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== +querystringify@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" + integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== randombytes@^2.1.0: version "2.1.0" @@ -3613,7 +4065,17 @@ range-parser@~1.2.1: resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== -raw-body@2.5.1: +raw-body@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" + integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== + dependencies: + bytes "3.1.0" + http-errors "1.7.2" + iconv-lite "0.4.24" + unpipe "1.0.0" + +raw-body@2.5.1, raw-body@^2.3.3: version "2.5.1" resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz#fe1b1628b181b700215e5fd42389f98b71392857" integrity sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig== @@ -3669,31 +4131,10 @@ reflect-metadata@^0.1.13: resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.13.tgz#67ae3ca57c972a2aa1642b10fe363fe32d49dc08" integrity sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg== -request@^2.88.2: - version "2.88.2" - resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" - integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.8.0" - caseless "~0.12.0" - combined-stream "~1.0.6" - extend "~3.0.2" - forever-agent "~0.6.1" - form-data "~2.3.2" - har-validator "~5.1.3" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.19" - oauth-sign "~0.9.0" - performance-now "^2.1.0" - qs "~6.5.2" - safe-buffer "^5.1.2" - tough-cookie "~2.5.0" - tunnel-agent "^0.6.0" - uuid "^3.3.2" +regexpp@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== require-directory@^2.1.1: version "2.1.1" @@ -3705,6 +4146,11 @@ require-from-string@^2.0.2: resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + resolve-cwd@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" @@ -3744,6 +4190,11 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" @@ -3751,11 +4202,23 @@ rimraf@3.0.2, rimraf@^3.0.0, rimraf@^3.0.2: dependencies: glob "^7.1.3" +rootpath@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/rootpath/-/rootpath-0.1.2.tgz#5b379a87dca906e9b91d690a599439bef267ea6b" + integrity sha512-R3wLbuAYejpxQjL/SjXo1Cjv4wcJECnMRT/FlcCfTwCBhaji9rWaRCoVEQ1SPiTJ4kKK+yh+bZLAV7SCafoDDw== + run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + rxjs@6.6.7, rxjs@^6.6.0: version "6.6.7" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" @@ -3770,7 +4233,7 @@ rxjs@^7.2.0, rxjs@^7.5.5: dependencies: tslib "^2.1.0" -safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== @@ -3780,7 +4243,7 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: +"safer-buffer@>= 2.1.2 < 3": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -3794,6 +4257,11 @@ schema-utils@^3.1.0, schema-utils@^3.1.1: ajv "^6.12.5" ajv-keywords "^3.5.2" +scmp@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/scmp/-/scmp-2.1.0.tgz#37b8e197c425bdeb570ab91cc356b311a11f9c9a" + integrity sha512-o/mRQGk9Rcer/jEEw/yw4mwo3EU/NvYvp577/Btqrym9Qy5/MdWGBqipbALgd2lrdWTJ5/gqDusxfnQBxOxT2Q== + semver@7.x, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: version "7.3.7" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" @@ -3801,6 +4269,11 @@ semver@7.x, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7: dependencies: lru-cache "^6.0.0" +semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + semver@^6.0.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" @@ -3842,6 +4315,11 @@ serve-static@1.15.0: parseurl "~1.3.3" send "0.18.0" +setprototypeof@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" + integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== + setprototypeof@1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" @@ -3928,21 +4406,6 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -sshpk@^1.7.0: - version "1.17.0" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5" - integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ== - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - bcrypt-pbkdf "^1.0.0" - dashdash "^1.12.0" - ecc-jsbn "~0.1.1" - getpass "^0.1.1" - jsbn "~0.1.0" - safer-buffer "^2.0.2" - tweetnacl "~0.14.0" - stack-utils@^2.0.3: version "2.0.5" resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5" @@ -3955,6 +4418,11 @@ statuses@2.0.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== +"statuses@>= 1.5.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + streamsearch@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" @@ -4013,7 +4481,7 @@ strip-final-newline@^2.0.0: resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== -strip-json-comments@^3.1.1: +strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== @@ -4043,6 +4511,30 @@ supertest@^6.1.3: methods "^1.1.2" superagent "^8.0.0" +supertokens-js-override@^0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/supertokens-js-override/-/supertokens-js-override-0.0.4.tgz#9af583fbc5e1f0195dbb358c4fcf75f44c76dc09" + integrity sha512-r0JFBjkMIdep3Lbk3JA+MpnpuOtw4RSyrlRAbrzMcxwiYco3GFWl/daimQZ5b1forOiUODpOlXbSOljP/oyurg== + +supertokens-node@^11.3.0: + version "11.3.0" + resolved "https://registry.yarnpkg.com/supertokens-node/-/supertokens-node-11.3.0.tgz#81fd3fa7ced2ed7cb55b7514ce7fb64afef5fd60" + integrity sha512-JFFr73BwTAcYrk0wi0CSt7skCkFcCY/PXGaFV71CYibV7sjZ+jBdK5jawWvZIvZc5ucd10kvZOVBKABna4KexA== + dependencies: + axios "0.21.4" + body-parser "1.19.0" + co-body "6.1.0" + cookie "0.4.0" + debug "^4.3.3" + jsonwebtoken "^8.5.1" + jwks-rsa "^2.0.5" + libphonenumber-js "^1.9.44" + nodemailer "^6.7.2" + psl "1.8.0" + supertokens-js-override "^0.0.4" + twilio "^3.76.0" + verify-apple-id-token "^2.1.0" + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -4065,9 +4557,9 @@ supports-color@^8.0.0: has-flag "^4.0.0" supports-hyperlinks@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz#4f77b42488765891774b70c79babd87f9bd594bb" - integrity sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ== + version "2.3.0" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" + integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== dependencies: has-flag "^4.0.0" supports-color "^7.0.0" @@ -4077,11 +4569,6 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -swagger-ui-dist@4.14.0: - version "4.14.0" - resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-4.14.0.tgz#e34d807464eb84578c43902e393084a1a6fbda52" - integrity sha512-TBzhheU15s+o54Cgk9qxuYcZMiqSm/SkvKnapoGHOF66kz0Y5aGjpzj5BT/vpBbn6rTPJ9tUYXQxuDWfsjiGMw== - symbol-observable@4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" @@ -4130,6 +4617,11 @@ test-exclude@^6.0.0: glob "^7.1.4" minimatch "^3.0.4" +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + through@^2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -4159,19 +4651,16 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" +toidentifier@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" + integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== + toidentifier@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== -tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== - dependencies: - psl "^1.1.28" - punycode "^2.1.1" - tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" @@ -4248,34 +4737,58 @@ tslib@2.4.0, tslib@^2.1.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== -tslib@^1.9.0: +tslib@^1.8.1, tslib@^1.9.0: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== +tsutils@^3.21.0: + version "3.21.0" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" + integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== dependencies: - safe-buffer "^5.0.1" + tslib "^1.8.1" -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== +twilio@^3.76.0: + version "3.81.0" + resolved "https://registry.yarnpkg.com/twilio/-/twilio-3.81.0.tgz#3b7c5b3cf534d2caf589e226e029c5faf7c960b3" + integrity sha512-ipeYAhAxD0ql/1Jq0DfTm1SvU+kdGcS+JJEbfWuCOG5vyyiB6C4nlLGR/tdojZDwuP7Dxf4TZ+oFE+6FL8c3Aw== + dependencies: + axios "^0.26.1" + dayjs "^1.8.29" + https-proxy-agent "^5.0.0" + jsonwebtoken "^8.5.1" + lodash "^4.17.21" + q "2.0.x" + qs "^6.9.4" + rootpath "^0.1.2" + scmp "^2.1.0" + url-parse "^1.5.9" + xmlbuilder "^13.0.2" + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" type-detect@4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + type-fest@^0.21.3: version "0.21.3" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -type-is@^1.6.4, type-is@~1.6.18: +type-is@^1.6.16, type-is@^1.6.4, type-is@~1.6.17, type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== @@ -4288,11 +4801,16 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA== -typescript@4.7.4, typescript@~4.7.4: +typescript@4.7.4: version "4.7.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== +typescript@^4.7.4: + version "4.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790" + integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw== + universalify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" @@ -4318,6 +4836,14 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" +url-parse@^1.5.9: + version "1.5.10" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" + integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== + dependencies: + querystringify "^2.1.1" + requires-port "^1.0.0" + util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" @@ -4333,11 +4859,6 @@ uuid@8.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== -uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - v8-compile-cache-lib@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" @@ -4357,14 +4878,13 @@ vary@^1, vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== +verify-apple-id-token@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/verify-apple-id-token/-/verify-apple-id-token-2.2.0.tgz#ba31739a527409c47dffdcbe69bac42880b85e29" + integrity sha512-yV96h/6Wv9JY3Gcrg/3a+MyK8T5/RgNn4bVAkeuIwvCr4zanRsbrGKMgzD8UfH2Szr5veevmKdfLx8PfpING6Q== dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" + jsonwebtoken "^8.5.1" + jwks-rsa "^2.1.3" walker@^1.0.8: version "1.0.8" @@ -4373,7 +4893,7 @@ walker@^1.0.8: dependencies: makeerror "1.0.12" -watchpack@^2.3.1: +watchpack@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== @@ -4388,6 +4908,11 @@ wcwidth@^1.0.1: dependencies: defaults "^1.0.3" +weak-map@^1.0.5: + version "1.0.8" + resolved "https://registry.yarnpkg.com/weak-map/-/weak-map-1.0.8.tgz#394c18a9e8262e790544ed8b55c6a4ddad1cb1a3" + integrity sha512-lNR9aAefbGPpHO7AEnY0hCFjz1eTkWCXYvkTRrTHs9qv8zJp+SkVYpzfLIFXQQiG3tVvbNFQgVg2bQS8YGgxyw== + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" @@ -4403,21 +4928,21 @@ webpack-sources@^3.2.3: resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@5.73.0: - version "5.73.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.73.0.tgz#bbd17738f8a53ee5760ea2f59dce7f3431d35d38" - integrity sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA== +webpack@5.74.0: + version "5.74.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.74.0.tgz#02a5dac19a17e0bb47093f2be67c695102a55980" + integrity sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA== dependencies: "@types/eslint-scope" "^3.7.3" "@types/estree" "^0.0.51" "@webassemblyjs/ast" "1.11.1" "@webassemblyjs/wasm-edit" "1.11.1" "@webassemblyjs/wasm-parser" "1.11.1" - acorn "^8.4.1" + acorn "^8.7.1" acorn-import-assertions "^1.7.6" browserslist "^4.14.5" chrome-trace-event "^1.0.2" - enhanced-resolve "^5.9.3" + enhanced-resolve "^5.10.0" es-module-lexer "^0.9.0" eslint-scope "5.1.1" events "^3.2.0" @@ -4430,14 +4955,9 @@ webpack@5.73.0: schema-utils "^3.1.0" tapable "^2.1.1" terser-webpack-plugin "^5.1.3" - watchpack "^2.3.1" + watchpack "^2.4.0" webpack-sources "^3.2.3" -whatwg-fetch@^3.4.1: - version "3.6.2" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz#dced24f37f2624ed0281725d51d0e2e3fe677f8c" - integrity sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA== - whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" @@ -4460,6 +4980,11 @@ windows-release@^4.0.0: dependencies: execa "^4.0.2" +word-wrap@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" @@ -4482,6 +5007,11 @@ write-file-atomic@^4.0.1: imurmurhash "^0.1.4" signal-exit "^3.0.7" +xmlbuilder@^13.0.2: + version "13.0.2" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-13.0.2.tgz#02ae33614b6a047d1c32b5389c1fdacb2bce47a7" + integrity sha512-Eux0i2QdDYKbdbA6AM6xE4m6ZTZr4G4xF9kahI2ukSEMCzwce2eX9WlTI5J3s+NU7hpasFsr8hWIONae7LluAQ== + xtend@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" @@ -4492,6 +5022,11 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yallist@^2.0.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A== + yallist@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + +