@goauthentik/api 2024.10.5-1733854821 → 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.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/dist/apis/RbacApi.d.ts +2 -0
  3. package/dist/apis/RbacApi.js +2 -0
  4. package/dist/apis/SourcesApi.d.ts +11 -0
  5. package/dist/apis/SourcesApi.js +13 -1
  6. package/dist/apis/StagesApi.d.ts +84 -1
  7. package/dist/apis/StagesApi.js +265 -0
  8. package/dist/esm/apis/RbacApi.d.ts +2 -0
  9. package/dist/esm/apis/RbacApi.js +2 -0
  10. package/dist/esm/apis/SourcesApi.d.ts +11 -0
  11. package/dist/esm/apis/SourcesApi.js +12 -0
  12. package/dist/esm/apis/StagesApi.d.ts +84 -1
  13. package/dist/esm/apis/StagesApi.js +266 -1
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/AuthenticationEnum.d.ts +1 -0
  17. package/dist/esm/models/AuthenticationEnum.js +1 -0
  18. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
  19. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  20. package/dist/esm/models/KadminTypeEnum.d.ts +25 -0
  21. package/dist/esm/models/KadminTypeEnum.js +32 -0
  22. package/dist/esm/models/KerberosSource.d.ts +7 -0
  23. package/dist/esm/models/KerberosSource.js +3 -0
  24. package/dist/esm/models/KerberosSourceRequest.d.ts +7 -0
  25. package/dist/esm/models/KerberosSourceRequest.js +3 -0
  26. package/dist/esm/models/ModelEnum.d.ts +1 -0
  27. package/dist/esm/models/ModelEnum.js +1 -0
  28. package/dist/esm/models/PaginatedRedirectStageList.d.ts +39 -0
  29. package/dist/esm/models/PaginatedRedirectStageList.js +48 -0
  30. package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +7 -0
  31. package/dist/esm/models/PatchedKerberosSourceRequest.js +3 -0
  32. package/dist/esm/models/PatchedRedirectStageRequest.d.ts +63 -0
  33. package/dist/esm/models/PatchedRedirectStageRequest.js +55 -0
  34. package/dist/esm/models/RedirectChallengeResponseRequest.d.ts +37 -0
  35. package/dist/esm/models/RedirectChallengeResponseRequest.js +46 -0
  36. package/dist/esm/models/RedirectStage.d.ts +93 -0
  37. package/dist/esm/models/RedirectStage.js +67 -0
  38. package/dist/esm/models/RedirectStageModeEnum.d.ts +24 -0
  39. package/dist/esm/models/RedirectStageModeEnum.js +31 -0
  40. package/dist/esm/models/RedirectStageRequest.d.ts +63 -0
  41. package/dist/esm/models/RedirectStageRequest.js +57 -0
  42. package/dist/esm/models/index.d.ts +7 -0
  43. package/dist/esm/models/index.js +7 -0
  44. package/dist/models/AppEnum.d.ts +1 -0
  45. package/dist/models/AppEnum.js +1 -0
  46. package/dist/models/AuthenticationEnum.d.ts +1 -0
  47. package/dist/models/AuthenticationEnum.js +1 -0
  48. package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
  49. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  50. package/dist/models/KadminTypeEnum.d.ts +25 -0
  51. package/dist/models/KadminTypeEnum.js +38 -0
  52. package/dist/models/KerberosSource.d.ts +7 -0
  53. package/dist/models/KerberosSource.js +3 -0
  54. package/dist/models/KerberosSourceRequest.d.ts +7 -0
  55. package/dist/models/KerberosSourceRequest.js +3 -0
  56. package/dist/models/ModelEnum.d.ts +1 -0
  57. package/dist/models/ModelEnum.js +1 -0
  58. package/dist/models/PaginatedRedirectStageList.d.ts +39 -0
  59. package/dist/models/PaginatedRedirectStageList.js +55 -0
  60. package/dist/models/PatchedKerberosSourceRequest.d.ts +7 -0
  61. package/dist/models/PatchedKerberosSourceRequest.js +3 -0
  62. package/dist/models/PatchedRedirectStageRequest.d.ts +63 -0
  63. package/dist/models/PatchedRedirectStageRequest.js +62 -0
  64. package/dist/models/RedirectChallengeResponseRequest.d.ts +37 -0
  65. package/dist/models/RedirectChallengeResponseRequest.js +53 -0
  66. package/dist/models/RedirectStage.d.ts +93 -0
  67. package/dist/models/RedirectStage.js +74 -0
  68. package/dist/models/RedirectStageModeEnum.d.ts +24 -0
  69. package/dist/models/RedirectStageModeEnum.js +37 -0
  70. package/dist/models/RedirectStageRequest.d.ts +63 -0
  71. package/dist/models/RedirectStageRequest.js +64 -0
  72. package/dist/models/index.d.ts +7 -0
  73. package/dist/models/index.js +7 -0
  74. package/package.json +1 -1
  75. package/src/apis/RbacApi.ts +2 -0
  76. package/src/apis/SourcesApi.ts +15 -0
  77. package/src/apis/StagesApi.ts +340 -0
  78. package/src/models/AppEnum.ts +1 -0
  79. package/src/models/AuthenticationEnum.ts +1 -0
  80. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  81. package/src/models/KadminTypeEnum.ts +40 -0
  82. package/src/models/KerberosSource.ts +14 -0
  83. package/src/models/KerberosSourceRequest.ts +14 -0
  84. package/src/models/ModelEnum.ts +1 -0
  85. package/src/models/PaginatedRedirectStageList.ts +88 -0
  86. package/src/models/PatchedKerberosSourceRequest.ts +14 -0
  87. package/src/models/PatchedRedirectStageRequest.ts +118 -0
  88. package/src/models/RedirectChallengeResponseRequest.ts +74 -0
  89. package/src/models/RedirectStage.ts +160 -0
  90. package/src/models/RedirectStageModeEnum.ts +39 -0
  91. package/src/models/RedirectStageRequest.ts +120 -0
  92. package/src/models/index.ts +7 -0
@@ -85,6 +85,7 @@ export const ModelEnum = {
85
85
  StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
86
86
  StagesPromptPrompt: 'authentik_stages_prompt.prompt',
87
87
  StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
88
+ StagesRedirectRedirectstage: 'authentik_stages_redirect.redirectstage',
88
89
  StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
89
90
  StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
90
91
  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,48 @@
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 { PaginationFromJSON, PaginationToJSON, } from './Pagination';
15
+ import { RedirectStageFromJSON, RedirectStageToJSON, } from './RedirectStage';
16
+ /**
17
+ * Check if a given object implements the PaginatedRedirectStageList interface.
18
+ */
19
+ export function instanceOfPaginatedRedirectStageList(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pagination" in value;
22
+ isInstance = isInstance && "results" in value;
23
+ return isInstance;
24
+ }
25
+ export function PaginatedRedirectStageListFromJSON(json) {
26
+ return PaginatedRedirectStageListFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedRedirectStageListFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'pagination': PaginationFromJSON(json['pagination']),
34
+ 'results': (json['results'].map(RedirectStageFromJSON)),
35
+ };
36
+ }
37
+ export function PaginatedRedirectStageListToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'pagination': PaginationToJSON(value.pagination),
46
+ 'results': (value.results.map(RedirectStageToJSON)),
47
+ };
48
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
13
+ import type { KadminTypeEnum } from './KadminTypeEnum';
13
14
  import type { PolicyEngineMode } from './PolicyEngineMode';
14
15
  import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
15
16
  /**
@@ -96,6 +97,12 @@ export interface PatchedKerberosSourceRequest {
96
97
  * @memberof PatchedKerberosSourceRequest
97
98
  */
98
99
  krb5Conf?: string;
100
+ /**
101
+ *
102
+ * @type {KadminTypeEnum}
103
+ * @memberof PatchedKerberosSourceRequest
104
+ */
105
+ kadminType?: KadminTypeEnum;
99
106
  /**
100
107
  * Sync users from Kerberos into authentik
101
108
  * @type {boolean}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
16
+ import { KadminTypeEnumFromJSON, KadminTypeEnumToJSON, } from './KadminTypeEnum';
16
17
  import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
17
18
  import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
18
19
  /**
@@ -43,6 +44,7 @@ export function PatchedKerberosSourceRequestFromJSONTyped(json, ignoreDiscrimina
43
44
  'groupMatchingMode': !exists(json, 'group_matching_mode') ? undefined : GroupMatchingModeEnumFromJSON(json['group_matching_mode']),
44
45
  'realm': !exists(json, 'realm') ? undefined : json['realm'],
45
46
  'krb5Conf': !exists(json, 'krb5_conf') ? undefined : json['krb5_conf'],
47
+ 'kadminType': !exists(json, 'kadmin_type') ? undefined : KadminTypeEnumFromJSON(json['kadmin_type']),
46
48
  'syncUsers': !exists(json, 'sync_users') ? undefined : json['sync_users'],
47
49
  'syncUsersPassword': !exists(json, 'sync_users_password') ? undefined : json['sync_users_password'],
48
50
  'syncPrincipal': !exists(json, 'sync_principal') ? undefined : json['sync_principal'],
@@ -76,6 +78,7 @@ export function PatchedKerberosSourceRequestToJSON(value) {
76
78
  'group_matching_mode': GroupMatchingModeEnumToJSON(value.groupMatchingMode),
77
79
  'realm': value.realm,
78
80
  'krb5_conf': value.krb5Conf,
81
+ 'kadmin_type': KadminTypeEnumToJSON(value.kadminType),
79
82
  'sync_users': value.syncUsers,
80
83
  'sync_users_password': value.syncUsersPassword,
81
84
  'sync_principal': value.syncPrincipal,
@@ -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,55 @@
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 PatchedRedirectStageRequest interface.
19
+ */
20
+ export function instanceOfPatchedRedirectStageRequest(value) {
21
+ let isInstance = true;
22
+ return isInstance;
23
+ }
24
+ export function PatchedRedirectStageRequestFromJSON(json) {
25
+ return PatchedRedirectStageRequestFromJSONTyped(json, false);
26
+ }
27
+ export function PatchedRedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': !exists(json, 'name') ? undefined : json['name'],
33
+ 'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
34
+ 'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
35
+ 'mode': !exists(json, 'mode') ? undefined : RedirectStageModeEnumFromJSON(json['mode']),
36
+ 'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
37
+ 'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
38
+ };
39
+ }
40
+ export function PatchedRedirectStageRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'name': value.name,
49
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
50
+ 'keep_context': value.keepContext,
51
+ 'mode': RedirectStageModeEnumToJSON(value.mode),
52
+ 'target_static': value.targetStatic,
53
+ 'target_flow': value.targetFlow,
54
+ };
55
+ }
@@ -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,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;