{ "version": 3, "sources": ["../../../node_modules/@goauthentik/api/dist/esm/runtime.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PolicyEngineMode.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Provider.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Application.js", "../../../node_modules/@goauthentik/api/dist/esm/models/ApplicationRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSessionAsn.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSessionGeoIp.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSessionUserAgentDevice.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSessionUserAgentOs.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSessionUserAgentUserAgent.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSessionUserAgent.js", "../../../node_modules/@goauthentik/api/dist/esm/models/AuthenticatedSession.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Brand.js", "../../../node_modules/@goauthentik/api/dist/esm/models/BrandRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/CapabilitiesEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/ErrorReportingConfig.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Config.js", "../../../node_modules/@goauthentik/api/dist/esm/models/GroupMember.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Coordinate.js", "../../../node_modules/@goauthentik/api/dist/esm/models/FooterLink.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UiThemeEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/CurrentBrand.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserGroup.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserTypeEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/User.js", "../../../node_modules/@goauthentik/api/dist/esm/models/FilePathRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LogLevelEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LogEvent.js", "../../../node_modules/@goauthentik/api/dist/esm/models/GoogleWorkspaceProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Role.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Group.js", "../../../node_modules/@goauthentik/api/dist/esm/models/GroupRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/InstallID.js", "../../../node_modules/@goauthentik/api/dist/esm/models/IntentEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PolicyTestResult.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LDAPProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/License.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LicenseFlagsEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LicenseForecast.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LicenseRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LicenseSummaryStatusEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/LicenseSummary.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Link.js", "../../../node_modules/@goauthentik/api/dist/esm/models/MicrosoftEntraProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/OAuth2ProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/ProxyProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/RACProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/RadiusProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/SAMLProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/SCIMProviderRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/ModelRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Pagination.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedApplicationList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedAuthenticatedSessionList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedBrandList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedGroupList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedLicenseList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/Token.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedTokenList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserConsent.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedUserConsentList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PaginatedUserList.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PatchedApplicationRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PatchedBrandRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PatchedGroupRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PatchedLicenseRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PatchedTokenRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/PatchedUserRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserSelfGroups.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserSelf.js", "../../../node_modules/@goauthentik/api/dist/esm/models/SessionUser.js", "../../../node_modules/@goauthentik/api/dist/esm/models/TokenRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/TokenSetKeyRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/TokenView.js", "../../../node_modules/@goauthentik/api/dist/esm/models/TransactionApplicationRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/TransactionApplicationResponse.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UsedByActionEnum.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UsedBy.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserAccountRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserMetrics.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserPasswordSetRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserPath.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserServiceAccountRequest.js", "../../../node_modules/@goauthentik/api/dist/esm/models/UserServiceAccountResponse.js", "../../../node_modules/@goauthentik/api/dist/esm/apis/CoreApi.js", "../../../node_modules/@goauthentik/api/dist/esm/apis/EnterpriseApi.js", "../../../node_modules/@goauthentik/api/dist/esm/apis/RootApi.js", "../../../src/common/global.ts", "../../../src/common/constants.ts", "../../../node_modules/@lit/reactive-element/src/css-tag.ts", "../../../node_modules/@lit/reactive-element/src/reactive-element.ts", "../../../node_modules/lit-html/src/lit-html.ts", "../../../node_modules/lit-element/src/lit-element.ts", "../../../src/common/utils.ts", "../../../src/common/api/middleware.ts", "../../../src/common/api/config.ts", "../../../src/common/users.ts", "../../../src/common/sentry.ts", "../../../src/common/ui/config.ts", "../../../src/elements/decorators/bound.ts", "../../../src/elements/controllers/ModalOrchestrationController.ts", "../../../src/elements/utils/ensureCSSStyleSheet.ts", "../../../node_modules/@lit/reactive-element/src/decorators/custom-element.ts", "../../../node_modules/@lit/reactive-element/src/decorators/property.ts", "../../../node_modules/@lit/reactive-element/src/decorators/state.ts", "../../../node_modules/@patternfly/patternfly/patternfly-base.css", "../../../node_modules/@lit/localize/src/internal/locale-status-event.ts", "../../../node_modules/@lit/localize/src/internal/str-tag.ts", "../../../node_modules/@lit/localize/src/internal/default-msg.ts", "../../../node_modules/@lit/localize/src/init/install.ts", "../../../node_modules/@lit/localize/src/internal/localized-controller.ts", "../../../node_modules/@lit/localize/src/internal/localized-decorator.ts", "../../../node_modules/@lit/localize/src/internal/deferred.ts", "../../../node_modules/@lit/localize/src/internal/fnv1a64.ts", "../../../node_modules/@lit/localize/src/init/runtime.ts", "../../../src/common/styles/authentik.css", "../../../src/common/styles/theme-dark.css", "../../../src/elements/Base.ts", "../../../node_modules/@lit/context/src/lib/context-request-event.ts", "../../../node_modules/@lit/context/src/lib/value-notifier.ts", "../../../node_modules/@lit/context/src/lib/controllers/context-provider.ts", "../../../src/elements/AuthentikContexts.ts", "../../../src/elements/Interface/BrandContextController.ts", "../../../src/elements/Interface/ConfigContextController.ts", "../../../src/elements/Interface/EnterpriseContextController.ts", "../../../src/elements/Interface/Interface.ts", "../../../node_modules/@patternfly/patternfly/components/EmptyState/empty-state.css", "../../../node_modules/@patternfly/patternfly/components/Page/page.css", "../../../node_modules/@patternfly/patternfly/components/Spinner/spinner.css", "../../../src/standalone/loading/index.ts"], "sourcesContent": ["/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nexport const BASE_PATH = \"http://localhost/api/v3\".replace(/\\/+$/, \"\");\nexport class Configuration {\n constructor(configuration = {}) {\n this.configuration = configuration;\n }\n set config(configuration) {\n this.configuration = configuration;\n }\n get basePath() {\n return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;\n }\n get fetchApi() {\n return this.configuration.fetchApi;\n }\n get middleware() {\n return this.configuration.middleware || [];\n }\n get queryParamsStringify() {\n return this.configuration.queryParamsStringify || querystring;\n }\n get username() {\n return this.configuration.username;\n }\n get password() {\n return this.configuration.password;\n }\n get apiKey() {\n const apiKey = this.configuration.apiKey;\n if (apiKey) {\n return typeof apiKey === 'function' ? apiKey : () => apiKey;\n }\n return undefined;\n }\n get accessToken() {\n const accessToken = this.configuration.accessToken;\n if (accessToken) {\n return typeof accessToken === 'function' ? accessToken : () => __awaiter(this, void 0, void 0, function* () { return accessToken; });\n }\n return undefined;\n }\n get headers() {\n return this.configuration.headers;\n }\n get credentials() {\n return this.configuration.credentials;\n }\n}\nexport const DefaultConfig = new Configuration();\n/**\n * This is the base class for all generated API classes.\n */\nexport class BaseAPI {\n constructor(configuration = DefaultConfig) {\n this.configuration = configuration;\n this.fetchApi = (url, init) => __awaiter(this, void 0, void 0, function* () {\n let fetchParams = { url, init };\n for (const middleware of this.middleware) {\n if (middleware.pre) {\n fetchParams = (yield middleware.pre(Object.assign({ fetch: this.fetchApi }, fetchParams))) || fetchParams;\n }\n }\n let response = undefined;\n try {\n response = yield (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);\n }\n catch (e) {\n for (const middleware of this.middleware) {\n if (middleware.onError) {\n response = (yield middleware.onError({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n error: e,\n response: response ? response.clone() : undefined,\n })) || response;\n }\n }\n if (response === undefined) {\n if (e instanceof Error) {\n throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');\n }\n else {\n throw e;\n }\n }\n }\n for (const middleware of this.middleware) {\n if (middleware.post) {\n response = (yield middleware.post({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n response: response.clone(),\n })) || response;\n }\n }\n return response;\n });\n this.middleware = configuration.middleware;\n }\n withMiddleware(...middlewares) {\n const next = this.clone();\n next.middleware = next.middleware.concat(...middlewares);\n return next;\n }\n withPreMiddleware(...preMiddlewares) {\n const middlewares = preMiddlewares.map((pre) => ({ pre }));\n return this.withMiddleware(...middlewares);\n }\n withPostMiddleware(...postMiddlewares) {\n const middlewares = postMiddlewares.map((post) => ({ post }));\n return this.withMiddleware(...middlewares);\n }\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n isJsonMime(mime) {\n if (!mime) {\n return false;\n }\n return BaseAPI.jsonRegex.test(mime);\n }\n request(context, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const { url, init } = yield this.createFetchParams(context, initOverrides);\n const response = yield this.fetchApi(url, init);\n if (response && (response.status >= 200 && response.status < 300)) {\n return response;\n }\n throw new ResponseError(response, 'Response returned an error code');\n });\n }\n createFetchParams(context, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n let url = this.configuration.basePath + context.path;\n if (context.query !== undefined && Object.keys(context.query).length !== 0) {\n // only add the querystring to the URL if there are query parameters.\n // this is done to avoid urls ending with a \"?\" character which buggy webservers\n // do not handle correctly sometimes.\n url += '?' + this.configuration.queryParamsStringify(context.query);\n }\n const headers = Object.assign({}, this.configuration.headers, context.headers);\n Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});\n const initOverrideFn = typeof initOverrides === \"function\"\n ? initOverrides\n : () => __awaiter(this, void 0, void 0, function* () { return initOverrides; });\n const initParams = {\n method: context.method,\n headers,\n body: context.body,\n credentials: this.configuration.credentials,\n };\n const overriddenInit = Object.assign(Object.assign({}, initParams), (yield initOverrideFn({\n init: initParams,\n context,\n })));\n const init = Object.assign(Object.assign({}, overriddenInit), { body: isFormData(overriddenInit.body) ||\n overriddenInit.body instanceof URLSearchParams ||\n isBlob(overriddenInit.body)\n ? overriddenInit.body\n : JSON.stringify(overriddenInit.body) });\n return { url, init };\n });\n }\n /**\n * Create a shallow clone of `this` by constructing a new instance\n * and then shallow cloning data members.\n */\n clone() {\n const constructor = this.constructor;\n const next = new constructor(this.configuration);\n next.middleware = this.middleware.slice();\n return next;\n }\n}\nBaseAPI.jsonRegex = new RegExp('^(:?application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(:?;.*)?$', 'i');\n;\nfunction isBlob(value) {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\nfunction isFormData(value) {\n return typeof FormData !== \"undefined\" && value instanceof FormData;\n}\nexport class ResponseError extends Error {\n constructor(response, msg) {\n super(msg);\n this.response = response;\n this.name = \"ResponseError\";\n }\n}\nexport class FetchError extends Error {\n constructor(cause, msg) {\n super(msg);\n this.cause = cause;\n this.name = \"FetchError\";\n }\n}\nexport class RequiredError extends Error {\n constructor(field, msg) {\n super(msg);\n this.field = field;\n this.name = \"RequiredError\";\n }\n}\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\nexport function exists(json, key) {\n const value = json[key];\n return value !== null && value !== undefined;\n}\nexport function querystring(params, prefix = '') {\n return Object.keys(params)\n .map(key => querystringSingleKey(key, params[key], prefix))\n .filter(part => part.length > 0)\n .join('&');\n}\nfunction querystringSingleKey(key, value, keyPrefix = '') {\n const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);\n if (value instanceof Array) {\n const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))\n .join(`&${encodeURIComponent(fullKey)}=`);\n return `${encodeURIComponent(fullKey)}=${multiValue}`;\n }\n if (value instanceof Set) {\n const valueAsArray = Array.from(value);\n return querystringSingleKey(key, valueAsArray, keyPrefix);\n }\n if (value instanceof Date) {\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;\n }\n if (value instanceof Object) {\n return querystring(value, fullKey);\n }\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;\n}\nexport function mapValues(data, fn) {\n return Object.keys(data).reduce((acc, key) => (Object.assign(Object.assign({}, acc), { [key]: fn(data[key]) })), {});\n}\nexport function canConsumeForm(consumes) {\n for (const consume of consumes) {\n if ('multipart/form-data' === consume.contentType) {\n return true;\n }\n }\n return false;\n}\nexport class JSONApiResponse {\n constructor(raw, transformer = (jsonValue) => jsonValue) {\n this.raw = raw;\n this.transformer = transformer;\n }\n value() {\n return __awaiter(this, void 0, void 0, function* () {\n return this.transformer(yield this.raw.json());\n });\n }\n}\nexport class VoidApiResponse {\n constructor(raw) {\n this.raw = raw;\n }\n value() {\n return __awaiter(this, void 0, void 0, function* () {\n return undefined;\n });\n }\n}\nexport class BlobApiResponse {\n constructor(raw) {\n this.raw = raw;\n }\n value() {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.raw.blob();\n });\n }\n ;\n}\nexport class TextApiResponse {\n constructor(raw) {\n this.raw = raw;\n }\n value() {\n return __awaiter(this, void 0, void 0, function* () {\n return yield this.raw.text();\n });\n }\n ;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const PolicyEngineMode = {\n All: 'all',\n Any: 'any',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function PolicyEngineModeFromJSON(json) {\n return PolicyEngineModeFromJSONTyped(json, false);\n}\nexport function PolicyEngineModeFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function PolicyEngineModeToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the Provider interface.\n */\nexport function instanceOfProvider(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n isInstance = isInstance && \"component\" in value;\n isInstance = isInstance && \"assignedApplicationSlug\" in value;\n isInstance = isInstance && \"assignedApplicationName\" in value;\n isInstance = isInstance && \"assignedBackchannelApplicationSlug\" in value;\n isInstance = isInstance && \"assignedBackchannelApplicationName\" in value;\n isInstance = isInstance && \"verboseName\" in value;\n isInstance = isInstance && \"verboseNamePlural\" in value;\n isInstance = isInstance && \"metaModelName\" in value;\n return isInstance;\n}\nexport function ProviderFromJSON(json) {\n return ProviderFromJSONTyped(json, false);\n}\nexport function ProviderFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'component': json['component'],\n 'assignedApplicationSlug': json['assigned_application_slug'],\n 'assignedApplicationName': json['assigned_application_name'],\n 'assignedBackchannelApplicationSlug': json['assigned_backchannel_application_slug'],\n 'assignedBackchannelApplicationName': json['assigned_backchannel_application_name'],\n 'verboseName': json['verbose_name'],\n 'verboseNamePlural': json['verbose_name_plural'],\n 'metaModelName': json['meta_model_name'],\n };\n}\nexport function ProviderToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';\nimport { ProviderFromJSON, } from './Provider';\n/**\n * Check if a given object implements the Application interface.\n */\nexport function instanceOfApplication(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"slug\" in value;\n isInstance = isInstance && \"providerObj\" in value;\n isInstance = isInstance && \"backchannelProvidersObj\" in value;\n isInstance = isInstance && \"launchUrl\" in value;\n isInstance = isInstance && \"metaIcon\" in value;\n return isInstance;\n}\nexport function ApplicationFromJSON(json) {\n return ApplicationFromJSONTyped(json, false);\n}\nexport function ApplicationFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'name': json['name'],\n 'slug': json['slug'],\n 'provider': !exists(json, 'provider') ? undefined : json['provider'],\n 'providerObj': ProviderFromJSON(json['provider_obj']),\n 'backchannelProviders': !exists(json, 'backchannel_providers') ? undefined : json['backchannel_providers'],\n 'backchannelProvidersObj': (json['backchannel_providers_obj'].map(ProviderFromJSON)),\n 'launchUrl': json['launch_url'],\n 'openInNewTab': !exists(json, 'open_in_new_tab') ? undefined : json['open_in_new_tab'],\n 'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],\n 'metaIcon': json['meta_icon'],\n 'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],\n 'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],\n 'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),\n 'group': !exists(json, 'group') ? undefined : json['group'],\n };\n}\nexport function ApplicationToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'slug': value.slug,\n 'provider': value.provider,\n 'backchannel_providers': value.backchannelProviders,\n 'open_in_new_tab': value.openInNewTab,\n 'meta_launch_url': value.metaLaunchUrl,\n 'meta_description': value.metaDescription,\n 'meta_publisher': value.metaPublisher,\n 'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),\n 'group': value.group,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';\n/**\n * Check if a given object implements the ApplicationRequest interface.\n */\nexport function instanceOfApplicationRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"slug\" in value;\n return isInstance;\n}\nexport function ApplicationRequestFromJSON(json) {\n return ApplicationRequestFromJSONTyped(json, false);\n}\nexport function ApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'slug': json['slug'],\n 'provider': !exists(json, 'provider') ? undefined : json['provider'],\n 'backchannelProviders': !exists(json, 'backchannel_providers') ? undefined : json['backchannel_providers'],\n 'openInNewTab': !exists(json, 'open_in_new_tab') ? undefined : json['open_in_new_tab'],\n 'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],\n 'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],\n 'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],\n 'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),\n 'group': !exists(json, 'group') ? undefined : json['group'],\n };\n}\nexport function ApplicationRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'slug': value.slug,\n 'provider': value.provider,\n 'backchannel_providers': value.backchannelProviders,\n 'open_in_new_tab': value.openInNewTab,\n 'meta_launch_url': value.metaLaunchUrl,\n 'meta_description': value.metaDescription,\n 'meta_publisher': value.metaPublisher,\n 'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),\n 'group': value.group,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the AuthenticatedSessionAsn interface.\n */\nexport function instanceOfAuthenticatedSessionAsn(value) {\n let isInstance = true;\n isInstance = isInstance && \"asn\" in value;\n isInstance = isInstance && \"asOrg\" in value;\n isInstance = isInstance && \"network\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionAsnFromJSON(json) {\n return AuthenticatedSessionAsnFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionAsnFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'asn': json['asn'],\n 'asOrg': json['as_org'],\n 'network': json['network'],\n };\n}\nexport function AuthenticatedSessionAsnToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'asn': value.asn,\n 'as_org': value.asOrg,\n 'network': value.network,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the AuthenticatedSessionGeoIp interface.\n */\nexport function instanceOfAuthenticatedSessionGeoIp(value) {\n let isInstance = true;\n isInstance = isInstance && \"continent\" in value;\n isInstance = isInstance && \"country\" in value;\n isInstance = isInstance && \"lat\" in value;\n isInstance = isInstance && \"_long\" in value;\n isInstance = isInstance && \"city\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionGeoIpFromJSON(json) {\n return AuthenticatedSessionGeoIpFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionGeoIpFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'continent': json['continent'],\n 'country': json['country'],\n 'lat': json['lat'],\n '_long': json['long'],\n 'city': json['city'],\n };\n}\nexport function AuthenticatedSessionGeoIpToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'continent': value.continent,\n 'country': value.country,\n 'lat': value.lat,\n 'long': value._long,\n 'city': value.city,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the AuthenticatedSessionUserAgentDevice interface.\n */\nexport function instanceOfAuthenticatedSessionUserAgentDevice(value) {\n let isInstance = true;\n isInstance = isInstance && \"brand\" in value;\n isInstance = isInstance && \"family\" in value;\n isInstance = isInstance && \"model\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionUserAgentDeviceFromJSON(json) {\n return AuthenticatedSessionUserAgentDeviceFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionUserAgentDeviceFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'brand': json['brand'],\n 'family': json['family'],\n 'model': json['model'],\n };\n}\nexport function AuthenticatedSessionUserAgentDeviceToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'brand': value.brand,\n 'family': value.family,\n 'model': value.model,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the AuthenticatedSessionUserAgentOs interface.\n */\nexport function instanceOfAuthenticatedSessionUserAgentOs(value) {\n let isInstance = true;\n isInstance = isInstance && \"family\" in value;\n isInstance = isInstance && \"major\" in value;\n isInstance = isInstance && \"minor\" in value;\n isInstance = isInstance && \"patch\" in value;\n isInstance = isInstance && \"patchMinor\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionUserAgentOsFromJSON(json) {\n return AuthenticatedSessionUserAgentOsFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionUserAgentOsFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'family': json['family'],\n 'major': json['major'],\n 'minor': json['minor'],\n 'patch': json['patch'],\n 'patchMinor': json['patch_minor'],\n };\n}\nexport function AuthenticatedSessionUserAgentOsToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'family': value.family,\n 'major': value.major,\n 'minor': value.minor,\n 'patch': value.patch,\n 'patch_minor': value.patchMinor,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the AuthenticatedSessionUserAgentUserAgent interface.\n */\nexport function instanceOfAuthenticatedSessionUserAgentUserAgent(value) {\n let isInstance = true;\n isInstance = isInstance && \"family\" in value;\n isInstance = isInstance && \"major\" in value;\n isInstance = isInstance && \"minor\" in value;\n isInstance = isInstance && \"patch\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionUserAgentUserAgentFromJSON(json) {\n return AuthenticatedSessionUserAgentUserAgentFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionUserAgentUserAgentFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'family': json['family'],\n 'major': json['major'],\n 'minor': json['minor'],\n 'patch': json['patch'],\n };\n}\nexport function AuthenticatedSessionUserAgentUserAgentToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'family': value.family,\n 'major': value.major,\n 'minor': value.minor,\n 'patch': value.patch,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { AuthenticatedSessionUserAgentDeviceFromJSON, AuthenticatedSessionUserAgentDeviceToJSON, } from './AuthenticatedSessionUserAgentDevice';\nimport { AuthenticatedSessionUserAgentOsFromJSON, AuthenticatedSessionUserAgentOsToJSON, } from './AuthenticatedSessionUserAgentOs';\nimport { AuthenticatedSessionUserAgentUserAgentFromJSON, AuthenticatedSessionUserAgentUserAgentToJSON, } from './AuthenticatedSessionUserAgentUserAgent';\n/**\n * Check if a given object implements the AuthenticatedSessionUserAgent interface.\n */\nexport function instanceOfAuthenticatedSessionUserAgent(value) {\n let isInstance = true;\n isInstance = isInstance && \"device\" in value;\n isInstance = isInstance && \"os\" in value;\n isInstance = isInstance && \"userAgent\" in value;\n isInstance = isInstance && \"string\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionUserAgentFromJSON(json) {\n return AuthenticatedSessionUserAgentFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionUserAgentFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'device': AuthenticatedSessionUserAgentDeviceFromJSON(json['device']),\n 'os': AuthenticatedSessionUserAgentOsFromJSON(json['os']),\n 'userAgent': AuthenticatedSessionUserAgentUserAgentFromJSON(json['user_agent']),\n 'string': json['string'],\n };\n}\nexport function AuthenticatedSessionUserAgentToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'device': AuthenticatedSessionUserAgentDeviceToJSON(value.device),\n 'os': AuthenticatedSessionUserAgentOsToJSON(value.os),\n 'user_agent': AuthenticatedSessionUserAgentUserAgentToJSON(value.userAgent),\n 'string': value.string,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { AuthenticatedSessionAsnFromJSON, AuthenticatedSessionAsnToJSON, } from './AuthenticatedSessionAsn';\nimport { AuthenticatedSessionGeoIpFromJSON, AuthenticatedSessionGeoIpToJSON, } from './AuthenticatedSessionGeoIp';\nimport { AuthenticatedSessionUserAgentFromJSON, AuthenticatedSessionUserAgentToJSON, } from './AuthenticatedSessionUserAgent';\n/**\n * Check if a given object implements the AuthenticatedSession interface.\n */\nexport function instanceOfAuthenticatedSession(value) {\n let isInstance = true;\n isInstance = isInstance && \"current\" in value;\n isInstance = isInstance && \"userAgent\" in value;\n isInstance = isInstance && \"geoIp\" in value;\n isInstance = isInstance && \"asn\" in value;\n isInstance = isInstance && \"user\" in value;\n isInstance = isInstance && \"lastIp\" in value;\n isInstance = isInstance && \"lastUsed\" in value;\n return isInstance;\n}\nexport function AuthenticatedSessionFromJSON(json) {\n return AuthenticatedSessionFromJSONTyped(json, false);\n}\nexport function AuthenticatedSessionFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'uuid': !exists(json, 'uuid') ? undefined : json['uuid'],\n 'current': json['current'],\n 'userAgent': AuthenticatedSessionUserAgentFromJSON(json['user_agent']),\n 'geoIp': AuthenticatedSessionGeoIpFromJSON(json['geo_ip']),\n 'asn': AuthenticatedSessionAsnFromJSON(json['asn']),\n 'user': json['user'],\n 'lastIp': json['last_ip'],\n 'lastUserAgent': !exists(json, 'last_user_agent') ? undefined : json['last_user_agent'],\n 'lastUsed': (new Date(json['last_used'])),\n 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),\n };\n}\nexport function AuthenticatedSessionToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'uuid': value.uuid,\n 'user_agent': AuthenticatedSessionUserAgentToJSON(value.userAgent),\n 'geo_ip': AuthenticatedSessionGeoIpToJSON(value.geoIp),\n 'asn': AuthenticatedSessionAsnToJSON(value.asn),\n 'user': value.user,\n 'last_ip': value.lastIp,\n 'last_user_agent': value.lastUserAgent,\n 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the Brand interface.\n */\nexport function instanceOfBrand(value) {\n let isInstance = true;\n isInstance = isInstance && \"brandUuid\" in value;\n isInstance = isInstance && \"domain\" in value;\n return isInstance;\n}\nexport function BrandFromJSON(json) {\n return BrandFromJSONTyped(json, false);\n}\nexport function BrandFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'brandUuid': json['brand_uuid'],\n 'domain': json['domain'],\n '_default': !exists(json, 'default') ? undefined : json['default'],\n 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],\n 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],\n 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],\n 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],\n 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],\n 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],\n 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],\n 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],\n 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],\n 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],\n 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n };\n}\nexport function BrandToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'domain': value.domain,\n 'default': value._default,\n 'branding_title': value.brandingTitle,\n 'branding_logo': value.brandingLogo,\n 'branding_favicon': value.brandingFavicon,\n 'flow_authentication': value.flowAuthentication,\n 'flow_invalidation': value.flowInvalidation,\n 'flow_recovery': value.flowRecovery,\n 'flow_unenrollment': value.flowUnenrollment,\n 'flow_user_settings': value.flowUserSettings,\n 'flow_device_code': value.flowDeviceCode,\n 'default_application': value.defaultApplication,\n 'web_certificate': value.webCertificate,\n 'attributes': value.attributes,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the BrandRequest interface.\n */\nexport function instanceOfBrandRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"domain\" in value;\n return isInstance;\n}\nexport function BrandRequestFromJSON(json) {\n return BrandRequestFromJSONTyped(json, false);\n}\nexport function BrandRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'domain': json['domain'],\n '_default': !exists(json, 'default') ? undefined : json['default'],\n 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],\n 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],\n 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],\n 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],\n 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],\n 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],\n 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],\n 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],\n 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],\n 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],\n 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n };\n}\nexport function BrandRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'domain': value.domain,\n 'default': value._default,\n 'branding_title': value.brandingTitle,\n 'branding_logo': value.brandingLogo,\n 'branding_favicon': value.brandingFavicon,\n 'flow_authentication': value.flowAuthentication,\n 'flow_invalidation': value.flowInvalidation,\n 'flow_recovery': value.flowRecovery,\n 'flow_unenrollment': value.flowUnenrollment,\n 'flow_user_settings': value.flowUserSettings,\n 'flow_device_code': value.flowDeviceCode,\n 'default_application': value.defaultApplication,\n 'web_certificate': value.webCertificate,\n 'attributes': value.attributes,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const CapabilitiesEnum = {\n CanSaveMedia: 'can_save_media',\n CanGeoIp: 'can_geo_ip',\n CanAsn: 'can_asn',\n CanImpersonate: 'can_impersonate',\n CanDebug: 'can_debug',\n IsEnterprise: 'is_enterprise',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function CapabilitiesEnumFromJSON(json) {\n return CapabilitiesEnumFromJSONTyped(json, false);\n}\nexport function CapabilitiesEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function CapabilitiesEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the ErrorReportingConfig interface.\n */\nexport function instanceOfErrorReportingConfig(value) {\n let isInstance = true;\n isInstance = isInstance && \"enabled\" in value;\n isInstance = isInstance && \"sentryDsn\" in value;\n isInstance = isInstance && \"environment\" in value;\n isInstance = isInstance && \"sendPii\" in value;\n isInstance = isInstance && \"tracesSampleRate\" in value;\n return isInstance;\n}\nexport function ErrorReportingConfigFromJSON(json) {\n return ErrorReportingConfigFromJSONTyped(json, false);\n}\nexport function ErrorReportingConfigFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'enabled': json['enabled'],\n 'sentryDsn': json['sentry_dsn'],\n 'environment': json['environment'],\n 'sendPii': json['send_pii'],\n 'tracesSampleRate': json['traces_sample_rate'],\n };\n}\nexport function ErrorReportingConfigToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { CapabilitiesEnumFromJSON, CapabilitiesEnumToJSON, } from './CapabilitiesEnum';\nimport { ErrorReportingConfigFromJSON, ErrorReportingConfigToJSON, } from './ErrorReportingConfig';\n/**\n * Check if a given object implements the Config interface.\n */\nexport function instanceOfConfig(value) {\n let isInstance = true;\n isInstance = isInstance && \"errorReporting\" in value;\n isInstance = isInstance && \"capabilities\" in value;\n isInstance = isInstance && \"cacheTimeout\" in value;\n isInstance = isInstance && \"cacheTimeoutFlows\" in value;\n isInstance = isInstance && \"cacheTimeoutPolicies\" in value;\n isInstance = isInstance && \"cacheTimeoutReputation\" in value;\n return isInstance;\n}\nexport function ConfigFromJSON(json) {\n return ConfigFromJSONTyped(json, false);\n}\nexport function ConfigFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'errorReporting': ErrorReportingConfigFromJSON(json['error_reporting']),\n 'capabilities': (json['capabilities'].map(CapabilitiesEnumFromJSON)),\n 'cacheTimeout': json['cache_timeout'],\n 'cacheTimeoutFlows': json['cache_timeout_flows'],\n 'cacheTimeoutPolicies': json['cache_timeout_policies'],\n 'cacheTimeoutReputation': json['cache_timeout_reputation'],\n };\n}\nexport function ConfigToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'error_reporting': ErrorReportingConfigToJSON(value.errorReporting),\n 'capabilities': (value.capabilities.map(CapabilitiesEnumToJSON)),\n 'cache_timeout': value.cacheTimeout,\n 'cache_timeout_flows': value.cacheTimeoutFlows,\n 'cache_timeout_policies': value.cacheTimeoutPolicies,\n 'cache_timeout_reputation': value.cacheTimeoutReputation,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the GroupMember interface.\n */\nexport function instanceOfGroupMember(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"username\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"uid\" in value;\n return isInstance;\n}\nexport function GroupMemberFromJSON(json) {\n return GroupMemberFromJSONTyped(json, false);\n}\nexport function GroupMemberFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'username': json['username'],\n 'name': json['name'],\n 'isActive': !exists(json, 'is_active') ? undefined : json['is_active'],\n 'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),\n 'email': !exists(json, 'email') ? undefined : json['email'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'uid': json['uid'],\n };\n}\nexport function GroupMemberToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'username': value.username,\n 'name': value.name,\n 'is_active': value.isActive,\n 'last_login': value.lastLogin === undefined ? undefined : (value.lastLogin === null ? null : value.lastLogin.toISOString()),\n 'email': value.email,\n 'attributes': value.attributes,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the Coordinate interface.\n */\nexport function instanceOfCoordinate(value) {\n let isInstance = true;\n isInstance = isInstance && \"xCord\" in value;\n isInstance = isInstance && \"yCord\" in value;\n return isInstance;\n}\nexport function CoordinateFromJSON(json) {\n return CoordinateFromJSONTyped(json, false);\n}\nexport function CoordinateFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'xCord': json['x_cord'],\n 'yCord': json['y_cord'],\n };\n}\nexport function CoordinateToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the FooterLink interface.\n */\nexport function instanceOfFooterLink(value) {\n let isInstance = true;\n isInstance = isInstance && \"href\" in value;\n isInstance = isInstance && \"name\" in value;\n return isInstance;\n}\nexport function FooterLinkFromJSON(json) {\n return FooterLinkFromJSONTyped(json, false);\n}\nexport function FooterLinkFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'href': json['href'],\n 'name': json['name'],\n };\n}\nexport function FooterLinkToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const UiThemeEnum = {\n Automatic: 'automatic',\n Light: 'light',\n Dark: 'dark',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function UiThemeEnumFromJSON(json) {\n return UiThemeEnumFromJSONTyped(json, false);\n}\nexport function UiThemeEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function UiThemeEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { FooterLinkFromJSON, } from './FooterLink';\nimport { UiThemeEnumFromJSON, } from './UiThemeEnum';\n/**\n * Check if a given object implements the CurrentBrand interface.\n */\nexport function instanceOfCurrentBrand(value) {\n let isInstance = true;\n isInstance = isInstance && \"matchedDomain\" in value;\n isInstance = isInstance && \"brandingTitle\" in value;\n isInstance = isInstance && \"brandingLogo\" in value;\n isInstance = isInstance && \"brandingFavicon\" in value;\n isInstance = isInstance && \"uiFooterLinks\" in value;\n isInstance = isInstance && \"uiTheme\" in value;\n isInstance = isInstance && \"defaultLocale\" in value;\n return isInstance;\n}\nexport function CurrentBrandFromJSON(json) {\n return CurrentBrandFromJSONTyped(json, false);\n}\nexport function CurrentBrandFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'matchedDomain': json['matched_domain'],\n 'brandingTitle': json['branding_title'],\n 'brandingLogo': json['branding_logo'],\n 'brandingFavicon': json['branding_favicon'],\n 'uiFooterLinks': (json['ui_footer_links'].map(FooterLinkFromJSON)),\n 'uiTheme': UiThemeEnumFromJSON(json['ui_theme']),\n 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],\n 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],\n 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],\n 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],\n 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],\n 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],\n 'defaultLocale': json['default_locale'],\n };\n}\nexport function CurrentBrandToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'matched_domain': value.matchedDomain,\n 'branding_title': value.brandingTitle,\n 'branding_logo': value.brandingLogo,\n 'branding_favicon': value.brandingFavicon,\n 'flow_authentication': value.flowAuthentication,\n 'flow_invalidation': value.flowInvalidation,\n 'flow_recovery': value.flowRecovery,\n 'flow_unenrollment': value.flowUnenrollment,\n 'flow_user_settings': value.flowUserSettings,\n 'flow_device_code': value.flowDeviceCode,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the UserGroup interface.\n */\nexport function instanceOfUserGroup(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"numPk\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"parentName\" in value;\n return isInstance;\n}\nexport function UserGroupFromJSON(json) {\n return UserGroupFromJSONTyped(json, false);\n}\nexport function UserGroupFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'numPk': json['num_pk'],\n 'name': json['name'],\n 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],\n 'parent': !exists(json, 'parent') ? undefined : json['parent'],\n 'parentName': json['parent_name'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n };\n}\nexport function UserGroupToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'is_superuser': value.isSuperuser,\n 'parent': value.parent,\n 'attributes': value.attributes,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const UserTypeEnum = {\n Internal: 'internal',\n External: 'external',\n ServiceAccount: 'service_account',\n InternalServiceAccount: 'internal_service_account',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function UserTypeEnumFromJSON(json) {\n return UserTypeEnumFromJSONTyped(json, false);\n}\nexport function UserTypeEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function UserTypeEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { UserGroupFromJSON, } from './UserGroup';\nimport { UserTypeEnumFromJSON, UserTypeEnumToJSON, } from './UserTypeEnum';\n/**\n * Check if a given object implements the User interface.\n */\nexport function instanceOfUser(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"username\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"isSuperuser\" in value;\n isInstance = isInstance && \"groupsObj\" in value;\n isInstance = isInstance && \"avatar\" in value;\n isInstance = isInstance && \"uid\" in value;\n isInstance = isInstance && \"uuid\" in value;\n return isInstance;\n}\nexport function UserFromJSON(json) {\n return UserFromJSONTyped(json, false);\n}\nexport function UserFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'username': json['username'],\n 'name': json['name'],\n 'isActive': !exists(json, 'is_active') ? undefined : json['is_active'],\n 'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),\n 'isSuperuser': json['is_superuser'],\n 'groups': !exists(json, 'groups') ? undefined : json['groups'],\n 'groupsObj': (json['groups_obj'] === null ? null : json['groups_obj'].map(UserGroupFromJSON)),\n 'email': !exists(json, 'email') ? undefined : json['email'],\n 'avatar': json['avatar'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'uid': json['uid'],\n 'path': !exists(json, 'path') ? undefined : json['path'],\n 'type': !exists(json, 'type') ? undefined : UserTypeEnumFromJSON(json['type']),\n 'uuid': json['uuid'],\n };\n}\nexport function UserToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'username': value.username,\n 'name': value.name,\n 'is_active': value.isActive,\n 'last_login': value.lastLogin === undefined ? undefined : (value.lastLogin === null ? null : value.lastLogin.toISOString()),\n 'groups': value.groups,\n 'email': value.email,\n 'attributes': value.attributes,\n 'path': value.path,\n 'type': UserTypeEnumToJSON(value.type),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the FilePathRequest interface.\n */\nexport function instanceOfFilePathRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"url\" in value;\n return isInstance;\n}\nexport function FilePathRequestFromJSON(json) {\n return FilePathRequestFromJSONTyped(json, false);\n}\nexport function FilePathRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'url': json['url'],\n };\n}\nexport function FilePathRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'url': value.url,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const LogLevelEnum = {\n Critical: 'critical',\n Exception: 'exception',\n Error: 'error',\n Warn: 'warn',\n Warning: 'warning',\n Info: 'info',\n Debug: 'debug',\n Notset: 'notset',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function LogLevelEnumFromJSON(json) {\n return LogLevelEnumFromJSONTyped(json, false);\n}\nexport function LogLevelEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function LogLevelEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { LogLevelEnumFromJSON, LogLevelEnumToJSON, } from './LogLevelEnum';\n/**\n * Check if a given object implements the LogEvent interface.\n */\nexport function instanceOfLogEvent(value) {\n let isInstance = true;\n isInstance = isInstance && \"timestamp\" in value;\n isInstance = isInstance && \"logLevel\" in value;\n isInstance = isInstance && \"logger\" in value;\n isInstance = isInstance && \"event\" in value;\n isInstance = isInstance && \"attributes\" in value;\n return isInstance;\n}\nexport function LogEventFromJSON(json) {\n return LogEventFromJSONTyped(json, false);\n}\nexport function LogEventFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'timestamp': (new Date(json['timestamp'])),\n 'logLevel': LogLevelEnumFromJSON(json['log_level']),\n 'logger': json['logger'],\n 'event': json['event'],\n 'attributes': json['attributes'],\n };\n}\nexport function LogEventToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'timestamp': (value.timestamp.toISOString()),\n 'log_level': LogLevelEnumToJSON(value.logLevel),\n 'logger': value.logger,\n 'event': value.event,\n 'attributes': value.attributes,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { OutgoingSyncDeleteActionFromJSON, OutgoingSyncDeleteActionToJSON, } from './OutgoingSyncDeleteAction';\n/**\n * Check if a given object implements the GoogleWorkspaceProviderRequest interface.\n */\nexport function instanceOfGoogleWorkspaceProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"delegatedSubject\" in value;\n isInstance = isInstance && \"credentials\" in value;\n isInstance = isInstance && \"defaultGroupEmailDomain\" in value;\n return isInstance;\n}\nexport function GoogleWorkspaceProviderRequestFromJSON(json) {\n return GoogleWorkspaceProviderRequestFromJSONTyped(json, false);\n}\nexport function GoogleWorkspaceProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],\n 'delegatedSubject': json['delegated_subject'],\n 'credentials': json['credentials'],\n 'scopes': !exists(json, 'scopes') ? undefined : json['scopes'],\n 'excludeUsersServiceAccount': !exists(json, 'exclude_users_service_account') ? undefined : json['exclude_users_service_account'],\n 'filterGroup': !exists(json, 'filter_group') ? undefined : json['filter_group'],\n 'userDeleteAction': !exists(json, 'user_delete_action') ? undefined : OutgoingSyncDeleteActionFromJSON(json['user_delete_action']),\n 'groupDeleteAction': !exists(json, 'group_delete_action') ? undefined : OutgoingSyncDeleteActionFromJSON(json['group_delete_action']),\n 'defaultGroupEmailDomain': json['default_group_email_domain'],\n };\n}\nexport function GoogleWorkspaceProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'property_mappings': value.propertyMappings,\n 'property_mappings_group': value.propertyMappingsGroup,\n 'delegated_subject': value.delegatedSubject,\n 'credentials': value.credentials,\n 'scopes': value.scopes,\n 'exclude_users_service_account': value.excludeUsersServiceAccount,\n 'filter_group': value.filterGroup,\n 'user_delete_action': OutgoingSyncDeleteActionToJSON(value.userDeleteAction),\n 'group_delete_action': OutgoingSyncDeleteActionToJSON(value.groupDeleteAction),\n 'default_group_email_domain': value.defaultGroupEmailDomain,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the Role interface.\n */\nexport function instanceOfRole(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"name\" in value;\n return isInstance;\n}\nexport function RoleFromJSON(json) {\n return RoleFromJSONTyped(json, false);\n}\nexport function RoleFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'name': json['name'],\n };\n}\nexport function RoleToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { GroupMemberFromJSON, } from './GroupMember';\nimport { RoleFromJSON, } from './Role';\n/**\n * Check if a given object implements the Group interface.\n */\nexport function instanceOfGroup(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"numPk\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"parentName\" in value;\n isInstance = isInstance && \"usersObj\" in value;\n isInstance = isInstance && \"rolesObj\" in value;\n return isInstance;\n}\nexport function GroupFromJSON(json) {\n return GroupFromJSONTyped(json, false);\n}\nexport function GroupFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'numPk': json['num_pk'],\n 'name': json['name'],\n 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],\n 'parent': !exists(json, 'parent') ? undefined : json['parent'],\n 'parentName': json['parent_name'],\n 'users': !exists(json, 'users') ? undefined : json['users'],\n 'usersObj': (json['users_obj'] === null ? null : json['users_obj'].map(GroupMemberFromJSON)),\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'roles': !exists(json, 'roles') ? undefined : json['roles'],\n 'rolesObj': (json['roles_obj'].map(RoleFromJSON)),\n };\n}\nexport function GroupToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'is_superuser': value.isSuperuser,\n 'parent': value.parent,\n 'users': value.users,\n 'attributes': value.attributes,\n 'roles': value.roles,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the GroupRequest interface.\n */\nexport function instanceOfGroupRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n return isInstance;\n}\nexport function GroupRequestFromJSON(json) {\n return GroupRequestFromJSONTyped(json, false);\n}\nexport function GroupRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],\n 'parent': !exists(json, 'parent') ? undefined : json['parent'],\n 'users': !exists(json, 'users') ? undefined : json['users'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'roles': !exists(json, 'roles') ? undefined : json['roles'],\n };\n}\nexport function GroupRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'is_superuser': value.isSuperuser,\n 'parent': value.parent,\n 'users': value.users,\n 'attributes': value.attributes,\n 'roles': value.roles,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the InstallID interface.\n */\nexport function instanceOfInstallID(value) {\n let isInstance = true;\n isInstance = isInstance && \"installId\" in value;\n return isInstance;\n}\nexport function InstallIDFromJSON(json) {\n return InstallIDFromJSONTyped(json, false);\n}\nexport function InstallIDFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'installId': json['install_id'],\n };\n}\nexport function InstallIDToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'install_id': value.installId,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const IntentEnum = {\n Verification: 'verification',\n Api: 'api',\n Recovery: 'recovery',\n AppPassword: 'app_password',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function IntentEnumFromJSON(json) {\n return IntentEnumFromJSONTyped(json, false);\n}\nexport function IntentEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function IntentEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { LogEventFromJSON, } from './LogEvent';\n/**\n * Check if a given object implements the PolicyTestResult interface.\n */\nexport function instanceOfPolicyTestResult(value) {\n let isInstance = true;\n isInstance = isInstance && \"passing\" in value;\n isInstance = isInstance && \"messages\" in value;\n isInstance = isInstance && \"logMessages\" in value;\n return isInstance;\n}\nexport function PolicyTestResultFromJSON(json) {\n return PolicyTestResultFromJSONTyped(json, false);\n}\nexport function PolicyTestResultFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'passing': json['passing'],\n 'messages': json['messages'],\n 'logMessages': (json['log_messages'].map(LogEventFromJSON)),\n };\n}\nexport function PolicyTestResultToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'passing': value.passing,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { LDAPAPIAccessModeFromJSON, LDAPAPIAccessModeToJSON, } from './LDAPAPIAccessMode';\n/**\n * Check if a given object implements the LDAPProviderRequest interface.\n */\nexport function instanceOfLDAPProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n return isInstance;\n}\nexport function LDAPProviderRequestFromJSON(json) {\n return LDAPProviderRequestFromJSONTyped(json, false);\n}\nexport function LDAPProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'baseDn': !exists(json, 'base_dn') ? undefined : json['base_dn'],\n 'certificate': !exists(json, 'certificate') ? undefined : json['certificate'],\n 'tlsServerName': !exists(json, 'tls_server_name') ? undefined : json['tls_server_name'],\n 'uidStartNumber': !exists(json, 'uid_start_number') ? undefined : json['uid_start_number'],\n 'gidStartNumber': !exists(json, 'gid_start_number') ? undefined : json['gid_start_number'],\n 'searchMode': !exists(json, 'search_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['search_mode']),\n 'bindMode': !exists(json, 'bind_mode') ? undefined : LDAPAPIAccessModeFromJSON(json['bind_mode']),\n 'mfaSupport': !exists(json, 'mfa_support') ? undefined : json['mfa_support'],\n };\n}\nexport function LDAPProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n 'base_dn': value.baseDn,\n 'certificate': value.certificate,\n 'tls_server_name': value.tlsServerName,\n 'uid_start_number': value.uidStartNumber,\n 'gid_start_number': value.gidStartNumber,\n 'search_mode': LDAPAPIAccessModeToJSON(value.searchMode),\n 'bind_mode': LDAPAPIAccessModeToJSON(value.bindMode),\n 'mfa_support': value.mfaSupport,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the License interface.\n */\nexport function instanceOfLicense(value) {\n let isInstance = true;\n isInstance = isInstance && \"licenseUuid\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"key\" in value;\n isInstance = isInstance && \"expiry\" in value;\n isInstance = isInstance && \"internalUsers\" in value;\n isInstance = isInstance && \"externalUsers\" in value;\n return isInstance;\n}\nexport function LicenseFromJSON(json) {\n return LicenseFromJSONTyped(json, false);\n}\nexport function LicenseFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'licenseUuid': json['license_uuid'],\n 'name': json['name'],\n 'key': json['key'],\n 'expiry': (new Date(json['expiry'])),\n 'internalUsers': json['internal_users'],\n 'externalUsers': json['external_users'],\n };\n}\nexport function LicenseToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'key': value.key,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const LicenseFlagsEnum = {\n Trial: 'trial',\n NonProduction: 'non_production',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function LicenseFlagsEnumFromJSON(json) {\n return LicenseFlagsEnumFromJSONTyped(json, false);\n}\nexport function LicenseFlagsEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function LicenseFlagsEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the LicenseForecast interface.\n */\nexport function instanceOfLicenseForecast(value) {\n let isInstance = true;\n isInstance = isInstance && \"internalUsers\" in value;\n isInstance = isInstance && \"externalUsers\" in value;\n isInstance = isInstance && \"forecastedInternalUsers\" in value;\n isInstance = isInstance && \"forecastedExternalUsers\" in value;\n return isInstance;\n}\nexport function LicenseForecastFromJSON(json) {\n return LicenseForecastFromJSONTyped(json, false);\n}\nexport function LicenseForecastFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'internalUsers': json['internal_users'],\n 'externalUsers': json['external_users'],\n 'forecastedInternalUsers': json['forecasted_internal_users'],\n 'forecastedExternalUsers': json['forecasted_external_users'],\n };\n}\nexport function LicenseForecastToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'internal_users': value.internalUsers,\n 'external_users': value.externalUsers,\n 'forecasted_internal_users': value.forecastedInternalUsers,\n 'forecasted_external_users': value.forecastedExternalUsers,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the LicenseRequest interface.\n */\nexport function instanceOfLicenseRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"key\" in value;\n return isInstance;\n}\nexport function LicenseRequestFromJSON(json) {\n return LicenseRequestFromJSONTyped(json, false);\n}\nexport function LicenseRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'key': json['key'],\n };\n}\nexport function LicenseRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'key': value.key,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const LicenseSummaryStatusEnum = {\n Unlicensed: 'unlicensed',\n Valid: 'valid',\n Expired: 'expired',\n ExpirySoon: 'expiry_soon',\n LimitExceededAdmin: 'limit_exceeded_admin',\n LimitExceededUser: 'limit_exceeded_user',\n ReadOnly: 'read_only',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function LicenseSummaryStatusEnumFromJSON(json) {\n return LicenseSummaryStatusEnumFromJSONTyped(json, false);\n}\nexport function LicenseSummaryStatusEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function LicenseSummaryStatusEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { LicenseFlagsEnumFromJSON, LicenseFlagsEnumToJSON, } from './LicenseFlagsEnum';\nimport { LicenseSummaryStatusEnumFromJSON, LicenseSummaryStatusEnumToJSON, } from './LicenseSummaryStatusEnum';\n/**\n * Check if a given object implements the LicenseSummary interface.\n */\nexport function instanceOfLicenseSummary(value) {\n let isInstance = true;\n isInstance = isInstance && \"internalUsers\" in value;\n isInstance = isInstance && \"externalUsers\" in value;\n isInstance = isInstance && \"status\" in value;\n isInstance = isInstance && \"latestValid\" in value;\n isInstance = isInstance && \"licenseFlags\" in value;\n return isInstance;\n}\nexport function LicenseSummaryFromJSON(json) {\n return LicenseSummaryFromJSONTyped(json, false);\n}\nexport function LicenseSummaryFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'internalUsers': json['internal_users'],\n 'externalUsers': json['external_users'],\n 'status': LicenseSummaryStatusEnumFromJSON(json['status']),\n 'latestValid': (new Date(json['latest_valid'])),\n 'licenseFlags': (json['license_flags'].map(LicenseFlagsEnumFromJSON)),\n };\n}\nexport function LicenseSummaryToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'internal_users': value.internalUsers,\n 'external_users': value.externalUsers,\n 'status': LicenseSummaryStatusEnumToJSON(value.status),\n 'latest_valid': (value.latestValid.toISOString()),\n 'license_flags': (value.licenseFlags.map(LicenseFlagsEnumToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the Link interface.\n */\nexport function instanceOfLink(value) {\n let isInstance = true;\n isInstance = isInstance && \"link\" in value;\n return isInstance;\n}\nexport function LinkFromJSON(json) {\n return LinkFromJSONTyped(json, false);\n}\nexport function LinkFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'link': json['link'],\n };\n}\nexport function LinkToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'link': value.link,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { OutgoingSyncDeleteActionFromJSON, OutgoingSyncDeleteActionToJSON, } from './OutgoingSyncDeleteAction';\n/**\n * Check if a given object implements the MicrosoftEntraProviderRequest interface.\n */\nexport function instanceOfMicrosoftEntraProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"clientId\" in value;\n isInstance = isInstance && \"clientSecret\" in value;\n isInstance = isInstance && \"tenantId\" in value;\n return isInstance;\n}\nexport function MicrosoftEntraProviderRequestFromJSON(json) {\n return MicrosoftEntraProviderRequestFromJSONTyped(json, false);\n}\nexport function MicrosoftEntraProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],\n 'clientId': json['client_id'],\n 'clientSecret': json['client_secret'],\n 'tenantId': json['tenant_id'],\n 'excludeUsersServiceAccount': !exists(json, 'exclude_users_service_account') ? undefined : json['exclude_users_service_account'],\n 'filterGroup': !exists(json, 'filter_group') ? undefined : json['filter_group'],\n 'userDeleteAction': !exists(json, 'user_delete_action') ? undefined : OutgoingSyncDeleteActionFromJSON(json['user_delete_action']),\n 'groupDeleteAction': !exists(json, 'group_delete_action') ? undefined : OutgoingSyncDeleteActionFromJSON(json['group_delete_action']),\n };\n}\nexport function MicrosoftEntraProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'property_mappings': value.propertyMappings,\n 'property_mappings_group': value.propertyMappingsGroup,\n 'client_id': value.clientId,\n 'client_secret': value.clientSecret,\n 'tenant_id': value.tenantId,\n 'exclude_users_service_account': value.excludeUsersServiceAccount,\n 'filter_group': value.filterGroup,\n 'user_delete_action': OutgoingSyncDeleteActionToJSON(value.userDeleteAction),\n 'group_delete_action': OutgoingSyncDeleteActionToJSON(value.groupDeleteAction),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { ClientTypeEnumFromJSON, ClientTypeEnumToJSON, } from './ClientTypeEnum';\nimport { IssuerModeEnumFromJSON, IssuerModeEnumToJSON, } from './IssuerModeEnum';\nimport { SubModeEnumFromJSON, SubModeEnumToJSON, } from './SubModeEnum';\n/**\n * Check if a given object implements the OAuth2ProviderRequest interface.\n */\nexport function instanceOfOAuth2ProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n return isInstance;\n}\nexport function OAuth2ProviderRequestFromJSON(json) {\n return OAuth2ProviderRequestFromJSONTyped(json, false);\n}\nexport function OAuth2ProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'clientType': !exists(json, 'client_type') ? undefined : ClientTypeEnumFromJSON(json['client_type']),\n 'clientId': !exists(json, 'client_id') ? undefined : json['client_id'],\n 'clientSecret': !exists(json, 'client_secret') ? undefined : json['client_secret'],\n 'accessCodeValidity': !exists(json, 'access_code_validity') ? undefined : json['access_code_validity'],\n 'accessTokenValidity': !exists(json, 'access_token_validity') ? undefined : json['access_token_validity'],\n 'refreshTokenValidity': !exists(json, 'refresh_token_validity') ? undefined : json['refresh_token_validity'],\n 'includeClaimsInIdToken': !exists(json, 'include_claims_in_id_token') ? undefined : json['include_claims_in_id_token'],\n 'signingKey': !exists(json, 'signing_key') ? undefined : json['signing_key'],\n 'redirectUris': !exists(json, 'redirect_uris') ? undefined : json['redirect_uris'],\n 'subMode': !exists(json, 'sub_mode') ? undefined : SubModeEnumFromJSON(json['sub_mode']),\n 'issuerMode': !exists(json, 'issuer_mode') ? undefined : IssuerModeEnumFromJSON(json['issuer_mode']),\n 'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],\n };\n}\nexport function OAuth2ProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n 'client_type': ClientTypeEnumToJSON(value.clientType),\n 'client_id': value.clientId,\n 'client_secret': value.clientSecret,\n 'access_code_validity': value.accessCodeValidity,\n 'access_token_validity': value.accessTokenValidity,\n 'refresh_token_validity': value.refreshTokenValidity,\n 'include_claims_in_id_token': value.includeClaimsInIdToken,\n 'signing_key': value.signingKey,\n 'redirect_uris': value.redirectUris,\n 'sub_mode': SubModeEnumToJSON(value.subMode),\n 'issuer_mode': IssuerModeEnumToJSON(value.issuerMode),\n 'jwks_sources': value.jwksSources,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { ProxyModeFromJSON, ProxyModeToJSON, } from './ProxyMode';\n/**\n * Check if a given object implements the ProxyProviderRequest interface.\n */\nexport function instanceOfProxyProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n isInstance = isInstance && \"externalHost\" in value;\n return isInstance;\n}\nexport function ProxyProviderRequestFromJSON(json) {\n return ProxyProviderRequestFromJSONTyped(json, false);\n}\nexport function ProxyProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'internalHost': !exists(json, 'internal_host') ? undefined : json['internal_host'],\n 'externalHost': json['external_host'],\n 'internalHostSslValidation': !exists(json, 'internal_host_ssl_validation') ? undefined : json['internal_host_ssl_validation'],\n 'certificate': !exists(json, 'certificate') ? undefined : json['certificate'],\n 'skipPathRegex': !exists(json, 'skip_path_regex') ? undefined : json['skip_path_regex'],\n 'basicAuthEnabled': !exists(json, 'basic_auth_enabled') ? undefined : json['basic_auth_enabled'],\n 'basicAuthPasswordAttribute': !exists(json, 'basic_auth_password_attribute') ? undefined : json['basic_auth_password_attribute'],\n 'basicAuthUserAttribute': !exists(json, 'basic_auth_user_attribute') ? undefined : json['basic_auth_user_attribute'],\n 'mode': !exists(json, 'mode') ? undefined : ProxyModeFromJSON(json['mode']),\n 'interceptHeaderAuth': !exists(json, 'intercept_header_auth') ? undefined : json['intercept_header_auth'],\n 'cookieDomain': !exists(json, 'cookie_domain') ? undefined : json['cookie_domain'],\n 'jwksSources': !exists(json, 'jwks_sources') ? undefined : json['jwks_sources'],\n 'accessTokenValidity': !exists(json, 'access_token_validity') ? undefined : json['access_token_validity'],\n 'refreshTokenValidity': !exists(json, 'refresh_token_validity') ? undefined : json['refresh_token_validity'],\n };\n}\nexport function ProxyProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n 'internal_host': value.internalHost,\n 'external_host': value.externalHost,\n 'internal_host_ssl_validation': value.internalHostSslValidation,\n 'certificate': value.certificate,\n 'skip_path_regex': value.skipPathRegex,\n 'basic_auth_enabled': value.basicAuthEnabled,\n 'basic_auth_password_attribute': value.basicAuthPasswordAttribute,\n 'basic_auth_user_attribute': value.basicAuthUserAttribute,\n 'mode': ProxyModeToJSON(value.mode),\n 'intercept_header_auth': value.interceptHeaderAuth,\n 'cookie_domain': value.cookieDomain,\n 'jwks_sources': value.jwksSources,\n 'access_token_validity': value.accessTokenValidity,\n 'refresh_token_validity': value.refreshTokenValidity,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the RACProviderRequest interface.\n */\nexport function instanceOfRACProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n return isInstance;\n}\nexport function RACProviderRequestFromJSON(json) {\n return RACProviderRequestFromJSONTyped(json, false);\n}\nexport function RACProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'settings': !exists(json, 'settings') ? undefined : json['settings'],\n 'connectionExpiry': !exists(json, 'connection_expiry') ? undefined : json['connection_expiry'],\n 'deleteTokenOnDisconnect': !exists(json, 'delete_token_on_disconnect') ? undefined : json['delete_token_on_disconnect'],\n };\n}\nexport function RACProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n 'settings': value.settings,\n 'connection_expiry': value.connectionExpiry,\n 'delete_token_on_disconnect': value.deleteTokenOnDisconnect,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the RadiusProviderRequest interface.\n */\nexport function instanceOfRadiusProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n return isInstance;\n}\nexport function RadiusProviderRequestFromJSON(json) {\n return RadiusProviderRequestFromJSONTyped(json, false);\n}\nexport function RadiusProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'clientNetworks': !exists(json, 'client_networks') ? undefined : json['client_networks'],\n 'sharedSecret': !exists(json, 'shared_secret') ? undefined : json['shared_secret'],\n 'mfaSupport': !exists(json, 'mfa_support') ? undefined : json['mfa_support'],\n };\n}\nexport function RadiusProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n 'client_networks': value.clientNetworks,\n 'shared_secret': value.sharedSecret,\n 'mfa_support': value.mfaSupport,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { DigestAlgorithmEnumFromJSON, DigestAlgorithmEnumToJSON, } from './DigestAlgorithmEnum';\nimport { SignatureAlgorithmEnumFromJSON, SignatureAlgorithmEnumToJSON, } from './SignatureAlgorithmEnum';\nimport { SpBindingEnumFromJSON, SpBindingEnumToJSON, } from './SpBindingEnum';\n/**\n * Check if a given object implements the SAMLProviderRequest interface.\n */\nexport function instanceOfSAMLProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"authorizationFlow\" in value;\n isInstance = isInstance && \"acsUrl\" in value;\n return isInstance;\n}\nexport function SAMLProviderRequestFromJSON(json) {\n return SAMLProviderRequestFromJSONTyped(json, false);\n}\nexport function SAMLProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'authenticationFlow': !exists(json, 'authentication_flow') ? undefined : json['authentication_flow'],\n 'authorizationFlow': json['authorization_flow'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'acsUrl': json['acs_url'],\n 'audience': !exists(json, 'audience') ? undefined : json['audience'],\n 'issuer': !exists(json, 'issuer') ? undefined : json['issuer'],\n 'assertionValidNotBefore': !exists(json, 'assertion_valid_not_before') ? undefined : json['assertion_valid_not_before'],\n 'assertionValidNotOnOrAfter': !exists(json, 'assertion_valid_not_on_or_after') ? undefined : json['assertion_valid_not_on_or_after'],\n 'sessionValidNotOnOrAfter': !exists(json, 'session_valid_not_on_or_after') ? undefined : json['session_valid_not_on_or_after'],\n 'nameIdMapping': !exists(json, 'name_id_mapping') ? undefined : json['name_id_mapping'],\n 'digestAlgorithm': !exists(json, 'digest_algorithm') ? undefined : DigestAlgorithmEnumFromJSON(json['digest_algorithm']),\n 'signatureAlgorithm': !exists(json, 'signature_algorithm') ? undefined : SignatureAlgorithmEnumFromJSON(json['signature_algorithm']),\n 'signingKp': !exists(json, 'signing_kp') ? undefined : json['signing_kp'],\n 'verificationKp': !exists(json, 'verification_kp') ? undefined : json['verification_kp'],\n 'encryptionKp': !exists(json, 'encryption_kp') ? undefined : json['encryption_kp'],\n 'signAssertion': !exists(json, 'sign_assertion') ? undefined : json['sign_assertion'],\n 'signResponse': !exists(json, 'sign_response') ? undefined : json['sign_response'],\n 'spBinding': !exists(json, 'sp_binding') ? undefined : SpBindingEnumFromJSON(json['sp_binding']),\n 'defaultRelayState': !exists(json, 'default_relay_state') ? undefined : json['default_relay_state'],\n };\n}\nexport function SAMLProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'authentication_flow': value.authenticationFlow,\n 'authorization_flow': value.authorizationFlow,\n 'property_mappings': value.propertyMappings,\n 'acs_url': value.acsUrl,\n 'audience': value.audience,\n 'issuer': value.issuer,\n 'assertion_valid_not_before': value.assertionValidNotBefore,\n 'assertion_valid_not_on_or_after': value.assertionValidNotOnOrAfter,\n 'session_valid_not_on_or_after': value.sessionValidNotOnOrAfter,\n 'name_id_mapping': value.nameIdMapping,\n 'digest_algorithm': DigestAlgorithmEnumToJSON(value.digestAlgorithm),\n 'signature_algorithm': SignatureAlgorithmEnumToJSON(value.signatureAlgorithm),\n 'signing_kp': value.signingKp,\n 'verification_kp': value.verificationKp,\n 'encryption_kp': value.encryptionKp,\n 'sign_assertion': value.signAssertion,\n 'sign_response': value.signResponse,\n 'sp_binding': SpBindingEnumToJSON(value.spBinding),\n 'default_relay_state': value.defaultRelayState,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the SCIMProviderRequest interface.\n */\nexport function instanceOfSCIMProviderRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"url\" in value;\n isInstance = isInstance && \"token\" in value;\n return isInstance;\n}\nexport function SCIMProviderRequestFromJSON(json) {\n return SCIMProviderRequestFromJSONTyped(json, false);\n}\nexport function SCIMProviderRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'propertyMappings': !exists(json, 'property_mappings') ? undefined : json['property_mappings'],\n 'propertyMappingsGroup': !exists(json, 'property_mappings_group') ? undefined : json['property_mappings_group'],\n 'url': json['url'],\n 'token': json['token'],\n 'excludeUsersServiceAccount': !exists(json, 'exclude_users_service_account') ? undefined : json['exclude_users_service_account'],\n 'filterGroup': !exists(json, 'filter_group') ? undefined : json['filter_group'],\n };\n}\nexport function SCIMProviderRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'property_mappings': value.propertyMappings,\n 'property_mappings_group': value.propertyMappingsGroup,\n 'url': value.url,\n 'token': value.token,\n 'exclude_users_service_account': value.excludeUsersServiceAccount,\n 'filter_group': value.filterGroup,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { GoogleWorkspaceProviderRequestFromJSONTyped, GoogleWorkspaceProviderRequestToJSON, } from './GoogleWorkspaceProviderRequest';\nimport { LDAPProviderRequestFromJSONTyped, LDAPProviderRequestToJSON, } from './LDAPProviderRequest';\nimport { MicrosoftEntraProviderRequestFromJSONTyped, MicrosoftEntraProviderRequestToJSON, } from './MicrosoftEntraProviderRequest';\nimport { OAuth2ProviderRequestFromJSONTyped, OAuth2ProviderRequestToJSON, } from './OAuth2ProviderRequest';\nimport { ProxyProviderRequestFromJSONTyped, ProxyProviderRequestToJSON, } from './ProxyProviderRequest';\nimport { RACProviderRequestFromJSONTyped, RACProviderRequestToJSON, } from './RACProviderRequest';\nimport { RadiusProviderRequestFromJSONTyped, RadiusProviderRequestToJSON, } from './RadiusProviderRequest';\nimport { SAMLProviderRequestFromJSONTyped, SAMLProviderRequestToJSON, } from './SAMLProviderRequest';\nimport { SCIMProviderRequestFromJSONTyped, SCIMProviderRequestToJSON, } from './SCIMProviderRequest';\nexport function ModelRequestFromJSON(json) {\n return ModelRequestFromJSONTyped(json, false);\n}\nexport function ModelRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n switch (json['providerModel']) {\n case 'authentik_providers_google_workspace.googleworkspaceprovider':\n return Object.assign(Object.assign({}, GoogleWorkspaceProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_google_workspace.googleworkspaceprovider' });\n case 'authentik_providers_ldap.ldapprovider':\n return Object.assign(Object.assign({}, LDAPProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_ldap.ldapprovider' });\n case 'authentik_providers_microsoft_entra.microsoftentraprovider':\n return Object.assign(Object.assign({}, MicrosoftEntraProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_microsoft_entra.microsoftentraprovider' });\n case 'authentik_providers_oauth2.oauth2provider':\n return Object.assign(Object.assign({}, OAuth2ProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_oauth2.oauth2provider' });\n case 'authentik_providers_proxy.proxyprovider':\n return Object.assign(Object.assign({}, ProxyProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_proxy.proxyprovider' });\n case 'authentik_providers_rac.racprovider':\n return Object.assign(Object.assign({}, RACProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_rac.racprovider' });\n case 'authentik_providers_radius.radiusprovider':\n return Object.assign(Object.assign({}, RadiusProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_radius.radiusprovider' });\n case 'authentik_providers_saml.samlprovider':\n return Object.assign(Object.assign({}, SAMLProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_saml.samlprovider' });\n case 'authentik_providers_scim.scimprovider':\n return Object.assign(Object.assign({}, SCIMProviderRequestFromJSONTyped(json, true)), { providerModel: 'authentik_providers_scim.scimprovider' });\n default:\n throw new Error(`No variant of ModelRequest exists with 'providerModel=${json['providerModel']}'`);\n }\n}\nexport function ModelRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n switch (value['providerModel']) {\n case 'authentik_providers_google_workspace.googleworkspaceprovider':\n return GoogleWorkspaceProviderRequestToJSON(value);\n case 'authentik_providers_ldap.ldapprovider':\n return LDAPProviderRequestToJSON(value);\n case 'authentik_providers_microsoft_entra.microsoftentraprovider':\n return MicrosoftEntraProviderRequestToJSON(value);\n case 'authentik_providers_oauth2.oauth2provider':\n return OAuth2ProviderRequestToJSON(value);\n case 'authentik_providers_proxy.proxyprovider':\n return ProxyProviderRequestToJSON(value);\n case 'authentik_providers_rac.racprovider':\n return RACProviderRequestToJSON(value);\n case 'authentik_providers_radius.radiusprovider':\n return RadiusProviderRequestToJSON(value);\n case 'authentik_providers_saml.samlprovider':\n return SAMLProviderRequestToJSON(value);\n case 'authentik_providers_scim.scimprovider':\n return SCIMProviderRequestToJSON(value);\n default:\n throw new Error(`No variant of ModelRequest exists with 'providerModel=${value['providerModel']}'`);\n }\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the Pagination interface.\n */\nexport function instanceOfPagination(value) {\n let isInstance = true;\n isInstance = isInstance && \"next\" in value;\n isInstance = isInstance && \"previous\" in value;\n isInstance = isInstance && \"count\" in value;\n isInstance = isInstance && \"current\" in value;\n isInstance = isInstance && \"totalPages\" in value;\n isInstance = isInstance && \"startIndex\" in value;\n isInstance = isInstance && \"endIndex\" in value;\n return isInstance;\n}\nexport function PaginationFromJSON(json) {\n return PaginationFromJSONTyped(json, false);\n}\nexport function PaginationFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'next': json['next'],\n 'previous': json['previous'],\n 'count': json['count'],\n 'current': json['current'],\n 'totalPages': json['total_pages'],\n 'startIndex': json['start_index'],\n 'endIndex': json['end_index'],\n };\n}\nexport function PaginationToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'next': value.next,\n 'previous': value.previous,\n 'count': value.count,\n 'current': value.current,\n 'total_pages': value.totalPages,\n 'start_index': value.startIndex,\n 'end_index': value.endIndex,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { ApplicationFromJSON, ApplicationToJSON, } from './Application';\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\n/**\n * Check if a given object implements the PaginatedApplicationList interface.\n */\nexport function instanceOfPaginatedApplicationList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedApplicationListFromJSON(json) {\n return PaginatedApplicationListFromJSONTyped(json, false);\n}\nexport function PaginatedApplicationListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(ApplicationFromJSON)),\n };\n}\nexport function PaginatedApplicationListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(ApplicationToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { AuthenticatedSessionFromJSON, AuthenticatedSessionToJSON, } from './AuthenticatedSession';\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\n/**\n * Check if a given object implements the PaginatedAuthenticatedSessionList interface.\n */\nexport function instanceOfPaginatedAuthenticatedSessionList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedAuthenticatedSessionListFromJSON(json) {\n return PaginatedAuthenticatedSessionListFromJSONTyped(json, false);\n}\nexport function PaginatedAuthenticatedSessionListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(AuthenticatedSessionFromJSON)),\n };\n}\nexport function PaginatedAuthenticatedSessionListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(AuthenticatedSessionToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { BrandFromJSON, BrandToJSON, } from './Brand';\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\n/**\n * Check if a given object implements the PaginatedBrandList interface.\n */\nexport function instanceOfPaginatedBrandList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedBrandListFromJSON(json) {\n return PaginatedBrandListFromJSONTyped(json, false);\n}\nexport function PaginatedBrandListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(BrandFromJSON)),\n };\n}\nexport function PaginatedBrandListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(BrandToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { GroupFromJSON, GroupToJSON, } from './Group';\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\n/**\n * Check if a given object implements the PaginatedGroupList interface.\n */\nexport function instanceOfPaginatedGroupList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedGroupListFromJSON(json) {\n return PaginatedGroupListFromJSONTyped(json, false);\n}\nexport function PaginatedGroupListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(GroupFromJSON)),\n };\n}\nexport function PaginatedGroupListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(GroupToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { LicenseFromJSON, LicenseToJSON, } from './License';\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\n/**\n * Check if a given object implements the PaginatedLicenseList interface.\n */\nexport function instanceOfPaginatedLicenseList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedLicenseListFromJSON(json) {\n return PaginatedLicenseListFromJSONTyped(json, false);\n}\nexport function PaginatedLicenseListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(LicenseFromJSON)),\n };\n}\nexport function PaginatedLicenseListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(LicenseToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';\nimport { UserFromJSON, } from './User';\n/**\n * Check if a given object implements the Token interface.\n */\nexport function instanceOfToken(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"identifier\" in value;\n isInstance = isInstance && \"userObj\" in value;\n return isInstance;\n}\nexport function TokenFromJSON(json) {\n return TokenFromJSONTyped(json, false);\n}\nexport function TokenFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'managed': !exists(json, 'managed') ? undefined : json['managed'],\n 'identifier': json['identifier'],\n 'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),\n 'user': !exists(json, 'user') ? undefined : json['user'],\n 'userObj': UserFromJSON(json['user_obj']),\n 'description': !exists(json, 'description') ? undefined : json['description'],\n 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),\n 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],\n };\n}\nexport function TokenToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'managed': value.managed,\n 'identifier': value.identifier,\n 'intent': IntentEnumToJSON(value.intent),\n 'user': value.user,\n 'description': value.description,\n 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),\n 'expiring': value.expiring,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\nimport { TokenFromJSON, TokenToJSON, } from './Token';\n/**\n * Check if a given object implements the PaginatedTokenList interface.\n */\nexport function instanceOfPaginatedTokenList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedTokenListFromJSON(json) {\n return PaginatedTokenListFromJSONTyped(json, false);\n}\nexport function PaginatedTokenListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(TokenFromJSON)),\n };\n}\nexport function PaginatedTokenListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(TokenToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { ApplicationFromJSON, ApplicationToJSON, } from './Application';\nimport { UserFromJSON, UserToJSON, } from './User';\n/**\n * Check if a given object implements the UserConsent interface.\n */\nexport function instanceOfUserConsent(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"user\" in value;\n isInstance = isInstance && \"application\" in value;\n return isInstance;\n}\nexport function UserConsentFromJSON(json) {\n return UserConsentFromJSONTyped(json, false);\n}\nexport function UserConsentFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),\n 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],\n 'user': UserFromJSON(json['user']),\n 'application': ApplicationFromJSON(json['application']),\n 'permissions': !exists(json, 'permissions') ? undefined : json['permissions'],\n };\n}\nexport function UserConsentToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),\n 'expiring': value.expiring,\n 'user': UserToJSON(value.user),\n 'application': ApplicationToJSON(value.application),\n 'permissions': value.permissions,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\nimport { UserConsentFromJSON, UserConsentToJSON, } from './UserConsent';\n/**\n * Check if a given object implements the PaginatedUserConsentList interface.\n */\nexport function instanceOfPaginatedUserConsentList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedUserConsentListFromJSON(json) {\n return PaginatedUserConsentListFromJSONTyped(json, false);\n}\nexport function PaginatedUserConsentListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(UserConsentFromJSON)),\n };\n}\nexport function PaginatedUserConsentListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(UserConsentToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { PaginationFromJSON, PaginationToJSON, } from './Pagination';\nimport { UserFromJSON, UserToJSON, } from './User';\n/**\n * Check if a given object implements the PaginatedUserList interface.\n */\nexport function instanceOfPaginatedUserList(value) {\n let isInstance = true;\n isInstance = isInstance && \"pagination\" in value;\n isInstance = isInstance && \"results\" in value;\n return isInstance;\n}\nexport function PaginatedUserListFromJSON(json) {\n return PaginatedUserListFromJSONTyped(json, false);\n}\nexport function PaginatedUserListFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pagination': PaginationFromJSON(json['pagination']),\n 'results': (json['results'].map(UserFromJSON)),\n };\n}\nexport function PaginatedUserListToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pagination': PaginationToJSON(value.pagination),\n 'results': (value.results.map(UserToJSON)),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';\n/**\n * Check if a given object implements the PatchedApplicationRequest interface.\n */\nexport function instanceOfPatchedApplicationRequest(value) {\n let isInstance = true;\n return isInstance;\n}\nexport function PatchedApplicationRequestFromJSON(json) {\n return PatchedApplicationRequestFromJSONTyped(json, false);\n}\nexport function PatchedApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': !exists(json, 'name') ? undefined : json['name'],\n 'slug': !exists(json, 'slug') ? undefined : json['slug'],\n 'provider': !exists(json, 'provider') ? undefined : json['provider'],\n 'backchannelProviders': !exists(json, 'backchannel_providers') ? undefined : json['backchannel_providers'],\n 'openInNewTab': !exists(json, 'open_in_new_tab') ? undefined : json['open_in_new_tab'],\n 'metaLaunchUrl': !exists(json, 'meta_launch_url') ? undefined : json['meta_launch_url'],\n 'metaDescription': !exists(json, 'meta_description') ? undefined : json['meta_description'],\n 'metaPublisher': !exists(json, 'meta_publisher') ? undefined : json['meta_publisher'],\n 'policyEngineMode': !exists(json, 'policy_engine_mode') ? undefined : PolicyEngineModeFromJSON(json['policy_engine_mode']),\n 'group': !exists(json, 'group') ? undefined : json['group'],\n };\n}\nexport function PatchedApplicationRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'slug': value.slug,\n 'provider': value.provider,\n 'backchannel_providers': value.backchannelProviders,\n 'open_in_new_tab': value.openInNewTab,\n 'meta_launch_url': value.metaLaunchUrl,\n 'meta_description': value.metaDescription,\n 'meta_publisher': value.metaPublisher,\n 'policy_engine_mode': PolicyEngineModeToJSON(value.policyEngineMode),\n 'group': value.group,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the PatchedBrandRequest interface.\n */\nexport function instanceOfPatchedBrandRequest(value) {\n let isInstance = true;\n return isInstance;\n}\nexport function PatchedBrandRequestFromJSON(json) {\n return PatchedBrandRequestFromJSONTyped(json, false);\n}\nexport function PatchedBrandRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'domain': !exists(json, 'domain') ? undefined : json['domain'],\n '_default': !exists(json, 'default') ? undefined : json['default'],\n 'brandingTitle': !exists(json, 'branding_title') ? undefined : json['branding_title'],\n 'brandingLogo': !exists(json, 'branding_logo') ? undefined : json['branding_logo'],\n 'brandingFavicon': !exists(json, 'branding_favicon') ? undefined : json['branding_favicon'],\n 'flowAuthentication': !exists(json, 'flow_authentication') ? undefined : json['flow_authentication'],\n 'flowInvalidation': !exists(json, 'flow_invalidation') ? undefined : json['flow_invalidation'],\n 'flowRecovery': !exists(json, 'flow_recovery') ? undefined : json['flow_recovery'],\n 'flowUnenrollment': !exists(json, 'flow_unenrollment') ? undefined : json['flow_unenrollment'],\n 'flowUserSettings': !exists(json, 'flow_user_settings') ? undefined : json['flow_user_settings'],\n 'flowDeviceCode': !exists(json, 'flow_device_code') ? undefined : json['flow_device_code'],\n 'defaultApplication': !exists(json, 'default_application') ? undefined : json['default_application'],\n 'webCertificate': !exists(json, 'web_certificate') ? undefined : json['web_certificate'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n };\n}\nexport function PatchedBrandRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'domain': value.domain,\n 'default': value._default,\n 'branding_title': value.brandingTitle,\n 'branding_logo': value.brandingLogo,\n 'branding_favicon': value.brandingFavicon,\n 'flow_authentication': value.flowAuthentication,\n 'flow_invalidation': value.flowInvalidation,\n 'flow_recovery': value.flowRecovery,\n 'flow_unenrollment': value.flowUnenrollment,\n 'flow_user_settings': value.flowUserSettings,\n 'flow_device_code': value.flowDeviceCode,\n 'default_application': value.defaultApplication,\n 'web_certificate': value.webCertificate,\n 'attributes': value.attributes,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the PatchedGroupRequest interface.\n */\nexport function instanceOfPatchedGroupRequest(value) {\n let isInstance = true;\n return isInstance;\n}\nexport function PatchedGroupRequestFromJSON(json) {\n return PatchedGroupRequestFromJSONTyped(json, false);\n}\nexport function PatchedGroupRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': !exists(json, 'name') ? undefined : json['name'],\n 'isSuperuser': !exists(json, 'is_superuser') ? undefined : json['is_superuser'],\n 'parent': !exists(json, 'parent') ? undefined : json['parent'],\n 'users': !exists(json, 'users') ? undefined : json['users'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'roles': !exists(json, 'roles') ? undefined : json['roles'],\n };\n}\nexport function PatchedGroupRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'is_superuser': value.isSuperuser,\n 'parent': value.parent,\n 'users': value.users,\n 'attributes': value.attributes,\n 'roles': value.roles,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the PatchedLicenseRequest interface.\n */\nexport function instanceOfPatchedLicenseRequest(value) {\n let isInstance = true;\n return isInstance;\n}\nexport function PatchedLicenseRequestFromJSON(json) {\n return PatchedLicenseRequestFromJSONTyped(json, false);\n}\nexport function PatchedLicenseRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'key': !exists(json, 'key') ? undefined : json['key'],\n };\n}\nexport function PatchedLicenseRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'key': value.key,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';\n/**\n * Check if a given object implements the PatchedTokenRequest interface.\n */\nexport function instanceOfPatchedTokenRequest(value) {\n let isInstance = true;\n return isInstance;\n}\nexport function PatchedTokenRequestFromJSON(json) {\n return PatchedTokenRequestFromJSONTyped(json, false);\n}\nexport function PatchedTokenRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'managed': !exists(json, 'managed') ? undefined : json['managed'],\n 'identifier': !exists(json, 'identifier') ? undefined : json['identifier'],\n 'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),\n 'user': !exists(json, 'user') ? undefined : json['user'],\n 'description': !exists(json, 'description') ? undefined : json['description'],\n 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),\n 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],\n };\n}\nexport function PatchedTokenRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'managed': value.managed,\n 'identifier': value.identifier,\n 'intent': IntentEnumToJSON(value.intent),\n 'user': value.user,\n 'description': value.description,\n 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),\n 'expiring': value.expiring,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { UserTypeEnumFromJSON, UserTypeEnumToJSON, } from './UserTypeEnum';\n/**\n * Check if a given object implements the PatchedUserRequest interface.\n */\nexport function instanceOfPatchedUserRequest(value) {\n let isInstance = true;\n return isInstance;\n}\nexport function PatchedUserRequestFromJSON(json) {\n return PatchedUserRequestFromJSONTyped(json, false);\n}\nexport function PatchedUserRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'username': !exists(json, 'username') ? undefined : json['username'],\n 'name': !exists(json, 'name') ? undefined : json['name'],\n 'isActive': !exists(json, 'is_active') ? undefined : json['is_active'],\n 'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),\n 'groups': !exists(json, 'groups') ? undefined : json['groups'],\n 'email': !exists(json, 'email') ? undefined : json['email'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'path': !exists(json, 'path') ? undefined : json['path'],\n 'type': !exists(json, 'type') ? undefined : UserTypeEnumFromJSON(json['type']),\n };\n}\nexport function PatchedUserRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'username': value.username,\n 'name': value.name,\n 'is_active': value.isActive,\n 'last_login': value.lastLogin === undefined ? undefined : (value.lastLogin === null ? null : value.lastLogin.toISOString()),\n 'groups': value.groups,\n 'email': value.email,\n 'attributes': value.attributes,\n 'path': value.path,\n 'type': UserTypeEnumToJSON(value.type),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the UserSelfGroups interface.\n */\nexport function instanceOfUserSelfGroups(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"pk\" in value;\n return isInstance;\n}\nexport function UserSelfGroupsFromJSON(json) {\n return UserSelfGroupsFromJSONTyped(json, false);\n}\nexport function UserSelfGroupsFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'pk': json['pk'],\n };\n}\nexport function UserSelfGroupsToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { UserSelfGroupsFromJSON, } from './UserSelfGroups';\nimport { UserTypeEnumFromJSON, UserTypeEnumToJSON, } from './UserTypeEnum';\n/**\n * Check if a given object implements the UserSelf interface.\n */\nexport function instanceOfUserSelf(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"username\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"isActive\" in value;\n isInstance = isInstance && \"isSuperuser\" in value;\n isInstance = isInstance && \"groups\" in value;\n isInstance = isInstance && \"avatar\" in value;\n isInstance = isInstance && \"uid\" in value;\n isInstance = isInstance && \"settings\" in value;\n isInstance = isInstance && \"systemPermissions\" in value;\n return isInstance;\n}\nexport function UserSelfFromJSON(json) {\n return UserSelfFromJSONTyped(json, false);\n}\nexport function UserSelfFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n 'username': json['username'],\n 'name': json['name'],\n 'isActive': json['is_active'],\n 'isSuperuser': json['is_superuser'],\n 'groups': (json['groups'].map(UserSelfGroupsFromJSON)),\n 'email': !exists(json, 'email') ? undefined : json['email'],\n 'avatar': json['avatar'],\n 'uid': json['uid'],\n 'settings': json['settings'],\n 'type': !exists(json, 'type') ? undefined : UserTypeEnumFromJSON(json['type']),\n 'systemPermissions': json['system_permissions'],\n };\n}\nexport function UserSelfToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'username': value.username,\n 'name': value.name,\n 'email': value.email,\n 'type': UserTypeEnumToJSON(value.type),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { UserSelfFromJSON, UserSelfToJSON, } from './UserSelf';\n/**\n * Check if a given object implements the SessionUser interface.\n */\nexport function instanceOfSessionUser(value) {\n let isInstance = true;\n isInstance = isInstance && \"user\" in value;\n return isInstance;\n}\nexport function SessionUserFromJSON(json) {\n return SessionUserFromJSONTyped(json, false);\n}\nexport function SessionUserFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'user': UserSelfFromJSON(json['user']),\n 'original': !exists(json, 'original') ? undefined : UserSelfFromJSON(json['original']),\n };\n}\nexport function SessionUserToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'user': UserSelfToJSON(value.user),\n 'original': UserSelfToJSON(value.original),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { IntentEnumFromJSON, IntentEnumToJSON, } from './IntentEnum';\n/**\n * Check if a given object implements the TokenRequest interface.\n */\nexport function instanceOfTokenRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"identifier\" in value;\n return isInstance;\n}\nexport function TokenRequestFromJSON(json) {\n return TokenRequestFromJSONTyped(json, false);\n}\nexport function TokenRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'managed': !exists(json, 'managed') ? undefined : json['managed'],\n 'identifier': json['identifier'],\n 'intent': !exists(json, 'intent') ? undefined : IntentEnumFromJSON(json['intent']),\n 'user': !exists(json, 'user') ? undefined : json['user'],\n 'description': !exists(json, 'description') ? undefined : json['description'],\n 'expires': !exists(json, 'expires') ? undefined : (json['expires'] === null ? null : new Date(json['expires'])),\n 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],\n };\n}\nexport function TokenRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'managed': value.managed,\n 'identifier': value.identifier,\n 'intent': IntentEnumToJSON(value.intent),\n 'user': value.user,\n 'description': value.description,\n 'expires': value.expires === undefined ? undefined : (value.expires === null ? null : value.expires.toISOString()),\n 'expiring': value.expiring,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the TokenSetKeyRequest interface.\n */\nexport function instanceOfTokenSetKeyRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"key\" in value;\n return isInstance;\n}\nexport function TokenSetKeyRequestFromJSON(json) {\n return TokenSetKeyRequestFromJSONTyped(json, false);\n}\nexport function TokenSetKeyRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'key': json['key'],\n };\n}\nexport function TokenSetKeyRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'key': value.key,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the TokenView interface.\n */\nexport function instanceOfTokenView(value) {\n let isInstance = true;\n isInstance = isInstance && \"key\" in value;\n return isInstance;\n}\nexport function TokenViewFromJSON(json) {\n return TokenViewFromJSONTyped(json, false);\n}\nexport function TokenViewFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'key': json['key'],\n };\n}\nexport function TokenViewToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { ApplicationRequestFromJSON, ApplicationRequestToJSON, } from './ApplicationRequest';\nimport { ModelRequestFromJSON, ModelRequestToJSON, } from './ModelRequest';\nimport { ProviderModelEnumFromJSON, ProviderModelEnumToJSON, } from './ProviderModelEnum';\n/**\n * Check if a given object implements the TransactionApplicationRequest interface.\n */\nexport function instanceOfTransactionApplicationRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"app\" in value;\n isInstance = isInstance && \"providerModel\" in value;\n isInstance = isInstance && \"provider\" in value;\n return isInstance;\n}\nexport function TransactionApplicationRequestFromJSON(json) {\n return TransactionApplicationRequestFromJSONTyped(json, false);\n}\nexport function TransactionApplicationRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'app': ApplicationRequestFromJSON(json['app']),\n 'providerModel': ProviderModelEnumFromJSON(json['provider_model']),\n 'provider': ModelRequestFromJSON(json['provider']),\n };\n}\nexport function TransactionApplicationRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'app': ApplicationRequestToJSON(value.app),\n 'provider_model': ProviderModelEnumToJSON(value.providerModel),\n 'provider': ModelRequestToJSON(value.provider),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the TransactionApplicationResponse interface.\n */\nexport function instanceOfTransactionApplicationResponse(value) {\n let isInstance = true;\n isInstance = isInstance && \"applied\" in value;\n isInstance = isInstance && \"logs\" in value;\n return isInstance;\n}\nexport function TransactionApplicationResponseFromJSON(json) {\n return TransactionApplicationResponseFromJSONTyped(json, false);\n}\nexport function TransactionApplicationResponseFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'applied': json['applied'],\n 'logs': json['logs'],\n };\n}\nexport function TransactionApplicationResponseToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'applied': value.applied,\n 'logs': value.logs,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n *\n * @export\n */\nexport const UsedByActionEnum = {\n Cascade: 'cascade',\n CascadeMany: 'cascade_many',\n SetNull: 'set_null',\n SetDefault: 'set_default',\n UnknownDefaultOpenApi: '11184809'\n};\nexport function UsedByActionEnumFromJSON(json) {\n return UsedByActionEnumFromJSONTyped(json, false);\n}\nexport function UsedByActionEnumFromJSONTyped(json, ignoreDiscriminator) {\n return json;\n}\nexport function UsedByActionEnumToJSON(value) {\n return value;\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { UsedByActionEnumFromJSON, UsedByActionEnumToJSON, } from './UsedByActionEnum';\n/**\n * Check if a given object implements the UsedBy interface.\n */\nexport function instanceOfUsedBy(value) {\n let isInstance = true;\n isInstance = isInstance && \"app\" in value;\n isInstance = isInstance && \"modelName\" in value;\n isInstance = isInstance && \"pk\" in value;\n isInstance = isInstance && \"name\" in value;\n isInstance = isInstance && \"action\" in value;\n return isInstance;\n}\nexport function UsedByFromJSON(json) {\n return UsedByFromJSONTyped(json, false);\n}\nexport function UsedByFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'app': json['app'],\n 'modelName': json['model_name'],\n 'pk': json['pk'],\n 'name': json['name'],\n 'action': UsedByActionEnumFromJSON(json['action']),\n };\n}\nexport function UsedByToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'app': value.app,\n 'model_name': value.modelName,\n 'pk': value.pk,\n 'name': value.name,\n 'action': UsedByActionEnumToJSON(value.action),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the UserAccountRequest interface.\n */\nexport function instanceOfUserAccountRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"pk\" in value;\n return isInstance;\n}\nexport function UserAccountRequestFromJSON(json) {\n return UserAccountRequestFromJSONTyped(json, false);\n}\nexport function UserAccountRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'pk': json['pk'],\n };\n}\nexport function UserAccountRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'pk': value.pk,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { CoordinateFromJSON, } from './Coordinate';\n/**\n * Check if a given object implements the UserMetrics interface.\n */\nexport function instanceOfUserMetrics(value) {\n let isInstance = true;\n isInstance = isInstance && \"logins\" in value;\n isInstance = isInstance && \"loginsFailed\" in value;\n isInstance = isInstance && \"authorizations\" in value;\n return isInstance;\n}\nexport function UserMetricsFromJSON(json) {\n return UserMetricsFromJSONTyped(json, false);\n}\nexport function UserMetricsFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'logins': (json['logins'].map(CoordinateFromJSON)),\n 'loginsFailed': (json['logins_failed'].map(CoordinateFromJSON)),\n 'authorizations': (json['authorizations'].map(CoordinateFromJSON)),\n };\n}\nexport function UserMetricsToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the UserPasswordSetRequest interface.\n */\nexport function instanceOfUserPasswordSetRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"password\" in value;\n return isInstance;\n}\nexport function UserPasswordSetRequestFromJSON(json) {\n return UserPasswordSetRequestFromJSONTyped(json, false);\n}\nexport function UserPasswordSetRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'password': json['password'],\n };\n}\nexport function UserPasswordSetRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'password': value.password,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n/**\n * Check if a given object implements the UserPath interface.\n */\nexport function instanceOfUserPath(value) {\n let isInstance = true;\n isInstance = isInstance && \"paths\" in value;\n return isInstance;\n}\nexport function UserPathFromJSON(json) {\n return UserPathFromJSONTyped(json, false);\n}\nexport function UserPathFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'paths': json['paths'],\n };\n}\nexport function UserPathToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {};\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\nimport { UserTypeEnumFromJSON, UserTypeEnumToJSON, } from './UserTypeEnum';\n/**\n * Check if a given object implements the UserRequest interface.\n */\nexport function instanceOfUserRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"username\" in value;\n isInstance = isInstance && \"name\" in value;\n return isInstance;\n}\nexport function UserRequestFromJSON(json) {\n return UserRequestFromJSONTyped(json, false);\n}\nexport function UserRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'username': json['username'],\n 'name': json['name'],\n 'isActive': !exists(json, 'is_active') ? undefined : json['is_active'],\n 'lastLogin': !exists(json, 'last_login') ? undefined : (json['last_login'] === null ? null : new Date(json['last_login'])),\n 'groups': !exists(json, 'groups') ? undefined : json['groups'],\n 'email': !exists(json, 'email') ? undefined : json['email'],\n 'attributes': !exists(json, 'attributes') ? undefined : json['attributes'],\n 'path': !exists(json, 'path') ? undefined : json['path'],\n 'type': !exists(json, 'type') ? undefined : UserTypeEnumFromJSON(json['type']),\n };\n}\nexport function UserRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'username': value.username,\n 'name': value.name,\n 'is_active': value.isActive,\n 'last_login': value.lastLogin === undefined ? undefined : (value.lastLogin === null ? null : value.lastLogin.toISOString()),\n 'groups': value.groups,\n 'email': value.email,\n 'attributes': value.attributes,\n 'path': value.path,\n 'type': UserTypeEnumToJSON(value.type),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the UserServiceAccountRequest interface.\n */\nexport function instanceOfUserServiceAccountRequest(value) {\n let isInstance = true;\n isInstance = isInstance && \"name\" in value;\n return isInstance;\n}\nexport function UserServiceAccountRequestFromJSON(json) {\n return UserServiceAccountRequestFromJSONTyped(json, false);\n}\nexport function UserServiceAccountRequestFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'name': json['name'],\n 'createGroup': !exists(json, 'create_group') ? undefined : json['create_group'],\n 'expiring': !exists(json, 'expiring') ? undefined : json['expiring'],\n 'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),\n };\n}\nexport function UserServiceAccountRequestToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'name': value.name,\n 'create_group': value.createGroup,\n 'expiring': value.expiring,\n 'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nimport { exists } from '../runtime';\n/**\n * Check if a given object implements the UserServiceAccountResponse interface.\n */\nexport function instanceOfUserServiceAccountResponse(value) {\n let isInstance = true;\n isInstance = isInstance && \"username\" in value;\n isInstance = isInstance && \"token\" in value;\n isInstance = isInstance && \"userUid\" in value;\n isInstance = isInstance && \"userPk\" in value;\n return isInstance;\n}\nexport function UserServiceAccountResponseFromJSON(json) {\n return UserServiceAccountResponseFromJSONTyped(json, false);\n}\nexport function UserServiceAccountResponseFromJSONTyped(json, ignoreDiscriminator) {\n if ((json === undefined) || (json === null)) {\n return json;\n }\n return {\n 'username': json['username'],\n 'token': json['token'],\n 'userUid': json['user_uid'],\n 'userPk': json['user_pk'],\n 'groupPk': !exists(json, 'group_pk') ? undefined : json['group_pk'],\n };\n}\nexport function UserServiceAccountResponseToJSON(value) {\n if (value === undefined) {\n return undefined;\n }\n if (value === null) {\n return null;\n }\n return {\n 'username': value.username,\n 'token': value.token,\n 'user_uid': value.userUid,\n 'user_pk': value.userPk,\n 'group_pk': value.groupPk,\n };\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport * as runtime from '../runtime';\nimport { ApplicationFromJSON, ApplicationRequestToJSON, AuthenticatedSessionFromJSON, BrandFromJSON, BrandRequestToJSON, CoordinateFromJSON, CurrentBrandFromJSON, FilePathRequestToJSON, GroupFromJSON, GroupRequestToJSON, LinkFromJSON, PaginatedApplicationListFromJSON, PaginatedAuthenticatedSessionListFromJSON, PaginatedBrandListFromJSON, PaginatedGroupListFromJSON, PaginatedTokenListFromJSON, PaginatedUserConsentListFromJSON, PaginatedUserListFromJSON, PatchedApplicationRequestToJSON, PatchedBrandRequestToJSON, PatchedGroupRequestToJSON, PatchedTokenRequestToJSON, PatchedUserRequestToJSON, PolicyTestResultFromJSON, SessionUserFromJSON, TokenFromJSON, TokenRequestToJSON, TokenSetKeyRequestToJSON, TokenViewFromJSON, TransactionApplicationRequestToJSON, TransactionApplicationResponseFromJSON, UsedByFromJSON, UserFromJSON, UserAccountRequestToJSON, UserConsentFromJSON, UserMetricsFromJSON, UserPasswordSetRequestToJSON, UserPathFromJSON, UserRequestToJSON, UserServiceAccountRequestToJSON, UserServiceAccountResponseFromJSON, } from '../models';\n/**\n *\n */\nexport class CoreApi extends runtime.BaseAPI {\n /**\n * Check access to a single application by slug\n */\n coreApplicationsCheckAccessRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsCheckAccessRetrieve.');\n }\n const queryParameters = {};\n if (requestParameters.forUser !== undefined) {\n queryParameters['for_user'] = requestParameters.forUser;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/check_access/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PolicyTestResultFromJSON(jsonValue));\n });\n }\n /**\n * Check access to a single application by slug\n */\n coreApplicationsCheckAccessRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsCheckAccessRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.applicationRequest === null || requestParameters.applicationRequest === undefined) {\n throw new runtime.RequiredError('applicationRequest', 'Required parameter requestParameters.applicationRequest was null or undefined when calling coreApplicationsCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: ApplicationRequestToJSON(requestParameters.applicationRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationFromJSON(jsonValue));\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreApplicationsDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Custom list method that checks Policy based access instead of guardian\n */\n coreApplicationsListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.forUser !== undefined) {\n queryParameters['for_user'] = requestParameters.forUser;\n }\n if (requestParameters.group !== undefined) {\n queryParameters['group'] = requestParameters.group;\n }\n if (requestParameters.metaDescription !== undefined) {\n queryParameters['meta_description'] = requestParameters.metaDescription;\n }\n if (requestParameters.metaLaunchUrl !== undefined) {\n queryParameters['meta_launch_url'] = requestParameters.metaLaunchUrl;\n }\n if (requestParameters.metaPublisher !== undefined) {\n queryParameters['meta_publisher'] = requestParameters.metaPublisher;\n }\n if (requestParameters.name !== undefined) {\n queryParameters['name'] = requestParameters.name;\n }\n if (requestParameters.onlyWithLaunchUrl !== undefined) {\n queryParameters['only_with_launch_url'] = requestParameters.onlyWithLaunchUrl;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n if (requestParameters.slug !== undefined) {\n queryParameters['slug'] = requestParameters.slug;\n }\n if (requestParameters.superuserFullList !== undefined) {\n queryParameters['superuser_full_list'] = requestParameters.superuserFullList;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedApplicationListFromJSON(jsonValue));\n });\n }\n /**\n * Custom list method that checks Policy based access instead of guardian\n */\n coreApplicationsList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Metrics for application logins\n */\n coreApplicationsMetricsListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsMetricsList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/metrics/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CoordinateFromJSON));\n });\n }\n /**\n * Metrics for application logins\n */\n coreApplicationsMetricsList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsMetricsListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsPartialUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsPartialUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: PatchedApplicationRequestToJSON(requestParameters.patchedApplicationRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationFromJSON(jsonValue));\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsPartialUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsPartialUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationFromJSON(jsonValue));\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Set application icon\n */\n coreApplicationsSetIconCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsSetIconCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const consumes = [\n { contentType: 'multipart/form-data' },\n ];\n // @ts-ignore: canConsumeForm may be unused\n const canConsumeForm = runtime.canConsumeForm(consumes);\n let formParams;\n let useForm = false;\n // use FormData to transmit files using content-type \"multipart/form-data\"\n useForm = canConsumeForm;\n if (useForm) {\n formParams = new FormData();\n }\n else {\n formParams = new URLSearchParams();\n }\n if (requestParameters.file !== undefined) {\n formParams.append('file', requestParameters.file);\n }\n if (requestParameters.clear !== undefined) {\n formParams.append('clear', requestParameters.clear);\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/set_icon/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: formParams,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Set application icon\n */\n coreApplicationsSetIconCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreApplicationsSetIconCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Set application icon (as URL)\n */\n coreApplicationsSetIconUrlCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsSetIconUrlCreate.');\n }\n if (requestParameters.filePathRequest === null || requestParameters.filePathRequest === undefined) {\n throw new runtime.RequiredError('filePathRequest', 'Required parameter requestParameters.filePathRequest was null or undefined when calling coreApplicationsSetIconUrlCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/set_icon_url/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: FilePathRequestToJSON(requestParameters.filePathRequest),\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Set application icon (as URL)\n */\n coreApplicationsSetIconUrlCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreApplicationsSetIconUrlCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsUpdate.');\n }\n if (requestParameters.applicationRequest === null || requestParameters.applicationRequest === undefined) {\n throw new runtime.RequiredError('applicationRequest', 'Required parameter requestParameters.applicationRequest was null or undefined when calling coreApplicationsUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: ApplicationRequestToJSON(requestParameters.applicationRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => ApplicationFromJSON(jsonValue));\n });\n }\n /**\n * Application Viewset\n */\n coreApplicationsUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreApplicationsUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.slug === null || requestParameters.slug === undefined) {\n throw new runtime.RequiredError('slug', 'Required parameter requestParameters.slug was null or undefined when calling coreApplicationsUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/applications/{slug}/used_by/`.replace(`{${\"slug\"}}`, encodeURIComponent(String(requestParameters.slug))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreApplicationsUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreApplicationsUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * AuthenticatedSession Viewset\n */\n coreAuthenticatedSessionsDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.uuid === null || requestParameters.uuid === undefined) {\n throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling coreAuthenticatedSessionsDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/authenticated_sessions/{uuid}/`.replace(`{${\"uuid\"}}`, encodeURIComponent(String(requestParameters.uuid))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * AuthenticatedSession Viewset\n */\n coreAuthenticatedSessionsDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreAuthenticatedSessionsDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * AuthenticatedSession Viewset\n */\n coreAuthenticatedSessionsListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.lastIp !== undefined) {\n queryParameters['last_ip'] = requestParameters.lastIp;\n }\n if (requestParameters.lastUserAgent !== undefined) {\n queryParameters['last_user_agent'] = requestParameters.lastUserAgent;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n if (requestParameters.userUsername !== undefined) {\n queryParameters['user__username'] = requestParameters.userUsername;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/authenticated_sessions/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAuthenticatedSessionListFromJSON(jsonValue));\n });\n }\n /**\n * AuthenticatedSession Viewset\n */\n coreAuthenticatedSessionsList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreAuthenticatedSessionsListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * AuthenticatedSession Viewset\n */\n coreAuthenticatedSessionsRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.uuid === null || requestParameters.uuid === undefined) {\n throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling coreAuthenticatedSessionsRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/authenticated_sessions/{uuid}/`.replace(`{${\"uuid\"}}`, encodeURIComponent(String(requestParameters.uuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatedSessionFromJSON(jsonValue));\n });\n }\n /**\n * AuthenticatedSession Viewset\n */\n coreAuthenticatedSessionsRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreAuthenticatedSessionsRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreAuthenticatedSessionsUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.uuid === null || requestParameters.uuid === undefined) {\n throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling coreAuthenticatedSessionsUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/authenticated_sessions/{uuid}/used_by/`.replace(`{${\"uuid\"}}`, encodeURIComponent(String(requestParameters.uuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreAuthenticatedSessionsUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreAuthenticatedSessionsUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.brandRequest === null || requestParameters.brandRequest === undefined) {\n throw new runtime.RequiredError('brandRequest', 'Required parameter requestParameters.brandRequest was null or undefined when calling coreBrandsCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: BrandRequestToJSON(requestParameters.brandRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => BrandFromJSON(jsonValue));\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get current brand\n */\n coreBrandsCurrentRetrieveRaw(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/current/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => CurrentBrandFromJSON(jsonValue));\n });\n }\n /**\n * Get current brand\n */\n coreBrandsCurrentRetrieve(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsCurrentRetrieveRaw(initOverrides);\n return yield response.value();\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.brandUuid === null || requestParameters.brandUuid === undefined) {\n throw new runtime.RequiredError('brandUuid', 'Required parameter requestParameters.brandUuid was null or undefined when calling coreBrandsDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/{brand_uuid}/`.replace(`{${\"brand_uuid\"}}`, encodeURIComponent(String(requestParameters.brandUuid))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreBrandsDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.brandUuid !== undefined) {\n queryParameters['brand_uuid'] = requestParameters.brandUuid;\n }\n if (requestParameters.brandingFavicon !== undefined) {\n queryParameters['branding_favicon'] = requestParameters.brandingFavicon;\n }\n if (requestParameters.brandingLogo !== undefined) {\n queryParameters['branding_logo'] = requestParameters.brandingLogo;\n }\n if (requestParameters.brandingTitle !== undefined) {\n queryParameters['branding_title'] = requestParameters.brandingTitle;\n }\n if (requestParameters._default !== undefined) {\n queryParameters['default'] = requestParameters._default;\n }\n if (requestParameters.domain !== undefined) {\n queryParameters['domain'] = requestParameters.domain;\n }\n if (requestParameters.flowAuthentication !== undefined) {\n queryParameters['flow_authentication'] = requestParameters.flowAuthentication;\n }\n if (requestParameters.flowDeviceCode !== undefined) {\n queryParameters['flow_device_code'] = requestParameters.flowDeviceCode;\n }\n if (requestParameters.flowInvalidation !== undefined) {\n queryParameters['flow_invalidation'] = requestParameters.flowInvalidation;\n }\n if (requestParameters.flowRecovery !== undefined) {\n queryParameters['flow_recovery'] = requestParameters.flowRecovery;\n }\n if (requestParameters.flowUnenrollment !== undefined) {\n queryParameters['flow_unenrollment'] = requestParameters.flowUnenrollment;\n }\n if (requestParameters.flowUserSettings !== undefined) {\n queryParameters['flow_user_settings'] = requestParameters.flowUserSettings;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n if (requestParameters.webCertificate !== undefined) {\n queryParameters['web_certificate'] = requestParameters.webCertificate;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedBrandListFromJSON(jsonValue));\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsPartialUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.brandUuid === null || requestParameters.brandUuid === undefined) {\n throw new runtime.RequiredError('brandUuid', 'Required parameter requestParameters.brandUuid was null or undefined when calling coreBrandsPartialUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/{brand_uuid}/`.replace(`{${\"brand_uuid\"}}`, encodeURIComponent(String(requestParameters.brandUuid))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: PatchedBrandRequestToJSON(requestParameters.patchedBrandRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => BrandFromJSON(jsonValue));\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsPartialUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsPartialUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.brandUuid === null || requestParameters.brandUuid === undefined) {\n throw new runtime.RequiredError('brandUuid', 'Required parameter requestParameters.brandUuid was null or undefined when calling coreBrandsRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/{brand_uuid}/`.replace(`{${\"brand_uuid\"}}`, encodeURIComponent(String(requestParameters.brandUuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => BrandFromJSON(jsonValue));\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.brandUuid === null || requestParameters.brandUuid === undefined) {\n throw new runtime.RequiredError('brandUuid', 'Required parameter requestParameters.brandUuid was null or undefined when calling coreBrandsUpdate.');\n }\n if (requestParameters.brandRequest === null || requestParameters.brandRequest === undefined) {\n throw new runtime.RequiredError('brandRequest', 'Required parameter requestParameters.brandRequest was null or undefined when calling coreBrandsUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/{brand_uuid}/`.replace(`{${\"brand_uuid\"}}`, encodeURIComponent(String(requestParameters.brandUuid))),\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: BrandRequestToJSON(requestParameters.brandRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => BrandFromJSON(jsonValue));\n });\n }\n /**\n * Brand Viewset\n */\n coreBrandsUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreBrandsUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.brandUuid === null || requestParameters.brandUuid === undefined) {\n throw new runtime.RequiredError('brandUuid', 'Required parameter requestParameters.brandUuid was null or undefined when calling coreBrandsUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/brands/{brand_uuid}/used_by/`.replace(`{${\"brand_uuid\"}}`, encodeURIComponent(String(requestParameters.brandUuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreBrandsUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreBrandsUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Add user to group\n */\n coreGroupsAddUserCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsAddUserCreate.');\n }\n if (requestParameters.userAccountRequest === null || requestParameters.userAccountRequest === undefined) {\n throw new runtime.RequiredError('userAccountRequest', 'Required parameter requestParameters.userAccountRequest was null or undefined when calling coreGroupsAddUserCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/add_user/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: UserAccountRequestToJSON(requestParameters.userAccountRequest),\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Add user to group\n */\n coreGroupsAddUserCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreGroupsAddUserCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupRequest === null || requestParameters.groupRequest === undefined) {\n throw new runtime.RequiredError('groupRequest', 'Required parameter requestParameters.groupRequest was null or undefined when calling coreGroupsCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: GroupRequestToJSON(requestParameters.groupRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreGroupsCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreGroupsDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.attributes !== undefined) {\n queryParameters['attributes'] = requestParameters.attributes;\n }\n if (requestParameters.includeUsers !== undefined) {\n queryParameters['include_users'] = requestParameters.includeUsers;\n }\n if (requestParameters.isSuperuser !== undefined) {\n queryParameters['is_superuser'] = requestParameters.isSuperuser;\n }\n if (requestParameters.membersByPk) {\n queryParameters['members_by_pk'] = requestParameters.membersByPk;\n }\n if (requestParameters.membersByUsername) {\n queryParameters['members_by_username'] = requestParameters.membersByUsername;\n }\n if (requestParameters.name !== undefined) {\n queryParameters['name'] = requestParameters.name;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedGroupListFromJSON(jsonValue));\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreGroupsListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsPartialUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsPartialUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: PatchedGroupRequestToJSON(requestParameters.patchedGroupRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsPartialUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreGroupsPartialUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Add user to group\n */\n coreGroupsRemoveUserCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsRemoveUserCreate.');\n }\n if (requestParameters.userAccountRequest === null || requestParameters.userAccountRequest === undefined) {\n throw new runtime.RequiredError('userAccountRequest', 'Required parameter requestParameters.userAccountRequest was null or undefined when calling coreGroupsRemoveUserCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/remove_user/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: UserAccountRequestToJSON(requestParameters.userAccountRequest),\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Add user to group\n */\n coreGroupsRemoveUserCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreGroupsRemoveUserCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsRetrieve.');\n }\n const queryParameters = {};\n if (requestParameters.includeUsers !== undefined) {\n queryParameters['include_users'] = requestParameters.includeUsers;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreGroupsRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsUpdate.');\n }\n if (requestParameters.groupRequest === null || requestParameters.groupRequest === undefined) {\n throw new runtime.RequiredError('groupRequest', 'Required parameter requestParameters.groupRequest was null or undefined when calling coreGroupsUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: GroupRequestToJSON(requestParameters.groupRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));\n });\n }\n /**\n * Group Viewset\n */\n coreGroupsUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreGroupsUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreGroupsUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.groupUuid === null || requestParameters.groupUuid === undefined) {\n throw new runtime.RequiredError('groupUuid', 'Required parameter requestParameters.groupUuid was null or undefined when calling coreGroupsUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/groups/{group_uuid}/used_by/`.replace(`{${\"group_uuid\"}}`, encodeURIComponent(String(requestParameters.groupUuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreGroupsUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreGroupsUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Token Viewset\n */\n coreTokensCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.tokenRequest === null || requestParameters.tokenRequest === undefined) {\n throw new runtime.RequiredError('tokenRequest', 'Required parameter requestParameters.tokenRequest was null or undefined when calling coreTokensCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: TokenRequestToJSON(requestParameters.tokenRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));\n });\n }\n /**\n * Token Viewset\n */\n coreTokensCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Token Viewset\n */\n coreTokensDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Token Viewset\n */\n coreTokensDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreTokensDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Token Viewset\n */\n coreTokensListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.description !== undefined) {\n queryParameters['description'] = requestParameters.description;\n }\n if (requestParameters.expires !== undefined) {\n queryParameters['expires'] = requestParameters.expires.toISOString();\n }\n if (requestParameters.expiring !== undefined) {\n queryParameters['expiring'] = requestParameters.expiring;\n }\n if (requestParameters.identifier !== undefined) {\n queryParameters['identifier'] = requestParameters.identifier;\n }\n if (requestParameters.intent !== undefined) {\n queryParameters['intent'] = requestParameters.intent;\n }\n if (requestParameters.managed !== undefined) {\n queryParameters['managed'] = requestParameters.managed;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n if (requestParameters.userUsername !== undefined) {\n queryParameters['user__username'] = requestParameters.userUsername;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTokenListFromJSON(jsonValue));\n });\n }\n /**\n * Token Viewset\n */\n coreTokensList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Token Viewset\n */\n coreTokensPartialUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensPartialUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: PatchedTokenRequestToJSON(requestParameters.patchedTokenRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));\n });\n }\n /**\n * Token Viewset\n */\n coreTokensPartialUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensPartialUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Token Viewset\n */\n coreTokensRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));\n });\n }\n /**\n * Token Viewset\n */\n coreTokensRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required.\n */\n coreTokensSetKeyCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensSetKeyCreate.');\n }\n if (requestParameters.tokenSetKeyRequest === null || requestParameters.tokenSetKeyRequest === undefined) {\n throw new runtime.RequiredError('tokenSetKeyRequest', 'Required parameter requestParameters.tokenSetKeyRequest was null or undefined when calling coreTokensSetKeyCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/set_key/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: TokenSetKeyRequestToJSON(requestParameters.tokenSetKeyRequest),\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Set token key. Action is logged as event. `authentik_core.set_token_key` permission is required.\n */\n coreTokensSetKeyCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreTokensSetKeyCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Token Viewset\n */\n coreTokensUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensUpdate.');\n }\n if (requestParameters.tokenRequest === null || requestParameters.tokenRequest === undefined) {\n throw new runtime.RequiredError('tokenRequest', 'Required parameter requestParameters.tokenRequest was null or undefined when calling coreTokensUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: TokenRequestToJSON(requestParameters.tokenRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => TokenFromJSON(jsonValue));\n });\n }\n /**\n * Token Viewset\n */\n coreTokensUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreTokensUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/used_by/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreTokensUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Return token key and log access\n */\n coreTokensViewKeyRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.identifier === null || requestParameters.identifier === undefined) {\n throw new runtime.RequiredError('identifier', 'Required parameter requestParameters.identifier was null or undefined when calling coreTokensViewKeyRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/tokens/{identifier}/view_key/`.replace(`{${\"identifier\"}}`, encodeURIComponent(String(requestParameters.identifier))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => TokenViewFromJSON(jsonValue));\n });\n }\n /**\n * Return token key and log access\n */\n coreTokensViewKeyRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTokensViewKeyRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Convert data into a blueprint, validate it and apply it\n */\n coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.transactionApplicationRequest === null || requestParameters.transactionApplicationRequest === undefined) {\n throw new runtime.RequiredError('transactionApplicationRequest', 'Required parameter requestParameters.transactionApplicationRequest was null or undefined when calling coreTransactionalApplicationsUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/transactional/applications/`,\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: TransactionApplicationRequestToJSON(requestParameters.transactionApplicationRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => TransactionApplicationResponseFromJSON(jsonValue));\n });\n }\n /**\n * Convert data into a blueprint, validate it and apply it\n */\n coreTransactionalApplicationsUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreTransactionalApplicationsUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * UserConsent Viewset\n */\n coreUserConsentDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUserConsentDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/user_consent/{id}/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * UserConsent Viewset\n */\n coreUserConsentDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreUserConsentDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * UserConsent Viewset\n */\n coreUserConsentListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.application !== undefined) {\n queryParameters['application'] = requestParameters.application;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n if (requestParameters.user !== undefined) {\n queryParameters['user'] = requestParameters.user;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/user_consent/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedUserConsentListFromJSON(jsonValue));\n });\n }\n /**\n * UserConsent Viewset\n */\n coreUserConsentList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUserConsentListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * UserConsent Viewset\n */\n coreUserConsentRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUserConsentRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/user_consent/{id}/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserConsentFromJSON(jsonValue));\n });\n }\n /**\n * UserConsent Viewset\n */\n coreUserConsentRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUserConsentRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreUserConsentUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUserConsentUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/user_consent/{id}/used_by/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreUserConsentUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUserConsentUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * User Viewset\n */\n coreUsersCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.userRequest === null || requestParameters.userRequest === undefined) {\n throw new runtime.RequiredError('userRequest', 'Required parameter requestParameters.userRequest was null or undefined when calling coreUsersCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: UserRequestToJSON(requestParameters.userRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));\n });\n }\n /**\n * User Viewset\n */\n coreUsersCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * User Viewset\n */\n coreUsersDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * User Viewset\n */\n coreUsersDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreUsersDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Impersonate a user\n */\n coreUsersImpersonateCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersImpersonateCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/impersonate/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Impersonate a user\n */\n coreUsersImpersonateCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreUsersImpersonateCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * End Impersonation a user\n */\n coreUsersImpersonateEndRetrieveRaw(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/impersonate_end/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * End Impersonation a user\n */\n coreUsersImpersonateEndRetrieve(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreUsersImpersonateEndRetrieveRaw(initOverrides);\n });\n }\n /**\n * User Viewset\n */\n coreUsersListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.attributes !== undefined) {\n queryParameters['attributes'] = requestParameters.attributes;\n }\n if (requestParameters.email !== undefined) {\n queryParameters['email'] = requestParameters.email;\n }\n if (requestParameters.groupsByName) {\n queryParameters['groups_by_name'] = requestParameters.groupsByName;\n }\n if (requestParameters.groupsByPk) {\n queryParameters['groups_by_pk'] = requestParameters.groupsByPk;\n }\n if (requestParameters.includeGroups !== undefined) {\n queryParameters['include_groups'] = requestParameters.includeGroups;\n }\n if (requestParameters.isActive !== undefined) {\n queryParameters['is_active'] = requestParameters.isActive;\n }\n if (requestParameters.isSuperuser !== undefined) {\n queryParameters['is_superuser'] = requestParameters.isSuperuser;\n }\n if (requestParameters.name !== undefined) {\n queryParameters['name'] = requestParameters.name;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.path !== undefined) {\n queryParameters['path'] = requestParameters.path;\n }\n if (requestParameters.pathStartswith !== undefined) {\n queryParameters['path_startswith'] = requestParameters.pathStartswith;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n if (requestParameters.type) {\n queryParameters['type'] = requestParameters.type;\n }\n if (requestParameters.username !== undefined) {\n queryParameters['username'] = requestParameters.username;\n }\n if (requestParameters.uuid !== undefined) {\n queryParameters['uuid'] = requestParameters.uuid;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedUserListFromJSON(jsonValue));\n });\n }\n /**\n * User Viewset\n */\n coreUsersList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get information about current user\n */\n coreUsersMeRetrieveRaw(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/me/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => SessionUserFromJSON(jsonValue));\n });\n }\n /**\n * Get information about current user\n */\n coreUsersMeRetrieve(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersMeRetrieveRaw(initOverrides);\n return yield response.value();\n });\n }\n /**\n * User metrics per 1h\n */\n coreUsersMetricsRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersMetricsRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/metrics/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserMetricsFromJSON(jsonValue));\n });\n }\n /**\n * User metrics per 1h\n */\n coreUsersMetricsRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersMetricsRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * User Viewset\n */\n coreUsersPartialUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersPartialUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: PatchedUserRequestToJSON(requestParameters.patchedUserRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));\n });\n }\n /**\n * User Viewset\n */\n coreUsersPartialUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersPartialUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get all user paths\n */\n coreUsersPathsRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/paths/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserPathFromJSON(jsonValue));\n });\n }\n /**\n * Get all user paths\n */\n coreUsersPathsRetrieve(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersPathsRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Create a temporary link that a user can use to recover their accounts\n */\n coreUsersRecoveryCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersRecoveryCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/recovery/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LinkFromJSON(jsonValue));\n });\n }\n /**\n * Create a temporary link that a user can use to recover their accounts\n */\n coreUsersRecoveryCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersRecoveryCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Create a temporary link that a user can use to recover their accounts\n */\n coreUsersRecoveryEmailCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.emailStage === null || requestParameters.emailStage === undefined) {\n throw new runtime.RequiredError('emailStage', 'Required parameter requestParameters.emailStage was null or undefined when calling coreUsersRecoveryEmailCreate.');\n }\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersRecoveryEmailCreate.');\n }\n const queryParameters = {};\n if (requestParameters.emailStage !== undefined) {\n queryParameters['email_stage'] = requestParameters.emailStage;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/recovery_email/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Create a temporary link that a user can use to recover their accounts\n */\n coreUsersRecoveryEmailCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreUsersRecoveryEmailCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * User Viewset\n */\n coreUsersRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));\n });\n }\n /**\n * User Viewset\n */\n coreUsersRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Create a new user account that is marked as a service account\n */\n coreUsersServiceAccountCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.userServiceAccountRequest === null || requestParameters.userServiceAccountRequest === undefined) {\n throw new runtime.RequiredError('userServiceAccountRequest', 'Required parameter requestParameters.userServiceAccountRequest was null or undefined when calling coreUsersServiceAccountCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/service_account/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: UserServiceAccountRequestToJSON(requestParameters.userServiceAccountRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserServiceAccountResponseFromJSON(jsonValue));\n });\n }\n /**\n * Create a new user account that is marked as a service account\n */\n coreUsersServiceAccountCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersServiceAccountCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Set password for user\n */\n coreUsersSetPasswordCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersSetPasswordCreate.');\n }\n if (requestParameters.userPasswordSetRequest === null || requestParameters.userPasswordSetRequest === undefined) {\n throw new runtime.RequiredError('userPasswordSetRequest', 'Required parameter requestParameters.userPasswordSetRequest was null or undefined when calling coreUsersSetPasswordCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/set_password/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: UserPasswordSetRequestToJSON(requestParameters.userPasswordSetRequest),\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * Set password for user\n */\n coreUsersSetPasswordCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.coreUsersSetPasswordCreateRaw(requestParameters, initOverrides);\n });\n }\n /**\n * User Viewset\n */\n coreUsersUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersUpdate.');\n }\n if (requestParameters.userRequest === null || requestParameters.userRequest === undefined) {\n throw new runtime.RequiredError('userRequest', 'Required parameter requestParameters.userRequest was null or undefined when calling coreUsersUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: UserRequestToJSON(requestParameters.userRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => UserFromJSON(jsonValue));\n });\n }\n /**\n * User Viewset\n */\n coreUsersUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreUsersUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.id === null || requestParameters.id === undefined) {\n throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling coreUsersUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/core/users/{id}/used_by/`.replace(`{${\"id\"}}`, encodeURIComponent(String(requestParameters.id))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n coreUsersUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.coreUsersUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n}\n/**\n * @export\n */\nexport const CoreTokensListIntentEnum = {\n Api: 'api',\n AppPassword: 'app_password',\n Recovery: 'recovery',\n Verification: 'verification',\n UnknownDefaultOpenApi: '11184809'\n};\n/**\n * @export\n */\nexport const CoreUsersListTypeEnum = {\n External: 'external',\n Internal: 'internal',\n InternalServiceAccount: 'internal_service_account',\n ServiceAccount: 'service_account',\n UnknownDefaultOpenApi: '11184809'\n};\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport * as runtime from '../runtime';\nimport { InstallIDFromJSON, LicenseFromJSON, LicenseForecastFromJSON, LicenseRequestToJSON, LicenseSummaryFromJSON, PaginatedLicenseListFromJSON, PatchedLicenseRequestToJSON, UsedByFromJSON, } from '../models';\n/**\n *\n */\nexport class EnterpriseApi extends runtime.BaseAPI {\n /**\n * License Viewset\n */\n enterpriseLicenseCreateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.licenseRequest === null || requestParameters.licenseRequest === undefined) {\n throw new runtime.RequiredError('licenseRequest', 'Required parameter requestParameters.licenseRequest was null or undefined when calling enterpriseLicenseCreate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: LicenseRequestToJSON(requestParameters.licenseRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LicenseFromJSON(jsonValue));\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseCreate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseCreateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseDestroyRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.licenseUuid === null || requestParameters.licenseUuid === undefined) {\n throw new runtime.RequiredError('licenseUuid', 'Required parameter requestParameters.licenseUuid was null or undefined when calling enterpriseLicenseDestroy.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/{license_uuid}/`.replace(`{${\"license_uuid\"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),\n method: 'DELETE',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.VoidApiResponse(response);\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseDestroy(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.enterpriseLicenseDestroyRaw(requestParameters, initOverrides);\n });\n }\n /**\n * Forecast how many users will be required in a year\n */\n enterpriseLicenseForecastRetrieveRaw(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/forecast/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LicenseForecastFromJSON(jsonValue));\n });\n }\n /**\n * Forecast how many users will be required in a year\n */\n enterpriseLicenseForecastRetrieve(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseForecastRetrieveRaw(initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get install_id\n */\n enterpriseLicenseInstallIdRetrieveRaw(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/install_id/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => InstallIDFromJSON(jsonValue));\n });\n }\n /**\n * Get install_id\n */\n enterpriseLicenseInstallIdRetrieve(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseInstallIdRetrieveRaw(initOverrides);\n return yield response.value();\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.name !== undefined) {\n queryParameters['name'] = requestParameters.name;\n }\n if (requestParameters.ordering !== undefined) {\n queryParameters['ordering'] = requestParameters.ordering;\n }\n if (requestParameters.page !== undefined) {\n queryParameters['page'] = requestParameters.page;\n }\n if (requestParameters.pageSize !== undefined) {\n queryParameters['page_size'] = requestParameters.pageSize;\n }\n if (requestParameters.search !== undefined) {\n queryParameters['search'] = requestParameters.search;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedLicenseListFromJSON(jsonValue));\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseList(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicensePartialUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.licenseUuid === null || requestParameters.licenseUuid === undefined) {\n throw new runtime.RequiredError('licenseUuid', 'Required parameter requestParameters.licenseUuid was null or undefined when calling enterpriseLicensePartialUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/{license_uuid}/`.replace(`{${\"license_uuid\"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),\n method: 'PATCH',\n headers: headerParameters,\n query: queryParameters,\n body: PatchedLicenseRequestToJSON(requestParameters.patchedLicenseRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LicenseFromJSON(jsonValue));\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicensePartialUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicensePartialUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.licenseUuid === null || requestParameters.licenseUuid === undefined) {\n throw new runtime.RequiredError('licenseUuid', 'Required parameter requestParameters.licenseUuid was null or undefined when calling enterpriseLicenseRetrieve.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/{license_uuid}/`.replace(`{${\"license_uuid\"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LicenseFromJSON(jsonValue));\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseRetrieve(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get the total license status\n */\n enterpriseLicenseSummaryRetrieveRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n if (requestParameters.cached !== undefined) {\n queryParameters['cached'] = requestParameters.cached;\n }\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/summary/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LicenseSummaryFromJSON(jsonValue));\n });\n }\n /**\n * Get the total license status\n */\n enterpriseLicenseSummaryRetrieve(requestParameters = {}, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseSummaryRetrieveRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseUpdateRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.licenseUuid === null || requestParameters.licenseUuid === undefined) {\n throw new runtime.RequiredError('licenseUuid', 'Required parameter requestParameters.licenseUuid was null or undefined when calling enterpriseLicenseUpdate.');\n }\n if (requestParameters.licenseRequest === null || requestParameters.licenseRequest === undefined) {\n throw new runtime.RequiredError('licenseRequest', 'Required parameter requestParameters.licenseRequest was null or undefined when calling enterpriseLicenseUpdate.');\n }\n const queryParameters = {};\n const headerParameters = {};\n headerParameters['Content-Type'] = 'application/json';\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/{license_uuid}/`.replace(`{${\"license_uuid\"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),\n method: 'PUT',\n headers: headerParameters,\n query: queryParameters,\n body: LicenseRequestToJSON(requestParameters.licenseRequest),\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => LicenseFromJSON(jsonValue));\n });\n }\n /**\n * License Viewset\n */\n enterpriseLicenseUpdate(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseUpdateRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n enterpriseLicenseUsedByListRaw(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n if (requestParameters.licenseUuid === null || requestParameters.licenseUuid === undefined) {\n throw new runtime.RequiredError('licenseUuid', 'Required parameter requestParameters.licenseUuid was null or undefined when calling enterpriseLicenseUsedByList.');\n }\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/enterprise/license/{license_uuid}/used_by/`.replace(`{${\"license_uuid\"}}`, encodeURIComponent(String(requestParameters.licenseUuid))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));\n });\n }\n /**\n * Get a list of all objects that use this object\n */\n enterpriseLicenseUsedByList(requestParameters, initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.enterpriseLicenseUsedByListRaw(requestParameters, initOverrides);\n return yield response.value();\n });\n }\n}\n", "/* tslint:disable */\n/* eslint-disable */\n/**\n * authentik\n * Making authentication simple.\n *\n * The version of the OpenAPI document: 2024.6.3\n * Contact: hello@goauthentik.io\n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport * as runtime from '../runtime';\nimport { ConfigFromJSON, } from '../models';\n/**\n *\n */\nexport class RootApi extends runtime.BaseAPI {\n /**\n * Retrieve public configuration options\n */\n rootConfigRetrieveRaw(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const queryParameters = {};\n const headerParameters = {};\n if (this.configuration && this.configuration.accessToken) {\n const token = this.configuration.accessToken;\n const tokenString = yield token(\"authentik\", []);\n if (tokenString) {\n headerParameters[\"Authorization\"] = `Bearer ${tokenString}`;\n }\n }\n const response = yield this.request({\n path: `/root/config/`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n return new runtime.JSONApiResponse(response, (jsonValue) => ConfigFromJSON(jsonValue));\n });\n }\n /**\n * Retrieve public configuration options\n */\n rootConfigRetrieve(initOverrides) {\n return __awaiter(this, void 0, void 0, function* () {\n const response = yield this.rootConfigRetrieveRaw(initOverrides);\n return yield response.value();\n });\n }\n}\n", "import { Config, ConfigFromJSON, CurrentBrand, CurrentBrandFromJSON } from \"@goauthentik/api\";\n\nexport interface GlobalAuthentik {\n _converted?: boolean;\n locale?: string;\n flow?: {\n layout: string;\n };\n config: Config;\n brand: CurrentBrand;\n versionFamily: string;\n versionSubdomain: string;\n build: string;\n}\n\nexport interface AuthentikWindow {\n authentik: GlobalAuthentik;\n}\n\nexport function globalAK(): GlobalAuthentik {\n const ak = (window as unknown as AuthentikWindow).authentik;\n if (ak && !ak._converted) {\n ak._converted = true;\n ak.brand = CurrentBrandFromJSON(ak.brand);\n ak.config = ConfigFromJSON(ak.config);\n }\n if (!ak) {\n return {\n config: ConfigFromJSON({\n capabilities: [],\n }),\n brand: CurrentBrandFromJSON({\n ui_footer_links: [],\n }),\n versionFamily: \"\",\n versionSubdomain: \"\",\n build: \"\",\n };\n }\n return ak;\n}\n\nexport function docLink(path: string): string {\n const ak = globalAK();\n // Default case or beta build which should always point to latest\n if (!ak || ak.build !== \"\") {\n return `https://goauthentik.io${path}`;\n }\n return `https://${ak.versionSubdomain}.goauthentik.io${path}`;\n}\n", "export const SECONDARY_CLASS = \"pf-m-secondary\";\nexport const SUCCESS_CLASS = \"pf-m-success\";\nexport const ERROR_CLASS = \"pf-m-danger\";\nexport const PROGRESS_CLASS = \"pf-m-in-progress\";\nexport const CURRENT_CLASS = \"pf-m-current\";\nexport const VERSION = \"2024.8.3\";\nexport const TITLE_DEFAULT = \"authentik\";\nexport const ROUTE_SEPARATOR = \";\";\n\nexport const EVENT_REFRESH = \"ak-refresh\";\nexport const EVENT_NOTIFICATION_DRAWER_TOGGLE = \"ak-notification-toggle\";\nexport const EVENT_API_DRAWER_TOGGLE = \"ak-api-drawer-toggle\";\nexport const EVENT_FLOW_INSPECTOR_TOGGLE = \"ak-flow-inspector-toggle\";\nexport const EVENT_SIDEBAR_TOGGLE = \"ak-sidebar-toggle\";\nexport const EVENT_WS_MESSAGE = \"ak-ws-message\";\nexport const EVENT_FLOW_ADVANCE = \"ak-flow-advance\";\nexport const EVENT_LOCALE_CHANGE = \"ak-locale-change\";\nexport const EVENT_LOCALE_REQUEST = \"ak-locale-request\";\nexport const EVENT_REQUEST_POST = \"ak-request-post\";\nexport const EVENT_MESSAGE = \"ak-message\";\nexport const EVENT_THEME_CHANGE = \"ak-theme-change\";\nexport const EVENT_REFRESH_ENTERPRISE = \"ak-refresh-enterprise\";\n\nexport const WS_MSG_TYPE_MESSAGE = \"message\";\nexport const WS_MSG_TYPE_REFRESH = \"refresh\";\n\nexport const LOCALSTORAGE_AUTHENTIK_KEY = \"authentik-local-settings\";\n", "/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nconst NODE_MODE = false;\n\n// Allows minifiers to rename references to globalThis\nconst global = globalThis;\n\n/**\n * Whether the current browser supports `adoptedStyleSheets`.\n */\nexport const supportsAdoptingStyleSheets: boolean =\n global.ShadowRoot &&\n (global.ShadyCSS === undefined || global.ShadyCSS.nativeShadow) &&\n 'adoptedStyleSheets' in Document.prototype &&\n 'replace' in CSSStyleSheet.prototype;\n\n/**\n * A CSSResult or native CSSStyleSheet.\n *\n * In browsers that support constructible CSS style sheets, CSSStyleSheet\n * object can be used for styling along side CSSResult from the `css`\n * template tag.\n */\nexport type CSSResultOrNative = CSSResult | CSSStyleSheet;\n\nexport type CSSResultArray = Array;\n\n/**\n * A single CSSResult, CSSStyleSheet, or an array or nested arrays of those.\n */\nexport type CSSResultGroup = CSSResultOrNative | CSSResultArray;\n\nconst constructionToken = Symbol();\n\nconst cssTagCache = new WeakMap();\n\n/**\n * A container for a string of CSS text, that may be used to create a CSSStyleSheet.\n *\n * CSSResult is the return value of `css`-tagged template literals and\n * `unsafeCSS()`. In order to ensure that CSSResults are only created via the\n * `css` tag and `unsafeCSS()`, CSSResult cannot be constructed directly.\n */\nexport class CSSResult {\n // This property needs to remain unminified.\n ['_$cssResult$'] = true;\n readonly cssText: string;\n private _styleSheet?: CSSStyleSheet;\n private _strings: TemplateStringsArray | undefined;\n\n private constructor(\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ) {\n if (safeToken !== constructionToken) {\n throw new Error(\n 'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.'\n );\n }\n this.cssText = cssText;\n this._strings = strings;\n }\n\n // This is a getter so that it's lazy. In practice, this means stylesheets\n // are not created until the first element instance is made.\n get styleSheet(): CSSStyleSheet | undefined {\n // If `supportsAdoptingStyleSheets` is true then we assume CSSStyleSheet is\n // constructable.\n let styleSheet = this._styleSheet;\n const strings = this._strings;\n if (supportsAdoptingStyleSheets && styleSheet === undefined) {\n const cacheable = strings !== undefined && strings.length === 1;\n if (cacheable) {\n styleSheet = cssTagCache.get(strings);\n }\n if (styleSheet === undefined) {\n (this._styleSheet = styleSheet = new CSSStyleSheet()).replaceSync(\n this.cssText\n );\n if (cacheable) {\n cssTagCache.set(strings, styleSheet);\n }\n }\n }\n return styleSheet;\n }\n\n toString(): string {\n return this.cssText;\n }\n}\n\ntype ConstructableCSSResult = CSSResult & {\n new (\n cssText: string,\n strings: TemplateStringsArray | undefined,\n safeToken: symbol\n ): CSSResult;\n};\n\nconst textFromCSSResult = (value: CSSResultGroup | number) => {\n // This property needs to remain unminified.\n if ((value as CSSResult)['_$cssResult$'] === true) {\n return (value as CSSResult).cssText;\n } else if (typeof value === 'number') {\n return value;\n } else {\n throw new Error(\n `Value passed to 'css' function must be a 'css' function result: ` +\n `${value}. Use 'unsafeCSS' to pass non-literal values, but take care ` +\n `to ensure page security.`\n );\n }\n};\n\n/**\n * Wrap a value for interpolation in a {@linkcode css} tagged template literal.\n *\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n */\nexport const unsafeCSS = (value: unknown) =>\n new (CSSResult as ConstructableCSSResult)(\n typeof value === 'string' ? value : String(value),\n undefined,\n constructionToken\n );\n\n/**\n * A template literal tag which can be used with LitElement's\n * {@linkcode LitElement.styles} property to set element styles.\n *\n * For security reasons, only literal string values and number may be used in\n * embedded expressions. To incorporate non-literal values {@linkcode unsafeCSS}\n * may be used inside an expression.\n */\nexport const css = (\n strings: TemplateStringsArray,\n ...values: (CSSResultGroup | number)[]\n): CSSResult => {\n const cssText =\n strings.length === 1\n ? strings[0]\n : values.reduce(\n (acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1],\n strings[0]\n );\n return new (CSSResult as ConstructableCSSResult)(\n cssText,\n strings,\n constructionToken\n );\n};\n\n/**\n * Applies the given styles to a `shadowRoot`. When Shadow DOM is\n * available but `adoptedStyleSheets` is not, styles are appended to the\n * `shadowRoot` to [mimic spec behavior](https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets).\n * Note, when shimming is used, any styles that are subsequently placed into\n * the shadowRoot should be placed *before* any shimmed adopted styles. This\n * will match spec behavior that gives adopted sheets precedence over styles in\n * shadowRoot.\n */\nexport const adoptStyles = (\n renderRoot: ShadowRoot,\n styles: Array\n) => {\n if (supportsAdoptingStyleSheets) {\n (renderRoot as ShadowRoot).adoptedStyleSheets = styles.map((s) =>\n s instanceof CSSStyleSheet ? s : s.styleSheet!\n );\n } else {\n for (const s of styles) {\n const style = document.createElement('style');\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const nonce = (global as any)['litNonce'];\n if (nonce !== undefined) {\n style.setAttribute('nonce', nonce);\n }\n style.textContent = (s as CSSResult).cssText;\n renderRoot.appendChild(style);\n }\n }\n};\n\nconst cssResultFromStyleSheet = (sheet: CSSStyleSheet) => {\n let cssText = '';\n for (const rule of sheet.cssRules) {\n cssText += rule.cssText;\n }\n return unsafeCSS(cssText);\n};\n\nexport const getCompatibleStyle =\n supportsAdoptingStyleSheets ||\n (NODE_MODE && global.CSSStyleSheet === undefined)\n ? (s: CSSResultOrNative) => s\n : (s: CSSResultOrNative) =>\n s instanceof CSSStyleSheet ? cssResultFromStyleSheet(s) : s;\n", "/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Use this module if you want to create your own base class extending\n * {@link ReactiveElement}.\n * @packageDocumentation\n */\n\nimport {\n getCompatibleStyle,\n adoptStyles,\n CSSResultGroup,\n CSSResultOrNative,\n} from './css-tag.js';\nimport type {\n ReactiveController,\n ReactiveControllerHost,\n} from './reactive-controller.js';\n\n// In the Node build, this import will be injected by Rollup:\n// import {HTMLElement, customElements} from '@lit-labs/ssr-dom-shim';\n\nexport * from './css-tag.js';\nexport type {\n ReactiveController,\n ReactiveControllerHost,\n} from './reactive-controller.js';\n\n/**\n * Removes the `readonly` modifier from properties in the union K.\n *\n * This is a safer way to cast a value to a type with a mutable version of a\n * readonly field, than casting to an interface with the field re-declared\n * because it preserves the type of all the fields and warns on typos.\n */\ntype Mutable = Omit & {\n -readonly [P in keyof Pick]: P extends K ? T[P] : never;\n};\n\n// TODO (justinfagnani): Add `hasOwn` here when we ship ES2022\nconst {\n is,\n defineProperty,\n getOwnPropertyDescriptor,\n getOwnPropertyNames,\n getOwnPropertySymbols,\n getPrototypeOf,\n} = Object;\n\nconst NODE_MODE = false;\n\n// Lets a minifier replace globalThis references with a minified name\nconst global = globalThis;\n\nif (NODE_MODE) {\n global.customElements ??= customElements;\n}\n\nconst DEV_MODE = true;\n\nlet issueWarning: (code: string, warning: string) => void;\n\nconst trustedTypes = (global as unknown as {trustedTypes?: {emptyScript: ''}})\n .trustedTypes;\n\n// Temporary workaround for https://crbug.com/993268\n// Currently, any attribute starting with \"on\" is considered to be a\n// TrustedScript source. Such boolean attributes must be set to the equivalent\n// trusted emptyScript value.\nconst emptyStringForBooleanAttribute = trustedTypes\n ? (trustedTypes.emptyScript as unknown as '')\n : '';\n\nconst polyfillSupport = DEV_MODE\n ? global.reactiveElementPolyfillSupportDevMode\n : global.reactiveElementPolyfillSupport;\n\nif (DEV_MODE) {\n // Ensure warnings are issued only 1x, even if multiple versions of Lit\n // are loaded.\n const issuedWarnings: Set = (global.litIssuedWarnings ??=\n new Set());\n\n // Issue a warning, if we haven't already.\n issueWarning = (code: string, warning: string) => {\n warning += ` See https://lit.dev/msg/${code} for more information.`;\n if (!issuedWarnings.has(warning)) {\n console.warn(warning);\n issuedWarnings.add(warning);\n }\n };\n\n issueWarning(\n 'dev-mode',\n `Lit is in dev mode. Not recommended for production!`\n );\n\n // Issue polyfill support warning.\n if (global.ShadyDOM?.inUse && polyfillSupport === undefined) {\n issueWarning(\n 'polyfill-support-missing',\n `Shadow DOM is being polyfilled via \\`ShadyDOM\\` but ` +\n `the \\`polyfill-support\\` module has not been loaded.`\n );\n }\n}\n\n/**\n * Contains types that are part of the unstable debug API.\n *\n * Everything in this API is not stable and may change or be removed in the future,\n * even on patch releases.\n */\n// eslint-disable-next-line @typescript-eslint/no-namespace\nexport namespace ReactiveUnstable {\n /**\n * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,\n * we will emit 'lit-debug' events to window, with live details about the update and render\n * lifecycle. These can be useful for writing debug tooling and visualizations.\n *\n * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,\n * making certain operations that are normally very cheap (like a no-op render) much slower,\n * because we must copy data and dispatch events.\n */\n // eslint-disable-next-line @typescript-eslint/no-namespace\n export namespace DebugLog {\n export type Entry = Update;\n export interface Update {\n kind: 'update';\n }\n }\n}\n\ninterface DebugLoggingWindow {\n // Even in dev mode, we generally don't want to emit these events, as that's\n // another level of cost, so only emit them when DEV_MODE is true _and_ when\n // window.emitLitDebugEvents is true.\n emitLitDebugLogEvents?: boolean;\n}\n\n/**\n * Useful for visualizing and logging insights into what the Lit template system is doing.\n *\n * Compiled out of prod mode builds.\n */\nconst debugLogEvent = DEV_MODE\n ? (event: ReactiveUnstable.DebugLog.Entry) => {\n const shouldEmit = (global as unknown as DebugLoggingWindow)\n .emitLitDebugLogEvents;\n if (!shouldEmit) {\n return;\n }\n global.dispatchEvent(\n new CustomEvent('lit-debug', {\n detail: event,\n })\n );\n }\n : undefined;\n\n/*\n * When using Closure Compiler, JSCompiler_renameProperty(property, object) is\n * replaced at compile time by the munged name for object[property]. We cannot\n * alias this function, so we have to use a small shim that has the same\n * behavior when not compiling.\n */\n/*@__INLINE__*/\nconst JSCompiler_renameProperty =

(\n prop: P,\n _obj: unknown\n): P => prop;\n\n/**\n * Converts property values to and from attribute values.\n */\nexport interface ComplexAttributeConverter {\n /**\n * Called to convert an attribute value to a property\n * value.\n */\n fromAttribute?(value: string | null, type?: TypeHint): Type;\n\n /**\n * Called to convert a property value to an attribute\n * value.\n *\n * It returns unknown instead of string, to be compatible with\n * https://github.com/WICG/trusted-types (and similar efforts).\n */\n toAttribute?(value: Type, type?: TypeHint): unknown;\n}\n\ntype AttributeConverter =\n | ComplexAttributeConverter\n | ((value: string | null, type?: TypeHint) => Type);\n\n/**\n * Defines options for a property accessor.\n */\nexport interface PropertyDeclaration {\n /**\n * When set to `true`, indicates the property is internal private state. The\n * property should not be set by users. When using TypeScript, this property\n * should be marked as `private` or `protected`, and it is also a common\n * practice to use a leading `_` in the name. The property is not added to\n * `observedAttributes`.\n */\n readonly state?: boolean;\n\n /**\n * Indicates how and whether the property becomes an observed attribute.\n * If the value is `false`, the property is not added to `observedAttributes`.\n * If true or absent, the lowercased property name is observed (e.g. `fooBar`\n * becomes `foobar`). If a string, the string value is observed (e.g\n * `attribute: 'foo-bar'`).\n */\n readonly attribute?: boolean | string;\n\n /**\n * Indicates the type of the property. This is used only as a hint for the\n * `converter` to determine how to convert the attribute\n * to/from a property.\n */\n readonly type?: TypeHint;\n\n /**\n * Indicates how to convert the attribute to/from a property. If this value\n * is a function, it is used to convert the attribute value a the property\n * value. If it's an object, it can have keys for `fromAttribute` and\n * `toAttribute`. If no `toAttribute` function is provided and\n * `reflect` is set to `true`, the property value is set directly to the\n * attribute. A default `converter` is used if none is provided; it supports\n * `Boolean`, `String`, `Number`, `Object`, and `Array`. Note,\n * when a property changes and the converter is used to update the attribute,\n * the property is never updated again as a result of the attribute changing,\n * and vice versa.\n */\n readonly converter?: AttributeConverter;\n\n /**\n * Indicates if the property should reflect to an attribute.\n * If `true`, when the property is set, the attribute is set using the\n * attribute name determined according to the rules for the `attribute`\n * property option and the value of the property converted using the rules\n * from the `converter` property option.\n */\n readonly reflect?: boolean;\n\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n\n /**\n * Indicates whether an accessor will be created for this property. By\n * default, an accessor will be generated for this property that requests an\n * update when set. If this flag is `true`, no accessor will be created, and\n * it will be the user's responsibility to call\n * `this.requestUpdate(propertyName, oldValue)` to request an update when\n * the property changes.\n */\n readonly noAccessor?: boolean;\n\n /**\n * Whether this property is wrapping accessors. This is set by `@property`\n * to control the initial value change and reflection logic.\n *\n * @internal\n */\n wrapped?: boolean;\n}\n\n/**\n * Map of properties to PropertyDeclaration options. For each property an\n * accessor is made, and the property is processed according to the\n * PropertyDeclaration options.\n */\nexport interface PropertyDeclarations {\n readonly [key: string]: PropertyDeclaration;\n}\n\ntype PropertyDeclarationMap = Map;\n\ntype AttributeMap = Map;\n\n/**\n * A Map of property keys to values.\n *\n * Takes an optional type parameter T, which when specified as a non-any,\n * non-unknown type, will make the Map more strongly-typed, associating the map\n * keys with their corresponding value type on T.\n *\n * Use `PropertyValues` when overriding ReactiveElement.update() and\n * other lifecycle methods in order to get stronger type-checking on keys\n * and values.\n */\n// This type is conditional so that if the parameter T is not specified, or\n// is `any`, the type will include `Map`. Since T is not\n// given in the uses of PropertyValues in this file, all uses here fallback to\n// meaning `Map`, but if a developer uses\n// `PropertyValues` (or any other value for T) they will get a\n// strongly-typed Map type.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type PropertyValues = T extends object\n ? PropertyValueMap\n : Map;\n\n/**\n * Do not use, instead prefer {@linkcode PropertyValues}.\n */\n// This type must be exported such that JavaScript generated by the Google\n// Closure Compiler can import a type reference.\nexport interface PropertyValueMap extends Map {\n get(k: K): T[K] | undefined;\n set(key: K, value: T[K]): this;\n has(k: K): boolean;\n delete(k: K): boolean;\n}\n\nexport const defaultConverter: ComplexAttributeConverter = {\n toAttribute(value: unknown, type?: unknown): unknown {\n switch (type) {\n case Boolean:\n value = value ? emptyStringForBooleanAttribute : null;\n break;\n case Object:\n case Array:\n // if the value is `null` or `undefined` pass this through\n // to allow removing/no change behavior.\n value = value == null ? value : JSON.stringify(value);\n break;\n }\n return value;\n },\n\n fromAttribute(value: string | null, type?: unknown) {\n let fromValue: unknown = value;\n switch (type) {\n case Boolean:\n fromValue = value !== null;\n break;\n case Number:\n fromValue = value === null ? null : Number(value);\n break;\n case Object:\n case Array:\n // Do *not* generate exception when invalid JSON is set as elements\n // don't normally complain on being mis-configured.\n // TODO(sorvell): Do generate exception in *dev mode*.\n try {\n // Assert to adhere to Bazel's \"must type assert JSON parse\" rule.\n fromValue = JSON.parse(value!) as unknown;\n } catch (e) {\n fromValue = null;\n }\n break;\n }\n return fromValue;\n },\n};\n\nexport interface HasChanged {\n (value: unknown, old: unknown): boolean;\n}\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nexport const notEqual: HasChanged = (value: unknown, old: unknown): boolean =>\n !is(value, old);\n\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: false,\n hasChanged: notEqual,\n};\n\n/**\n * A string representing one of the supported dev mode warning categories.\n */\nexport type WarningKind =\n | 'change-in-update'\n | 'migration'\n | 'async-perform-update';\n\nexport type Initializer = (element: ReactiveElement) => void;\n\n// Temporary, until google3 is on TypeScript 5.2\ndeclare global {\n interface SymbolConstructor {\n readonly metadata: unique symbol;\n }\n}\n\n// Ensure metadata is enabled. TypeScript does not polyfill\n// Symbol.metadata, so we must ensure that it exists.\n(Symbol as {metadata: symbol}).metadata ??= Symbol('metadata');\n\ndeclare global {\n // This is public global API, do not change!\n // eslint-disable-next-line no-var\n var litPropertyMetadata: WeakMap<\n object,\n Map\n >;\n}\n\n// Map from a class's metadata object to property options\n// Note that we must use nullish-coalescing assignment so that we only use one\n// map even if we load multiple version of this module.\nglobal.litPropertyMetadata ??= new WeakMap<\n object,\n Map\n>();\n\n/**\n * Base element class which manages element properties and attributes. When\n * properties change, the `update` method is asynchronously called. This method\n * should be supplied by subclasses to render updates as desired.\n * @noInheritDoc\n */\nexport abstract class ReactiveElement\n // In the Node build, this `extends` clause will be substituted with\n // `(globalThis.HTMLElement ?? HTMLElement)`.\n //\n // This way, we will first prefer any global `HTMLElement` polyfill that the\n // user has assigned, and then fall back to the `HTMLElement` shim which has\n // been imported (see note at the top of this file about how this import is\n // generated by Rollup). Note that the `HTMLElement` variable has been\n // shadowed by this import, so it no longer refers to the global.\n extends HTMLElement\n implements ReactiveControllerHost\n{\n // Note: these are patched in only in DEV_MODE.\n /**\n * Read or set all the enabled warning categories for this class.\n *\n * This property is only used in development builds.\n *\n * @nocollapse\n * @category dev-mode\n */\n static enabledWarnings?: WarningKind[];\n\n /**\n * Enable the given warning category for this class.\n *\n * This method only exists in development builds, so it should be accessed\n * with a guard like:\n *\n * ```ts\n * // Enable for all ReactiveElement subclasses\n * ReactiveElement.enableWarning?.('migration');\n *\n * // Enable for only MyElement and subclasses\n * MyElement.enableWarning?.('migration');\n * ```\n *\n * @nocollapse\n * @category dev-mode\n */\n static enableWarning?: (warningKind: WarningKind) => void;\n\n /**\n * Disable the given warning category for this class.\n *\n * This method only exists in development builds, so it should be accessed\n * with a guard like:\n *\n * ```ts\n * // Disable for all ReactiveElement subclasses\n * ReactiveElement.disableWarning?.('migration');\n *\n * // Disable for only MyElement and subclasses\n * MyElement.disableWarning?.('migration');\n * ```\n *\n * @nocollapse\n * @category dev-mode\n */\n static disableWarning?: (warningKind: WarningKind) => void;\n\n /**\n * Adds an initializer function to the class that is called during instance\n * construction.\n *\n * This is useful for code that runs against a `ReactiveElement`\n * subclass, such as a decorator, that needs to do work for each\n * instance, such as setting up a `ReactiveController`.\n *\n * ```ts\n * const myDecorator = (target: typeof ReactiveElement, key: string) => {\n * target.addInitializer((instance: ReactiveElement) => {\n * // This is run during construction of the element\n * new MyController(instance);\n * });\n * }\n * ```\n *\n * Decorating a field will then cause each instance to run an initializer\n * that adds a controller:\n *\n * ```ts\n * class MyElement extends LitElement {\n * @myDecorator foo;\n * }\n * ```\n *\n * Initializers are stored per-constructor. Adding an initializer to a\n * subclass does not add it to a superclass. Since initializers are run in\n * constructors, initializers will run in order of the class hierarchy,\n * starting with superclasses and progressing to the instance's class.\n *\n * @nocollapse\n */\n static addInitializer(initializer: Initializer) {\n this.__prepare();\n (this._initializers ??= []).push(initializer);\n }\n\n static _initializers?: Initializer[];\n\n /*\n * Due to closure compiler ES6 compilation bugs, @nocollapse is required on\n * all static methods and properties with initializers. Reference:\n * - https://github.com/google/closure-compiler/issues/1776\n */\n\n /**\n * Maps attribute names to properties; for example `foobar` attribute to\n * `fooBar` property. Created lazily on user subclasses when finalizing the\n * class.\n * @nocollapse\n */\n private static __attributeToPropertyMap: AttributeMap;\n\n /**\n * Marks class as having been finalized, which includes creating properties\n * from `static properties`, but does *not* include all properties created\n * from decorators.\n * @nocollapse\n */\n protected static finalized: true | undefined;\n\n /**\n * Memoized list of all element properties, including any superclass\n * properties. Created lazily on user subclasses when finalizing the class.\n *\n * @nocollapse\n * @category properties\n */\n static elementProperties: PropertyDeclarationMap;\n\n /**\n * User-supplied object that maps property names to `PropertyDeclaration`\n * objects containing options for configuring reactive properties. When\n * a reactive property is set the element will update and render.\n *\n * By default properties are public fields, and as such, they should be\n * considered as primarily settable by element users, either via attribute or\n * the property itself.\n *\n * Generally, properties that are changed by the element should be private or\n * protected fields and should use the `state: true` option. Properties\n * marked as `state` do not reflect from the corresponding attribute\n *\n * However, sometimes element code does need to set a public property. This\n * should typically only be done in response to user interaction, and an event\n * should be fired informing the user; for example, a checkbox sets its\n * `checked` property when clicked and fires a `changed` event. Mutating\n * public properties should typically not be done for non-primitive (object or\n * array) properties. In other cases when an element needs to manage state, a\n * private property set with the `state: true` option should be used. When\n * needed, state properties can be initialized via public properties to\n * facilitate complex interactions.\n * @nocollapse\n * @category properties\n */\n static properties: PropertyDeclarations;\n\n /**\n * Memoized list of all element styles.\n * Created lazily on user subclasses when finalizing the class.\n * @nocollapse\n * @category styles\n */\n static elementStyles: Array = [];\n\n /**\n * Array of styles to apply to the element. The styles should be defined\n * using the {@linkcode css} tag function, via constructible stylesheets, or\n * imported from native CSS module scripts.\n *\n * Note on Content Security Policy:\n *\n * Element styles are implemented with `