@goauthentik/api 2022.11.1-1669197045 → 2022.11.1-1669994086
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/esm/models/AuthenticationEnum.d.ts +26 -0
- package/dist/esm/models/AuthenticationEnum.js +33 -0
- package/dist/esm/models/Flow.d.ts +7 -0
- package/dist/esm/models/Flow.js +3 -0
- package/dist/esm/models/FlowRequest.d.ts +7 -0
- package/dist/esm/models/FlowRequest.js +3 -0
- package/dist/esm/models/PatchedFlowRequest.d.ts +7 -0
- package/dist/esm/models/PatchedFlowRequest.js +3 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/AuthenticationEnum.d.ts +26 -0
- package/dist/models/AuthenticationEnum.js +39 -0
- package/dist/models/Flow.d.ts +7 -0
- package/dist/models/Flow.js +3 -0
- package/dist/models/FlowRequest.d.ts +7 -0
- package/dist/models/FlowRequest.js +3 -0
- package/dist/models/PatchedFlowRequest.d.ts +7 -0
- package/dist/models/PatchedFlowRequest.js +3 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/AuthenticationEnum.ts +41 -0
- package/src/models/Flow.ts +14 -0
- package/src/models/FlowRequest.ts +14 -0
- package/src/models/PatchedFlowRequest.ts +14 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -38,6 +38,7 @@ src/models/AuthenticatedSessionUserAgent.ts
|
|
|
38
38
|
src/models/AuthenticatedSessionUserAgentDevice.ts
|
|
39
39
|
src/models/AuthenticatedSessionUserAgentOs.ts
|
|
40
40
|
src/models/AuthenticatedSessionUserAgentUserAgent.ts
|
|
41
|
+
src/models/AuthenticationEnum.ts
|
|
41
42
|
src/models/AuthenticatorAttachmentEnum.ts
|
|
42
43
|
src/models/AuthenticatorDuoChallenge.ts
|
|
43
44
|
src/models/AuthenticatorDuoChallengeResponseRequest.ts
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.11.1
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AuthenticationEnum: {
|
|
17
|
+
readonly None: "none";
|
|
18
|
+
readonly RequireAuthenticated: "require_authenticated";
|
|
19
|
+
readonly RequireUnauthenticated: "require_unauthenticated";
|
|
20
|
+
readonly RequireSuperuser: "require_superuser";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
22
|
+
};
|
|
23
|
+
export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
|
|
24
|
+
export declare function AuthenticationEnumFromJSON(json: any): AuthenticationEnum;
|
|
25
|
+
export declare function AuthenticationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationEnum;
|
|
26
|
+
export declare function AuthenticationEnumToJSON(value?: AuthenticationEnum | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.11.1
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const AuthenticationEnum = {
|
|
19
|
+
None: 'none',
|
|
20
|
+
RequireAuthenticated: 'require_authenticated',
|
|
21
|
+
RequireUnauthenticated: 'require_unauthenticated',
|
|
22
|
+
RequireSuperuser: 'require_superuser',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
};
|
|
25
|
+
export function AuthenticationEnumFromJSON(json) {
|
|
26
|
+
return AuthenticationEnumFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AuthenticationEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
export function AuthenticationEnumToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthenticationEnum } from './AuthenticationEnum';
|
|
12
13
|
import { DeniedActionEnum } from './DeniedActionEnum';
|
|
13
14
|
import { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
14
15
|
import { LayoutEnum } from './LayoutEnum';
|
|
@@ -109,6 +110,12 @@ export interface Flow {
|
|
|
109
110
|
* @memberof Flow
|
|
110
111
|
*/
|
|
111
112
|
deniedAction?: DeniedActionEnum | null;
|
|
113
|
+
/**
|
|
114
|
+
* Required level of authentication and authorization to access a flow.
|
|
115
|
+
* @type {AuthenticationEnum}
|
|
116
|
+
* @memberof Flow
|
|
117
|
+
*/
|
|
118
|
+
authentication?: AuthenticationEnum | null;
|
|
112
119
|
}
|
|
113
120
|
export declare function FlowFromJSON(json: any): Flow;
|
|
114
121
|
export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
|
package/dist/esm/models/Flow.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
+
import { AuthenticationEnumFromJSON, AuthenticationEnumToJSON, } from './AuthenticationEnum';
|
|
15
16
|
import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
|
|
16
17
|
import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
|
|
17
18
|
import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
|
|
@@ -39,6 +40,7 @@ export function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'exportUrl': json['export_url'],
|
|
40
41
|
'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
|
|
41
42
|
'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
|
|
43
|
+
'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
export function FlowToJSON(value) {
|
|
@@ -57,5 +59,6 @@ export function FlowToJSON(value) {
|
|
|
57
59
|
'compatibility_mode': value.compatibilityMode,
|
|
58
60
|
'layout': LayoutEnumToJSON(value.layout),
|
|
59
61
|
'denied_action': DeniedActionEnumToJSON(value.deniedAction),
|
|
62
|
+
'authentication': AuthenticationEnumToJSON(value.authentication),
|
|
60
63
|
};
|
|
61
64
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthenticationEnum } from './AuthenticationEnum';
|
|
12
13
|
import { DeniedActionEnum } from './DeniedActionEnum';
|
|
13
14
|
import { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
14
15
|
import { LayoutEnum } from './LayoutEnum';
|
|
@@ -67,6 +68,12 @@ export interface FlowRequest {
|
|
|
67
68
|
* @memberof FlowRequest
|
|
68
69
|
*/
|
|
69
70
|
deniedAction?: DeniedActionEnum | null;
|
|
71
|
+
/**
|
|
72
|
+
* Required level of authentication and authorization to access a flow.
|
|
73
|
+
* @type {AuthenticationEnum}
|
|
74
|
+
* @memberof FlowRequest
|
|
75
|
+
*/
|
|
76
|
+
authentication?: AuthenticationEnum | null;
|
|
70
77
|
}
|
|
71
78
|
export declare function FlowRequestFromJSON(json: any): FlowRequest;
|
|
72
79
|
export declare function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowRequest;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
+
import { AuthenticationEnumFromJSON, AuthenticationEnumToJSON, } from './AuthenticationEnum';
|
|
15
16
|
import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
|
|
16
17
|
import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
|
|
17
18
|
import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
|
|
@@ -32,6 +33,7 @@ export function FlowRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
|
|
33
34
|
'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
|
|
34
35
|
'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
|
|
36
|
+
'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
export function FlowRequestToJSON(value) {
|
|
@@ -50,5 +52,6 @@ export function FlowRequestToJSON(value) {
|
|
|
50
52
|
'compatibility_mode': value.compatibilityMode,
|
|
51
53
|
'layout': LayoutEnumToJSON(value.layout),
|
|
52
54
|
'denied_action': DeniedActionEnumToJSON(value.deniedAction),
|
|
55
|
+
'authentication': AuthenticationEnumToJSON(value.authentication),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthenticationEnum } from './AuthenticationEnum';
|
|
12
13
|
import { DeniedActionEnum } from './DeniedActionEnum';
|
|
13
14
|
import { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
14
15
|
import { LayoutEnum } from './LayoutEnum';
|
|
@@ -67,6 +68,12 @@ export interface PatchedFlowRequest {
|
|
|
67
68
|
* @memberof PatchedFlowRequest
|
|
68
69
|
*/
|
|
69
70
|
deniedAction?: DeniedActionEnum | null;
|
|
71
|
+
/**
|
|
72
|
+
* Required level of authentication and authorization to access a flow.
|
|
73
|
+
* @type {AuthenticationEnum}
|
|
74
|
+
* @memberof PatchedFlowRequest
|
|
75
|
+
*/
|
|
76
|
+
authentication?: AuthenticationEnum | null;
|
|
70
77
|
}
|
|
71
78
|
export declare function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest;
|
|
72
79
|
export declare function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFlowRequest;
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
|
+
import { AuthenticationEnumFromJSON, AuthenticationEnumToJSON, } from './AuthenticationEnum';
|
|
15
16
|
import { DeniedActionEnumFromJSON, DeniedActionEnumToJSON, } from './DeniedActionEnum';
|
|
16
17
|
import { FlowDesignationEnumFromJSON, FlowDesignationEnumToJSON, } from './FlowDesignationEnum';
|
|
17
18
|
import { LayoutEnumFromJSON, LayoutEnumToJSON, } from './LayoutEnum';
|
|
@@ -32,6 +33,7 @@ export function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
|
|
33
34
|
'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
|
|
34
35
|
'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
|
|
36
|
+
'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
export function PatchedFlowRequestToJSON(value) {
|
|
@@ -50,5 +52,6 @@ export function PatchedFlowRequestToJSON(value) {
|
|
|
50
52
|
'compatibility_mode': value.compatibilityMode,
|
|
51
53
|
'layout': LayoutEnumToJSON(value.layout),
|
|
52
54
|
'denied_action': DeniedActionEnumToJSON(value.deniedAction),
|
|
55
|
+
'authentication': AuthenticationEnumToJSON(value.authentication),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
@@ -15,6 +15,7 @@ export * from './AuthenticatedSessionUserAgent';
|
|
|
15
15
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
16
16
|
export * from './AuthenticatedSessionUserAgentOs';
|
|
17
17
|
export * from './AuthenticatedSessionUserAgentUserAgent';
|
|
18
|
+
export * from './AuthenticationEnum';
|
|
18
19
|
export * from './AuthenticatorAttachmentEnum';
|
|
19
20
|
export * from './AuthenticatorDuoChallenge';
|
|
20
21
|
export * from './AuthenticatorDuoChallengeResponseRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export * from './AuthenticatedSessionUserAgent';
|
|
|
17
17
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
18
18
|
export * from './AuthenticatedSessionUserAgentOs';
|
|
19
19
|
export * from './AuthenticatedSessionUserAgentUserAgent';
|
|
20
|
+
export * from './AuthenticationEnum';
|
|
20
21
|
export * from './AuthenticatorAttachmentEnum';
|
|
21
22
|
export * from './AuthenticatorDuoChallenge';
|
|
22
23
|
export * from './AuthenticatorDuoChallengeResponseRequest';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.11.1
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AuthenticationEnum: {
|
|
17
|
+
readonly None: "none";
|
|
18
|
+
readonly RequireAuthenticated: "require_authenticated";
|
|
19
|
+
readonly RequireUnauthenticated: "require_unauthenticated";
|
|
20
|
+
readonly RequireSuperuser: "require_superuser";
|
|
21
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
22
|
+
};
|
|
23
|
+
export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
|
|
24
|
+
export declare function AuthenticationEnumFromJSON(json: any): AuthenticationEnum;
|
|
25
|
+
export declare function AuthenticationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationEnum;
|
|
26
|
+
export declare function AuthenticationEnumToJSON(value?: AuthenticationEnum | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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.11.1
|
|
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.AuthenticationEnumToJSON = exports.AuthenticationEnumFromJSONTyped = exports.AuthenticationEnumFromJSON = exports.AuthenticationEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.AuthenticationEnum = {
|
|
22
|
+
None: 'none',
|
|
23
|
+
RequireAuthenticated: 'require_authenticated',
|
|
24
|
+
RequireUnauthenticated: 'require_unauthenticated',
|
|
25
|
+
RequireSuperuser: 'require_superuser',
|
|
26
|
+
UnknownDefaultOpenApi: '11184809'
|
|
27
|
+
};
|
|
28
|
+
function AuthenticationEnumFromJSON(json) {
|
|
29
|
+
return AuthenticationEnumFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.AuthenticationEnumFromJSON = AuthenticationEnumFromJSON;
|
|
32
|
+
function AuthenticationEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.AuthenticationEnumFromJSONTyped = AuthenticationEnumFromJSONTyped;
|
|
36
|
+
function AuthenticationEnumToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.AuthenticationEnumToJSON = AuthenticationEnumToJSON;
|
package/dist/models/Flow.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthenticationEnum } from './AuthenticationEnum';
|
|
12
13
|
import { DeniedActionEnum } from './DeniedActionEnum';
|
|
13
14
|
import { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
14
15
|
import { LayoutEnum } from './LayoutEnum';
|
|
@@ -109,6 +110,12 @@ export interface Flow {
|
|
|
109
110
|
* @memberof Flow
|
|
110
111
|
*/
|
|
111
112
|
deniedAction?: DeniedActionEnum | null;
|
|
113
|
+
/**
|
|
114
|
+
* Required level of authentication and authorization to access a flow.
|
|
115
|
+
* @type {AuthenticationEnum}
|
|
116
|
+
* @memberof Flow
|
|
117
|
+
*/
|
|
118
|
+
authentication?: AuthenticationEnum | null;
|
|
112
119
|
}
|
|
113
120
|
export declare function FlowFromJSON(json: any): Flow;
|
|
114
121
|
export declare function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow;
|
package/dist/models/Flow.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.FlowToJSON = exports.FlowFromJSONTyped = exports.FlowFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const AuthenticationEnum_1 = require("./AuthenticationEnum");
|
|
18
19
|
const DeniedActionEnum_1 = require("./DeniedActionEnum");
|
|
19
20
|
const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
|
|
20
21
|
const LayoutEnum_1 = require("./LayoutEnum");
|
|
@@ -43,6 +44,7 @@ function FlowFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
44
|
'exportUrl': json['export_url'],
|
|
44
45
|
'layout': !(0, runtime_1.exists)(json, 'layout') ? undefined : (0, LayoutEnum_1.LayoutEnumFromJSON)(json['layout']),
|
|
45
46
|
'deniedAction': !(0, runtime_1.exists)(json, 'denied_action') ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
|
|
47
|
+
'authentication': !(0, runtime_1.exists)(json, 'authentication') ? undefined : (0, AuthenticationEnum_1.AuthenticationEnumFromJSON)(json['authentication']),
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
exports.FlowFromJSONTyped = FlowFromJSONTyped;
|
|
@@ -62,6 +64,7 @@ function FlowToJSON(value) {
|
|
|
62
64
|
'compatibility_mode': value.compatibilityMode,
|
|
63
65
|
'layout': (0, LayoutEnum_1.LayoutEnumToJSON)(value.layout),
|
|
64
66
|
'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value.deniedAction),
|
|
67
|
+
'authentication': (0, AuthenticationEnum_1.AuthenticationEnumToJSON)(value.authentication),
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
exports.FlowToJSON = FlowToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthenticationEnum } from './AuthenticationEnum';
|
|
12
13
|
import { DeniedActionEnum } from './DeniedActionEnum';
|
|
13
14
|
import { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
14
15
|
import { LayoutEnum } from './LayoutEnum';
|
|
@@ -67,6 +68,12 @@ export interface FlowRequest {
|
|
|
67
68
|
* @memberof FlowRequest
|
|
68
69
|
*/
|
|
69
70
|
deniedAction?: DeniedActionEnum | null;
|
|
71
|
+
/**
|
|
72
|
+
* Required level of authentication and authorization to access a flow.
|
|
73
|
+
* @type {AuthenticationEnum}
|
|
74
|
+
* @memberof FlowRequest
|
|
75
|
+
*/
|
|
76
|
+
authentication?: AuthenticationEnum | null;
|
|
70
77
|
}
|
|
71
78
|
export declare function FlowRequestFromJSON(json: any): FlowRequest;
|
|
72
79
|
export declare function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowRequest;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.FlowRequestToJSON = exports.FlowRequestFromJSONTyped = exports.FlowRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const AuthenticationEnum_1 = require("./AuthenticationEnum");
|
|
18
19
|
const DeniedActionEnum_1 = require("./DeniedActionEnum");
|
|
19
20
|
const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
|
|
20
21
|
const LayoutEnum_1 = require("./LayoutEnum");
|
|
@@ -36,6 +37,7 @@ function FlowRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'compatibilityMode': !(0, runtime_1.exists)(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
|
|
37
38
|
'layout': !(0, runtime_1.exists)(json, 'layout') ? undefined : (0, LayoutEnum_1.LayoutEnumFromJSON)(json['layout']),
|
|
38
39
|
'deniedAction': !(0, runtime_1.exists)(json, 'denied_action') ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
|
|
40
|
+
'authentication': !(0, runtime_1.exists)(json, 'authentication') ? undefined : (0, AuthenticationEnum_1.AuthenticationEnumFromJSON)(json['authentication']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
exports.FlowRequestFromJSONTyped = FlowRequestFromJSONTyped;
|
|
@@ -55,6 +57,7 @@ function FlowRequestToJSON(value) {
|
|
|
55
57
|
'compatibility_mode': value.compatibilityMode,
|
|
56
58
|
'layout': (0, LayoutEnum_1.LayoutEnumToJSON)(value.layout),
|
|
57
59
|
'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value.deniedAction),
|
|
60
|
+
'authentication': (0, AuthenticationEnum_1.AuthenticationEnumToJSON)(value.authentication),
|
|
58
61
|
};
|
|
59
62
|
}
|
|
60
63
|
exports.FlowRequestToJSON = FlowRequestToJSON;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { AuthenticationEnum } from './AuthenticationEnum';
|
|
12
13
|
import { DeniedActionEnum } from './DeniedActionEnum';
|
|
13
14
|
import { FlowDesignationEnum } from './FlowDesignationEnum';
|
|
14
15
|
import { LayoutEnum } from './LayoutEnum';
|
|
@@ -67,6 +68,12 @@ export interface PatchedFlowRequest {
|
|
|
67
68
|
* @memberof PatchedFlowRequest
|
|
68
69
|
*/
|
|
69
70
|
deniedAction?: DeniedActionEnum | null;
|
|
71
|
+
/**
|
|
72
|
+
* Required level of authentication and authorization to access a flow.
|
|
73
|
+
* @type {AuthenticationEnum}
|
|
74
|
+
* @memberof PatchedFlowRequest
|
|
75
|
+
*/
|
|
76
|
+
authentication?: AuthenticationEnum | null;
|
|
70
77
|
}
|
|
71
78
|
export declare function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest;
|
|
72
79
|
export declare function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedFlowRequest;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.PatchedFlowRequestToJSON = exports.PatchedFlowRequestFromJSONTyped = exports.PatchedFlowRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
|
+
const AuthenticationEnum_1 = require("./AuthenticationEnum");
|
|
18
19
|
const DeniedActionEnum_1 = require("./DeniedActionEnum");
|
|
19
20
|
const FlowDesignationEnum_1 = require("./FlowDesignationEnum");
|
|
20
21
|
const LayoutEnum_1 = require("./LayoutEnum");
|
|
@@ -36,6 +37,7 @@ function PatchedFlowRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
'compatibilityMode': !(0, runtime_1.exists)(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
|
|
37
38
|
'layout': !(0, runtime_1.exists)(json, 'layout') ? undefined : (0, LayoutEnum_1.LayoutEnumFromJSON)(json['layout']),
|
|
38
39
|
'deniedAction': !(0, runtime_1.exists)(json, 'denied_action') ? undefined : (0, DeniedActionEnum_1.DeniedActionEnumFromJSON)(json['denied_action']),
|
|
40
|
+
'authentication': !(0, runtime_1.exists)(json, 'authentication') ? undefined : (0, AuthenticationEnum_1.AuthenticationEnumFromJSON)(json['authentication']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
exports.PatchedFlowRequestFromJSONTyped = PatchedFlowRequestFromJSONTyped;
|
|
@@ -55,6 +57,7 @@ function PatchedFlowRequestToJSON(value) {
|
|
|
55
57
|
'compatibility_mode': value.compatibilityMode,
|
|
56
58
|
'layout': (0, LayoutEnum_1.LayoutEnumToJSON)(value.layout),
|
|
57
59
|
'denied_action': (0, DeniedActionEnum_1.DeniedActionEnumToJSON)(value.deniedAction),
|
|
60
|
+
'authentication': (0, AuthenticationEnum_1.AuthenticationEnumToJSON)(value.authentication),
|
|
58
61
|
};
|
|
59
62
|
}
|
|
60
63
|
exports.PatchedFlowRequestToJSON = PatchedFlowRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './AuthenticatedSessionUserAgent';
|
|
|
15
15
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
16
16
|
export * from './AuthenticatedSessionUserAgentOs';
|
|
17
17
|
export * from './AuthenticatedSessionUserAgentUserAgent';
|
|
18
|
+
export * from './AuthenticationEnum';
|
|
18
19
|
export * from './AuthenticatorAttachmentEnum';
|
|
19
20
|
export * from './AuthenticatorDuoChallenge';
|
|
20
21
|
export * from './AuthenticatorDuoChallengeResponseRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,7 @@ __exportStar(require("./AuthenticatedSessionUserAgent"), exports);
|
|
|
33
33
|
__exportStar(require("./AuthenticatedSessionUserAgentDevice"), exports);
|
|
34
34
|
__exportStar(require("./AuthenticatedSessionUserAgentOs"), exports);
|
|
35
35
|
__exportStar(require("./AuthenticatedSessionUserAgentUserAgent"), exports);
|
|
36
|
+
__exportStar(require("./AuthenticationEnum"), exports);
|
|
36
37
|
__exportStar(require("./AuthenticatorAttachmentEnum"), exports);
|
|
37
38
|
__exportStar(require("./AuthenticatorDuoChallenge"), exports);
|
|
38
39
|
__exportStar(require("./AuthenticatorDuoChallengeResponseRequest"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.11.1
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AuthenticationEnum = {
|
|
21
|
+
None: 'none',
|
|
22
|
+
RequireAuthenticated: 'require_authenticated',
|
|
23
|
+
RequireUnauthenticated: 'require_unauthenticated',
|
|
24
|
+
RequireSuperuser: 'require_superuser',
|
|
25
|
+
UnknownDefaultOpenApi: '11184809'
|
|
26
|
+
} as const;
|
|
27
|
+
export type AuthenticationEnum = typeof AuthenticationEnum[keyof typeof AuthenticationEnum];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function AuthenticationEnumFromJSON(json: any): AuthenticationEnum {
|
|
31
|
+
return AuthenticationEnumFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function AuthenticationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticationEnum {
|
|
35
|
+
return json as AuthenticationEnum;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AuthenticationEnumToJSON(value?: AuthenticationEnum | null): any {
|
|
39
|
+
return value as any;
|
|
40
|
+
}
|
|
41
|
+
|
package/src/models/Flow.ts
CHANGED
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AuthenticationEnum,
|
|
18
|
+
AuthenticationEnumFromJSON,
|
|
19
|
+
AuthenticationEnumFromJSONTyped,
|
|
20
|
+
AuthenticationEnumToJSON,
|
|
21
|
+
} from './AuthenticationEnum';
|
|
16
22
|
import {
|
|
17
23
|
DeniedActionEnum,
|
|
18
24
|
DeniedActionEnumFromJSON,
|
|
@@ -134,6 +140,12 @@ export interface Flow {
|
|
|
134
140
|
* @memberof Flow
|
|
135
141
|
*/
|
|
136
142
|
deniedAction?: DeniedActionEnum | null;
|
|
143
|
+
/**
|
|
144
|
+
* Required level of authentication and authorization to access a flow.
|
|
145
|
+
* @type {AuthenticationEnum}
|
|
146
|
+
* @memberof Flow
|
|
147
|
+
*/
|
|
148
|
+
authentication?: AuthenticationEnum | null;
|
|
137
149
|
}
|
|
138
150
|
|
|
139
151
|
export function FlowFromJSON(json: any): Flow {
|
|
@@ -161,6 +173,7 @@ export function FlowFromJSONTyped(json: any, ignoreDiscriminator: boolean): Flow
|
|
|
161
173
|
'exportUrl': json['export_url'],
|
|
162
174
|
'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
|
|
163
175
|
'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
|
|
176
|
+
'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
|
|
164
177
|
};
|
|
165
178
|
}
|
|
166
179
|
|
|
@@ -181,6 +194,7 @@ export function FlowToJSON(value?: Flow | null): any {
|
|
|
181
194
|
'compatibility_mode': value.compatibilityMode,
|
|
182
195
|
'layout': LayoutEnumToJSON(value.layout),
|
|
183
196
|
'denied_action': DeniedActionEnumToJSON(value.deniedAction),
|
|
197
|
+
'authentication': AuthenticationEnumToJSON(value.authentication),
|
|
184
198
|
};
|
|
185
199
|
}
|
|
186
200
|
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AuthenticationEnum,
|
|
18
|
+
AuthenticationEnumFromJSON,
|
|
19
|
+
AuthenticationEnumFromJSONTyped,
|
|
20
|
+
AuthenticationEnumToJSON,
|
|
21
|
+
} from './AuthenticationEnum';
|
|
16
22
|
import {
|
|
17
23
|
DeniedActionEnum,
|
|
18
24
|
DeniedActionEnumFromJSON,
|
|
@@ -92,6 +98,12 @@ export interface FlowRequest {
|
|
|
92
98
|
* @memberof FlowRequest
|
|
93
99
|
*/
|
|
94
100
|
deniedAction?: DeniedActionEnum | null;
|
|
101
|
+
/**
|
|
102
|
+
* Required level of authentication and authorization to access a flow.
|
|
103
|
+
* @type {AuthenticationEnum}
|
|
104
|
+
* @memberof FlowRequest
|
|
105
|
+
*/
|
|
106
|
+
authentication?: AuthenticationEnum | null;
|
|
95
107
|
}
|
|
96
108
|
|
|
97
109
|
export function FlowRequestFromJSON(json: any): FlowRequest {
|
|
@@ -112,6 +124,7 @@ export function FlowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
112
124
|
'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
|
|
113
125
|
'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
|
|
114
126
|
'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
|
|
127
|
+
'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
|
|
115
128
|
};
|
|
116
129
|
}
|
|
117
130
|
|
|
@@ -132,6 +145,7 @@ export function FlowRequestToJSON(value?: FlowRequest | null): any {
|
|
|
132
145
|
'compatibility_mode': value.compatibilityMode,
|
|
133
146
|
'layout': LayoutEnumToJSON(value.layout),
|
|
134
147
|
'denied_action': DeniedActionEnumToJSON(value.deniedAction),
|
|
148
|
+
'authentication': AuthenticationEnumToJSON(value.authentication),
|
|
135
149
|
};
|
|
136
150
|
}
|
|
137
151
|
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
AuthenticationEnum,
|
|
18
|
+
AuthenticationEnumFromJSON,
|
|
19
|
+
AuthenticationEnumFromJSONTyped,
|
|
20
|
+
AuthenticationEnumToJSON,
|
|
21
|
+
} from './AuthenticationEnum';
|
|
16
22
|
import {
|
|
17
23
|
DeniedActionEnum,
|
|
18
24
|
DeniedActionEnumFromJSON,
|
|
@@ -92,6 +98,12 @@ export interface PatchedFlowRequest {
|
|
|
92
98
|
* @memberof PatchedFlowRequest
|
|
93
99
|
*/
|
|
94
100
|
deniedAction?: DeniedActionEnum | null;
|
|
101
|
+
/**
|
|
102
|
+
* Required level of authentication and authorization to access a flow.
|
|
103
|
+
* @type {AuthenticationEnum}
|
|
104
|
+
* @memberof PatchedFlowRequest
|
|
105
|
+
*/
|
|
106
|
+
authentication?: AuthenticationEnum | null;
|
|
95
107
|
}
|
|
96
108
|
|
|
97
109
|
export function PatchedFlowRequestFromJSON(json: any): PatchedFlowRequest {
|
|
@@ -112,6 +124,7 @@ export function PatchedFlowRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
112
124
|
'compatibilityMode': !exists(json, 'compatibility_mode') ? undefined : json['compatibility_mode'],
|
|
113
125
|
'layout': !exists(json, 'layout') ? undefined : LayoutEnumFromJSON(json['layout']),
|
|
114
126
|
'deniedAction': !exists(json, 'denied_action') ? undefined : DeniedActionEnumFromJSON(json['denied_action']),
|
|
127
|
+
'authentication': !exists(json, 'authentication') ? undefined : AuthenticationEnumFromJSON(json['authentication']),
|
|
115
128
|
};
|
|
116
129
|
}
|
|
117
130
|
|
|
@@ -132,6 +145,7 @@ export function PatchedFlowRequestToJSON(value?: PatchedFlowRequest | null): any
|
|
|
132
145
|
'compatibility_mode': value.compatibilityMode,
|
|
133
146
|
'layout': LayoutEnumToJSON(value.layout),
|
|
134
147
|
'denied_action': DeniedActionEnumToJSON(value.deniedAction),
|
|
148
|
+
'authentication': AuthenticationEnumToJSON(value.authentication),
|
|
135
149
|
};
|
|
136
150
|
}
|
|
137
151
|
|
package/src/models/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './AuthenticatedSessionUserAgent';
|
|
|
17
17
|
export * from './AuthenticatedSessionUserAgentDevice';
|
|
18
18
|
export * from './AuthenticatedSessionUserAgentOs';
|
|
19
19
|
export * from './AuthenticatedSessionUserAgentUserAgent';
|
|
20
|
+
export * from './AuthenticationEnum';
|
|
20
21
|
export * from './AuthenticatorAttachmentEnum';
|
|
21
22
|
export * from './AuthenticatorDuoChallenge';
|
|
22
23
|
export * from './AuthenticatorDuoChallengeResponseRequest';
|