@goauthentik/api 2022.8.2-1662409170 → 2022.8.2-1662485118

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.
@@ -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
@@ -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';
@@ -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;
@@ -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';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.8.2-1662409170",
3
+ "version": "2022.8.2-1662485118",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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
+
@@ -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';