web: Read() to Retrieve()

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-16 14:43:42 +02:00
parent cac1f242dc
commit 3ab7588b73
67 changed files with 140 additions and 353 deletions

View file

@ -86,13 +86,7 @@ paths:
$ref: '#/components/schemas/Task' $ref: '#/components/schemas/Task'
description: '' description: ''
'404': '404':
content: description: Task not found
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/admin/system_tasks/{id}/retry/: /api/v2beta/admin/system_tasks/{id}/retry/:
post: post:
operationId: admin_system_tasks_retry_create operationId: admin_system_tasks_retry_create
@ -122,29 +116,11 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'204': '204':
content: description: Task retried successfully
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'404': '404':
content: description: Task not found
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'500': '500':
content: description: Failed to retry task
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/admin/version/: /api/v2beta/admin/version/:
get: get:
operationId: admin_version_list operationId: admin_version_list
@ -1142,21 +1118,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'204': '204':
content: description: Access granted
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'403': '403':
content: description: Access denied
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/core/applications/{slug}/metrics/: /api/v2beta/core/applications/{slug}/metrics/:
get: get:
operationId: core_applications_metrics_list operationId: core_applications_metrics_list
@ -1206,21 +1170,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'200': '200':
content: description: Success
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/core/groups/: /api/v2beta/core/groups/:
get: get:
operationId: core_groups_list operationId: core_groups_list
@ -1624,13 +1576,7 @@ paths:
$ref: '#/components/schemas/TokenView' $ref: '#/components/schemas/TokenView'
description: '' description: ''
'404': '404':
content: description: Token not found or expired
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/core/user_consent/: /api/v2beta/core/user_consent/:
get: get:
operationId: core_user_consent_list operationId: core_user_consent_list
@ -1970,13 +1916,7 @@ paths:
$ref: '#/components/schemas/Link' $ref: '#/components/schemas/Link'
description: '' description: ''
'404': '404':
content: description: No recovery flow found.
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/core/users/me/: /api/v2beta/core/users/me/:
get: get:
operationId: core_users_me_retrieve operationId: core_users_me_retrieve
@ -2267,13 +2207,7 @@ paths:
$ref: '#/components/schemas/CertificateKeyPair' $ref: '#/components/schemas/CertificateKeyPair'
description: '' description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/events/events/: /api/v2beta/events/events/:
get: get:
operationId: events_events_list operationId: events_events_list
@ -3032,14 +2966,8 @@ paths:
schema: schema:
$ref: '#/components/schemas/NotificationTransportTest' $ref: '#/components/schemas/NotificationTransportTest'
description: '' description: ''
'503': '500':
content: description: Failed to test transport
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/flows/bindings/: /api/v2beta/flows/bindings/:
get: get:
operationId: flows_bindings_list operationId: flows_bindings_list
@ -3298,13 +3226,7 @@ paths:
$ref: '#/components/schemas/Challenge' $ref: '#/components/schemas/Challenge'
description: '' description: ''
'404': '404':
content: description: No Token found
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
post: post:
operationId: flows_executor_solve operationId: flows_executor_solve
description: Solve the previously retrieved challenge and advanced to the next description: Solve the previously retrieved challenge and advanced to the next
@ -3585,13 +3507,7 @@ paths:
$ref: '#/components/schemas/Link' $ref: '#/components/schemas/Link'
description: '' description: ''
'400': '400':
content: description: Flow not applicable
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/flows/instances/{slug}/export/: /api/v2beta/flows/instances/{slug}/export/:
get: get:
operationId: flows_instances_export_retrieve operationId: flows_instances_export_retrieve
@ -3613,9 +3529,8 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object type: string
additionalProperties: {} format: binary
description: Unspecified response body
description: null description: null
/api/v2beta/flows/instances/{slug}/set_background/: /api/v2beta/flows/instances/{slug}/set_background/:
post: post:
@ -3641,21 +3556,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'200': '200':
content: description: Success
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/flows/instances/cache_clear/: /api/v2beta/flows/instances/cache_clear/:
post: post:
operationId: flows_instances_cache_clear_create operationId: flows_instances_cache_clear_create
@ -3667,21 +3570,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'204': '204':
content: description: Successfully cleared cache
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/flows/instances/cache_info/: /api/v2beta/flows/instances/cache_info/:
get: get:
operationId: flows_instances_cache_info_retrieve operationId: flows_instances_cache_info_retrieve
@ -3716,21 +3607,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'204': '204':
content: description: Successfully imported flow
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/oauth2/authorization_codes/: /api/v2beta/oauth2/authorization_codes/:
get: get:
operationId: oauth2_authorization_codes_list operationId: oauth2_authorization_codes_list
@ -5162,13 +5041,7 @@ paths:
$ref: '#/components/schemas/PolicyTestResult' $ref: '#/components/schemas/PolicyTestResult'
description: '' description: ''
'400': '400':
content: description: Invalid parameters
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/policies/all/cache_clear/: /api/v2beta/policies/all/cache_clear/:
post: post:
operationId: policies_all_cache_clear_create operationId: policies_all_cache_clear_create
@ -5180,21 +5053,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'204': '204':
content: description: Successfully cleared cache
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/policies/all/cache_info/: /api/v2beta/policies/all/cache_info/:
get: get:
operationId: policies_all_cache_info_retrieve operationId: policies_all_cache_info_retrieve
@ -7164,13 +7025,7 @@ paths:
$ref: '#/components/schemas/PropertyMappingTestResult' $ref: '#/components/schemas/PropertyMappingTestResult'
description: '' description: ''
'400': '400':
content: description: Invalid parameters
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/propertymappings/all/types/: /api/v2beta/propertymappings/all/types/:
get: get:
operationId: propertymappings_all_types_list operationId: propertymappings_all_types_list
@ -8209,13 +8064,7 @@ paths:
$ref: '#/components/schemas/OAuth2ProviderSetupURLs' $ref: '#/components/schemas/OAuth2ProviderSetupURLs'
description: '' description: ''
'404': '404':
content: description: Provider has no application assigned
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/providers/proxy/: /api/v2beta/providers/proxy/:
get: get:
operationId: providers_proxy_list operationId: providers_proxy_list
@ -8597,13 +8446,7 @@ paths:
$ref: '#/components/schemas/SAMLMetadata' $ref: '#/components/schemas/SAMLMetadata'
description: '' description: ''
'404': '404':
content: description: Provider has no application assigned
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/providers/saml/import_metadata/: /api/v2beta/providers/saml/import_metadata/:
post: post:
operationId: providers_saml_import_metadata_create operationId: providers_saml_import_metadata_create
@ -8621,21 +8464,9 @@ paths:
- cookieAuth: [] - cookieAuth: []
responses: responses:
'204': '204':
content: description: Successfully imported provider
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'400': '400':
content: description: Bad request
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/root/config/: /api/v2beta/root/config/:
get: get:
operationId: root_config_list operationId: root_config_list
@ -9116,13 +8947,7 @@ paths:
$ref: '#/components/schemas/Task' $ref: '#/components/schemas/Task'
description: '' description: ''
'404': '404':
content: description: Task not found
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/sources/oauth/: /api/v2beta/sources/oauth/:
get: get:
operationId: sources_oauth_list operationId: sources_oauth_list
@ -9710,21 +9535,9 @@ paths:
$ref: '#/components/schemas/RedirectChallenge' $ref: '#/components/schemas/RedirectChallenge'
description: '' description: ''
'400': '400':
content: description: Token not found
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
'403': '403':
content: description: Access denied
application/json:
schema:
type: object
additionalProperties: {}
description: Unspecified response body
description: ''
/api/v2beta/sources/saml/: /api/v2beta/sources/saml/:
get: get:
operationId: sources_saml_list operationId: sources_saml_list
@ -13946,9 +13759,6 @@ components:
- POST - POST
- POST_AUTO - POST_AUTO
type: string type: string
BlankEnum:
enum:
- ''
Cache: Cache:
type: object type: object
description: Generic cache stats for an object description: Generic cache stats for an object
@ -14091,7 +13901,7 @@ components:
is currently active is currently active
properties: properties:
type: type:
$ref: '#/components/schemas/Type4f1Enum' $ref: '#/components/schemas/ChallengeChoices'
component: component:
type: string type: string
title: title:
@ -14106,6 +13916,12 @@ components:
$ref: '#/components/schemas/ErrorDetail' $ref: '#/components/schemas/ErrorDetail'
required: required:
- type - type
ChallengeChoices:
enum:
- native
- shell
- redirect
type: string
ClientTypeEnum: ClientTypeEnum:
enum: enum:
- confidential - confidential
@ -14655,21 +14471,19 @@ components:
type: integer type: integer
readOnly: true readOnly: true
action: action:
allOf:
- $ref: '#/components/schemas/ActionEnum'
description: Match created events with this action type. When left empty, description: Match created events with this action type. When left empty,
all action types will be matched. all action types will be matched.
oneOf:
- $ref: '#/components/schemas/ActionEnum'
- $ref: '#/components/schemas/BlankEnum'
client_ip: client_ip:
type: string type: string
description: Matches Event's Client IP (strict matching, for network matching description: Matches Event's Client IP (strict matching, for network matching
use an Expression Policy) use an Expression Policy)
app: app:
allOf:
- $ref: '#/components/schemas/AppEnum'
description: Match events created by selected application. When left empty, description: Match events created by selected application. When left empty,
all applications are matched. all applications are matched.
oneOf:
- $ref: '#/components/schemas/AppEnum'
- $ref: '#/components/schemas/BlankEnum'
required: required:
- bound_to - bound_to
- component - component
@ -14688,21 +14502,19 @@ components:
description: When this option is enabled, all executions of this policy description: When this option is enabled, all executions of this policy
will be logged. By default, only execution errors are logged. will be logged. By default, only execution errors are logged.
action: action:
allOf:
- $ref: '#/components/schemas/ActionEnum'
description: Match created events with this action type. When left empty, description: Match created events with this action type. When left empty,
all action types will be matched. all action types will be matched.
oneOf:
- $ref: '#/components/schemas/ActionEnum'
- $ref: '#/components/schemas/BlankEnum'
client_ip: client_ip:
type: string type: string
description: Matches Event's Client IP (strict matching, for network matching description: Matches Event's Client IP (strict matching, for network matching
use an Expression Policy) use an Expression Policy)
app: app:
allOf:
- $ref: '#/components/schemas/AppEnum'
description: Match events created by selected application. When left empty, description: Match events created by selected application. When left empty,
all applications are matched. all applications are matched.
oneOf:
- $ref: '#/components/schemas/AppEnum'
- $ref: '#/components/schemas/BlankEnum'
EventRequest: EventRequest:
type: object type: object
description: Event Serializer description: Event Serializer
@ -14866,7 +14678,7 @@ components:
format: uuid format: uuid
readOnly: true readOnly: true
cache_count: cache_count:
type: string type: integer
readOnly: true readOnly: true
policy_engine_mode: policy_engine_mode:
$ref: '#/components/schemas/PolicyEngineModeEnum' $ref: '#/components/schemas/PolicyEngineModeEnum'
@ -15813,31 +15625,6 @@ components:
- urn:oasis:names:tc:SAML:2.0:nameid-format:WindowsDomainQualifiedName - urn:oasis:names:tc:SAML:2.0:nameid-format:WindowsDomainQualifiedName
- urn:oasis:names:tc:SAML:2.0:nameid-format:transient - urn:oasis:names:tc:SAML:2.0:nameid-format:transient
type: string type: string
Nested:
type: object
properties:
id:
type: integer
readOnly: true
token:
type: string
maxLength: 16
device:
allOf:
- $ref: '#/components/schemas/Nested'
readOnly: true
required:
- device
- id
- token
NestedRequest:
type: object
properties:
token:
type: string
maxLength: 16
required:
- token
NotConfiguredActionEnum: NotConfiguredActionEnum:
enum: enum:
- skip - skip
@ -18417,21 +18204,19 @@ components:
description: When this option is enabled, all executions of this policy description: When this option is enabled, all executions of this policy
will be logged. By default, only execution errors are logged. will be logged. By default, only execution errors are logged.
action: action:
allOf:
- $ref: '#/components/schemas/ActionEnum'
description: Match created events with this action type. When left empty, description: Match created events with this action type. When left empty,
all action types will be matched. all action types will be matched.
oneOf:
- $ref: '#/components/schemas/ActionEnum'
- $ref: '#/components/schemas/BlankEnum'
client_ip: client_ip:
type: string type: string
description: Matches Event's Client IP (strict matching, for network matching description: Matches Event's Client IP (strict matching, for network matching
use an Expression Policy) use an Expression Policy)
app: app:
allOf:
- $ref: '#/components/schemas/AppEnum'
description: Match events created by selected application. When left empty, description: Match events created by selected application. When left empty,
all applications are matched. all applications are matched.
oneOf:
- $ref: '#/components/schemas/AppEnum'
- $ref: '#/components/schemas/BlankEnum'
PatchedExpressionPolicyRequest: PatchedExpressionPolicyRequest:
type: object type: object
description: Group Membership Policy Serializer description: Group Membership Policy Serializer
@ -19409,6 +19194,10 @@ components:
type: string type: string
description: The human-readable name of this device. description: The human-readable name of this device.
maxLength: 64 maxLength: 64
token_set:
type: array
items:
type: integer
PatchedTOTPDeviceRequest: PatchedTOTPDeviceRequest:
type: object type: object
description: Serializer for totp authenticator devices description: Serializer for totp authenticator devices
@ -20295,7 +20084,7 @@ components:
description: Challenge type to redirect the client description: Challenge type to redirect the client
properties: properties:
type: type:
$ref: '#/components/schemas/Type4f1Enum' $ref: '#/components/schemas/ChallengeChoices'
component: component:
type: string type: string
title: title:
@ -21122,8 +20911,7 @@ components:
token_set: token_set:
type: array type: array
items: items:
$ref: '#/components/schemas/Nested' type: integer
readOnly: true
pk: pk:
type: integer type: integer
readOnly: true readOnly: true
@ -21140,8 +20928,13 @@ components:
type: string type: string
description: The human-readable name of this device. description: The human-readable name of this device.
maxLength: 64 maxLength: 64
token_set:
type: array
items:
type: integer
required: required:
- name - name
- token_set
StatusEnum: StatusEnum:
enum: enum:
- SUCCESSFUL - SUCCESSFUL
@ -21297,12 +21090,6 @@ components:
readOnly: true readOnly: true
required: required:
- key - key
Type4f1Enum:
enum:
- native
- shell
- redirect
type: string
TypeCreate: TypeCreate:
type: object type: object
description: Types of an object that can be created description: Types of an object that can be created

View file

@ -1,20 +1,20 @@
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, TaskStatusEnum } from "authentik-api"; import { AdminApi, StatusEnum } from "authentik-api";
import { DEFAULT_CONFIG } from "../../../api/Config"; import { DEFAULT_CONFIG } from "../../../api/Config";
import { convertToTitle } from "../../../utils"; import { convertToTitle } from "../../../utils";
@customElement("ak-admin-status-card-backup") @customElement("ak-admin-status-card-backup")
export class BackupStatusCard extends AdminStatusCard<TaskStatusEnum> { export class BackupStatusCard extends AdminStatusCard<StatusEnum> {
getPrimaryValue(): Promise<TaskStatusEnum> { getPrimaryValue(): Promise<StatusEnum> {
return new AdminApi(DEFAULT_CONFIG).adminSystemTasksRead({ return new AdminApi(DEFAULT_CONFIG).adminSystemTasksRetrieve({
id: "backup_database" id: "backup_database"
}).then((value) => { }).then((value) => {
return value.status; return value.status;
}).catch(() => { }).catch(() => {
return TaskStatusEnum.Error; return StatusEnum.Error;
}); });
} }
@ -22,14 +22,14 @@ export class BackupStatusCard extends AdminStatusCard<TaskStatusEnum> {
return html`${convertToTitle(this.value?.toString() || "")}`; return html`${convertToTitle(this.value?.toString() || "")}`;
} }
getStatus(value: TaskStatusEnum): Promise<AdminStatus> { getStatus(value: StatusEnum): Promise<AdminStatus> {
switch (value) { switch (value) {
case TaskStatusEnum.Warning: case StatusEnum.Warning:
return Promise.resolve<AdminStatus>({ return Promise.resolve<AdminStatus>({
icon: "fa fa-exclamation-triangle pf-m-warning", icon: "fa fa-exclamation-triangle pf-m-warning",
message: t`Backup finished with warnings.`, message: t`Backup finished with warnings.`,
}); });
case TaskStatusEnum.Error: case StatusEnum.Error:
return Promise.resolve<AdminStatus>({ return Promise.resolve<AdminStatus>({
icon: "fa fa-times-circle pf-m-danger", icon: "fa fa-times-circle pf-m-danger",
message: t`Backup finished with errors.`, message: t`Backup finished with errors.`,

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, TaskStatusEnum } from "authentik-api"; import { SourcesApi, StatusEnum } from "authentik-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";
@ -38,10 +38,10 @@ export class LDAPSyncStatusChart extends AKChart<LDAPSyncStats> {
let unsynced = 0; let unsynced = 0;
await Promise.all(sources.results.map(async (element) => { await Promise.all(sources.results.map(async (element) => {
try { try {
const health = await api.sourcesLdapSyncStatus({ const health = await api.sourcesLdapSyncStatusRetrieve({
slug: element.slug, slug: element.slug,
}); });
if (health.status !== TaskStatusEnum.Successful) { if (health.status !== StatusEnum.Successful) {
failed += 1; failed += 1;
} }
const now = new Date().getTime(); const now = new Date().getTime();

View file

@ -18,7 +18,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class ApplicationForm extends ModelForm<Application, string> { export class ApplicationForm extends ModelForm<Application, string> {
loadInstance(pk: string): Promise<Application> { loadInstance(pk: string): Promise<Application> {
return new CoreApi(DEFAULT_CONFIG).coreApplicationsRead({ return new CoreApi(DEFAULT_CONFIG).coreApplicationsRetrieve({
slug: pk slug: pk
}); });
} }

View file

@ -26,7 +26,7 @@ export class ApplicationViewPage extends LitElement {
@property() @property()
set applicationSlug(value: string) { set applicationSlug(value: string) {
new CoreApi(DEFAULT_CONFIG).coreApplicationsRead({ new CoreApi(DEFAULT_CONFIG).coreApplicationsRetrieve({
slug: value slug: value
}).then((app) => { }).then((app) => {
this.application = app; this.application = app;

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class CertificateKeyPairForm extends ModelForm<CertificateKeyPair, string> { export class CertificateKeyPairForm extends ModelForm<CertificateKeyPair, string> {
loadInstance(pk: string): Promise<CertificateKeyPair> { loadInstance(pk: string): Promise<CertificateKeyPair> {
return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsRead({ return new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsRetrieve({
kpUuid: pk, kpUuid: pk,
}); });
} }

View file

@ -16,7 +16,7 @@ export class EventInfoPage extends LitElement {
@property() @property()
set eventID(value: string) { set eventID(value: string) {
new EventsApi(DEFAULT_CONFIG).eventsEventsRead({ new EventsApi(DEFAULT_CONFIG).eventsEventsRetrieve({
eventUuid: value eventUuid: value
}).then((ev) => { }).then((ev) => {
this.event = ev as EventWithContext; this.event = ev as EventWithContext;

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class RuleForm extends ModelForm<NotificationRule, string> { export class RuleForm extends ModelForm<NotificationRule, string> {
loadInstance(pk: string): Promise<NotificationRule> { loadInstance(pk: string): Promise<NotificationRule> {
return new EventsApi(DEFAULT_CONFIG).eventsRulesRead({ return new EventsApi(DEFAULT_CONFIG).eventsRulesRetrieve({
pbmUuid: pk, pbmUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class TransportForm extends ModelForm<NotificationTransport, string> { export class TransportForm extends ModelForm<NotificationTransport, string> {
loadInstance(pk: string): Promise<NotificationTransport> { loadInstance(pk: string): Promise<NotificationTransport> {
return new EventsApi(DEFAULT_CONFIG).eventsTransportsRead({ return new EventsApi(DEFAULT_CONFIG).eventsTransportsRetrieve({
uuid: pk, uuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class FlowForm extends ModelForm<Flow, string> { export class FlowForm extends ModelForm<Flow, string> {
loadInstance(pk: string): Promise<Flow> { loadInstance(pk: string): Promise<Flow> {
return new FlowsApi(DEFAULT_CONFIG).flowsInstancesRead({ return new FlowsApi(DEFAULT_CONFIG).flowsInstancesRetrieve({
slug: pk, slug: pk,
}); });
} }

View file

@ -23,7 +23,7 @@ import PFGallery from "@patternfly/patternfly/layouts/Gallery/gallery.css";
export class FlowViewPage extends LitElement { export class FlowViewPage extends LitElement {
@property() @property()
set flowSlug(value: string) { set flowSlug(value: string) {
new FlowsApi(DEFAULT_CONFIG).flowsInstancesRead({ new FlowsApi(DEFAULT_CONFIG).flowsInstancesRetrieve({
slug: value slug: value
}).then((flow) => { }).then((flow) => {
this.flow = flow; this.flow = flow;

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class StageBindingForm extends ModelForm<FlowStageBinding, string> { export class StageBindingForm extends ModelForm<FlowStageBinding, string> {
loadInstance(pk: string): Promise<FlowStageBinding> { loadInstance(pk: string): Promise<FlowStageBinding> {
return new FlowsApi(DEFAULT_CONFIG).flowsBindingsRead({ return new FlowsApi(DEFAULT_CONFIG).flowsBindingsRetrieve({
fsbUuid: pk, fsbUuid: pk,
}); });
} }

View file

@ -18,7 +18,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class GroupForm extends ModelForm<Group, string> { export class GroupForm extends ModelForm<Group, string> {
loadInstance(pk: string): Promise<Group> { loadInstance(pk: string): Promise<Group> {
return new CoreApi(DEFAULT_CONFIG).coreGroupsRead({ return new CoreApi(DEFAULT_CONFIG).coreGroupsRetrieve({
groupUuid: pk groupUuid: pk
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class OutpostForm extends ModelForm<Outpost, string> { export class OutpostForm extends ModelForm<Outpost, string> {
loadInstance(pk: string): Promise<Outpost> { loadInstance(pk: string): Promise<Outpost> {
return new OutpostsApi(DEFAULT_CONFIG).outpostsInstancesRead({ return new OutpostsApi(DEFAULT_CONFIG).outpostsInstancesRetrieve({
uuid: pk uuid: pk
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class ServiceConnectionDockerForm extends ModelForm<DockerServiceConnection, string> { export class ServiceConnectionDockerForm extends ModelForm<DockerServiceConnection, string> {
loadInstance(pk: string): Promise<DockerServiceConnection> { loadInstance(pk: string): Promise<DockerServiceConnection> {
return new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsDockerRead({ return new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsDockerRetrieve({
uuid: pk, uuid: pk,
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class ServiceConnectionKubernetesForm extends ModelForm<KubernetesServiceConnection, string> { export class ServiceConnectionKubernetesForm extends ModelForm<KubernetesServiceConnection, string> {
loadInstance(pk: string): Promise<KubernetesServiceConnection> { loadInstance(pk: string): Promise<KubernetesServiceConnection> {
return new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsKubernetesRead({ return new OutpostsApi(DEFAULT_CONFIG).outpostsServiceConnectionsKubernetesRetrieve({
uuid: pk, uuid: pk,
}); });
} }

View file

@ -19,7 +19,7 @@ enum target {
export class PolicyBindingForm extends ModelForm<PolicyBinding, string> { export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
loadInstance(pk: string): Promise<PolicyBinding> { loadInstance(pk: string): Promise<PolicyBinding> {
return new PoliciesApi(DEFAULT_CONFIG).policiesBindingsRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesBindingsRetrieve({
policyBindingUuid: pk policyBindingUuid: pk
}).then(binding => { }).then(binding => {
if (binding?.policyObj) { if (binding?.policyObj) {

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class DummyPolicyForm extends ModelForm<DummyPolicy, string> { export class DummyPolicyForm extends ModelForm<DummyPolicy, string> {
loadInstance(pk: string): Promise<DummyPolicy> { loadInstance(pk: string): Promise<DummyPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesDummyRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesDummyRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class EventMatcherPolicyForm extends ModelForm<EventMatcherPolicy, string> { export class EventMatcherPolicyForm extends ModelForm<EventMatcherPolicy, string> {
loadInstance(pk: string): Promise<EventMatcherPolicy> { loadInstance(pk: string): Promise<EventMatcherPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesEventMatcherRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesEventMatcherRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class PasswordExpiryPolicyForm extends ModelForm<PasswordExpiryPolicy, string> { export class PasswordExpiryPolicyForm extends ModelForm<PasswordExpiryPolicy, string> {
loadInstance(pk: string): Promise<PasswordExpiryPolicy> { loadInstance(pk: string): Promise<PasswordExpiryPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordExpiryRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordExpiryRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class ExpressionPolicyForm extends ModelForm<ExpressionPolicy, string> { export class ExpressionPolicyForm extends ModelForm<ExpressionPolicy, string> {
loadInstance(pk: string): Promise<ExpressionPolicy> { loadInstance(pk: string): Promise<ExpressionPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesExpressionRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesExpressionRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class HaveIBeenPwnedPolicyForm extends ModelForm<HaveIBeenPwendPolicy, string> { export class HaveIBeenPwnedPolicyForm extends ModelForm<HaveIBeenPwendPolicy, string> {
loadInstance(pk: string): Promise<HaveIBeenPwendPolicy> { loadInstance(pk: string): Promise<HaveIBeenPwendPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesHaveibeenpwnedRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesHaveibeenpwnedRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class PasswordPolicyForm extends ModelForm<PasswordPolicy, string> { export class PasswordPolicyForm extends ModelForm<PasswordPolicy, string> {
loadInstance(pk: string): Promise<PasswordPolicy> { loadInstance(pk: string): Promise<PasswordPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesPasswordRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class ReputationPolicyForm extends ModelForm<ReputationPolicy, string> { export class ReputationPolicyForm extends ModelForm<ReputationPolicy, string> {
loadInstance(pk: string): Promise<ReputationPolicy> { loadInstance(pk: string): Promise<ReputationPolicy> {
return new PoliciesApi(DEFAULT_CONFIG).policiesReputationRead({ return new PoliciesApi(DEFAULT_CONFIG).policiesReputationRetrieve({
policyUuid: pk, policyUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class PropertyMappingLDAPForm extends ModelForm<LDAPPropertyMapping, string> { export class PropertyMappingLDAPForm extends ModelForm<LDAPPropertyMapping, string> {
loadInstance(pk: string): Promise<LDAPPropertyMapping> { loadInstance(pk: string): Promise<LDAPPropertyMapping> {
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsLdapRead({ return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsLdapRetrieve({
pmUuid: pk, pmUuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
@customElement("ak-property-mapping-saml-form") @customElement("ak-property-mapping-saml-form")
export class PropertyMappingLDAPForm extends ModelForm<SAMLPropertyMapping, string> { export class PropertyMappingLDAPForm extends ModelForm<SAMLPropertyMapping, string> {
loadInstance(pk: string): Promise<SAMLPropertyMapping> { loadInstance(pk: string): Promise<SAMLPropertyMapping> {
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlRead({ return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsSamlRetrieve({
pmUuid: pk, pmUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import "../../elements/CodeMirror";
export class PropertyMappingScopeForm extends ModelForm<ScopeMapping, string> { export class PropertyMappingScopeForm extends ModelForm<ScopeMapping, string> {
loadInstance(pk: string): Promise<ScopeMapping> { loadInstance(pk: string): Promise<ScopeMapping> {
return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScopeRead({ return new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsScopeRetrieve({
pmUuid: pk, pmUuid: pk,
}); });
} }

View file

@ -17,7 +17,7 @@ export class ProviderViewPage extends LitElement {
@property({type: Number}) @property({type: Number})
set providerID(value: number) { set providerID(value: number) {
new ProvidersApi(DEFAULT_CONFIG).providersAllRead({ new ProvidersApi(DEFAULT_CONFIG).providersAllRetrieve({
id: value, id: value,
}).then((prov) => (this.provider = prov)); }).then((prov) => (this.provider = prov));
} }

View file

@ -14,7 +14,7 @@ import { first } from "../../../utils";
export class LDAPProviderFormPage extends ModelForm<LDAPProvider, number> { export class LDAPProviderFormPage extends ModelForm<LDAPProvider, number> {
loadInstance(pk: number): Promise<LDAPProvider> { loadInstance(pk: number): Promise<LDAPProvider> {
return new ProvidersApi(DEFAULT_CONFIG).providersLdapRead({ return new ProvidersApi(DEFAULT_CONFIG).providersLdapRetrieve({
id: pk, id: pk,
}); });
} }

View file

@ -33,7 +33,7 @@ export class LDAPProviderViewPage extends LitElement {
@property({type: Number}) @property({type: Number})
set providerID(value: number) { set providerID(value: number) {
new ProvidersApi(DEFAULT_CONFIG).providersLdapRead({ new ProvidersApi(DEFAULT_CONFIG).providersLdapRetrieve({
id: value, id: value,
}).then((prov) => (this.provider = prov)); }).then((prov) => (this.provider = prov));
} }

View file

@ -14,7 +14,7 @@ import { first, randomString } from "../../../utils";
export class OAuth2ProviderFormPage extends ModelForm<OAuth2Provider, number> { export class OAuth2ProviderFormPage extends ModelForm<OAuth2Provider, number> {
loadInstance(pk: number): Promise<OAuth2Provider> { loadInstance(pk: number): Promise<OAuth2Provider> {
return new ProvidersApi(DEFAULT_CONFIG).providersOauth2Read({ return new ProvidersApi(DEFAULT_CONFIG).providersOauth2Retrieve({
id: pk, id: pk,
}).then(provider => { }).then(provider => {
this.showClientSecret = provider.clientType === OAuth2ProviderClientTypeEnum.Confidential; this.showClientSecret = provider.clientType === OAuth2ProviderClientTypeEnum.Confidential;

View file

@ -32,7 +32,7 @@ export class OAuth2ProviderViewPage extends LitElement {
@property({type: Number}) @property({type: Number})
set providerID(value: number) { set providerID(value: number) {
const api = new ProvidersApi(DEFAULT_CONFIG); const api = new ProvidersApi(DEFAULT_CONFIG);
api.providersOauth2Read({ api.providersOauth2Retrieve({
id: value id: value
}).then((prov) => { }).then((prov) => {
this.provider = prov; this.provider = prov;

View file

@ -14,7 +14,7 @@ import { first } from "../../../utils";
export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> { export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
loadInstance(pk: number): Promise<ProxyProvider> { loadInstance(pk: number): Promise<ProxyProvider> {
return new ProvidersApi(DEFAULT_CONFIG).providersProxyRead({ return new ProvidersApi(DEFAULT_CONFIG).providersProxyRetrieve({
id: pk, id: pk,
}).then(provider => { }).then(provider => {
this.showHttpBasic = first(provider.basicAuthEnabled, true); this.showHttpBasic = first(provider.basicAuthEnabled, true);

View file

@ -31,7 +31,7 @@ export class ProxyProviderViewPage extends LitElement {
@property({type: Number}) @property({type: Number})
set providerID(value: number) { set providerID(value: number) {
new ProvidersApi(DEFAULT_CONFIG).providersProxyRead({ new ProvidersApi(DEFAULT_CONFIG).providersProxyRetrieve({
id: value, id: value,
}).then((prov) => (this.provider = prov)); }).then((prov) => (this.provider = prov));
} }

View file

@ -14,7 +14,7 @@ export class SAMLProviderFormPage extends ModelForm<SAMLProvider, number> {
loadInstance(pk: number): Promise<SAMLProvider> { loadInstance(pk: number): Promise<SAMLProvider> {
console.log("reading saml provider"); console.log("reading saml provider");
return new ProvidersApi(DEFAULT_CONFIG).providersSamlRead({ return new ProvidersApi(DEFAULT_CONFIG).providersSamlRetrieve({
id: pk, id: pk,
}); });
} }

View file

@ -36,7 +36,7 @@ export class SAMLProviderViewPage extends LitElement {
@property({type: Number}) @property({type: Number})
set providerID(value: number) { set providerID(value: number) {
new ProvidersApi(DEFAULT_CONFIG).providersSamlRead({ new ProvidersApi(DEFAULT_CONFIG).providersSamlRetrieve({
id: value, id: value,
}).then((prov) => (this.provider = prov)); }).then((prov) => (this.provider = prov));
} }

View file

@ -17,7 +17,7 @@ export class SourceViewPage extends LitElement {
@property({ type: String }) @property({ type: String })
set sourceSlug(slug: string) { set sourceSlug(slug: string) {
new SourcesApi(DEFAULT_CONFIG).sourcesAllRead({ new SourcesApi(DEFAULT_CONFIG).sourcesAllRetrieve({
slug: slug slug: slug
}).then((source) => { }).then((source) => {
this.source = source; this.source = source;

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class LDAPSourceForm extends ModelForm<LDAPSource, string> { export class LDAPSourceForm extends ModelForm<LDAPSource, string> {
loadInstance(pk: string): Promise<LDAPSource> { loadInstance(pk: string): Promise<LDAPSource> {
return new SourcesApi(DEFAULT_CONFIG).sourcesLdapRead({ return new SourcesApi(DEFAULT_CONFIG).sourcesLdapRetrieve({
slug: pk, slug: pk,
}); });
} }

View file

@ -30,7 +30,7 @@ export class LDAPSourceViewPage extends LitElement {
@property({ type: String }) @property({ type: String })
set sourceSlug(slug: string) { set sourceSlug(slug: string) {
new SourcesApi(DEFAULT_CONFIG).sourcesLdapRead({ new SourcesApi(DEFAULT_CONFIG).sourcesLdapRetrieve({
slug: slug slug: slug
}).then((source) => { }).then((source) => {
this.source = source; this.source = source;

View file

@ -15,7 +15,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class OAuthSourceForm extends ModelForm<OAuthSource, string> { export class OAuthSourceForm extends ModelForm<OAuthSource, string> {
loadInstance(pk: string): Promise<OAuthSource> { loadInstance(pk: string): Promise<OAuthSource> {
return new SourcesApi(DEFAULT_CONFIG).sourcesOauthRead({ return new SourcesApi(DEFAULT_CONFIG).sourcesOauthRetrieve({
slug: pk, slug: pk,
}).then(source => { }).then(source => {
this.showUrlOptions = first(source.type?.urlsCustomizable, false); this.showUrlOptions = first(source.type?.urlsCustomizable, false);

View file

@ -29,7 +29,7 @@ export class OAuthSourceViewPage extends LitElement {
@property({ type: String }) @property({ type: String })
set sourceSlug(value: string) { set sourceSlug(value: string) {
new SourcesApi(DEFAULT_CONFIG).sourcesOauthRead({ new SourcesApi(DEFAULT_CONFIG).sourcesOauthRetrieve({
slug: value slug: value
}).then((source) => { }).then((source) => {
this.source = source; this.source = source;

View file

@ -16,7 +16,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class PlexSourceForm extends ModelForm<PlexSource, string> { export class PlexSourceForm extends ModelForm<PlexSource, string> {
loadInstance(pk: string): Promise<PlexSource> { loadInstance(pk: string): Promise<PlexSource> {
return new SourcesApi(DEFAULT_CONFIG).sourcesPlexRead({ return new SourcesApi(DEFAULT_CONFIG).sourcesPlexRetrieve({
slug: pk, slug: pk,
}).then(source => { }).then(source => {
this.plexToken = source.plexToken; this.plexToken = source.plexToken;

View file

@ -29,7 +29,7 @@ export class PlexSourceViewPage extends LitElement {
@property({ type: String }) @property({ type: String })
set sourceSlug(value: string) { set sourceSlug(value: string) {
new SourcesApi(DEFAULT_CONFIG).sourcesPlexRead({ new SourcesApi(DEFAULT_CONFIG).sourcesPlexRetrieve({
slug: value slug: value
}).then((source) => { }).then((source) => {
this.source = source; this.source = source;

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class SAMLSourceForm extends ModelForm<SAMLSource, string> { export class SAMLSourceForm extends ModelForm<SAMLSource, string> {
loadInstance(pk: string): Promise<SAMLSource> { loadInstance(pk: string): Promise<SAMLSource> {
return new SourcesApi(DEFAULT_CONFIG).sourcesSamlRead({ return new SourcesApi(DEFAULT_CONFIG).sourcesSamlRetrieve({
slug: pk, slug: pk,
}); });
} }

View file

@ -32,7 +32,7 @@ export class SAMLSourceViewPage extends LitElement {
@property({ type: String }) @property({ type: String })
set sourceSlug(slug: string) { set sourceSlug(slug: string) {
new SourcesApi(DEFAULT_CONFIG).sourcesSamlRead({ new SourcesApi(DEFAULT_CONFIG).sourcesSamlRetrieve({
slug: slug slug: slug
}).then((source) => { }).then((source) => {
this.source = source; this.source = source;

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class AuthenticatorStaticStageForm extends ModelForm<AuthenticatorStaticStage, string> { export class AuthenticatorStaticStageForm extends ModelForm<AuthenticatorStaticStage, string> {
loadInstance(pk: string): Promise<AuthenticatorStaticStage> { loadInstance(pk: string): Promise<AuthenticatorStaticStage> {
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorStaticRead({ return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorStaticRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class AuthenticatorTOTPStageForm extends ModelForm<AuthenticatorTOTPStage, string> { export class AuthenticatorTOTPStageForm extends ModelForm<AuthenticatorTOTPStage, string> {
loadInstance(pk: string): Promise<AuthenticatorTOTPStage> { loadInstance(pk: string): Promise<AuthenticatorTOTPStage> {
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorTotpRead({ return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorTotpRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValidateStage, string> { export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValidateStage, string> {
loadInstance(pk: string): Promise<AuthenticatorValidateStage> { loadInstance(pk: string): Promise<AuthenticatorValidateStage> {
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateRead({ return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateRetrieve({
stageUuid: pk, stageUuid: pk,
}).then(stage => { }).then(stage => {
this.showConfigureFlow = stage.notConfiguredAction === AuthenticatorValidateStageNotConfiguredActionEnum.Configure; this.showConfigureFlow = stage.notConfiguredAction === AuthenticatorValidateStageNotConfiguredActionEnum.Configure;

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class AuthenticateWebAuthnStageForm extends ModelForm<AuthenticateWebAuthnStage, string> { export class AuthenticateWebAuthnStageForm extends ModelForm<AuthenticateWebAuthnStage, string> {
loadInstance(pk: string): Promise<AuthenticateWebAuthnStage> { loadInstance(pk: string): Promise<AuthenticateWebAuthnStage> {
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorWebauthnRead({ return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorWebauthnRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class CaptchaStageForm extends ModelForm<CaptchaStage, string> { export class CaptchaStageForm extends ModelForm<CaptchaStage, string> {
loadInstance(pk: string): Promise<CaptchaStage> { loadInstance(pk: string): Promise<CaptchaStage> {
return new StagesApi(DEFAULT_CONFIG).stagesCaptchaRead({ return new StagesApi(DEFAULT_CONFIG).stagesCaptchaRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class ConsentStageForm extends ModelForm<ConsentStage, string> { export class ConsentStageForm extends ModelForm<ConsentStage, string> {
loadInstance(pk: string): Promise<ConsentStage> { loadInstance(pk: string): Promise<ConsentStage> {
return new StagesApi(DEFAULT_CONFIG).stagesConsentRead({ return new StagesApi(DEFAULT_CONFIG).stagesConsentRetrieve({
stageUuid: pk, stageUuid: pk,
}).then(stage => { }).then(stage => {
this.showExpiresIn = stage.name === ConsentStageModeEnum.Expiring; this.showExpiresIn = stage.name === ConsentStageModeEnum.Expiring;

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class DenyStageForm extends ModelForm<DenyStage, string> { export class DenyStageForm extends ModelForm<DenyStage, string> {
loadInstance(pk: string): Promise<DenyStage> { loadInstance(pk: string): Promise<DenyStage> {
return new StagesApi(DEFAULT_CONFIG).stagesDenyRead({ return new StagesApi(DEFAULT_CONFIG).stagesDenyRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class DummyStageForm extends ModelForm<DummyStage, string> { export class DummyStageForm extends ModelForm<DummyStage, string> {
loadInstance(pk: string): Promise<DummyStage> { loadInstance(pk: string): Promise<DummyStage> {
return new StagesApi(DEFAULT_CONFIG).stagesDummyRead({ return new StagesApi(DEFAULT_CONFIG).stagesDummyRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class EmailStageForm extends ModelForm<EmailStage, string> { export class EmailStageForm extends ModelForm<EmailStage, string> {
loadInstance(pk: string): Promise<EmailStage> { loadInstance(pk: string): Promise<EmailStage> {
return new StagesApi(DEFAULT_CONFIG).stagesEmailRead({ return new StagesApi(DEFAULT_CONFIG).stagesEmailRetrieve({
stageUuid: pk, stageUuid: pk,
}).then(stage => { }).then(stage => {
this.showConnectionSettings = !stage.useGlobalSettings; this.showConnectionSettings = !stage.useGlobalSettings;

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class IdentificationStageForm extends ModelForm<IdentificationStage, string> { export class IdentificationStageForm extends ModelForm<IdentificationStage, string> {
loadInstance(pk: string): Promise<IdentificationStage> { loadInstance(pk: string): Promise<IdentificationStage> {
return new StagesApi(DEFAULT_CONFIG).stagesIdentificationRead({ return new StagesApi(DEFAULT_CONFIG).stagesIdentificationRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class InvitationForm extends ModelForm<Invitation, string> { export class InvitationForm extends ModelForm<Invitation, string> {
loadInstance(pk: string): Promise<Invitation> { loadInstance(pk: string): Promise<Invitation> {
return new StagesApi(DEFAULT_CONFIG).stagesInvitationInvitationsRead({ return new StagesApi(DEFAULT_CONFIG).stagesInvitationInvitationsRetrieve({
inviteUuid: pk, inviteUuid: pk,
}); });
} }

View file

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class InvitationStageForm extends ModelForm<InvitationStage, string> { export class InvitationStageForm extends ModelForm<InvitationStage, string> {
loadInstance(pk: string): Promise<InvitationStage> { loadInstance(pk: string): Promise<InvitationStage> {
return new StagesApi(DEFAULT_CONFIG).stagesInvitationStagesRead({ return new StagesApi(DEFAULT_CONFIG).stagesInvitationStagesRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class PasswordStageForm extends ModelForm<PasswordStage, string> { export class PasswordStageForm extends ModelForm<PasswordStage, string> {
loadInstance(pk: string): Promise<PasswordStage> { loadInstance(pk: string): Promise<PasswordStage> {
return new StagesApi(DEFAULT_CONFIG).stagesPasswordRead({ return new StagesApi(DEFAULT_CONFIG).stagesPasswordRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class PromptForm extends ModelForm<Prompt, string> { export class PromptForm extends ModelForm<Prompt, string> {
loadInstance(pk: string): Promise<Prompt> { loadInstance(pk: string): Promise<Prompt> {
return new StagesApi(DEFAULT_CONFIG).stagesPromptPromptsRead({ return new StagesApi(DEFAULT_CONFIG).stagesPromptPromptsRetrieve({
promptUuid: pk promptUuid: pk
}); });
} }

View file

@ -15,7 +15,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class PromptStageForm extends ModelForm<PromptStage, string> { export class PromptStageForm extends ModelForm<PromptStage, string> {
loadInstance(pk: string): Promise<PromptStage> { loadInstance(pk: string): Promise<PromptStage> {
return new StagesApi(DEFAULT_CONFIG).stagesPromptStagesRead({ return new StagesApi(DEFAULT_CONFIG).stagesPromptStagesRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class UserDeleteStageForm extends ModelForm<UserDeleteStage, string> { export class UserDeleteStageForm extends ModelForm<UserDeleteStage, string> {
loadInstance(pk: string): Promise<UserDeleteStage> { loadInstance(pk: string): Promise<UserDeleteStage> {
return new StagesApi(DEFAULT_CONFIG).stagesUserDeleteRead({ return new StagesApi(DEFAULT_CONFIG).stagesUserDeleteRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -12,7 +12,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class UserLoginStageForm extends ModelForm<UserLoginStage, string> { export class UserLoginStageForm extends ModelForm<UserLoginStage, string> {
loadInstance(pk: string): Promise<UserLoginStage> { loadInstance(pk: string): Promise<UserLoginStage> {
return new StagesApi(DEFAULT_CONFIG).stagesUserLoginRead({ return new StagesApi(DEFAULT_CONFIG).stagesUserLoginRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class UserLogoutStageForm extends ModelForm<UserLogoutStage, string> { export class UserLogoutStageForm extends ModelForm<UserLogoutStage, string> {
loadInstance(pk: string): Promise<UserLogoutStage> { loadInstance(pk: string): Promise<UserLogoutStage> {
return new StagesApi(DEFAULT_CONFIG).stagesUserLogoutRead({ return new StagesApi(DEFAULT_CONFIG).stagesUserLogoutRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class UserWriteStageForm extends ModelForm<UserWriteStage, string> { export class UserWriteStageForm extends ModelForm<UserWriteStage, string> {
loadInstance(pk: string): Promise<UserWriteStage> { loadInstance(pk: string): Promise<UserWriteStage> {
return new StagesApi(DEFAULT_CONFIG).stagesUserWriteRead({ return new StagesApi(DEFAULT_CONFIG).stagesUserWriteRetrieve({
stageUuid: pk, stageUuid: pk,
}); });
} }

View file

@ -11,7 +11,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class UserTokenForm extends ModelForm<Token, string> { export class UserTokenForm extends ModelForm<Token, string> {
loadInstance(pk: string): Promise<Token> { loadInstance(pk: string): Promise<Token> {
return new CoreApi(DEFAULT_CONFIG).coreTokensRead({ return new CoreApi(DEFAULT_CONFIG).coreTokensRetrieve({
identifier: pk identifier: pk
}); });
} }

View file

@ -14,7 +14,7 @@ import { ModelForm } from "../../elements/forms/ModelForm";
export class UserForm extends ModelForm<User, number> { export class UserForm extends ModelForm<User, number> {
loadInstance(pk: number): Promise<User> { loadInstance(pk: number): Promise<User> {
return new CoreApi(DEFAULT_CONFIG).coreUsersRead({ return new CoreApi(DEFAULT_CONFIG).coreUsersRetrieve({
id: pk id: pk
}); });
} }

View file

@ -38,7 +38,7 @@ export class UserViewPage extends LitElement {
@property({ type: Number }) @property({ type: Number })
set userId(id: number) { set userId(id: number) {
new CoreApi(DEFAULT_CONFIG).coreUsersRead({ new CoreApi(DEFAULT_CONFIG).coreUsersRetrieve({
id: id, id: id,
}).then((user) => { }).then((user) => {
this.user = user; this.user = user;