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

View File

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

View File

@ -1,6 +1,6 @@
import { t } from "@lingui/macro";
import { customElement } from "lit-element";
import { SourcesApi, TaskStatusEnum } from "authentik-api";
import { SourcesApi, StatusEnum } from "authentik-api";
import { DEFAULT_CONFIG } from "../../../api/Config";
import "../../../elements/forms/ConfirmationForm";
import { AKChart } from "../../../elements/charts/Chart";
@ -38,10 +38,10 @@ export class LDAPSyncStatusChart extends AKChart<LDAPSyncStats> {
let unsynced = 0;
await Promise.all(sources.results.map(async (element) => {
try {
const health = await api.sourcesLdapSyncStatus({
const health = await api.sourcesLdapSyncStatusRetrieve({
slug: element.slug,
});
if (health.status !== TaskStatusEnum.Successful) {
if (health.status !== StatusEnum.Successful) {
failed += 1;
}
const now = new Date().getTime();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,7 +13,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class AuthenticatorValidateStageForm extends ModelForm<AuthenticatorValidateStage, string> {
loadInstance(pk: string): Promise<AuthenticatorValidateStage> {
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateRead({
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorValidateRetrieve({
stageUuid: pk,
}).then(stage => {
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> {
loadInstance(pk: string): Promise<AuthenticateWebAuthnStage> {
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorWebauthnRead({
return new StagesApi(DEFAULT_CONFIG).stagesAuthenticatorWebauthnRetrieve({
stageUuid: pk,
});
}

View File

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

View File

@ -12,7 +12,7 @@ import { ModelForm } from "../../../elements/forms/ModelForm";
export class ConsentStageForm extends ModelForm<ConsentStage, string> {
loadInstance(pk: string): Promise<ConsentStage> {
return new StagesApi(DEFAULT_CONFIG).stagesConsentRead({
return new StagesApi(DEFAULT_CONFIG).stagesConsentRetrieve({
stageUuid: pk,
}).then(stage => {
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> {
loadInstance(pk: string): Promise<DenyStage> {
return new StagesApi(DEFAULT_CONFIG).stagesDenyRead({
return new StagesApi(DEFAULT_CONFIG).stagesDenyRetrieve({
stageUuid: pk,
});
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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