@goauthentik/api 2024.10.5-1734006367 → 2024.10.5-1734022840
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 +6 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/StagesApi.d.ts +84 -1
- package/dist/apis/StagesApi.js +265 -0
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/StagesApi.d.ts +84 -1
- package/dist/esm/apis/StagesApi.js +266 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticationEnum.d.ts +1 -0
- package/dist/esm/models/AuthenticationEnum.js +1 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedRedirectStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedRedirectStageList.js +48 -0
- package/dist/esm/models/PatchedRedirectStageRequest.d.ts +63 -0
- package/dist/esm/models/PatchedRedirectStageRequest.js +55 -0
- package/dist/esm/models/RedirectChallengeResponseRequest.d.ts +37 -0
- package/dist/esm/models/RedirectChallengeResponseRequest.js +46 -0
- package/dist/esm/models/RedirectStage.d.ts +93 -0
- package/dist/esm/models/RedirectStage.js +67 -0
- package/dist/esm/models/RedirectStageModeEnum.d.ts +24 -0
- package/dist/esm/models/RedirectStageModeEnum.js +31 -0
- package/dist/esm/models/RedirectStageRequest.d.ts +63 -0
- package/dist/esm/models/RedirectStageRequest.js +57 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticationEnum.d.ts +1 -0
- package/dist/models/AuthenticationEnum.js +1 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedRedirectStageList.d.ts +39 -0
- package/dist/models/PaginatedRedirectStageList.js +55 -0
- package/dist/models/PatchedRedirectStageRequest.d.ts +63 -0
- package/dist/models/PatchedRedirectStageRequest.js +62 -0
- package/dist/models/RedirectChallengeResponseRequest.d.ts +37 -0
- package/dist/models/RedirectChallengeResponseRequest.js +53 -0
- package/dist/models/RedirectStage.d.ts +93 -0
- package/dist/models/RedirectStage.js +74 -0
- package/dist/models/RedirectStageModeEnum.d.ts +24 -0
- package/dist/models/RedirectStageModeEnum.js +37 -0
- package/dist/models/RedirectStageRequest.d.ts +63 -0
- package/dist/models/RedirectStageRequest.js +64 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/StagesApi.ts +340 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticationEnum.ts +1 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedRedirectStageList.ts +88 -0
- package/src/models/PatchedRedirectStageRequest.ts +118 -0
- package/src/models/RedirectChallengeResponseRequest.ts +74 -0
- package/src/models/RedirectStage.ts +160 -0
- package/src/models/RedirectStageModeEnum.ts +39 -0
- package/src/models/RedirectStageRequest.ts +120 -0
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
/**
|
|
16
|
+
* Check if a given object implements the RedirectChallengeResponseRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfRedirectChallengeResponseRequest(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
isInstance = isInstance && "to" in value;
|
|
21
|
+
return isInstance;
|
|
22
|
+
}
|
|
23
|
+
export function RedirectChallengeResponseRequestFromJSON(json) {
|
|
24
|
+
return RedirectChallengeResponseRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function RedirectChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if ((json === undefined) || (json === null)) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
32
|
+
'to': json['to'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function RedirectChallengeResponseRequestToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'component': value.component,
|
|
44
|
+
'to': value.to,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 type { FlowSet } from './FlowSet';
|
|
13
|
+
import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
|
|
14
|
+
/**
|
|
15
|
+
* RedirectStage Serializer
|
|
16
|
+
* @export
|
|
17
|
+
* @interface RedirectStage
|
|
18
|
+
*/
|
|
19
|
+
export interface RedirectStage {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof RedirectStage
|
|
24
|
+
*/
|
|
25
|
+
readonly pk: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof RedirectStage
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* Get object type so that we know how to edit the object
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof RedirectStage
|
|
36
|
+
*/
|
|
37
|
+
readonly component: string;
|
|
38
|
+
/**
|
|
39
|
+
* Return object's verbose_name
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof RedirectStage
|
|
42
|
+
*/
|
|
43
|
+
readonly verboseName: string;
|
|
44
|
+
/**
|
|
45
|
+
* Return object's plural verbose_name
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof RedirectStage
|
|
48
|
+
*/
|
|
49
|
+
readonly verboseNamePlural: string;
|
|
50
|
+
/**
|
|
51
|
+
* Return internal model name
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof RedirectStage
|
|
54
|
+
*/
|
|
55
|
+
readonly metaModelName: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<FlowSet>}
|
|
59
|
+
* @memberof RedirectStage
|
|
60
|
+
*/
|
|
61
|
+
flowSet?: Array<FlowSet>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof RedirectStage
|
|
66
|
+
*/
|
|
67
|
+
keepContext?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {RedirectStageModeEnum}
|
|
71
|
+
* @memberof RedirectStage
|
|
72
|
+
*/
|
|
73
|
+
mode: RedirectStageModeEnum;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof RedirectStage
|
|
78
|
+
*/
|
|
79
|
+
targetStatic?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof RedirectStage
|
|
84
|
+
*/
|
|
85
|
+
targetFlow?: string | null;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the RedirectStage interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfRedirectStage(value: object): boolean;
|
|
91
|
+
export declare function RedirectStageFromJSON(json: any): RedirectStage;
|
|
92
|
+
export declare function RedirectStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStage;
|
|
93
|
+
export declare function RedirectStageToJSON(value?: RedirectStage | null): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
|
|
16
|
+
import { RedirectStageModeEnumFromJSON, RedirectStageModeEnumToJSON, } from './RedirectStageModeEnum';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RedirectStage interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfRedirectStage(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "pk" in value;
|
|
23
|
+
isInstance = isInstance && "name" in value;
|
|
24
|
+
isInstance = isInstance && "component" in value;
|
|
25
|
+
isInstance = isInstance && "verboseName" in value;
|
|
26
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
27
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
28
|
+
isInstance = isInstance && "mode" in value;
|
|
29
|
+
return isInstance;
|
|
30
|
+
}
|
|
31
|
+
export function RedirectStageFromJSON(json) {
|
|
32
|
+
return RedirectStageFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function RedirectStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'pk': json['pk'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'component': json['component'],
|
|
42
|
+
'verboseName': json['verbose_name'],
|
|
43
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
44
|
+
'metaModelName': json['meta_model_name'],
|
|
45
|
+
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
|
|
46
|
+
'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
|
|
47
|
+
'mode': RedirectStageModeEnumFromJSON(json['mode']),
|
|
48
|
+
'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
|
|
49
|
+
'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function RedirectStageToJSON(value) {
|
|
53
|
+
if (value === undefined) {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
if (value === null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'name': value.name,
|
|
61
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
|
|
62
|
+
'keep_context': value.keepContext,
|
|
63
|
+
'mode': RedirectStageModeEnumToJSON(value.mode),
|
|
64
|
+
'target_static': value.targetStatic,
|
|
65
|
+
'target_flow': value.targetFlow,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 RedirectStageModeEnum: {
|
|
17
|
+
readonly Static: "static";
|
|
18
|
+
readonly Flow: "flow";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type RedirectStageModeEnum = typeof RedirectStageModeEnum[keyof typeof RedirectStageModeEnum];
|
|
22
|
+
export declare function RedirectStageModeEnumFromJSON(json: any): RedirectStageModeEnum;
|
|
23
|
+
export declare function RedirectStageModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStageModeEnum;
|
|
24
|
+
export declare function RedirectStageModeEnumToJSON(value?: RedirectStageModeEnum | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 RedirectStageModeEnum = {
|
|
19
|
+
Static: 'static',
|
|
20
|
+
Flow: 'flow',
|
|
21
|
+
UnknownDefaultOpenApi: '11184809'
|
|
22
|
+
};
|
|
23
|
+
export function RedirectStageModeEnumFromJSON(json) {
|
|
24
|
+
return RedirectStageModeEnumFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function RedirectStageModeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
export function RedirectStageModeEnumToJSON(value) {
|
|
30
|
+
return value;
|
|
31
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 type { FlowSetRequest } from './FlowSetRequest';
|
|
13
|
+
import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
|
|
14
|
+
/**
|
|
15
|
+
* RedirectStage Serializer
|
|
16
|
+
* @export
|
|
17
|
+
* @interface RedirectStageRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface RedirectStageRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof RedirectStageRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<FlowSetRequest>}
|
|
29
|
+
* @memberof RedirectStageRequest
|
|
30
|
+
*/
|
|
31
|
+
flowSet?: Array<FlowSetRequest>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof RedirectStageRequest
|
|
36
|
+
*/
|
|
37
|
+
keepContext?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RedirectStageModeEnum}
|
|
41
|
+
* @memberof RedirectStageRequest
|
|
42
|
+
*/
|
|
43
|
+
mode: RedirectStageModeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof RedirectStageRequest
|
|
48
|
+
*/
|
|
49
|
+
targetStatic?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof RedirectStageRequest
|
|
54
|
+
*/
|
|
55
|
+
targetFlow?: string | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the RedirectStageRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfRedirectStageRequest(value: object): boolean;
|
|
61
|
+
export declare function RedirectStageRequestFromJSON(json: any): RedirectStageRequest;
|
|
62
|
+
export declare function RedirectStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStageRequest;
|
|
63
|
+
export declare function RedirectStageRequestToJSON(value?: RedirectStageRequest | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
|
|
16
|
+
import { RedirectStageModeEnumFromJSON, RedirectStageModeEnumToJSON, } from './RedirectStageModeEnum';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RedirectStageRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfRedirectStageRequest(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
isInstance = isInstance && "mode" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function RedirectStageRequestFromJSON(json) {
|
|
27
|
+
return RedirectStageRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function RedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
|
36
|
+
'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
|
|
37
|
+
'mode': RedirectStageModeEnumFromJSON(json['mode']),
|
|
38
|
+
'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
|
|
39
|
+
'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function RedirectStageRequestToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value.name,
|
|
51
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
|
|
52
|
+
'keep_context': value.keepContext,
|
|
53
|
+
'mode': RedirectStageModeEnumToJSON(value.mode),
|
|
54
|
+
'target_static': value.targetStatic,
|
|
55
|
+
'target_flow': value.targetFlow,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -339,6 +339,7 @@ export * from './PaginatedRACProviderList';
|
|
|
339
339
|
export * from './PaginatedRadiusOutpostConfigList';
|
|
340
340
|
export * from './PaginatedRadiusProviderList';
|
|
341
341
|
export * from './PaginatedRadiusProviderPropertyMappingList';
|
|
342
|
+
export * from './PaginatedRedirectStageList';
|
|
342
343
|
export * from './PaginatedReputationList';
|
|
343
344
|
export * from './PaginatedReputationPolicyList';
|
|
344
345
|
export * from './PaginatedRoleAssignedObjectPermissionList';
|
|
@@ -458,6 +459,7 @@ export * from './PatchedRACPropertyMappingRequest';
|
|
|
458
459
|
export * from './PatchedRACProviderRequest';
|
|
459
460
|
export * from './PatchedRadiusProviderPropertyMappingRequest';
|
|
460
461
|
export * from './PatchedRadiusProviderRequest';
|
|
462
|
+
export * from './PatchedRedirectStageRequest';
|
|
461
463
|
export * from './PatchedReputationPolicyRequest';
|
|
462
464
|
export * from './PatchedRoleRequest';
|
|
463
465
|
export * from './PatchedSAMLPropertyMappingRequest';
|
|
@@ -537,6 +539,10 @@ export * from './RadiusProviderPropertyMapping';
|
|
|
537
539
|
export * from './RadiusProviderPropertyMappingRequest';
|
|
538
540
|
export * from './RadiusProviderRequest';
|
|
539
541
|
export * from './RedirectChallenge';
|
|
542
|
+
export * from './RedirectChallengeResponseRequest';
|
|
543
|
+
export * from './RedirectStage';
|
|
544
|
+
export * from './RedirectStageModeEnum';
|
|
545
|
+
export * from './RedirectStageRequest';
|
|
540
546
|
export * from './RedirectURI';
|
|
541
547
|
export * from './RedirectURIRequest';
|
|
542
548
|
export * from './Reputation';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -341,6 +341,7 @@ export * from './PaginatedRACProviderList';
|
|
|
341
341
|
export * from './PaginatedRadiusOutpostConfigList';
|
|
342
342
|
export * from './PaginatedRadiusProviderList';
|
|
343
343
|
export * from './PaginatedRadiusProviderPropertyMappingList';
|
|
344
|
+
export * from './PaginatedRedirectStageList';
|
|
344
345
|
export * from './PaginatedReputationList';
|
|
345
346
|
export * from './PaginatedReputationPolicyList';
|
|
346
347
|
export * from './PaginatedRoleAssignedObjectPermissionList';
|
|
@@ -460,6 +461,7 @@ export * from './PatchedRACPropertyMappingRequest';
|
|
|
460
461
|
export * from './PatchedRACProviderRequest';
|
|
461
462
|
export * from './PatchedRadiusProviderPropertyMappingRequest';
|
|
462
463
|
export * from './PatchedRadiusProviderRequest';
|
|
464
|
+
export * from './PatchedRedirectStageRequest';
|
|
463
465
|
export * from './PatchedReputationPolicyRequest';
|
|
464
466
|
export * from './PatchedRoleRequest';
|
|
465
467
|
export * from './PatchedSAMLPropertyMappingRequest';
|
|
@@ -539,6 +541,10 @@ export * from './RadiusProviderPropertyMapping';
|
|
|
539
541
|
export * from './RadiusProviderPropertyMappingRequest';
|
|
540
542
|
export * from './RadiusProviderRequest';
|
|
541
543
|
export * from './RedirectChallenge';
|
|
544
|
+
export * from './RedirectChallengeResponseRequest';
|
|
545
|
+
export * from './RedirectStage';
|
|
546
|
+
export * from './RedirectStageModeEnum';
|
|
547
|
+
export * from './RedirectStageRequest';
|
|
542
548
|
export * from './RedirectURI';
|
|
543
549
|
export * from './RedirectURIRequest';
|
|
544
550
|
export * from './Reputation';
|
package/dist/models/AppEnum.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare const AppEnum: {
|
|
|
58
58
|
readonly StagesInvitation: "authentik.stages.invitation";
|
|
59
59
|
readonly StagesPassword: "authentik.stages.password";
|
|
60
60
|
readonly StagesPrompt: "authentik.stages.prompt";
|
|
61
|
+
readonly StagesRedirect: "authentik.stages.redirect";
|
|
61
62
|
readonly StagesUserDelete: "authentik.stages.user_delete";
|
|
62
63
|
readonly StagesUserLogin: "authentik.stages.user_login";
|
|
63
64
|
readonly StagesUserLogout: "authentik.stages.user_logout";
|
package/dist/models/AppEnum.js
CHANGED
|
@@ -63,6 +63,7 @@ exports.AppEnum = {
|
|
|
63
63
|
StagesInvitation: 'authentik.stages.invitation',
|
|
64
64
|
StagesPassword: 'authentik.stages.password',
|
|
65
65
|
StagesPrompt: 'authentik.stages.prompt',
|
|
66
|
+
StagesRedirect: 'authentik.stages.redirect',
|
|
66
67
|
StagesUserDelete: 'authentik.stages.user_delete',
|
|
67
68
|
StagesUserLogin: 'authentik.stages.user_login',
|
|
68
69
|
StagesUserLogout: 'authentik.stages.user_logout',
|
|
@@ -18,6 +18,7 @@ export declare const AuthenticationEnum: {
|
|
|
18
18
|
readonly RequireAuthenticated: "require_authenticated";
|
|
19
19
|
readonly RequireUnauthenticated: "require_unauthenticated";
|
|
20
20
|
readonly RequireSuperuser: "require_superuser";
|
|
21
|
+
readonly RequireRedirect: "require_redirect";
|
|
21
22
|
readonly RequireOutpost: "require_outpost";
|
|
22
23
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
23
24
|
};
|
|
@@ -23,6 +23,7 @@ exports.AuthenticationEnum = {
|
|
|
23
23
|
RequireAuthenticated: 'require_authenticated',
|
|
24
24
|
RequireUnauthenticated: 'require_unauthenticated',
|
|
25
25
|
RequireSuperuser: 'require_superuser',
|
|
26
|
+
RequireRedirect: 'require_redirect',
|
|
26
27
|
RequireOutpost: 'require_outpost',
|
|
27
28
|
UnknownDefaultOpenApi: '11184809'
|
|
28
29
|
};
|
|
@@ -28,6 +28,7 @@ import { OAuthDeviceCodeFinishChallengeResponseRequest } from './OAuthDeviceCode
|
|
|
28
28
|
import { PasswordChallengeResponseRequest } from './PasswordChallengeResponseRequest';
|
|
29
29
|
import { PlexAuthenticationChallengeResponseRequest } from './PlexAuthenticationChallengeResponseRequest';
|
|
30
30
|
import { PromptChallengeResponseRequest } from './PromptChallengeResponseRequest';
|
|
31
|
+
import { RedirectChallengeResponseRequest } from './RedirectChallengeResponseRequest';
|
|
31
32
|
import { UserLoginChallengeResponseRequest } from './UserLoginChallengeResponseRequest';
|
|
32
33
|
/**
|
|
33
34
|
* @type FlowChallengeResponseRequest
|
|
@@ -74,7 +75,9 @@ export type FlowChallengeResponseRequest = {
|
|
|
74
75
|
component: 'ak-stage-user-login';
|
|
75
76
|
} & UserLoginChallengeResponseRequest | {
|
|
76
77
|
component: 'xak-flow-frame';
|
|
77
|
-
} & FrameChallengeResponseRequest
|
|
78
|
+
} & FrameChallengeResponseRequest | {
|
|
79
|
+
component: 'xak-flow-redirect';
|
|
80
|
+
} & RedirectChallengeResponseRequest;
|
|
78
81
|
export declare function FlowChallengeResponseRequestFromJSON(json: any): FlowChallengeResponseRequest;
|
|
79
82
|
export declare function FlowChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowChallengeResponseRequest;
|
|
80
83
|
export declare function FlowChallengeResponseRequestToJSON(value?: FlowChallengeResponseRequest | null): any;
|
|
@@ -33,6 +33,7 @@ const OAuthDeviceCodeFinishChallengeResponseRequest_1 = require("./OAuthDeviceCo
|
|
|
33
33
|
const PasswordChallengeResponseRequest_1 = require("./PasswordChallengeResponseRequest");
|
|
34
34
|
const PlexAuthenticationChallengeResponseRequest_1 = require("./PlexAuthenticationChallengeResponseRequest");
|
|
35
35
|
const PromptChallengeResponseRequest_1 = require("./PromptChallengeResponseRequest");
|
|
36
|
+
const RedirectChallengeResponseRequest_1 = require("./RedirectChallengeResponseRequest");
|
|
36
37
|
const UserLoginChallengeResponseRequest_1 = require("./UserLoginChallengeResponseRequest");
|
|
37
38
|
function FlowChallengeResponseRequestFromJSON(json) {
|
|
38
39
|
return FlowChallengeResponseRequestFromJSONTyped(json, false);
|
|
@@ -83,6 +84,8 @@ function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
84
|
return Object.assign(Object.assign({}, (0, UserLoginChallengeResponseRequest_1.UserLoginChallengeResponseRequestFromJSONTyped)(json, true)), { component: 'ak-stage-user-login' });
|
|
84
85
|
case 'xak-flow-frame':
|
|
85
86
|
return Object.assign(Object.assign({}, (0, FrameChallengeResponseRequest_1.FrameChallengeResponseRequestFromJSONTyped)(json, true)), { component: 'xak-flow-frame' });
|
|
87
|
+
case 'xak-flow-redirect':
|
|
88
|
+
return Object.assign(Object.assign({}, (0, RedirectChallengeResponseRequest_1.RedirectChallengeResponseRequestFromJSONTyped)(json, true)), { component: 'xak-flow-redirect' });
|
|
86
89
|
default:
|
|
87
90
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${json['component']}'`);
|
|
88
91
|
}
|
|
@@ -136,6 +139,8 @@ function FlowChallengeResponseRequestToJSON(value) {
|
|
|
136
139
|
return (0, UserLoginChallengeResponseRequest_1.UserLoginChallengeResponseRequestToJSON)(value);
|
|
137
140
|
case 'xak-flow-frame':
|
|
138
141
|
return (0, FrameChallengeResponseRequest_1.FrameChallengeResponseRequestToJSON)(value);
|
|
142
|
+
case 'xak-flow-redirect':
|
|
143
|
+
return (0, RedirectChallengeResponseRequest_1.RedirectChallengeResponseRequestToJSON)(value);
|
|
139
144
|
default:
|
|
140
145
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${value['component']}'`);
|
|
141
146
|
}
|
|
@@ -83,6 +83,7 @@ export declare const ModelEnum: {
|
|
|
83
83
|
readonly StagesPasswordPasswordstage: "authentik_stages_password.passwordstage";
|
|
84
84
|
readonly StagesPromptPrompt: "authentik_stages_prompt.prompt";
|
|
85
85
|
readonly StagesPromptPromptstage: "authentik_stages_prompt.promptstage";
|
|
86
|
+
readonly StagesRedirectRedirectstage: "authentik_stages_redirect.redirectstage";
|
|
86
87
|
readonly StagesUserDeleteUserdeletestage: "authentik_stages_user_delete.userdeletestage";
|
|
87
88
|
readonly StagesUserLoginUserloginstage: "authentik_stages_user_login.userloginstage";
|
|
88
89
|
readonly StagesUserLogoutUserlogoutstage: "authentik_stages_user_logout.userlogoutstage";
|
package/dist/models/ModelEnum.js
CHANGED
|
@@ -88,6 +88,7 @@ exports.ModelEnum = {
|
|
|
88
88
|
StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
|
|
89
89
|
StagesPromptPrompt: 'authentik_stages_prompt.prompt',
|
|
90
90
|
StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
|
|
91
|
+
StagesRedirectRedirectstage: 'authentik_stages_redirect.redirectstage',
|
|
91
92
|
StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
|
|
92
93
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|
|
93
94
|
StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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 type { Pagination } from './Pagination';
|
|
13
|
+
import type { RedirectStage } from './RedirectStage';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedRedirectStageList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedRedirectStageList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedRedirectStageList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<RedirectStage>}
|
|
29
|
+
* @memberof PaginatedRedirectStageList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<RedirectStage>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedRedirectStageList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedRedirectStageList(value: object): boolean;
|
|
37
|
+
export declare function PaginatedRedirectStageListFromJSON(json: any): PaginatedRedirectStageList;
|
|
38
|
+
export declare function PaginatedRedirectStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRedirectStageList;
|
|
39
|
+
export declare function PaginatedRedirectStageListToJSON(value?: PaginatedRedirectStageList | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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.PaginatedRedirectStageListToJSON = exports.PaginatedRedirectStageListFromJSONTyped = exports.PaginatedRedirectStageListFromJSON = exports.instanceOfPaginatedRedirectStageList = void 0;
|
|
17
|
+
const Pagination_1 = require("./Pagination");
|
|
18
|
+
const RedirectStage_1 = require("./RedirectStage");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedRedirectStageList interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedRedirectStageList(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "pagination" in value;
|
|
25
|
+
isInstance = isInstance && "results" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfPaginatedRedirectStageList = instanceOfPaginatedRedirectStageList;
|
|
29
|
+
function PaginatedRedirectStageListFromJSON(json) {
|
|
30
|
+
return PaginatedRedirectStageListFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.PaginatedRedirectStageListFromJSON = PaginatedRedirectStageListFromJSON;
|
|
33
|
+
function PaginatedRedirectStageListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
|
39
|
+
'results': (json['results'].map(RedirectStage_1.RedirectStageFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.PaginatedRedirectStageListFromJSONTyped = PaginatedRedirectStageListFromJSONTyped;
|
|
43
|
+
function PaginatedRedirectStageListToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
|
52
|
+
'results': (value.results.map(RedirectStage_1.RedirectStageToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PaginatedRedirectStageListToJSON = PaginatedRedirectStageListToJSON;
|