web: migrate to @goauthentik/api

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-15 21:32:28 +02:00
parent 0344e5d9b3
commit 1d4b941a3b
172 changed files with 183 additions and 172 deletions

11
web/package-lock.json generated
View file

@ -15,6 +15,7 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@fortawesome/fontawesome-free": "^5.15.4",
"@goauthentik/api": "^1629055619.0.0",
"@lingui/cli": "^3.10.2",
"@lingui/core": "^3.10.4",
"@lingui/macro": "^3.10.2",
@ -1743,6 +1744,11 @@
"node": ">=6"
}
},
"node_modules/@goauthentik/api": {
"version": "1629055619.0.0",
"resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-1629055619.0.0.tgz",
"integrity": "sha512-FQR1hoYC8hEGAm/oHC6VPoB/T8zb+V7pccx4LRJlKo8VxdsRAxgGn9nm/5h/1zIg8VmuRQqsXFNQMRT86nzyjw=="
},
"node_modules/@humanwhocodes/config-array": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz",
@ -9236,6 +9242,11 @@
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz",
"integrity": "sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg=="
},
"@goauthentik/api": {
"version": "1629055619.0.0",
"resolved": "https://registry.npmjs.org/@goauthentik/api/-/api-1629055619.0.0.tgz",
"integrity": "sha512-FQR1hoYC8hEGAm/oHC6VPoB/T8zb+V7pccx4LRJlKo8VxdsRAxgGn9nm/5h/1zIg8VmuRQqsXFNQMRT86nzyjw=="
},
"@humanwhocodes/config-array": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz",

View file

@ -46,6 +46,7 @@
"@babel/preset-env": "^7.15.0",
"@babel/preset-typescript": "^7.15.0",
"@fortawesome/fontawesome-free": "^5.15.4",
"@goauthentik/api": "^1629055619.0.0",
"@lingui/cli": "^3.10.2",
"@lingui/core": "^3.10.4",
"@lingui/macro": "^3.10.2",
@ -63,7 +64,6 @@
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"@webcomponents/webcomponentsjs": "^2.6.0",
"authentik-api": "file:api",
"babel-plugin-macros": "^3.1.0",
"base64-js": "^1.5.1",
"chart.js": "^3.5.0",

View file

@ -1,4 +1,4 @@
import { Config, Configuration, CoreApi, CurrentTenant, Middleware, ResponseContext, RootApi, Tenant } from "authentik-api";
import { Config, Configuration, CoreApi, CurrentTenant, Middleware, ResponseContext, RootApi, Tenant } from "@goauthentik/api";
import { getCookie } from "../utils";
import { APIMiddleware } from "../elements/notifications/APIDrawer";
import { MessageMiddleware } from "../elements/messages/Middleware";

View file

@ -1,4 +1,4 @@
import { Event } from "authentik-api";
import { Event } from "@goauthentik/api";
export interface EventUser {
pk: number;

View file

@ -4,7 +4,7 @@ import { VERSION } from "../constants";
import { SentryIgnoredError } from "../common/errors";
import { me } from "./Users";
import { config } from "./Config";
import { Config } from "authentik-api";
import { Config } from "@goauthentik/api";
export const TAG_SENTRY_COMPONENT = "authentik.component";
export const TAG_SENTRY_CAPABILITIES = "authentik.capabilities";

View file

@ -1,4 +1,4 @@
import { CoreApi, SessionUser } from "authentik-api";
import { CoreApi, SessionUser } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "./Config";
let globalMePromise: Promise<SessionUser>;

View file

@ -1,5 +1,5 @@
import { customElement, property } from "lit-element";
import { CoreApi } from "authentik-api";
import { CoreApi } from "@goauthentik/api";
import { PRIMARY_CLASS, SUCCESS_CLASS } from "../../constants";
import { DEFAULT_CONFIG } from "../../api/Config";
import { ActionButton } from "./ActionButton";

View file

@ -1,6 +1,6 @@
import { customElement } from "lit-element";
import { ChartData } from "chart.js";
import { AdminApi, LoginMetrics } from "authentik-api";
import { AdminApi, LoginMetrics } from "@goauthentik/api";
import { AKChart } from "./Chart";
import { DEFAULT_CONFIG } from "../../api/Config";

View file

@ -1,5 +1,5 @@
import { customElement, property } from "lit-element";
import { Coordinate, CoreApi } from "authentik-api";
import { Coordinate, CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { AKChart } from "./Chart";
import { ChartData } from "chart.js";

View file

@ -1,5 +1,5 @@
import { customElement, property } from "lit-element";
import { CoreApi, UserMetrics } from "authentik-api";
import { CoreApi, UserMetrics } from "@goauthentik/api";
import { AKChart } from "./Chart";
import { DEFAULT_CONFIG } from "../../api/Config";
import { ChartData } from "chart.js";

View file

@ -2,7 +2,7 @@ import { t } from "@lingui/macro";
import { customElement, html, property, TemplateResult } from "lit-element";
import { AKResponse } from "../../api/Client";
import { Table, TableColumn } from "../table/Table";
import { Event, EventsApi } from "authentik-api";
import { Event, EventsApi } from "@goauthentik/api";
import "../Tabs";
import "../buttons/ModalButton";

View file

@ -2,7 +2,7 @@ import { t } from "@lingui/macro";
import { customElement, html, property, TemplateResult } from "lit-element";
import { AKResponse } from "../../api/Client";
import { Table, TableColumn } from "../table/Table";
import { Event, EventsApi } from "authentik-api";
import { Event, EventsApi } from "@goauthentik/api";
import "../Tabs";
import "../buttons/ModalButton";

View file

@ -5,7 +5,7 @@ import { ModalButton } from "../buttons/ModalButton";
import { MessageLevel } from "../messages/Message";
import { showMessage } from "../messages/MessageContainer";
import "../buttons/SpinnerButton";
import { UsedBy, UsedByActionEnum } from "authentik-api";
import { UsedBy, UsedByActionEnum } from "@goauthentik/api";
import PFList from "@patternfly/patternfly/components/List/list.css";
import { until } from "lit-html/directives/until";
import { Table, TableColumn } from "../table/Table";

View file

@ -5,7 +5,7 @@ import { ModalButton } from "../buttons/ModalButton";
import { MessageLevel } from "../messages/Message";
import { showMessage } from "../messages/MessageContainer";
import "../buttons/SpinnerButton";
import { UsedBy, UsedByActionEnum } from "authentik-api";
import { UsedBy, UsedByActionEnum } from "@goauthentik/api";
import PFList from "@patternfly/patternfly/components/List/list.css";
import { until } from "lit-html/directives/until";

View file

@ -22,7 +22,7 @@ import PFInputGroup from "@patternfly/patternfly/components/InputGroup/input-gro
import { MessageLevel } from "../messages/Message";
import { IronFormElement } from "@polymer/iron-form/iron-form";
import { camelToSnake, convertToSlug } from "../../utils";
import { ValidationError } from "authentik-api";
import { ValidationError } from "@goauthentik/api";
import { EVENT_REFRESH } from "../../constants";
export class APIError extends Error {

View file

@ -2,7 +2,7 @@ import { customElement, LitElement, CSSResult, property, css } from "lit-element
import { TemplateResult, html } from "lit-html";
import PFForm from "@patternfly/patternfly/components/Form/form.css";
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css";
import { ErrorDetail } from "authentik-api";
import { ErrorDetail } from "@goauthentik/api";
@customElement("ak-form-element")
export class FormElement extends LitElement {

View file

@ -1,4 +1,4 @@
import { Middleware, ResponseContext } from "authentik-api";
import { Middleware, ResponseContext } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { MessageLevel } from "./Message";
import { showMessage } from "./MessageContainer";

View file

@ -1,4 +1,4 @@
import { Middleware, ResponseContext } from "authentik-api";
import { Middleware, ResponseContext } from "@goauthentik/api";
import {
css,
CSSResult,

View file

@ -8,7 +8,7 @@ import {
property,
TemplateResult,
} from "lit-element";
import { EventsApi, Notification } from "authentik-api";
import { EventsApi, Notification } from "@goauthentik/api";
import { AKResponse } from "../../api/Client";
import { DEFAULT_CONFIG } from "../../api/Config";
import PFBase from "@patternfly/patternfly/patternfly-base.css";

View file

@ -5,7 +5,7 @@ import { Table, TableColumn } from "../table/Table";
import "../forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants";
import { ExpiringBaseGrantModel, Oauth2Api } from "authentik-api";
import { ExpiringBaseGrantModel, Oauth2Api } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-user-oauth-code-list")

View file

@ -6,7 +6,7 @@ import PFFlex from "@patternfly/patternfly/layouts/Flex/flex.css";
import "../forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants";
import { RefreshTokenModel, Oauth2Api, ExpiringBaseGrantModel } from "authentik-api";
import { RefreshTokenModel, Oauth2Api, ExpiringBaseGrantModel } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-user-oauth-refresh-list")

View file

@ -14,7 +14,7 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
import AKGlobal from "../../authentik.css";
import { configureSentry } from "../../api/Sentry";
import { CurrentTenant } from "authentik-api";
import { CurrentTenant } from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
import { EVENT_SIDEBAR_TOGGLE } from "../../constants";
import { tenant } from "../../api/Config";

View file

@ -5,7 +5,7 @@ import { Table, TableColumn } from "../table/Table";
import "../forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants";
import { CoreApi, AuthenticatedSession } from "authentik-api";
import { CoreApi, AuthenticatedSession } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-user-session-list")

View file

@ -5,7 +5,7 @@ import { Table, TableColumn } from "../table/Table";
import "../forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants";
import { CoreApi, UserConsent } from "authentik-api";
import { CoreApi, UserConsent } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-user-consent-list")

View file

@ -43,7 +43,7 @@ import {
FlowsApi,
RedirectChallenge,
ShellChallenge,
} from "authentik-api";
} from "@goauthentik/api";
import { DEFAULT_CONFIG, tenant } from "../api/Config";
import { ifDefined } from "lit-html/directives/if-defined";
import { until } from "lit-html/directives/until";

View file

@ -1,4 +1,4 @@
import { AccessDeniedChallenge, FlowChallengeResponseRequest } from "authentik-api";
import { AccessDeniedChallenge, FlowChallengeResponseRequest } from "@goauthentik/api";
import { CSSResult, customElement, html, TemplateResult } from "lit-element";
import { BaseStage } from "../stages/base";
import PFLogin from "@patternfly/patternfly/components/Login/login.css";

View file

@ -2,7 +2,7 @@ import { t } from "@lingui/macro";
import {
PlexAuthenticationChallenge,
PlexAuthenticationChallengeResponseRequest,
} from "authentik-api";
} from "@goauthentik/api";
import PFLogin from "@patternfly/patternfly/components/Login/login.css";
import PFForm from "@patternfly/patternfly/components/Form/form.css";
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.css";
@ -15,7 +15,7 @@ import { html, TemplateResult } from "lit-html";
import { BaseStage } from "../../stages/base";
import { PlexAPIClient, popupCenterScreen } from "./API";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { SourcesApi } from "authentik-api";
import { SourcesApi } from "@goauthentik/api";
import { showMessage } from "../../../elements/messages/MessageContainer";
import { MessageLevel } from "../../../elements/messages/Message";

View file

@ -15,7 +15,7 @@ import {
AuthenticatorDuoChallenge,
AuthenticatorDuoChallengeResponseRequest,
StagesApi,
} from "authentik-api";
} from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { ifDefined } from "lit-html/directives/if-defined";

View file

@ -14,7 +14,7 @@ import "../../FormStatic";
import {
AuthenticatorStaticChallenge,
AuthenticatorStaticChallengeResponseRequest,
} from "authentik-api";
} from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
export const STATIC_TOKEN_STYLE = css`

View file

@ -17,7 +17,7 @@ import { MessageLevel } from "../../../elements/messages/Message";
import {
AuthenticatorTOTPChallenge,
AuthenticatorTOTPChallengeResponseRequest,
} from "authentik-api";
} from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-stage-authenticator-totp")

View file

@ -16,7 +16,7 @@ import {
AuthenticatorValidationChallenge,
AuthenticatorValidationChallengeResponseRequest,
DeviceChallenge,
} from "authentik-api";
} from "@goauthentik/api";
export enum DeviceClasses {
STATIC = "static",

View file

@ -17,7 +17,7 @@ import {
AuthenticatorValidationChallenge,
AuthenticatorValidationChallengeResponseRequest,
DeviceChallenge,
} from "authentik-api";
} from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-stage-authenticator-validate-code")

View file

@ -16,7 +16,7 @@ import {
AuthenticatorValidationChallenge,
AuthenticatorValidationChallengeResponseRequest,
DeviceChallenge,
} from "authentik-api";
} from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-stage-authenticator-validate-duo")

View file

@ -18,7 +18,7 @@ import {
AuthenticatorValidationChallenge,
AuthenticatorValidationChallengeResponseRequest,
DeviceChallenge,
} from "authentik-api";
} from "@goauthentik/api";
@customElement("ak-stage-authenticator-validate-webauthn")
export class AuthenticatorValidateStageWebAuthn extends BaseStage<

View file

@ -17,7 +17,7 @@ import {
import {
AuthenticatorWebAuthnChallenge,
AuthenticatorWebAuthnChallengeResponseRequest,
} from "authentik-api";
} from "@goauthentik/api";
export interface WebAuthnAuthenticatorRegisterChallengeResponse {
response: Assertion;

View file

@ -9,7 +9,7 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
import AKGlobal from "../../../authentik.css";
import { BaseStage } from "../base";
import "../../../elements/EmptyState";
import { AutosubmitChallenge, AutoSubmitChallengeResponseRequest } from "authentik-api";
import { AutosubmitChallenge, AutoSubmitChallengeResponseRequest } from "@goauthentik/api";
@customElement("ak-stage-autosubmit")
export class AutosubmitStage extends BaseStage<

View file

@ -1,4 +1,4 @@
import { ErrorDetail } from "authentik-api";
import { ErrorDetail } from "@goauthentik/api";
import { html, LitElement, property, TemplateResult } from "lit-element";
export interface StageHost {

View file

@ -12,7 +12,7 @@ import { BaseStage } from "../base";
import "../../../elements/forms/FormElement";
import "../../../elements/EmptyState";
import "../../FormStatic";
import { CaptchaChallenge, CaptchaChallengeResponseRequest } from "authentik-api";
import { CaptchaChallenge, CaptchaChallengeResponseRequest } from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-stage-captcha")

View file

@ -12,7 +12,7 @@ import AKGlobal from "../../../authentik.css";
import { BaseStage } from "../base";
import "../../../elements/EmptyState";
import "../../FormStatic";
import { ConsentChallenge, ConsentChallengeResponseRequest } from "authentik-api";
import { ConsentChallenge, ConsentChallengeResponseRequest } from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-stage-consent")

View file

@ -10,7 +10,7 @@ import AKGlobal from "../../../authentik.css";
import { BaseStage } from "../base";
import "../../../elements/EmptyState";
import "../../FormStatic";
import { DummyChallenge, DummyChallengeResponseRequest } from "authentik-api";
import { DummyChallenge, DummyChallengeResponseRequest } from "@goauthentik/api";
@customElement("ak-stage-dummy")
export class DummyStage extends BaseStage<DummyChallenge, DummyChallengeResponseRequest> {

View file

@ -9,7 +9,7 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
import AKGlobal from "../../../authentik.css";
import { BaseStage } from "../base";
import "../../../elements/EmptyState";
import { EmailChallenge, EmailChallengeResponseRequest } from "authentik-api";
import { EmailChallenge, EmailChallengeResponseRequest } from "@goauthentik/api";
@customElement("ak-stage-email")
export class EmailStage extends BaseStage<EmailChallenge, EmailChallengeResponseRequest> {

View file

@ -16,7 +16,7 @@ import {
IdentificationChallengeResponseRequest,
LoginSource,
UserFieldsEnum,
} from "authentik-api";
} from "@goauthentik/api";
export const PasswordManagerPrefill: {
password: string | undefined;

View file

@ -12,7 +12,7 @@ import "../../../elements/forms/FormElement";
import "../../../elements/EmptyState";
import { PasswordManagerPrefill } from "../identification/IdentificationStage";
import "../../FormStatic";
import { PasswordChallenge, PasswordChallengeResponseRequest } from "authentik-api";
import { PasswordChallenge, PasswordChallengeResponseRequest } from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined";
@customElement("ak-stage-password")

View file

@ -13,7 +13,7 @@ import { BaseStage } from "../base";
import "../../../elements/forms/FormElement";
import "../../../elements/EmptyState";
import "../../../elements/Divider";
import { PromptChallenge, PromptChallengeResponseRequest, StagePrompt } from "authentik-api";
import { PromptChallenge, PromptChallengeResponseRequest, StagePrompt } from "@goauthentik/api";
@customElement("ak-stage-prompt")
export class PromptStage extends BaseStage<PromptChallenge, PromptChallengeResponseRequest> {

View file

@ -30,7 +30,7 @@ import {
EVENT_SIDEBAR_TOGGLE,
VERSION,
} from "../constants";
import { AdminApi, Version } from "authentik-api";
import { AdminApi, Version } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../api/Config";
import { WebsocketClient } from "../common/ws";

View file

@ -10,7 +10,7 @@ import {
} from "lit-element";
import { ifDefined } from "lit-html/directives/if-defined";
import { until } from "lit-html/directives/until";
import { Application, CoreApi } from "authentik-api";
import { Application, CoreApi } from "@goauthentik/api";
import { AKResponse } from "../api/Client";
import { DEFAULT_CONFIG } from "../api/Config";
import { me } from "../api/Users";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element";
import { EventsApi, EventTopPerUser } from "authentik-api";
import { EventsApi, EventTopPerUser } from "@goauthentik/api";
import PFTable from "@patternfly/patternfly/components/Table/table.css";
import AKGlobal from "../../authentik.css";

View file

@ -1,7 +1,7 @@
import { t } from "@lingui/macro";
import { customElement, html, TemplateResult } from "lit-element";
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard";
import { AdminApi, StatusEnum, CapabilitiesEnum } from "authentik-api";
import { AdminApi, StatusEnum, CapabilitiesEnum } from "@goauthentik/api";
import { config, DEFAULT_CONFIG } from "../../../api/Config";
import { convertToTitle } from "../../../utils";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement, html, TemplateResult } from "lit-element";
import { AdminApi, System } from "authentik-api";
import { AdminApi, System } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminStatusCard, AdminStatus } from "./AdminStatusCard";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement, html, TemplateResult } from "lit-element";
import { AdminApi, Version } from "authentik-api";
import { AdminApi, Version } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminStatusCard, AdminStatus } from "./AdminStatusCard";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement, html } from "lit-element";
import { AdminApi } from "authentik-api";
import { AdminApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { FlowsApi } from "authentik-api";
import { FlowsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import "../../../elements/forms/ConfirmationForm";
import { AKChart } from "../../../elements/charts/Chart";

View file

@ -1,5 +1,5 @@
import { customElement } from "lit-element";
import { CoreApi } from "authentik-api";
import { CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { AKChart } from "../../../elements/charts/Chart";
import { t } from "@lingui/macro";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { SourcesApi, StatusEnum } from "authentik-api";
import { SourcesApi, StatusEnum } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import "../../../elements/forms/ConfirmationForm";
import { AKChart } from "../../../elements/charts/Chart";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { OutpostsApi } from "authentik-api";
import { OutpostsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import "../../../elements/forms/ConfirmationForm";
import { AKChart } from "../../../elements/charts/Chart";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { PoliciesApi } from "authentik-api";
import { PoliciesApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import "../../../elements/forms/ConfirmationForm";
import { AKChart } from "../../../elements/charts/Chart";

View file

@ -1,5 +1,5 @@
import { customElement } from "lit-element";
import { CoreApi } from "authentik-api";
import { CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import { AKChart } from "../../../elements/charts/Chart";
import { t } from "@lingui/macro";

View file

@ -1,4 +1,4 @@
import { Application, CoreApi, PolicyTestResult } from "authentik-api";
import { Application, CoreApi, PolicyTestResult } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -5,7 +5,7 @@ import {
Provider,
PolicyEngineMode,
CapabilitiesEnum,
} from "authentik-api";
} from "@goauthentik/api";
import { t } from "@lingui/macro";
import { CSSResult, customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -9,7 +9,7 @@ import "../../elements/forms/DeleteBulkForm";
import "../../elements/buttons/SpinnerButton";
import { TableColumn } from "../../elements/table/Table";
import { PAGE_SIZE } from "../../constants";
import { Application, CoreApi } from "authentik-api";
import { Application, CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import "./ApplicationForm";

View file

@ -10,7 +10,7 @@ import "../policies/BoundPoliciesList";
import "./ApplicationForm";
import "./ApplicationCheckAccessForm";
import "../../elements/PageHeader";
import { Application, CoreApi } from "authentik-api";
import { Application, CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import PFPage from "@patternfly/patternfly/components/Page/page.css";
import PFContent from "@patternfly/patternfly/components/Content/content.css";

View file

@ -1,4 +1,4 @@
import { CertificateGenerationRequest, CertificateKeyPair, CryptoApi } from "authentik-api";
import { CertificateGenerationRequest, CertificateKeyPair, CryptoApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { CertificateKeyPair, CertificateKeyPairRequest, CryptoApi } from "authentik-api";
import { CertificateKeyPair, CertificateKeyPairRequest, CryptoApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -4,7 +4,7 @@ import { AKResponse } from "../../api/Client";
import { TablePage } from "../../elements/table/TablePage";
import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css";
import { CryptoApi, CertificateKeyPair } from "authentik-api";
import { CryptoApi, CertificateKeyPair } from "@goauthentik/api";
import "../../elements/forms/ModalForm";
import "../../elements/buttons/SpinnerButton";

View file

@ -9,7 +9,7 @@ import {
TemplateResult,
} from "lit-element";
import { until } from "lit-html/directives/until";
import { EventActions, FlowsApi } from "authentik-api";
import { EventActions, FlowsApi } from "@goauthentik/api";
import "../../elements/Spinner";
import "../../elements/Expand";
import { PFSize } from "../../elements/Spinner";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element";
import { EventsApi } from "authentik-api";
import { EventsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { EventWithContext } from "../../api/Events";
import PFBase from "@patternfly/patternfly/patternfly-base.css";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement, html, property, TemplateResult } from "lit-element";
import { Event, EventsApi } from "authentik-api";
import { Event, EventsApi } from "@goauthentik/api";
import { AKResponse } from "../../api/Client";
import { DEFAULT_CONFIG } from "../../api/Config";
import { EventWithContext } from "../../api/Events";

View file

@ -1,4 +1,4 @@
import { CoreApi, EventsApi, NotificationRule, SeverityEnum } from "authentik-api";
import { CoreApi, EventsApi, NotificationRule, SeverityEnum } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -8,7 +8,7 @@ import "../../elements/buttons/SpinnerButton";
import "../../elements/forms/ModalForm";
import { TableColumn } from "../../elements/table/Table";
import { PAGE_SIZE } from "../../constants";
import { EventsApi, NotificationRule } from "authentik-api";
import { EventsApi, NotificationRule } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import "../../elements/forms/DeleteBulkForm";
import "./RuleForm";

View file

@ -1,4 +1,4 @@
import { EventsApi, NotificationTransport, NotificationTransportModeEnum } from "authentik-api";
import { EventsApi, NotificationTransport, NotificationTransportModeEnum } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -8,7 +8,7 @@ import "../../elements/forms/ModalForm";
import "../../elements/buttons/SpinnerButton";
import { TableColumn } from "../../elements/table/Table";
import { PAGE_SIZE } from "../../constants";
import { EventsApi, NotificationTransport } from "authentik-api";
import { EventsApi, NotificationTransport } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import "../../elements/forms/DeleteBulkForm";
import "./TransportForm";

View file

@ -1,5 +1,5 @@
import { t } from "@lingui/macro";
import { EventActions } from "authentik-api";
import { EventActions } from "@goauthentik/api";
export function ActionToLabel(action?: EventActions): string {
if (!action) return "";

View file

@ -13,7 +13,7 @@ import "../../elements/buttons/Dropdown";
import "../policies/BoundPoliciesList";
import { until } from "lit-html/directives/until";
import { PAGE_SIZE } from "../../constants";
import { FlowsApi, FlowStageBinding, StagesApi } from "authentik-api";
import { FlowsApi, FlowStageBinding, StagesApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { ifDefined } from "lit-html/directives/if-defined";

View file

@ -1,7 +1,7 @@
import { customElement, html, LitElement, property, TemplateResult } from "lit-element";
import FlowChart from "flowchart.js";
import { loading } from "../../utils";
import { FlowsApi } from "authentik-api";
import { FlowsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { EVENT_REFRESH } from "../../constants";

View file

@ -4,7 +4,7 @@ import {
PolicyEngineMode,
FlowsApi,
CapabilitiesEnum,
} from "authentik-api";
} from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { Flow, FlowsApi } from "authentik-api";
import { Flow, FlowsApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -11,7 +11,7 @@ import "./FlowForm";
import "./FlowImportForm";
import { TableColumn } from "../../elements/table/Table";
import { PAGE_SIZE } from "../../constants";
import { Flow, FlowsApi } from "authentik-api";
import { Flow, FlowsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-flow-list")

View file

@ -16,7 +16,7 @@ import "../../elements/buttons/SpinnerButton";
import "../policies/BoundPoliciesList";
import "./BoundStagesList";
import "./FlowDiagram";
import { Flow, FlowsApi } from "authentik-api";
import { Flow, FlowsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import PFButton from "@patternfly/patternfly/components/Button/button.css";

View file

@ -5,7 +5,7 @@ import {
PolicyEngineMode,
Stage,
StagesApi,
} from "authentik-api";
} from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { CoreApi, Group, User } from "authentik-api";
import { CoreApi, Group, User } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -7,7 +7,7 @@ import "../../elements/forms/DeleteBulkForm";
import "../../elements/buttons/SpinnerButton";
import { TableColumn } from "../../elements/table/Table";
import { PAGE_SIZE } from "../../constants";
import { CoreApi, Group } from "authentik-api";
import { CoreApi, Group } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import "../../elements/forms/ModalForm";
import "./GroupForm";

View file

@ -1,5 +1,5 @@
import { t } from "@lingui/macro";
import { CoreApi, User } from "authentik-api";
import { CoreApi, User } from "@goauthentik/api";
import { customElement, property } from "lit-element";
import { TemplateResult, html } from "lit-html";
import { AKResponse } from "../../api/Client";

View file

@ -1,4 +1,4 @@
import { Outpost } from "authentik-api";
import { Outpost } from "@goauthentik/api";
import { customElement, html, property, TemplateResult } from "lit-element";
import { t } from "@lingui/macro";
import { ifDefined } from "lit-html/directives/if-defined";

View file

@ -1,4 +1,4 @@
import { Outpost, OutpostsApi, OutpostTypeEnum, ProvidersApi } from "authentik-api";
import { Outpost, OutpostsApi, OutpostTypeEnum, ProvidersApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element";
import { OutpostHealth } from "authentik-api";
import { OutpostHealth } from "@goauthentik/api";
import PFBase from "@patternfly/patternfly/patternfly-base.css";
import "../../elements/Spinner";
import AKGlobal from "../../authentik.css";

View file

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element";
import { OutpostHealth, OutpostsApi } from "authentik-api";
import { OutpostHealth, OutpostsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import PFBase from "@patternfly/patternfly/patternfly-base.css";
import "../../elements/Spinner";

View file

@ -14,7 +14,7 @@ import "../../elements/buttons/SpinnerButton";
import "../../elements/forms/ModalForm";
import "../../elements/forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants";
import { Outpost, OutpostsApi } from "authentik-api";
import { Outpost, OutpostsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { ifDefined } from "lit-html/directives/if-defined";
import { PFSize } from "../../elements/Spinner";

View file

@ -1,4 +1,4 @@
import { CryptoApi, DockerServiceConnection, OutpostsApi } from "authentik-api";
import { CryptoApi, DockerServiceConnection, OutpostsApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { KubernetesServiceConnection, OutpostsApi } from "authentik-api";
import { KubernetesServiceConnection, OutpostsApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -14,7 +14,7 @@ import "./ServiceConnectionKubernetesForm";
import "./ServiceConnectionDockerForm";
import { until } from "lit-html/directives/until";
import { PAGE_SIZE } from "../../constants";
import { OutpostsApi, ServiceConnection } from "authentik-api";
import { OutpostsApi, ServiceConnection } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import "../../elements/forms/ProxyForm";
import { ifDefined } from "lit-html/directives/if-defined";

View file

@ -2,7 +2,7 @@ import { t } from "@lingui/macro";
import { customElement, html, property, TemplateResult } from "lit-element";
import { AKResponse } from "../../api/Client";
import { Table, TableColumn } from "../../elements/table/Table";
import { PoliciesApi, PolicyBinding } from "authentik-api";
import { PoliciesApi, PolicyBinding } from "@goauthentik/api";
import "../../elements/forms/DeleteBulkForm";
import "../../elements/Tabs";

View file

@ -1,4 +1,4 @@
import { CoreApi, PoliciesApi, Policy, PolicyBinding } from "authentik-api";
import { CoreApi, PoliciesApi, Policy, PolicyBinding } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { css, CSSResult, customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -13,7 +13,7 @@ import "./PolicyTestForm";
import { TableColumn } from "../../elements/table/Table";
import { until } from "lit-html/directives/until";
import { PAGE_SIZE } from "../../constants";
import { PoliciesApi, Policy } from "authentik-api";
import { PoliciesApi, Policy } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config";
import { ifDefined } from "lit-html/directives/if-defined";
import "./dummy/DummyPolicyForm";

View file

@ -1,4 +1,4 @@
import { CoreApi, PoliciesApi, Policy, PolicyTestRequest, PolicyTestResult } from "authentik-api";
import { CoreApi, PoliciesApi, Policy, PolicyTestRequest, PolicyTestResult } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { DummyPolicy, PoliciesApi } from "authentik-api";
import { DummyPolicy, PoliciesApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { AdminApi, EventMatcherPolicy, EventsApi, PoliciesApi } from "authentik-api";
import { AdminApi, EventMatcherPolicy, EventsApi, PoliciesApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { PasswordExpiryPolicy, PoliciesApi } from "authentik-api";
import { PasswordExpiryPolicy, PoliciesApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { ExpressionPolicy, PoliciesApi } from "authentik-api";
import { ExpressionPolicy, PoliciesApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { HaveIBeenPwendPolicy, PoliciesApi } from "authentik-api";
import { HaveIBeenPwendPolicy, PoliciesApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

View file

@ -1,4 +1,4 @@
import { PasswordPolicy, PoliciesApi } from "authentik-api";
import { PasswordPolicy, PoliciesApi } from "@goauthentik/api";
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html";

Some files were not shown because too many files have changed in this diff Show more