@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,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 PatchedRedirectStageRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface PatchedRedirectStageRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PatchedRedirectStageRequest
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<FlowSetRequest>}
|
|
29
|
+
* @memberof PatchedRedirectStageRequest
|
|
30
|
+
*/
|
|
31
|
+
flowSet?: Array<FlowSetRequest>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof PatchedRedirectStageRequest
|
|
36
|
+
*/
|
|
37
|
+
keepContext?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RedirectStageModeEnum}
|
|
41
|
+
* @memberof PatchedRedirectStageRequest
|
|
42
|
+
*/
|
|
43
|
+
mode?: RedirectStageModeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PatchedRedirectStageRequest
|
|
48
|
+
*/
|
|
49
|
+
targetStatic?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PatchedRedirectStageRequest
|
|
54
|
+
*/
|
|
55
|
+
targetFlow?: string | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PatchedRedirectStageRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPatchedRedirectStageRequest(value: object): boolean;
|
|
61
|
+
export declare function PatchedRedirectStageRequestFromJSON(json: any): PatchedRedirectStageRequest;
|
|
62
|
+
export declare function PatchedRedirectStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRedirectStageRequest;
|
|
63
|
+
export declare function PatchedRedirectStageRequestToJSON(value?: PatchedRedirectStageRequest | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.PatchedRedirectStageRequestToJSON = exports.PatchedRedirectStageRequestFromJSONTyped = exports.PatchedRedirectStageRequestFromJSON = exports.instanceOfPatchedRedirectStageRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const FlowSetRequest_1 = require("./FlowSetRequest");
|
|
19
|
+
const RedirectStageModeEnum_1 = require("./RedirectStageModeEnum");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the PatchedRedirectStageRequest interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfPatchedRedirectStageRequest(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
return isInstance;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfPatchedRedirectStageRequest = instanceOfPatchedRedirectStageRequest;
|
|
28
|
+
function PatchedRedirectStageRequestFromJSON(json) {
|
|
29
|
+
return PatchedRedirectStageRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.PatchedRedirectStageRequestFromJSON = PatchedRedirectStageRequestFromJSON;
|
|
32
|
+
function PatchedRedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
|
|
38
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
|
39
|
+
'keepContext': !(0, runtime_1.exists)(json, 'keep_context') ? undefined : json['keep_context'],
|
|
40
|
+
'mode': !(0, runtime_1.exists)(json, 'mode') ? undefined : (0, RedirectStageModeEnum_1.RedirectStageModeEnumFromJSON)(json['mode']),
|
|
41
|
+
'targetStatic': !(0, runtime_1.exists)(json, 'target_static') ? undefined : json['target_static'],
|
|
42
|
+
'targetFlow': !(0, runtime_1.exists)(json, 'target_flow') ? undefined : json['target_flow'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.PatchedRedirectStageRequestFromJSONTyped = PatchedRedirectStageRequestFromJSONTyped;
|
|
46
|
+
function PatchedRedirectStageRequestToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value.name,
|
|
55
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
|
56
|
+
'keep_context': value.keepContext,
|
|
57
|
+
'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumToJSON)(value.mode),
|
|
58
|
+
'target_static': value.targetStatic,
|
|
59
|
+
'target_flow': value.targetFlow,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.PatchedRedirectStageRequestToJSON = PatchedRedirectStageRequestToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
* Redirect challenge response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RedirectChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RedirectChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RedirectChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
component?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RedirectChallengeResponseRequest
|
|
28
|
+
*/
|
|
29
|
+
to: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RedirectChallengeResponseRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRedirectChallengeResponseRequest(value: object): boolean;
|
|
35
|
+
export declare function RedirectChallengeResponseRequestFromJSON(json: any): RedirectChallengeResponseRequest;
|
|
36
|
+
export declare function RedirectChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectChallengeResponseRequest;
|
|
37
|
+
export declare function RedirectChallengeResponseRequestToJSON(value?: RedirectChallengeResponseRequest | null): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
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.RedirectChallengeResponseRequestToJSON = exports.RedirectChallengeResponseRequestFromJSONTyped = exports.RedirectChallengeResponseRequestFromJSON = exports.instanceOfRedirectChallengeResponseRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the RedirectChallengeResponseRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfRedirectChallengeResponseRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "to" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfRedirectChallengeResponseRequest = instanceOfRedirectChallengeResponseRequest;
|
|
27
|
+
function RedirectChallengeResponseRequestFromJSON(json) {
|
|
28
|
+
return RedirectChallengeResponseRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.RedirectChallengeResponseRequestFromJSON = RedirectChallengeResponseRequestFromJSON;
|
|
31
|
+
function RedirectChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
|
|
37
|
+
'to': json['to'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.RedirectChallengeResponseRequestFromJSONTyped = RedirectChallengeResponseRequestFromJSONTyped;
|
|
41
|
+
function RedirectChallengeResponseRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'component': value.component,
|
|
50
|
+
'to': value.to,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.RedirectChallengeResponseRequestToJSON = RedirectChallengeResponseRequestToJSON;
|
|
@@ -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,74 @@
|
|
|
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.RedirectStageToJSON = exports.RedirectStageFromJSONTyped = exports.RedirectStageFromJSON = exports.instanceOfRedirectStage = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const FlowSet_1 = require("./FlowSet");
|
|
19
|
+
const RedirectStageModeEnum_1 = require("./RedirectStageModeEnum");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RedirectStage interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfRedirectStage(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "pk" in value;
|
|
26
|
+
isInstance = isInstance && "name" in value;
|
|
27
|
+
isInstance = isInstance && "component" in value;
|
|
28
|
+
isInstance = isInstance && "verboseName" in value;
|
|
29
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
30
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
31
|
+
isInstance = isInstance && "mode" in value;
|
|
32
|
+
return isInstance;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfRedirectStage = instanceOfRedirectStage;
|
|
35
|
+
function RedirectStageFromJSON(json) {
|
|
36
|
+
return RedirectStageFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.RedirectStageFromJSON = RedirectStageFromJSON;
|
|
39
|
+
function RedirectStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'pk': json['pk'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'component': json['component'],
|
|
47
|
+
'verboseName': json['verbose_name'],
|
|
48
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
49
|
+
'metaModelName': json['meta_model_name'],
|
|
50
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
|
|
51
|
+
'keepContext': !(0, runtime_1.exists)(json, 'keep_context') ? undefined : json['keep_context'],
|
|
52
|
+
'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumFromJSON)(json['mode']),
|
|
53
|
+
'targetStatic': !(0, runtime_1.exists)(json, 'target_static') ? undefined : json['target_static'],
|
|
54
|
+
'targetFlow': !(0, runtime_1.exists)(json, 'target_flow') ? undefined : json['target_flow'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.RedirectStageFromJSONTyped = RedirectStageFromJSONTyped;
|
|
58
|
+
function RedirectStageToJSON(value) {
|
|
59
|
+
if (value === undefined) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
if (value === null) {
|
|
63
|
+
return null;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'name': value.name,
|
|
67
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSet_1.FlowSetToJSON)),
|
|
68
|
+
'keep_context': value.keepContext,
|
|
69
|
+
'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumToJSON)(value.mode),
|
|
70
|
+
'target_static': value.targetStatic,
|
|
71
|
+
'target_flow': value.targetFlow,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.RedirectStageToJSON = RedirectStageToJSON;
|
|
@@ -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,37 @@
|
|
|
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.RedirectStageModeEnumToJSON = exports.RedirectStageModeEnumFromJSONTyped = exports.RedirectStageModeEnumFromJSON = exports.RedirectStageModeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.RedirectStageModeEnum = {
|
|
22
|
+
Static: 'static',
|
|
23
|
+
Flow: 'flow',
|
|
24
|
+
UnknownDefaultOpenApi: '11184809'
|
|
25
|
+
};
|
|
26
|
+
function RedirectStageModeEnumFromJSON(json) {
|
|
27
|
+
return RedirectStageModeEnumFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.RedirectStageModeEnumFromJSON = RedirectStageModeEnumFromJSON;
|
|
30
|
+
function RedirectStageModeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
exports.RedirectStageModeEnumFromJSONTyped = RedirectStageModeEnumFromJSONTyped;
|
|
34
|
+
function RedirectStageModeEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
exports.RedirectStageModeEnumToJSON = RedirectStageModeEnumToJSON;
|
|
@@ -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,64 @@
|
|
|
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.RedirectStageRequestToJSON = exports.RedirectStageRequestFromJSONTyped = exports.RedirectStageRequestFromJSON = exports.instanceOfRedirectStageRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const FlowSetRequest_1 = require("./FlowSetRequest");
|
|
19
|
+
const RedirectStageModeEnum_1 = require("./RedirectStageModeEnum");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the RedirectStageRequest interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfRedirectStageRequest(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "name" in value;
|
|
26
|
+
isInstance = isInstance && "mode" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfRedirectStageRequest = instanceOfRedirectStageRequest;
|
|
30
|
+
function RedirectStageRequestFromJSON(json) {
|
|
31
|
+
return RedirectStageRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.RedirectStageRequestFromJSON = RedirectStageRequestFromJSON;
|
|
34
|
+
function RedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
|
41
|
+
'keepContext': !(0, runtime_1.exists)(json, 'keep_context') ? undefined : json['keep_context'],
|
|
42
|
+
'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumFromJSON)(json['mode']),
|
|
43
|
+
'targetStatic': !(0, runtime_1.exists)(json, 'target_static') ? undefined : json['target_static'],
|
|
44
|
+
'targetFlow': !(0, runtime_1.exists)(json, 'target_flow') ? undefined : json['target_flow'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.RedirectStageRequestFromJSONTyped = RedirectStageRequestFromJSONTyped;
|
|
48
|
+
function RedirectStageRequestToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value.name,
|
|
57
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
|
58
|
+
'keep_context': value.keepContext,
|
|
59
|
+
'mode': (0, RedirectStageModeEnum_1.RedirectStageModeEnumToJSON)(value.mode),
|
|
60
|
+
'target_static': value.targetStatic,
|
|
61
|
+
'target_flow': value.targetFlow,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.RedirectStageRequestToJSON = RedirectStageRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -357,6 +357,7 @@ __exportStar(require("./PaginatedRACProviderList"), exports);
|
|
|
357
357
|
__exportStar(require("./PaginatedRadiusOutpostConfigList"), exports);
|
|
358
358
|
__exportStar(require("./PaginatedRadiusProviderList"), exports);
|
|
359
359
|
__exportStar(require("./PaginatedRadiusProviderPropertyMappingList"), exports);
|
|
360
|
+
__exportStar(require("./PaginatedRedirectStageList"), exports);
|
|
360
361
|
__exportStar(require("./PaginatedReputationList"), exports);
|
|
361
362
|
__exportStar(require("./PaginatedReputationPolicyList"), exports);
|
|
362
363
|
__exportStar(require("./PaginatedRoleAssignedObjectPermissionList"), exports);
|
|
@@ -476,6 +477,7 @@ __exportStar(require("./PatchedRACPropertyMappingRequest"), exports);
|
|
|
476
477
|
__exportStar(require("./PatchedRACProviderRequest"), exports);
|
|
477
478
|
__exportStar(require("./PatchedRadiusProviderPropertyMappingRequest"), exports);
|
|
478
479
|
__exportStar(require("./PatchedRadiusProviderRequest"), exports);
|
|
480
|
+
__exportStar(require("./PatchedRedirectStageRequest"), exports);
|
|
479
481
|
__exportStar(require("./PatchedReputationPolicyRequest"), exports);
|
|
480
482
|
__exportStar(require("./PatchedRoleRequest"), exports);
|
|
481
483
|
__exportStar(require("./PatchedSAMLPropertyMappingRequest"), exports);
|
|
@@ -555,6 +557,10 @@ __exportStar(require("./RadiusProviderPropertyMapping"), exports);
|
|
|
555
557
|
__exportStar(require("./RadiusProviderPropertyMappingRequest"), exports);
|
|
556
558
|
__exportStar(require("./RadiusProviderRequest"), exports);
|
|
557
559
|
__exportStar(require("./RedirectChallenge"), exports);
|
|
560
|
+
__exportStar(require("./RedirectChallengeResponseRequest"), exports);
|
|
561
|
+
__exportStar(require("./RedirectStage"), exports);
|
|
562
|
+
__exportStar(require("./RedirectStageModeEnum"), exports);
|
|
563
|
+
__exportStar(require("./RedirectStageRequest"), exports);
|
|
558
564
|
__exportStar(require("./RedirectURI"), exports);
|
|
559
565
|
__exportStar(require("./RedirectURIRequest"), exports);
|
|
560
566
|
__exportStar(require("./Reputation"), exports);
|
package/package.json
CHANGED
package/src/apis/RbacApi.ts
CHANGED
|
@@ -1450,6 +1450,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
1450
1450
|
StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
|
|
1451
1451
|
StagesPromptPrompt: 'authentik_stages_prompt.prompt',
|
|
1452
1452
|
StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
|
|
1453
|
+
StagesRedirectRedirectstage: 'authentik_stages_redirect.redirectstage',
|
|
1453
1454
|
StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
|
|
1454
1455
|
StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
|
|
1455
1456
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|
|
@@ -1551,6 +1552,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1551
1552
|
StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
|
|
1552
1553
|
StagesPromptPrompt: 'authentik_stages_prompt.prompt',
|
|
1553
1554
|
StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
|
|
1555
|
+
StagesRedirectRedirectstage: 'authentik_stages_redirect.redirectstage',
|
|
1554
1556
|
StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
|
|
1555
1557
|
StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
|
|
1556
1558
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|