@goauthentik/api 2022.8.2-1662409170 → 2022.8.2-1662930968
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +1 -0
- package/dist/apis/AdminApi.d.ts +2 -2
- package/dist/apis/AdminApi.js +2 -2
- package/dist/esm/apis/AdminApi.d.ts +2 -2
- package/dist/esm/apis/AdminApi.js +2 -2
- package/dist/esm/models/ChallengeTypes.d.ts +3 -0
- package/dist/esm/models/ChallengeTypes.js +5 -0
- package/dist/esm/models/FlowErrorChallenge.d.ts +81 -0
- package/dist/esm/models/FlowErrorChallenge.js +54 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/ChallengeTypes.d.ts +3 -0
- package/dist/models/ChallengeTypes.js +5 -0
- package/dist/models/FlowErrorChallenge.d.ts +81 -0
- package/dist/models/FlowErrorChallenge.js +60 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +8 -2
- package/src/apis/AuthenticatorsApi.ts +6 -0
- package/src/apis/CoreApi.ts +6 -0
- package/src/apis/CryptoApi.ts +6 -0
- package/src/apis/EventsApi.ts +6 -0
- package/src/apis/FlowsApi.ts +6 -0
- package/src/apis/ManagedApi.ts +6 -0
- package/src/apis/Oauth2Api.ts +6 -0
- package/src/apis/OutpostsApi.ts +6 -0
- package/src/apis/PoliciesApi.ts +6 -0
- package/src/apis/PropertymappingsApi.ts +6 -0
- package/src/apis/ProvidersApi.ts +6 -0
- package/src/apis/RootApi.ts +6 -0
- package/src/apis/SchemaApi.ts +8 -0
- package/src/apis/SourcesApi.ts +6 -0
- package/src/apis/StagesApi.ts +6 -0
- package/src/models/ChallengeTypes.ts +11 -1
- package/src/models/FlowErrorChallenge.ts +140 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -133,6 +133,7 @@ src/models/Flow.ts
|
|
|
133
133
|
src/models/FlowChallengeResponseRequest.ts
|
|
134
134
|
src/models/FlowDesignationEnum.ts
|
|
135
135
|
src/models/FlowDiagram.ts
|
|
136
|
+
src/models/FlowErrorChallenge.ts
|
|
136
137
|
src/models/FlowInspection.ts
|
|
137
138
|
src/models/FlowInspectorPlan.ts
|
|
138
139
|
src/models/FlowInspectorPlanCurrentStage.ts
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -22,11 +22,11 @@ export interface AdminSystemTasksRetryCreateRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class AdminApi extends runtime.BaseAPI {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Read-only view list all installed apps
|
|
26
26
|
*/
|
|
27
27
|
adminAppsListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<App>>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Read-only view list all installed apps
|
|
30
30
|
*/
|
|
31
31
|
adminAppsList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<App>>;
|
|
32
32
|
/**
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -30,7 +30,7 @@ const models_1 = require("../models");
|
|
|
30
30
|
*/
|
|
31
31
|
class AdminApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Read-only view list all installed apps
|
|
34
34
|
*/
|
|
35
35
|
adminAppsListRaw(initOverrides) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -49,7 +49,7 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Read-only view list all installed apps
|
|
53
53
|
*/
|
|
54
54
|
adminAppsList(initOverrides) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -22,11 +22,11 @@ export interface AdminSystemTasksRetryCreateRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class AdminApi extends runtime.BaseAPI {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Read-only view list all installed apps
|
|
26
26
|
*/
|
|
27
27
|
adminAppsListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<App>>>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Read-only view list all installed apps
|
|
30
30
|
*/
|
|
31
31
|
adminAppsList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<App>>;
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ import { AppFromJSON, LoginMetricsFromJSON, SystemFromJSON, TaskFromJSON, Versio
|
|
|
27
27
|
*/
|
|
28
28
|
export class AdminApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Read-only view list all installed apps
|
|
31
31
|
*/
|
|
32
32
|
adminAppsListRaw(initOverrides) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -46,7 +46,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Read-only view list all installed apps
|
|
50
50
|
*/
|
|
51
51
|
adminAppsList(initOverrides) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -22,6 +22,7 @@ import { CaptchaChallenge } from './CaptchaChallenge';
|
|
|
22
22
|
import { ConsentChallenge } from './ConsentChallenge';
|
|
23
23
|
import { DummyChallenge } from './DummyChallenge';
|
|
24
24
|
import { EmailChallenge } from './EmailChallenge';
|
|
25
|
+
import { FlowErrorChallenge } from './FlowErrorChallenge';
|
|
25
26
|
import { IdentificationChallenge } from './IdentificationChallenge';
|
|
26
27
|
import { PasswordChallenge } from './PasswordChallenge';
|
|
27
28
|
import { PlexAuthenticationChallenge } from './PlexAuthenticationChallenge';
|
|
@@ -68,6 +69,8 @@ export declare type ChallengeTypes = {
|
|
|
68
69
|
} & PasswordChallenge | {
|
|
69
70
|
component: 'ak-stage-prompt';
|
|
70
71
|
} & PromptChallenge | {
|
|
72
|
+
component: 'xak-flow-error';
|
|
73
|
+
} & FlowErrorChallenge | {
|
|
71
74
|
component: 'xak-flow-redirect';
|
|
72
75
|
} & RedirectChallenge | {
|
|
73
76
|
component: 'xak-flow-shell';
|
|
@@ -24,6 +24,7 @@ import { CaptchaChallengeFromJSONTyped, CaptchaChallengeToJSON, } from './Captch
|
|
|
24
24
|
import { ConsentChallengeFromJSONTyped, ConsentChallengeToJSON, } from './ConsentChallenge';
|
|
25
25
|
import { DummyChallengeFromJSONTyped, DummyChallengeToJSON, } from './DummyChallenge';
|
|
26
26
|
import { EmailChallengeFromJSONTyped, EmailChallengeToJSON, } from './EmailChallenge';
|
|
27
|
+
import { FlowErrorChallengeFromJSONTyped, FlowErrorChallengeToJSON, } from './FlowErrorChallenge';
|
|
27
28
|
import { IdentificationChallengeFromJSONTyped, IdentificationChallengeToJSON, } from './IdentificationChallenge';
|
|
28
29
|
import { PasswordChallengeFromJSONTyped, PasswordChallengeToJSON, } from './PasswordChallenge';
|
|
29
30
|
import { PlexAuthenticationChallengeFromJSONTyped, PlexAuthenticationChallengeToJSON, } from './PlexAuthenticationChallenge';
|
|
@@ -72,6 +73,8 @@ export function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
73
|
return Object.assign(Object.assign({}, PasswordChallengeFromJSONTyped(json, true)), { component: 'ak-stage-password' });
|
|
73
74
|
case 'ak-stage-prompt':
|
|
74
75
|
return Object.assign(Object.assign({}, PromptChallengeFromJSONTyped(json, true)), { component: 'ak-stage-prompt' });
|
|
76
|
+
case 'xak-flow-error':
|
|
77
|
+
return Object.assign(Object.assign({}, FlowErrorChallengeFromJSONTyped(json, true)), { component: 'xak-flow-error' });
|
|
75
78
|
case 'xak-flow-redirect':
|
|
76
79
|
return Object.assign(Object.assign({}, RedirectChallengeFromJSONTyped(json, true)), { component: 'xak-flow-redirect' });
|
|
77
80
|
case 'xak-flow-shell':
|
|
@@ -122,6 +125,8 @@ export function ChallengeTypesToJSON(value) {
|
|
|
122
125
|
return PasswordChallengeToJSON(value);
|
|
123
126
|
case 'ak-stage-prompt':
|
|
124
127
|
return PromptChallengeToJSON(value);
|
|
128
|
+
case 'xak-flow-error':
|
|
129
|
+
return FlowErrorChallengeToJSON(value);
|
|
125
130
|
case 'xak-flow-redirect':
|
|
126
131
|
return RedirectChallengeToJSON(value);
|
|
127
132
|
case 'xak-flow-shell':
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChallengeChoices } from './ChallengeChoices';
|
|
13
|
+
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
|
+
import { ErrorDetail } from './ErrorDetail';
|
|
15
|
+
/**
|
|
16
|
+
* Challenge class when an unhandled error occurs during a stage. Normal users
|
|
17
|
+
* are shown an error message, superusers are shown a full stacktrace.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FlowErrorChallenge
|
|
20
|
+
*/
|
|
21
|
+
export interface FlowErrorChallenge {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ChallengeChoices}
|
|
25
|
+
* @memberof FlowErrorChallenge
|
|
26
|
+
*/
|
|
27
|
+
type: ChallengeChoices;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ContextualFlowInfo}
|
|
31
|
+
* @memberof FlowErrorChallenge
|
|
32
|
+
*/
|
|
33
|
+
flowInfo?: ContextualFlowInfo;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FlowErrorChallenge
|
|
38
|
+
*/
|
|
39
|
+
component?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
43
|
+
* @memberof FlowErrorChallenge
|
|
44
|
+
*/
|
|
45
|
+
responseErrors?: {
|
|
46
|
+
[key: string]: Array<ErrorDetail>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof FlowErrorChallenge
|
|
52
|
+
*/
|
|
53
|
+
pendingUser: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof FlowErrorChallenge
|
|
58
|
+
*/
|
|
59
|
+
pendingUserAvatar: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof FlowErrorChallenge
|
|
64
|
+
*/
|
|
65
|
+
requestId: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof FlowErrorChallenge
|
|
70
|
+
*/
|
|
71
|
+
error?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof FlowErrorChallenge
|
|
76
|
+
*/
|
|
77
|
+
traceback?: string;
|
|
78
|
+
}
|
|
79
|
+
export declare function FlowErrorChallengeFromJSON(json: any): FlowErrorChallenge;
|
|
80
|
+
export declare function FlowErrorChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowErrorChallenge;
|
|
81
|
+
export declare function FlowErrorChallengeToJSON(value?: FlowErrorChallenge | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { ChallengeChoicesFromJSON, ChallengeChoicesToJSON, } from './ChallengeChoices';
|
|
16
|
+
import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './ContextualFlowInfo';
|
|
17
|
+
export function FlowErrorChallengeFromJSON(json) {
|
|
18
|
+
return FlowErrorChallengeFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function FlowErrorChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
|
+
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
|
+
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
|
+
'pendingUser': json['pending_user'],
|
|
30
|
+
'pendingUserAvatar': json['pending_user_avatar'],
|
|
31
|
+
'requestId': json['request_id'],
|
|
32
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
33
|
+
'traceback': !exists(json, 'traceback') ? undefined : json['traceback'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function FlowErrorChallengeToJSON(value) {
|
|
37
|
+
if (value === undefined) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
if (value === null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'type': ChallengeChoicesToJSON(value.type),
|
|
45
|
+
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
46
|
+
'component': value.component,
|
|
47
|
+
'response_errors': value.responseErrors,
|
|
48
|
+
'pending_user': value.pendingUser,
|
|
49
|
+
'pending_user_avatar': value.pendingUserAvatar,
|
|
50
|
+
'request_id': value.requestId,
|
|
51
|
+
'error': value.error,
|
|
52
|
+
'traceback': value.traceback,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -110,6 +110,7 @@ export * from './Flow';
|
|
|
110
110
|
export * from './FlowChallengeResponseRequest';
|
|
111
111
|
export * from './FlowDesignationEnum';
|
|
112
112
|
export * from './FlowDiagram';
|
|
113
|
+
export * from './FlowErrorChallenge';
|
|
113
114
|
export * from './FlowInspection';
|
|
114
115
|
export * from './FlowInspectorPlan';
|
|
115
116
|
export * from './FlowInspectorPlanCurrentStage';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -112,6 +112,7 @@ export * from './Flow';
|
|
|
112
112
|
export * from './FlowChallengeResponseRequest';
|
|
113
113
|
export * from './FlowDesignationEnum';
|
|
114
114
|
export * from './FlowDiagram';
|
|
115
|
+
export * from './FlowErrorChallenge';
|
|
115
116
|
export * from './FlowInspection';
|
|
116
117
|
export * from './FlowInspectorPlan';
|
|
117
118
|
export * from './FlowInspectorPlanCurrentStage';
|
|
@@ -22,6 +22,7 @@ import { CaptchaChallenge } from './CaptchaChallenge';
|
|
|
22
22
|
import { ConsentChallenge } from './ConsentChallenge';
|
|
23
23
|
import { DummyChallenge } from './DummyChallenge';
|
|
24
24
|
import { EmailChallenge } from './EmailChallenge';
|
|
25
|
+
import { FlowErrorChallenge } from './FlowErrorChallenge';
|
|
25
26
|
import { IdentificationChallenge } from './IdentificationChallenge';
|
|
26
27
|
import { PasswordChallenge } from './PasswordChallenge';
|
|
27
28
|
import { PlexAuthenticationChallenge } from './PlexAuthenticationChallenge';
|
|
@@ -68,6 +69,8 @@ export declare type ChallengeTypes = {
|
|
|
68
69
|
} & PasswordChallenge | {
|
|
69
70
|
component: 'ak-stage-prompt';
|
|
70
71
|
} & PromptChallenge | {
|
|
72
|
+
component: 'xak-flow-error';
|
|
73
|
+
} & FlowErrorChallenge | {
|
|
71
74
|
component: 'xak-flow-redirect';
|
|
72
75
|
} & RedirectChallenge | {
|
|
73
76
|
component: 'xak-flow-shell';
|
|
@@ -27,6 +27,7 @@ const CaptchaChallenge_1 = require("./CaptchaChallenge");
|
|
|
27
27
|
const ConsentChallenge_1 = require("./ConsentChallenge");
|
|
28
28
|
const DummyChallenge_1 = require("./DummyChallenge");
|
|
29
29
|
const EmailChallenge_1 = require("./EmailChallenge");
|
|
30
|
+
const FlowErrorChallenge_1 = require("./FlowErrorChallenge");
|
|
30
31
|
const IdentificationChallenge_1 = require("./IdentificationChallenge");
|
|
31
32
|
const PasswordChallenge_1 = require("./PasswordChallenge");
|
|
32
33
|
const PlexAuthenticationChallenge_1 = require("./PlexAuthenticationChallenge");
|
|
@@ -76,6 +77,8 @@ function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
77
|
return Object.assign(Object.assign({}, (0, PasswordChallenge_1.PasswordChallengeFromJSONTyped)(json, true)), { component: 'ak-stage-password' });
|
|
77
78
|
case 'ak-stage-prompt':
|
|
78
79
|
return Object.assign(Object.assign({}, (0, PromptChallenge_1.PromptChallengeFromJSONTyped)(json, true)), { component: 'ak-stage-prompt' });
|
|
80
|
+
case 'xak-flow-error':
|
|
81
|
+
return Object.assign(Object.assign({}, (0, FlowErrorChallenge_1.FlowErrorChallengeFromJSONTyped)(json, true)), { component: 'xak-flow-error' });
|
|
79
82
|
case 'xak-flow-redirect':
|
|
80
83
|
return Object.assign(Object.assign({}, (0, RedirectChallenge_1.RedirectChallengeFromJSONTyped)(json, true)), { component: 'xak-flow-redirect' });
|
|
81
84
|
case 'xak-flow-shell':
|
|
@@ -127,6 +130,8 @@ function ChallengeTypesToJSON(value) {
|
|
|
127
130
|
return (0, PasswordChallenge_1.PasswordChallengeToJSON)(value);
|
|
128
131
|
case 'ak-stage-prompt':
|
|
129
132
|
return (0, PromptChallenge_1.PromptChallengeToJSON)(value);
|
|
133
|
+
case 'xak-flow-error':
|
|
134
|
+
return (0, FlowErrorChallenge_1.FlowErrorChallengeToJSON)(value);
|
|
130
135
|
case 'xak-flow-redirect':
|
|
131
136
|
return (0, RedirectChallenge_1.RedirectChallengeToJSON)(value);
|
|
132
137
|
case 'xak-flow-shell':
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ChallengeChoices } from './ChallengeChoices';
|
|
13
|
+
import { ContextualFlowInfo } from './ContextualFlowInfo';
|
|
14
|
+
import { ErrorDetail } from './ErrorDetail';
|
|
15
|
+
/**
|
|
16
|
+
* Challenge class when an unhandled error occurs during a stage. Normal users
|
|
17
|
+
* are shown an error message, superusers are shown a full stacktrace.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FlowErrorChallenge
|
|
20
|
+
*/
|
|
21
|
+
export interface FlowErrorChallenge {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ChallengeChoices}
|
|
25
|
+
* @memberof FlowErrorChallenge
|
|
26
|
+
*/
|
|
27
|
+
type: ChallengeChoices;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ContextualFlowInfo}
|
|
31
|
+
* @memberof FlowErrorChallenge
|
|
32
|
+
*/
|
|
33
|
+
flowInfo?: ContextualFlowInfo;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FlowErrorChallenge
|
|
38
|
+
*/
|
|
39
|
+
component?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
43
|
+
* @memberof FlowErrorChallenge
|
|
44
|
+
*/
|
|
45
|
+
responseErrors?: {
|
|
46
|
+
[key: string]: Array<ErrorDetail>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof FlowErrorChallenge
|
|
52
|
+
*/
|
|
53
|
+
pendingUser: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof FlowErrorChallenge
|
|
58
|
+
*/
|
|
59
|
+
pendingUserAvatar: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof FlowErrorChallenge
|
|
64
|
+
*/
|
|
65
|
+
requestId: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof FlowErrorChallenge
|
|
70
|
+
*/
|
|
71
|
+
error?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof FlowErrorChallenge
|
|
76
|
+
*/
|
|
77
|
+
traceback?: string;
|
|
78
|
+
}
|
|
79
|
+
export declare function FlowErrorChallengeFromJSON(json: any): FlowErrorChallenge;
|
|
80
|
+
export declare function FlowErrorChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowErrorChallenge;
|
|
81
|
+
export declare function FlowErrorChallengeToJSON(value?: FlowErrorChallenge | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.FlowErrorChallengeToJSON = exports.FlowErrorChallengeFromJSONTyped = exports.FlowErrorChallengeFromJSON = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const ChallengeChoices_1 = require("./ChallengeChoices");
|
|
19
|
+
const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
|
|
20
|
+
function FlowErrorChallengeFromJSON(json) {
|
|
21
|
+
return FlowErrorChallengeFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
exports.FlowErrorChallengeFromJSON = FlowErrorChallengeFromJSON;
|
|
24
|
+
function FlowErrorChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'type': (0, ChallengeChoices_1.ChallengeChoicesFromJSON)(json['type']),
|
|
30
|
+
'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
|
|
31
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
32
|
+
'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
|
|
33
|
+
'pendingUser': json['pending_user'],
|
|
34
|
+
'pendingUserAvatar': json['pending_user_avatar'],
|
|
35
|
+
'requestId': json['request_id'],
|
|
36
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : json['error'],
|
|
37
|
+
'traceback': !(0, runtime_1.exists)(json, 'traceback') ? undefined : json['traceback'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.FlowErrorChallengeFromJSONTyped = FlowErrorChallengeFromJSONTyped;
|
|
41
|
+
function FlowErrorChallengeToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'type': (0, ChallengeChoices_1.ChallengeChoicesToJSON)(value.type),
|
|
50
|
+
'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
|
|
51
|
+
'component': value.component,
|
|
52
|
+
'response_errors': value.responseErrors,
|
|
53
|
+
'pending_user': value.pendingUser,
|
|
54
|
+
'pending_user_avatar': value.pendingUserAvatar,
|
|
55
|
+
'request_id': value.requestId,
|
|
56
|
+
'error': value.error,
|
|
57
|
+
'traceback': value.traceback,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.FlowErrorChallengeToJSON = FlowErrorChallengeToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -110,6 +110,7 @@ export * from './Flow';
|
|
|
110
110
|
export * from './FlowChallengeResponseRequest';
|
|
111
111
|
export * from './FlowDesignationEnum';
|
|
112
112
|
export * from './FlowDiagram';
|
|
113
|
+
export * from './FlowErrorChallenge';
|
|
113
114
|
export * from './FlowInspection';
|
|
114
115
|
export * from './FlowInspectorPlan';
|
|
115
116
|
export * from './FlowInspectorPlanCurrentStage';
|
package/dist/models/index.js
CHANGED
|
@@ -128,6 +128,7 @@ __exportStar(require("./Flow"), exports);
|
|
|
128
128
|
__exportStar(require("./FlowChallengeResponseRequest"), exports);
|
|
129
129
|
__exportStar(require("./FlowDesignationEnum"), exports);
|
|
130
130
|
__exportStar(require("./FlowDiagram"), exports);
|
|
131
|
+
__exportStar(require("./FlowErrorChallenge"), exports);
|
|
131
132
|
__exportStar(require("./FlowInspection"), exports);
|
|
132
133
|
__exportStar(require("./FlowInspectorPlan"), exports);
|
|
133
134
|
__exportStar(require("./FlowInspectorPlanCurrentStage"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
App,
|
|
19
19
|
AppFromJSON,
|
|
20
20
|
AppToJSON,
|
|
21
|
+
GenericError,
|
|
22
|
+
GenericErrorFromJSON,
|
|
23
|
+
GenericErrorToJSON,
|
|
21
24
|
LoginMetrics,
|
|
22
25
|
LoginMetricsFromJSON,
|
|
23
26
|
LoginMetricsToJSON,
|
|
@@ -27,6 +30,9 @@ import {
|
|
|
27
30
|
Task,
|
|
28
31
|
TaskFromJSON,
|
|
29
32
|
TaskToJSON,
|
|
33
|
+
ValidationError,
|
|
34
|
+
ValidationErrorFromJSON,
|
|
35
|
+
ValidationErrorToJSON,
|
|
30
36
|
Version,
|
|
31
37
|
VersionFromJSON,
|
|
32
38
|
VersionToJSON,
|
|
@@ -49,7 +55,7 @@ export interface AdminSystemTasksRetryCreateRequest {
|
|
|
49
55
|
export class AdminApi extends runtime.BaseAPI {
|
|
50
56
|
|
|
51
57
|
/**
|
|
52
|
-
*
|
|
58
|
+
* Read-only view list all installed apps
|
|
53
59
|
*/
|
|
54
60
|
async adminAppsListRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Array<App>>> {
|
|
55
61
|
const queryParameters: any = {};
|
|
@@ -71,7 +77,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
/**
|
|
74
|
-
*
|
|
80
|
+
* Read-only view list all installed apps
|
|
75
81
|
*/
|
|
76
82
|
async adminAppsList(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Array<App>> {
|
|
77
83
|
const response = await this.adminAppsListRaw(initOverrides);
|
|
@@ -24,6 +24,9 @@ import {
|
|
|
24
24
|
DuoDeviceRequest,
|
|
25
25
|
DuoDeviceRequestFromJSON,
|
|
26
26
|
DuoDeviceRequestToJSON,
|
|
27
|
+
GenericError,
|
|
28
|
+
GenericErrorFromJSON,
|
|
29
|
+
GenericErrorToJSON,
|
|
27
30
|
PaginatedDuoDeviceList,
|
|
28
31
|
PaginatedDuoDeviceListFromJSON,
|
|
29
32
|
PaginatedDuoDeviceListToJSON,
|
|
@@ -75,6 +78,9 @@ import {
|
|
|
75
78
|
UsedBy,
|
|
76
79
|
UsedByFromJSON,
|
|
77
80
|
UsedByToJSON,
|
|
81
|
+
ValidationError,
|
|
82
|
+
ValidationErrorFromJSON,
|
|
83
|
+
ValidationErrorToJSON,
|
|
78
84
|
WebAuthnDevice,
|
|
79
85
|
WebAuthnDeviceFromJSON,
|
|
80
86
|
WebAuthnDeviceToJSON,
|
package/src/apis/CoreApi.ts
CHANGED
|
@@ -33,6 +33,9 @@ import {
|
|
|
33
33
|
FilePathRequest,
|
|
34
34
|
FilePathRequestFromJSON,
|
|
35
35
|
FilePathRequestToJSON,
|
|
36
|
+
GenericError,
|
|
37
|
+
GenericErrorFromJSON,
|
|
38
|
+
GenericErrorToJSON,
|
|
36
39
|
Group,
|
|
37
40
|
GroupFromJSON,
|
|
38
41
|
GroupToJSON,
|
|
@@ -129,6 +132,9 @@ import {
|
|
|
129
132
|
UserServiceAccountResponse,
|
|
130
133
|
UserServiceAccountResponseFromJSON,
|
|
131
134
|
UserServiceAccountResponseToJSON,
|
|
135
|
+
ValidationError,
|
|
136
|
+
ValidationErrorFromJSON,
|
|
137
|
+
ValidationErrorToJSON,
|
|
132
138
|
} from '../models';
|
|
133
139
|
|
|
134
140
|
export interface CoreApplicationsCheckAccessRetrieveRequest {
|
package/src/apis/CryptoApi.ts
CHANGED
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
CertificateKeyPairRequest,
|
|
28
28
|
CertificateKeyPairRequestFromJSON,
|
|
29
29
|
CertificateKeyPairRequestToJSON,
|
|
30
|
+
GenericError,
|
|
31
|
+
GenericErrorFromJSON,
|
|
32
|
+
GenericErrorToJSON,
|
|
30
33
|
PaginatedCertificateKeyPairList,
|
|
31
34
|
PaginatedCertificateKeyPairListFromJSON,
|
|
32
35
|
PaginatedCertificateKeyPairListToJSON,
|
|
@@ -36,6 +39,9 @@ import {
|
|
|
36
39
|
UsedBy,
|
|
37
40
|
UsedByFromJSON,
|
|
38
41
|
UsedByToJSON,
|
|
42
|
+
ValidationError,
|
|
43
|
+
ValidationErrorFromJSON,
|
|
44
|
+
ValidationErrorToJSON,
|
|
39
45
|
} from '../models';
|
|
40
46
|
|
|
41
47
|
export interface CryptoCertificatekeypairsCreateRequest {
|
package/src/apis/EventsApi.ts
CHANGED
|
@@ -27,6 +27,9 @@ import {
|
|
|
27
27
|
EventTopPerUser,
|
|
28
28
|
EventTopPerUserFromJSON,
|
|
29
29
|
EventTopPerUserToJSON,
|
|
30
|
+
GenericError,
|
|
31
|
+
GenericErrorFromJSON,
|
|
32
|
+
GenericErrorToJSON,
|
|
30
33
|
Notification,
|
|
31
34
|
NotificationFromJSON,
|
|
32
35
|
NotificationToJSON,
|
|
@@ -78,6 +81,9 @@ import {
|
|
|
78
81
|
UsedBy,
|
|
79
82
|
UsedByFromJSON,
|
|
80
83
|
UsedByToJSON,
|
|
84
|
+
ValidationError,
|
|
85
|
+
ValidationErrorFromJSON,
|
|
86
|
+
ValidationErrorToJSON,
|
|
81
87
|
} from '../models';
|
|
82
88
|
|
|
83
89
|
export interface EventsEventsCreateRequest {
|
package/src/apis/FlowsApi.ts
CHANGED
|
@@ -45,6 +45,9 @@ import {
|
|
|
45
45
|
FlowStageBindingRequest,
|
|
46
46
|
FlowStageBindingRequestFromJSON,
|
|
47
47
|
FlowStageBindingRequestToJSON,
|
|
48
|
+
GenericError,
|
|
49
|
+
GenericErrorFromJSON,
|
|
50
|
+
GenericErrorToJSON,
|
|
48
51
|
Link,
|
|
49
52
|
LinkFromJSON,
|
|
50
53
|
LinkToJSON,
|
|
@@ -63,6 +66,9 @@ import {
|
|
|
63
66
|
UsedBy,
|
|
64
67
|
UsedByFromJSON,
|
|
65
68
|
UsedByToJSON,
|
|
69
|
+
ValidationError,
|
|
70
|
+
ValidationErrorFromJSON,
|
|
71
|
+
ValidationErrorToJSON,
|
|
66
72
|
} from '../models';
|
|
67
73
|
|
|
68
74
|
export interface FlowsBindingsCreateRequest {
|
package/src/apis/ManagedApi.ts
CHANGED
|
@@ -24,6 +24,9 @@ import {
|
|
|
24
24
|
BlueprintInstanceRequest,
|
|
25
25
|
BlueprintInstanceRequestFromJSON,
|
|
26
26
|
BlueprintInstanceRequestToJSON,
|
|
27
|
+
GenericError,
|
|
28
|
+
GenericErrorFromJSON,
|
|
29
|
+
GenericErrorToJSON,
|
|
27
30
|
PaginatedBlueprintInstanceList,
|
|
28
31
|
PaginatedBlueprintInstanceListFromJSON,
|
|
29
32
|
PaginatedBlueprintInstanceListToJSON,
|
|
@@ -33,6 +36,9 @@ import {
|
|
|
33
36
|
UsedBy,
|
|
34
37
|
UsedByFromJSON,
|
|
35
38
|
UsedByToJSON,
|
|
39
|
+
ValidationError,
|
|
40
|
+
ValidationErrorFromJSON,
|
|
41
|
+
ValidationErrorToJSON,
|
|
36
42
|
} from '../models';
|
|
37
43
|
|
|
38
44
|
export interface ManagedBlueprintsApplyCreateRequest {
|
package/src/apis/Oauth2Api.ts
CHANGED
|
@@ -18,6 +18,9 @@ import {
|
|
|
18
18
|
ExpiringBaseGrantModel,
|
|
19
19
|
ExpiringBaseGrantModelFromJSON,
|
|
20
20
|
ExpiringBaseGrantModelToJSON,
|
|
21
|
+
GenericError,
|
|
22
|
+
GenericErrorFromJSON,
|
|
23
|
+
GenericErrorToJSON,
|
|
21
24
|
PaginatedExpiringBaseGrantModelList,
|
|
22
25
|
PaginatedExpiringBaseGrantModelListFromJSON,
|
|
23
26
|
PaginatedExpiringBaseGrantModelListToJSON,
|
|
@@ -30,6 +33,9 @@ import {
|
|
|
30
33
|
UsedBy,
|
|
31
34
|
UsedByFromJSON,
|
|
32
35
|
UsedByToJSON,
|
|
36
|
+
ValidationError,
|
|
37
|
+
ValidationErrorFromJSON,
|
|
38
|
+
ValidationErrorToJSON,
|
|
33
39
|
} from '../models';
|
|
34
40
|
|
|
35
41
|
export interface Oauth2AuthorizationCodesDestroyRequest {
|
package/src/apis/OutpostsApi.ts
CHANGED
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
DockerServiceConnectionRequest,
|
|
22
22
|
DockerServiceConnectionRequestFromJSON,
|
|
23
23
|
DockerServiceConnectionRequestToJSON,
|
|
24
|
+
GenericError,
|
|
25
|
+
GenericErrorFromJSON,
|
|
26
|
+
GenericErrorToJSON,
|
|
24
27
|
KubernetesServiceConnection,
|
|
25
28
|
KubernetesServiceConnectionFromJSON,
|
|
26
29
|
KubernetesServiceConnectionToJSON,
|
|
@@ -84,6 +87,9 @@ import {
|
|
|
84
87
|
UsedBy,
|
|
85
88
|
UsedByFromJSON,
|
|
86
89
|
UsedByToJSON,
|
|
90
|
+
ValidationError,
|
|
91
|
+
ValidationErrorFromJSON,
|
|
92
|
+
ValidationErrorToJSON,
|
|
87
93
|
} from '../models';
|
|
88
94
|
|
|
89
95
|
export interface OutpostsInstancesCreateRequest {
|
package/src/apis/PoliciesApi.ts
CHANGED
|
@@ -36,6 +36,9 @@ import {
|
|
|
36
36
|
ExpressionPolicyRequest,
|
|
37
37
|
ExpressionPolicyRequestFromJSON,
|
|
38
38
|
ExpressionPolicyRequestToJSON,
|
|
39
|
+
GenericError,
|
|
40
|
+
GenericErrorFromJSON,
|
|
41
|
+
GenericErrorToJSON,
|
|
39
42
|
HaveIBeenPwendPolicy,
|
|
40
43
|
HaveIBeenPwendPolicyFromJSON,
|
|
41
44
|
HaveIBeenPwendPolicyToJSON,
|
|
@@ -138,6 +141,9 @@ import {
|
|
|
138
141
|
UsedBy,
|
|
139
142
|
UsedByFromJSON,
|
|
140
143
|
UsedByToJSON,
|
|
144
|
+
ValidationError,
|
|
145
|
+
ValidationErrorFromJSON,
|
|
146
|
+
ValidationErrorToJSON,
|
|
141
147
|
} from '../models';
|
|
142
148
|
|
|
143
149
|
export interface PoliciesAllDestroyRequest {
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import {
|
|
18
|
+
GenericError,
|
|
19
|
+
GenericErrorFromJSON,
|
|
20
|
+
GenericErrorToJSON,
|
|
18
21
|
LDAPPropertyMapping,
|
|
19
22
|
LDAPPropertyMappingFromJSON,
|
|
20
23
|
LDAPPropertyMappingToJSON,
|
|
@@ -81,6 +84,9 @@ import {
|
|
|
81
84
|
UsedBy,
|
|
82
85
|
UsedByFromJSON,
|
|
83
86
|
UsedByToJSON,
|
|
87
|
+
ValidationError,
|
|
88
|
+
ValidationErrorFromJSON,
|
|
89
|
+
ValidationErrorToJSON,
|
|
84
90
|
} from '../models';
|
|
85
91
|
|
|
86
92
|
export interface PropertymappingsAllDestroyRequest {
|
package/src/apis/ProvidersApi.ts
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import {
|
|
18
|
+
GenericError,
|
|
19
|
+
GenericErrorFromJSON,
|
|
20
|
+
GenericErrorToJSON,
|
|
18
21
|
LDAPProvider,
|
|
19
22
|
LDAPProviderFromJSON,
|
|
20
23
|
LDAPProviderToJSON,
|
|
@@ -81,6 +84,9 @@ import {
|
|
|
81
84
|
UsedBy,
|
|
82
85
|
UsedByFromJSON,
|
|
83
86
|
UsedByToJSON,
|
|
87
|
+
ValidationError,
|
|
88
|
+
ValidationErrorFromJSON,
|
|
89
|
+
ValidationErrorToJSON,
|
|
84
90
|
} from '../models';
|
|
85
91
|
|
|
86
92
|
export interface ProvidersAllDestroyRequest {
|
package/src/apis/RootApi.ts
CHANGED
package/src/apis/SchemaApi.ts
CHANGED
|
@@ -14,6 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
|
+
import {
|
|
18
|
+
GenericError,
|
|
19
|
+
GenericErrorFromJSON,
|
|
20
|
+
GenericErrorToJSON,
|
|
21
|
+
ValidationError,
|
|
22
|
+
ValidationErrorFromJSON,
|
|
23
|
+
ValidationErrorToJSON,
|
|
24
|
+
} from '../models';
|
|
17
25
|
|
|
18
26
|
export interface SchemaRetrieveRequest {
|
|
19
27
|
format?: SchemaRetrieveFormatEnum;
|
package/src/apis/SourcesApi.ts
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import {
|
|
18
|
+
GenericError,
|
|
19
|
+
GenericErrorFromJSON,
|
|
20
|
+
GenericErrorToJSON,
|
|
18
21
|
LDAPSource,
|
|
19
22
|
LDAPSourceFromJSON,
|
|
20
23
|
LDAPSourceToJSON,
|
|
@@ -123,6 +126,9 @@ import {
|
|
|
123
126
|
UserSourceConnection,
|
|
124
127
|
UserSourceConnectionFromJSON,
|
|
125
128
|
UserSourceConnectionToJSON,
|
|
129
|
+
ValidationError,
|
|
130
|
+
ValidationErrorFromJSON,
|
|
131
|
+
ValidationErrorToJSON,
|
|
126
132
|
} from '../models';
|
|
127
133
|
|
|
128
134
|
export interface SourcesAllDestroyRequest {
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -84,6 +84,9 @@ import {
|
|
|
84
84
|
EmailStageRequest,
|
|
85
85
|
EmailStageRequestFromJSON,
|
|
86
86
|
EmailStageRequestToJSON,
|
|
87
|
+
GenericError,
|
|
88
|
+
GenericErrorFromJSON,
|
|
89
|
+
GenericErrorToJSON,
|
|
87
90
|
IdentificationStage,
|
|
88
91
|
IdentificationStageFromJSON,
|
|
89
92
|
IdentificationStageToJSON,
|
|
@@ -285,6 +288,9 @@ import {
|
|
|
285
288
|
UserWriteStageRequest,
|
|
286
289
|
UserWriteStageRequestFromJSON,
|
|
287
290
|
UserWriteStageRequestToJSON,
|
|
291
|
+
ValidationError,
|
|
292
|
+
ValidationErrorFromJSON,
|
|
293
|
+
ValidationErrorToJSON,
|
|
288
294
|
} from '../models';
|
|
289
295
|
|
|
290
296
|
export interface StagesAllDestroyRequest {
|
|
@@ -90,6 +90,12 @@ import {
|
|
|
90
90
|
EmailChallengeFromJSONTyped,
|
|
91
91
|
EmailChallengeToJSON,
|
|
92
92
|
} from './EmailChallenge';
|
|
93
|
+
import {
|
|
94
|
+
FlowErrorChallenge,
|
|
95
|
+
FlowErrorChallengeFromJSON,
|
|
96
|
+
FlowErrorChallengeFromJSONTyped,
|
|
97
|
+
FlowErrorChallengeToJSON,
|
|
98
|
+
} from './FlowErrorChallenge';
|
|
93
99
|
import {
|
|
94
100
|
IdentificationChallenge,
|
|
95
101
|
IdentificationChallengeFromJSON,
|
|
@@ -132,7 +138,7 @@ import {
|
|
|
132
138
|
*
|
|
133
139
|
* @export
|
|
134
140
|
*/
|
|
135
|
-
export type ChallengeTypes = { component: 'ak-flow-sources-oauth-apple' } & AppleLoginChallenge | { component: 'ak-flow-sources-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
|
|
141
|
+
export type ChallengeTypes = { component: 'ak-flow-sources-oauth-apple' } & AppleLoginChallenge | { component: 'ak-flow-sources-plex' } & PlexAuthenticationChallenge | { component: 'ak-stage-access-denied' } & AccessDeniedChallenge | { component: 'ak-stage-authenticator-duo' } & AuthenticatorDuoChallenge | { component: 'ak-stage-authenticator-sms' } & AuthenticatorSMSChallenge | { component: 'ak-stage-authenticator-static' } & AuthenticatorStaticChallenge | { component: 'ak-stage-authenticator-totp' } & AuthenticatorTOTPChallenge | { component: 'ak-stage-authenticator-validate' } & AuthenticatorValidationChallenge | { component: 'ak-stage-authenticator-webauthn' } & AuthenticatorWebAuthnChallenge | { component: 'ak-stage-autosubmit' } & AutosubmitChallenge | { component: 'ak-stage-captcha' } & CaptchaChallenge | { component: 'ak-stage-consent' } & ConsentChallenge | { component: 'ak-stage-dummy' } & DummyChallenge | { component: 'ak-stage-email' } & EmailChallenge | { component: 'ak-stage-identification' } & IdentificationChallenge | { component: 'ak-stage-password' } & PasswordChallenge | { component: 'ak-stage-prompt' } & PromptChallenge | { component: 'xak-flow-error' } & FlowErrorChallenge | { component: 'xak-flow-redirect' } & RedirectChallenge | { component: 'xak-flow-shell' } & ShellChallenge;
|
|
136
142
|
|
|
137
143
|
export function ChallengeTypesFromJSON(json: any): ChallengeTypes {
|
|
138
144
|
return ChallengeTypesFromJSONTyped(json, false);
|
|
@@ -177,6 +183,8 @@ export function ChallengeTypesFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
177
183
|
return {...PasswordChallengeFromJSONTyped(json, true), component: 'ak-stage-password'};
|
|
178
184
|
case 'ak-stage-prompt':
|
|
179
185
|
return {...PromptChallengeFromJSONTyped(json, true), component: 'ak-stage-prompt'};
|
|
186
|
+
case 'xak-flow-error':
|
|
187
|
+
return {...FlowErrorChallengeFromJSONTyped(json, true), component: 'xak-flow-error'};
|
|
180
188
|
case 'xak-flow-redirect':
|
|
181
189
|
return {...RedirectChallengeFromJSONTyped(json, true), component: 'xak-flow-redirect'};
|
|
182
190
|
case 'xak-flow-shell':
|
|
@@ -228,6 +236,8 @@ export function ChallengeTypesToJSON(value?: ChallengeTypes | null): any {
|
|
|
228
236
|
return PasswordChallengeToJSON(value);
|
|
229
237
|
case 'ak-stage-prompt':
|
|
230
238
|
return PromptChallengeToJSON(value);
|
|
239
|
+
case 'xak-flow-error':
|
|
240
|
+
return FlowErrorChallengeToJSON(value);
|
|
231
241
|
case 'xak-flow-redirect':
|
|
232
242
|
return RedirectChallengeToJSON(value);
|
|
233
243
|
case 'xak-flow-shell':
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
ChallengeChoices,
|
|
18
|
+
ChallengeChoicesFromJSON,
|
|
19
|
+
ChallengeChoicesFromJSONTyped,
|
|
20
|
+
ChallengeChoicesToJSON,
|
|
21
|
+
} from './ChallengeChoices';
|
|
22
|
+
import {
|
|
23
|
+
ContextualFlowInfo,
|
|
24
|
+
ContextualFlowInfoFromJSON,
|
|
25
|
+
ContextualFlowInfoFromJSONTyped,
|
|
26
|
+
ContextualFlowInfoToJSON,
|
|
27
|
+
} from './ContextualFlowInfo';
|
|
28
|
+
import {
|
|
29
|
+
ErrorDetail,
|
|
30
|
+
ErrorDetailFromJSON,
|
|
31
|
+
ErrorDetailFromJSONTyped,
|
|
32
|
+
ErrorDetailToJSON,
|
|
33
|
+
} from './ErrorDetail';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Challenge class when an unhandled error occurs during a stage. Normal users
|
|
37
|
+
* are shown an error message, superusers are shown a full stacktrace.
|
|
38
|
+
* @export
|
|
39
|
+
* @interface FlowErrorChallenge
|
|
40
|
+
*/
|
|
41
|
+
export interface FlowErrorChallenge {
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ChallengeChoices}
|
|
45
|
+
* @memberof FlowErrorChallenge
|
|
46
|
+
*/
|
|
47
|
+
type: ChallengeChoices;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {ContextualFlowInfo}
|
|
51
|
+
* @memberof FlowErrorChallenge
|
|
52
|
+
*/
|
|
53
|
+
flowInfo?: ContextualFlowInfo;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof FlowErrorChallenge
|
|
58
|
+
*/
|
|
59
|
+
component?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
63
|
+
* @memberof FlowErrorChallenge
|
|
64
|
+
*/
|
|
65
|
+
responseErrors?: { [key: string]: Array<ErrorDetail>; };
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof FlowErrorChallenge
|
|
70
|
+
*/
|
|
71
|
+
pendingUser: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof FlowErrorChallenge
|
|
76
|
+
*/
|
|
77
|
+
pendingUserAvatar: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof FlowErrorChallenge
|
|
82
|
+
*/
|
|
83
|
+
requestId: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof FlowErrorChallenge
|
|
88
|
+
*/
|
|
89
|
+
error?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof FlowErrorChallenge
|
|
94
|
+
*/
|
|
95
|
+
traceback?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function FlowErrorChallengeFromJSON(json: any): FlowErrorChallenge {
|
|
99
|
+
return FlowErrorChallengeFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function FlowErrorChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowErrorChallenge {
|
|
103
|
+
if ((json === undefined) || (json === null)) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'type': ChallengeChoicesFromJSON(json['type']),
|
|
109
|
+
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
110
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
111
|
+
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
112
|
+
'pendingUser': json['pending_user'],
|
|
113
|
+
'pendingUserAvatar': json['pending_user_avatar'],
|
|
114
|
+
'requestId': json['request_id'],
|
|
115
|
+
'error': !exists(json, 'error') ? undefined : json['error'],
|
|
116
|
+
'traceback': !exists(json, 'traceback') ? undefined : json['traceback'],
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function FlowErrorChallengeToJSON(value?: FlowErrorChallenge | null): any {
|
|
121
|
+
if (value === undefined) {
|
|
122
|
+
return undefined;
|
|
123
|
+
}
|
|
124
|
+
if (value === null) {
|
|
125
|
+
return null;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'type': ChallengeChoicesToJSON(value.type),
|
|
130
|
+
'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
|
|
131
|
+
'component': value.component,
|
|
132
|
+
'response_errors': value.responseErrors,
|
|
133
|
+
'pending_user': value.pendingUser,
|
|
134
|
+
'pending_user_avatar': value.pendingUserAvatar,
|
|
135
|
+
'request_id': value.requestId,
|
|
136
|
+
'error': value.error,
|
|
137
|
+
'traceback': value.traceback,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -112,6 +112,7 @@ export * from './Flow';
|
|
|
112
112
|
export * from './FlowChallengeResponseRequest';
|
|
113
113
|
export * from './FlowDesignationEnum';
|
|
114
114
|
export * from './FlowDiagram';
|
|
115
|
+
export * from './FlowErrorChallenge';
|
|
115
116
|
export * from './FlowInspection';
|
|
116
117
|
export * from './FlowInspectorPlan';
|
|
117
118
|
export * from './FlowInspectorPlanCurrentStage';
|