web: Merge pull request #1258 from goauthentik/publish-api-to-npm

Publish api to npm
This commit is contained in:
Jens L 2021-08-23 11:43:25 +02:00 committed by GitHub
commit 6a14ae7975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
188 changed files with 2635 additions and 2222 deletions

View File

@ -163,7 +163,6 @@ jobs:
- name: Build web api client and web ui - name: Build web api client and web ui
run: | run: |
export NODE_ENV=production export NODE_ENV=production
make gen-web
cd web cd web
npm i npm i
npm run build npm run build

23
.github/workflows/web-api-publish.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: authentik-web-api-publish
on:
push:
branches: [ master, '*', next, version* ]
paths:
- 'schema.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: make gen-web
- run: |
cd web-api/
npm i
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

1
.gitignore vendored
View File

@ -201,3 +201,4 @@ media/
.idea/ .idea/
/api/ /api/
/web-api/

View File

@ -18,17 +18,6 @@ COPY ./website /static/
ENV NODE_ENV=production ENV NODE_ENV=production
RUN cd /static && npm i && npm run build-docs-only RUN cd /static && npm i && npm run build-docs-only
# Stage 3: Build web API
FROM openapitools/openapi-generator-cli as web-api-builder
COPY ./schema.yml /local/schema.yml
RUN docker-entrypoint.sh generate \
-i /local/schema.yml \
-g typescript-fetch \
-o /local/web/api \
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=authentik-api,npmVersion=1.0.0
# Stage 3: Generate API Client # Stage 3: Generate API Client
FROM openapitools/openapi-generator-cli as go-api-builder FROM openapitools/openapi-generator-cli as go-api-builder
@ -48,7 +37,6 @@ RUN docker-entrypoint.sh generate \
FROM node as web-builder FROM node as web-builder
COPY ./web /static/ COPY ./web /static/
COPY --from=web-api-builder /local/web/api /static/api
ENV NODE_ENV=production ENV NODE_ENV=production
RUN cd /static && npm i && npm run build RUN cd /static && npm i && npm run build

View File

@ -2,6 +2,7 @@
PWD = $(shell pwd) PWD = $(shell pwd)
UID = $(shell id -u) UID = $(shell id -u)
GID = $(shell id -g) GID = $(shell id -g)
NPM_VERSION = $(shell python -m scripts.npm_version)
all: lint-fix lint test gen all: lint-fix lint test gen
@ -41,10 +42,12 @@ gen-web:
openapitools/openapi-generator-cli generate \ openapitools/openapi-generator-cli generate \
-i /local/schema.yml \ -i /local/schema.yml \
-g typescript-fetch \ -g typescript-fetch \
-o /local/web/api \ -o /local/web-api \
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=authentik-api,npmVersion=1.0.0 --additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=@goauthentik/api,npmVersion=${NPM_VERSION}
# npm i runs tsc as part of the installation process mkdir -p web/node_modules/@goauthentik/api
cd web/api && npm i python -m scripts.web_api_esm
cd web-api && npm i
\cp -rfv web-api/* web/node_modules/@goauthentik/api
gen-outpost: gen-outpost:
docker run \ docker run \

View File

@ -309,9 +309,7 @@ stages:
displayName: Build static files for e2e displayName: Build static files for e2e
inputs: inputs:
script: | script: |
make gen-web
cd web cd web
cd api && npm i && cd ..
npm i npm i
npm run build npm run build
- task: CmdLine@2 - task: CmdLine@2

6
scripts/npm_version.py Normal file
View File

@ -0,0 +1,6 @@
"""Helper script to generate an NPM Version"""
from time import time
from authentik import __version__
print("%s-%d" % (__version__, time()))

29
scripts/web_api_esm.py Normal file
View File

@ -0,0 +1,29 @@
"""Enable ESM Modules for generated Web API"""
from json import loads, dumps
TSCONFIG_ESM = {
"compilerOptions": {
"declaration": True,
"target": "es6",
"module": "esnext",
"moduleResolution": "node",
"outDir": "./dist/esm",
"typeRoots": [
"node_modules/@types"
]
},
"exclude": [
"dist",
"node_modules"
]
}
with open("web-api/package.json", encoding="utf-8") as _package:
package = loads(_package.read())
package["module"] = "./dist/esm/index.js"
package["sideEffects"] = False
package["scripts"]["build"] = "tsc && tsc --project tsconfig.esm.json"
open("web-api/package.json", "w+", encoding="utf-8").write(dumps(package))
open("web-api/tsconfig.esm.json", "w+", encoding="utf-8").write(dumps(TSCONFIG_ESM))

View File

@ -7,24 +7,6 @@ trigger:
- version-* - version-*
stages: stages:
- stage: generate
jobs:
- job: generate_api
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '16.x'
displayName: 'Install Node.js'
- task: CmdLine@2
inputs:
script: make gen-web
- task: PublishPipelineArtifact@1
inputs:
targetPath: 'web/api/'
artifact: 'ts_api_client'
publishLocation: 'pipeline'
- stage: lint - stage: lint
jobs: jobs:
- job: eslint - job: eslint
@ -35,15 +17,13 @@ stages:
inputs: inputs:
versionSpec: '16.x' versionSpec: '16.x'
displayName: 'Install Node.js' displayName: 'Install Node.js'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'ts_api_client'
path: "web/api/"
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'install' command: 'install'
workingDir: 'web/' workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'custom' command: 'custom'
@ -57,15 +37,13 @@ stages:
inputs: inputs:
versionSpec: '16.x' versionSpec: '16.x'
displayName: 'Install Node.js' displayName: 'Install Node.js'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'ts_api_client'
path: "web/api/"
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'install' command: 'install'
workingDir: 'web/' workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'custom' command: 'custom'
@ -79,15 +57,13 @@ stages:
inputs: inputs:
versionSpec: '16.x' versionSpec: '16.x'
displayName: 'Install Node.js' displayName: 'Install Node.js'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'ts_api_client'
path: "web/api/"
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'install' command: 'install'
workingDir: 'web/' workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'custom' command: 'custom'
@ -103,15 +79,13 @@ stages:
inputs: inputs:
versionSpec: '16.x' versionSpec: '16.x'
displayName: 'Install Node.js' displayName: 'Install Node.js'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: 'ts_api_client'
path: "web/api/"
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'install' command: 'install'
workingDir: 'web/' workingDir: 'web/'
- task: CmdLine@2
inputs:
script: make gen-web
- task: Npm@1 - task: Npm@1
inputs: inputs:
command: 'custom' command: 'custom'

4300
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -2,7 +2,6 @@ import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs"; import commonjs from "rollup-plugin-commonjs";
import { terser } from "rollup-plugin-terser"; import { terser } from "rollup-plugin-terser";
import sourcemaps from "rollup-plugin-sourcemaps"; import sourcemaps from "rollup-plugin-sourcemaps";
import typescript from "@rollup/plugin-typescript";
import cssimport from "rollup-plugin-cssimport"; import cssimport from "rollup-plugin-cssimport";
import copy from "rollup-plugin-copy"; import copy from "rollup-plugin-copy";
import babel from "@rollup/plugin-babel"; import babel from "@rollup/plugin-babel";
@ -47,7 +46,7 @@ const resources = [
const isProdBuild = process.env.NODE_ENV === "production"; const isProdBuild = process.env.NODE_ENV === "production";
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
function manualChunks(id) { function manualChunks(id) {
if (id.endsWith("web/api/dist/index.js")) { if (id.includes("@goauthentik/api")) {
return "api"; return "api";
} }
if (id.includes("locales")) { if (id.includes("locales")) {
@ -64,31 +63,6 @@ function manualChunks(id) {
} }
export default [ export default [
// Autogenerated API Client
{
input: "./api/src/index.ts",
output: [
{
format: "es",
dir: "./api/dist/",
sourcemap: true,
},
],
plugins: [
typescript({
declaration: true,
outDir: "./api/dist/",
}),
isProdBuild && terser(),
copy({
targets: [...resources],
copyOnce: false,
}),
].filter((p) => p),
watch: {
clearScreen: false,
},
},
// Polyfills (imported first) // Polyfills (imported first)
{ {
input: "./poly.ts", input: "./poly.ts",
@ -104,6 +78,10 @@ export default [
resolve({ browser: true }), resolve({ browser: true }),
commonjs(), commonjs(),
isProdBuild && terser(), isProdBuild && terser(),
copy({
targets: [...resources],
copyOnce: false,
}),
].filter((p) => p), ].filter((p) => p),
watch: { watch: {
clearScreen: false, clearScreen: false,

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 } from "@goauthentik/api";
import { getCookie } from "../utils"; import { getCookie } from "../utils";
import { APIMiddleware } from "../elements/notifications/APIDrawer"; import { APIMiddleware } from "../elements/notifications/APIDrawer";
import { MessageMiddleware } from "../elements/messages/Middleware"; 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 { export interface EventUser {
pk: number; pk: number;

View File

@ -4,7 +4,7 @@ import { VERSION } from "../constants";
import { SentryIgnoredError } from "../common/errors"; import { SentryIgnoredError } from "../common/errors";
import { me } from "./Users"; import { me } from "./Users";
import { config } from "./Config"; 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_COMPONENT = "authentik.component";
export const TAG_SENTRY_CAPABILITIES = "authentik.capabilities"; 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"; import { DEFAULT_CONFIG } from "./Config";
let globalMePromise: Promise<SessionUser>; let globalMePromise: Promise<SessionUser>;

View File

@ -19,7 +19,7 @@ import {
TITLE_DEFAULT, TITLE_DEFAULT,
} from "../constants"; } from "../constants";
import { DEFAULT_CONFIG, tenant } from "../api/Config"; import { DEFAULT_CONFIG, tenant } from "../api/Config";
import { EventsApi } from "../../api/dist"; import { EventsApi } from "@goauthentik/api";
@customElement("ak-page-header") @customElement("ak-page-header")
export class PageHeader extends LitElement { export class PageHeader extends LitElement {

View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { customElement, property } from "lit-element"; 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 { DEFAULT_CONFIG } from "../../api/Config";
import { AKChart } from "./Chart"; import { AKChart } from "./Chart";
import { ChartData } from "chart.js"; import { ChartData } from "chart.js";

View File

@ -1,5 +1,5 @@
import { customElement, property } from "lit-element"; import { customElement, property } from "lit-element";
import { CoreApi, UserMetrics } from "authentik-api"; import { CoreApi, UserMetrics } from "@goauthentik/api";
import { AKChart } from "./Chart"; import { AKChart } from "./Chart";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
import { ChartData } from "chart.js"; 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 { customElement, html, property, TemplateResult } from "lit-element";
import { AKResponse } from "../../api/Client"; import { AKResponse } from "../../api/Client";
import { Table, TableColumn } from "../table/Table"; import { Table, TableColumn } from "../table/Table";
import { Event, EventsApi } from "authentik-api"; import { Event, EventsApi } from "@goauthentik/api";
import "../Tabs"; import "../Tabs";
import "../buttons/ModalButton"; import "../buttons/ModalButton";

View File

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

View File

@ -5,7 +5,7 @@ import { ModalButton } from "../buttons/ModalButton";
import { MessageLevel } from "../messages/Message"; import { MessageLevel } from "../messages/Message";
import { showMessage } from "../messages/MessageContainer"; import { showMessage } from "../messages/MessageContainer";
import "../buttons/SpinnerButton"; 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 PFList from "@patternfly/patternfly/components/List/list.css";
import { until } from "lit-html/directives/until"; import { until } from "lit-html/directives/until";
import { Table, TableColumn } from "../table/Table"; import { Table, TableColumn } from "../table/Table";

View File

@ -5,7 +5,7 @@ import { ModalButton } from "../buttons/ModalButton";
import { MessageLevel } from "../messages/Message"; import { MessageLevel } from "../messages/Message";
import { showMessage } from "../messages/MessageContainer"; import { showMessage } from "../messages/MessageContainer";
import "../buttons/SpinnerButton"; 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 PFList from "@patternfly/patternfly/components/List/list.css";
import { until } from "lit-html/directives/until"; 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 { MessageLevel } from "../messages/Message";
import { IronFormElement } from "@polymer/iron-form/iron-form"; import { IronFormElement } from "@polymer/iron-form/iron-form";
import { camelToSnake, convertToSlug } from "../../utils"; import { camelToSnake, convertToSlug } from "../../utils";
import { ValidationError } from "authentik-api"; import { ValidationError } from "@goauthentik/api";
import { EVENT_REFRESH } from "../../constants"; import { EVENT_REFRESH } from "../../constants";
export class APIError extends Error { 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 { TemplateResult, html } from "lit-html";
import PFForm from "@patternfly/patternfly/components/Form/form.css"; import PFForm from "@patternfly/patternfly/components/Form/form.css";
import PFFormControl from "@patternfly/patternfly/components/FormControl/form-control.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") @customElement("ak-form-element")
export class FormElement extends LitElement { 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 { t } from "@lingui/macro";
import { MessageLevel } from "./Message"; import { MessageLevel } from "./Message";
import { showMessage } from "./MessageContainer"; import { showMessage } from "./MessageContainer";

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import { Table, TableColumn } from "../table/Table";
import "../forms/DeleteBulkForm"; import "../forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants"; import { PAGE_SIZE } from "../../constants";
import { ExpiringBaseGrantModel, Oauth2Api } from "authentik-api"; import { ExpiringBaseGrantModel, Oauth2Api } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-user-oauth-code-list") @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 "../forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants"; 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"; import { DEFAULT_CONFIG } from "../../api/Config";
@customElement("ak-user-oauth-refresh-list") @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 AKGlobal from "../../authentik.css";
import { configureSentry } from "../../api/Sentry"; import { configureSentry } from "../../api/Sentry";
import { CurrentTenant } from "authentik-api"; import { CurrentTenant } from "@goauthentik/api";
import { ifDefined } from "lit-html/directives/if-defined"; import { ifDefined } from "lit-html/directives/if-defined";
import { EVENT_SIDEBAR_TOGGLE } from "../../constants"; import { EVENT_SIDEBAR_TOGGLE } from "../../constants";
import { tenant } from "../../api/Config"; import { tenant } from "../../api/Config";

View File

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

View File

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

View File

@ -43,7 +43,7 @@ import {
FlowsApi, FlowsApi,
RedirectChallenge, RedirectChallenge,
ShellChallenge, ShellChallenge,
} from "authentik-api"; } from "@goauthentik/api";
import { DEFAULT_CONFIG, tenant } from "../api/Config"; import { DEFAULT_CONFIG, tenant } from "../api/Config";
import { ifDefined } from "lit-html/directives/if-defined"; import { ifDefined } from "lit-html/directives/if-defined";
import { until } from "lit-html/directives/until"; 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 { CSSResult, customElement, html, TemplateResult } from "lit-element";
import { BaseStage } from "../stages/base"; import { BaseStage } from "../stages/base";
import PFLogin from "@patternfly/patternfly/components/Login/login.css"; import PFLogin from "@patternfly/patternfly/components/Login/login.css";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -9,7 +9,7 @@ import PFBase from "@patternfly/patternfly/patternfly-base.css";
import AKGlobal from "../../../authentik.css"; import AKGlobal from "../../../authentik.css";
import { BaseStage } from "../base"; import { BaseStage } from "../base";
import "../../../elements/EmptyState"; import "../../../elements/EmptyState";
import { AutosubmitChallenge, AutoSubmitChallengeResponseRequest } from "authentik-api"; import { AutosubmitChallenge, AutoSubmitChallengeResponseRequest } from "@goauthentik/api";
@customElement("ak-stage-autosubmit") @customElement("ak-stage-autosubmit")
export class AutosubmitStage extends BaseStage< 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"; import { html, LitElement, property, TemplateResult } from "lit-element";
export interface StageHost { export interface StageHost {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@ import {
} from "lit-element"; } from "lit-element";
import { ifDefined } from "lit-html/directives/if-defined"; import { ifDefined } from "lit-html/directives/if-defined";
import { until } from "lit-html/directives/until"; 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 { AKResponse } from "../api/Client";
import { DEFAULT_CONFIG } from "../api/Config"; import { DEFAULT_CONFIG } from "../api/Config";
import { me } from "../api/Users"; import { me } from "../api/Users";

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; 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 PFTable from "@patternfly/patternfly/components/Table/table.css";
import AKGlobal from "../../authentik.css"; import AKGlobal from "../../authentik.css";

View File

@ -1,7 +1,7 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { customElement, html, TemplateResult } from "lit-element"; import { customElement, html, TemplateResult } from "lit-element";
import { AdminStatus, AdminStatusCard } from "./AdminStatusCard"; 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 { config, DEFAULT_CONFIG } from "../../../api/Config";
import { convertToTitle } from "../../../utils"; import { convertToTitle } from "../../../utils";

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { customElement, html, TemplateResult } from "lit-element"; 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 { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminStatusCard, AdminStatus } from "./AdminStatusCard"; import { AdminStatusCard, AdminStatus } from "./AdminStatusCard";

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { customElement, html, TemplateResult } from "lit-element"; 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 { DEFAULT_CONFIG } from "../../../api/Config";
import { AdminStatusCard, AdminStatus } from "./AdminStatusCard"; import { AdminStatusCard, AdminStatus } from "./AdminStatusCard";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { customElement } from "lit-element"; import { customElement } from "lit-element";
import { CoreApi } from "authentik-api"; import { CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../../api/Config"; import { DEFAULT_CONFIG } from "../../../api/Config";
import { AKChart } from "../../../elements/charts/Chart"; import { AKChart } from "../../../elements/charts/Chart";
import { t } from "@lingui/macro"; 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 { t } from "@lingui/macro";
import { customElement, property } from "lit-element"; import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";

View File

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

View File

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

View File

@ -10,7 +10,7 @@ import "../policies/BoundPoliciesList";
import "./ApplicationForm"; import "./ApplicationForm";
import "./ApplicationCheckAccessForm"; import "./ApplicationCheckAccessForm";
import "../../elements/PageHeader"; import "../../elements/PageHeader";
import { Application, CoreApi } from "authentik-api"; import { Application, CoreApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
import PFPage from "@patternfly/patternfly/components/Page/page.css"; import PFPage from "@patternfly/patternfly/components/Page/page.css";
import PFContent from "@patternfly/patternfly/components/Content/content.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 { t } from "@lingui/macro";
import { customElement } from "lit-element"; import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html"; 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 { t } from "@lingui/macro";
import { customElement } from "lit-element"; import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";

View File

@ -4,7 +4,7 @@ import { AKResponse } from "../../api/Client";
import { TablePage } from "../../elements/table/TablePage"; import { TablePage } from "../../elements/table/TablePage";
import PFDescriptionList from "@patternfly/patternfly/components/DescriptionList/description-list.css"; 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/forms/ModalForm";
import "../../elements/buttons/SpinnerButton"; import "../../elements/buttons/SpinnerButton";

View File

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

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; 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 { DEFAULT_CONFIG } from "../../api/Config";
import { EventWithContext } from "../../api/Events"; import { EventWithContext } from "../../api/Events";
import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css";

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { customElement, html, property, TemplateResult } from "lit-element"; 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 { AKResponse } from "../../api/Client";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
import { EventWithContext } from "../../api/Events"; 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 { t } from "@lingui/macro";
import { customElement } from "lit-element"; import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";

View File

@ -8,7 +8,7 @@ import "../../elements/buttons/SpinnerButton";
import "../../elements/forms/ModalForm"; import "../../elements/forms/ModalForm";
import { TableColumn } from "../../elements/table/Table"; import { TableColumn } from "../../elements/table/Table";
import { PAGE_SIZE } from "../../constants"; import { PAGE_SIZE } from "../../constants";
import { EventsApi, NotificationRule } from "authentik-api"; import { EventsApi, NotificationRule } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
import "../../elements/forms/DeleteBulkForm"; import "../../elements/forms/DeleteBulkForm";
import "./RuleForm"; 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 { t } from "@lingui/macro";
import { customElement, property } from "lit-element"; import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";

View File

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

View File

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

View File

@ -13,7 +13,7 @@ import "../../elements/buttons/Dropdown";
import "../policies/BoundPoliciesList"; import "../policies/BoundPoliciesList";
import { until } from "lit-html/directives/until"; import { until } from "lit-html/directives/until";
import { PAGE_SIZE } from "../../constants"; 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 { DEFAULT_CONFIG } from "../../api/Config";
import { ifDefined } from "lit-html/directives/if-defined"; import { ifDefined } from "lit-html/directives/if-defined";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { CoreApi, User } from "authentik-api"; import { CoreApi, User } from "@goauthentik/api";
import { customElement, property } from "lit-element"; import { customElement, property } from "lit-element";
import { TemplateResult, html } from "lit-html"; import { TemplateResult, html } from "lit-html";
import { AKResponse } from "../../api/Client"; 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 { customElement, html, property, TemplateResult } from "lit-element";
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { ifDefined } from "lit-html/directives/if-defined"; 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 { t } from "@lingui/macro";
import { customElement, property } from "lit-element"; import { customElement, property } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; 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 PFBase from "@patternfly/patternfly/patternfly-base.css";
import "../../elements/Spinner"; import "../../elements/Spinner";
import AKGlobal from "../../authentik.css"; import AKGlobal from "../../authentik.css";

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro"; import { t } from "@lingui/macro";
import { CSSResult, customElement, html, LitElement, property, TemplateResult } from "lit-element"; 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 { DEFAULT_CONFIG } from "../../api/Config";
import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css";
import "../../elements/Spinner"; import "../../elements/Spinner";

View File

@ -14,7 +14,7 @@ import "../../elements/buttons/SpinnerButton";
import "../../elements/forms/ModalForm"; import "../../elements/forms/ModalForm";
import "../../elements/forms/DeleteBulkForm"; import "../../elements/forms/DeleteBulkForm";
import { PAGE_SIZE } from "../../constants"; import { PAGE_SIZE } from "../../constants";
import { Outpost, OutpostsApi } from "authentik-api"; import { Outpost, OutpostsApi } from "@goauthentik/api";
import { DEFAULT_CONFIG } from "../../api/Config"; import { DEFAULT_CONFIG } from "../../api/Config";
import { ifDefined } from "lit-html/directives/if-defined"; import { ifDefined } from "lit-html/directives/if-defined";
import { PFSize } from "../../elements/Spinner"; 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 { t } from "@lingui/macro";
import { customElement } from "lit-element"; import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html"; 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 { t } from "@lingui/macro";
import { customElement } from "lit-element"; import { customElement } from "lit-element";
import { html, TemplateResult } from "lit-html"; import { html, TemplateResult } from "lit-html";

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