@goauthentik/api 2024.10.5-1733854821 → 2024.10.5-1734022840

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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
+ }
@@ -182,6 +182,7 @@ export * from './InvitationRequest';
182
182
  export * from './InvitationStage';
183
183
  export * from './InvitationStageRequest';
184
184
  export * from './IssuerModeEnum';
185
+ export * from './KadminTypeEnum';
185
186
  export * from './KerberosSource';
186
187
  export * from './KerberosSourcePropertyMapping';
187
188
  export * from './KerberosSourcePropertyMappingRequest';
@@ -338,6 +339,7 @@ export * from './PaginatedRACProviderList';
338
339
  export * from './PaginatedRadiusOutpostConfigList';
339
340
  export * from './PaginatedRadiusProviderList';
340
341
  export * from './PaginatedRadiusProviderPropertyMappingList';
342
+ export * from './PaginatedRedirectStageList';
341
343
  export * from './PaginatedReputationList';
342
344
  export * from './PaginatedReputationPolicyList';
343
345
  export * from './PaginatedRoleAssignedObjectPermissionList';
@@ -457,6 +459,7 @@ export * from './PatchedRACPropertyMappingRequest';
457
459
  export * from './PatchedRACProviderRequest';
458
460
  export * from './PatchedRadiusProviderPropertyMappingRequest';
459
461
  export * from './PatchedRadiusProviderRequest';
462
+ export * from './PatchedRedirectStageRequest';
460
463
  export * from './PatchedReputationPolicyRequest';
461
464
  export * from './PatchedRoleRequest';
462
465
  export * from './PatchedSAMLPropertyMappingRequest';
@@ -536,6 +539,10 @@ export * from './RadiusProviderPropertyMapping';
536
539
  export * from './RadiusProviderPropertyMappingRequest';
537
540
  export * from './RadiusProviderRequest';
538
541
  export * from './RedirectChallenge';
542
+ export * from './RedirectChallengeResponseRequest';
543
+ export * from './RedirectStage';
544
+ export * from './RedirectStageModeEnum';
545
+ export * from './RedirectStageRequest';
539
546
  export * from './RedirectURI';
540
547
  export * from './RedirectURIRequest';
541
548
  export * from './Reputation';
@@ -184,6 +184,7 @@ export * from './InvitationRequest';
184
184
  export * from './InvitationStage';
185
185
  export * from './InvitationStageRequest';
186
186
  export * from './IssuerModeEnum';
187
+ export * from './KadminTypeEnum';
187
188
  export * from './KerberosSource';
188
189
  export * from './KerberosSourcePropertyMapping';
189
190
  export * from './KerberosSourcePropertyMappingRequest';
@@ -340,6 +341,7 @@ export * from './PaginatedRACProviderList';
340
341
  export * from './PaginatedRadiusOutpostConfigList';
341
342
  export * from './PaginatedRadiusProviderList';
342
343
  export * from './PaginatedRadiusProviderPropertyMappingList';
344
+ export * from './PaginatedRedirectStageList';
343
345
  export * from './PaginatedReputationList';
344
346
  export * from './PaginatedReputationPolicyList';
345
347
  export * from './PaginatedRoleAssignedObjectPermissionList';
@@ -459,6 +461,7 @@ export * from './PatchedRACPropertyMappingRequest';
459
461
  export * from './PatchedRACProviderRequest';
460
462
  export * from './PatchedRadiusProviderPropertyMappingRequest';
461
463
  export * from './PatchedRadiusProviderRequest';
464
+ export * from './PatchedRedirectStageRequest';
462
465
  export * from './PatchedReputationPolicyRequest';
463
466
  export * from './PatchedRoleRequest';
464
467
  export * from './PatchedSAMLPropertyMappingRequest';
@@ -538,6 +541,10 @@ export * from './RadiusProviderPropertyMapping';
538
541
  export * from './RadiusProviderPropertyMappingRequest';
539
542
  export * from './RadiusProviderRequest';
540
543
  export * from './RedirectChallenge';
544
+ export * from './RedirectChallengeResponseRequest';
545
+ export * from './RedirectStage';
546
+ export * from './RedirectStageModeEnum';
547
+ export * from './RedirectStageRequest';
541
548
  export * from './RedirectURI';
542
549
  export * from './RedirectURIRequest';
543
550
  export * from './Reputation';
@@ -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";
@@ -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
  }
@@ -0,0 +1,25 @@
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 KadminTypeEnum: {
17
+ readonly Mit: "MIT";
18
+ readonly Heimdal: "Heimdal";
19
+ readonly Other: "other";
20
+ readonly UnknownDefaultOpenApi: "11184809";
21
+ };
22
+ export type KadminTypeEnum = typeof KadminTypeEnum[keyof typeof KadminTypeEnum];
23
+ export declare function KadminTypeEnumFromJSON(json: any): KadminTypeEnum;
24
+ export declare function KadminTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): KadminTypeEnum;
25
+ export declare function KadminTypeEnumToJSON(value?: KadminTypeEnum | null): any;
@@ -0,0 +1,38 @@
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.KadminTypeEnumToJSON = exports.KadminTypeEnumFromJSONTyped = exports.KadminTypeEnumFromJSON = exports.KadminTypeEnum = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ */
21
+ exports.KadminTypeEnum = {
22
+ Mit: 'MIT',
23
+ Heimdal: 'Heimdal',
24
+ Other: 'other',
25
+ UnknownDefaultOpenApi: '11184809'
26
+ };
27
+ function KadminTypeEnumFromJSON(json) {
28
+ return KadminTypeEnumFromJSONTyped(json, false);
29
+ }
30
+ exports.KadminTypeEnumFromJSON = KadminTypeEnumFromJSON;
31
+ function KadminTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.KadminTypeEnumFromJSONTyped = KadminTypeEnumFromJSONTyped;
35
+ function KadminTypeEnumToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.KadminTypeEnumToJSON = KadminTypeEnumToJSON;
@@ -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
  /**
@@ -138,6 +139,12 @@ export interface KerberosSource {
138
139
  * @memberof KerberosSource
139
140
  */
140
141
  krb5Conf?: string;
142
+ /**
143
+ *
144
+ * @type {KadminTypeEnum}
145
+ * @memberof KerberosSource
146
+ */
147
+ kadminType?: KadminTypeEnum;
141
148
  /**
142
149
  * Sync users from Kerberos into authentik
143
150
  * @type {boolean}
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.KerberosSourceToJSON = exports.KerberosSourceFromJSONTyped = exports.KerberosSourceFromJSON = exports.instanceOfKerberosSource = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
19
+ const KadminTypeEnum_1 = require("./KadminTypeEnum");
19
20
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
20
21
  const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
21
22
  /**
@@ -66,6 +67,7 @@ function KerberosSourceFromJSONTyped(json, ignoreDiscriminator) {
66
67
  'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
67
68
  'realm': json['realm'],
68
69
  'krb5Conf': !(0, runtime_1.exists)(json, 'krb5_conf') ? undefined : json['krb5_conf'],
70
+ 'kadminType': !(0, runtime_1.exists)(json, 'kadmin_type') ? undefined : (0, KadminTypeEnum_1.KadminTypeEnumFromJSON)(json['kadmin_type']),
69
71
  'syncUsers': !(0, runtime_1.exists)(json, 'sync_users') ? undefined : json['sync_users'],
70
72
  'syncUsersPassword': !(0, runtime_1.exists)(json, 'sync_users_password') ? undefined : json['sync_users_password'],
71
73
  'syncPrincipal': !(0, runtime_1.exists)(json, 'sync_principal') ? undefined : json['sync_principal'],
@@ -98,6 +100,7 @@ function KerberosSourceToJSON(value) {
98
100
  'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
99
101
  'realm': value.realm,
100
102
  'krb5_conf': value.krb5Conf,
103
+ 'kadmin_type': (0, KadminTypeEnum_1.KadminTypeEnumToJSON)(value.kadminType),
101
104
  'sync_users': value.syncUsers,
102
105
  'sync_users_password': value.syncUsersPassword,
103
106
  'sync_principal': value.syncPrincipal,
@@ -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 KerberosSourceRequest {
96
97
  * @memberof KerberosSourceRequest
97
98
  */
98
99
  krb5Conf?: string;
100
+ /**
101
+ *
102
+ * @type {KadminTypeEnum}
103
+ * @memberof KerberosSourceRequest
104
+ */
105
+ kadminType?: KadminTypeEnum;
99
106
  /**
100
107
  * Sync users from Kerberos into authentik
101
108
  * @type {boolean}
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.KerberosSourceRequestToJSON = exports.KerberosSourceRequestFromJSONTyped = exports.KerberosSourceRequestFromJSON = exports.instanceOfKerberosSourceRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
19
+ const KadminTypeEnum_1 = require("./KadminTypeEnum");
19
20
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
20
21
  const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
21
22
  /**
@@ -51,6 +52,7 @@ function KerberosSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
51
52
  'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
52
53
  'realm': json['realm'],
53
54
  'krb5Conf': !(0, runtime_1.exists)(json, 'krb5_conf') ? undefined : json['krb5_conf'],
55
+ 'kadminType': !(0, runtime_1.exists)(json, 'kadmin_type') ? undefined : (0, KadminTypeEnum_1.KadminTypeEnumFromJSON)(json['kadmin_type']),
54
56
  'syncUsers': !(0, runtime_1.exists)(json, 'sync_users') ? undefined : json['sync_users'],
55
57
  'syncUsersPassword': !(0, runtime_1.exists)(json, 'sync_users_password') ? undefined : json['sync_users_password'],
56
58
  'syncPrincipal': !(0, runtime_1.exists)(json, 'sync_principal') ? undefined : json['sync_principal'],
@@ -85,6 +87,7 @@ function KerberosSourceRequestToJSON(value) {
85
87
  'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
86
88
  'realm': value.realm,
87
89
  'krb5_conf': value.krb5Conf,
90
+ 'kadmin_type': (0, KadminTypeEnum_1.KadminTypeEnumToJSON)(value.kadminType),
88
91
  'sync_users': value.syncUsers,
89
92
  'sync_users_password': value.syncUsersPassword,
90
93
  'sync_principal': value.syncPrincipal,
@@ -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";
@@ -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;
@@ -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}
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedKerberosSourceRequestToJSON = exports.PatchedKerberosSourceRequestFromJSONTyped = exports.PatchedKerberosSourceRequestFromJSON = exports.instanceOfPatchedKerberosSourceRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const GroupMatchingModeEnum_1 = require("./GroupMatchingModeEnum");
19
+ const KadminTypeEnum_1 = require("./KadminTypeEnum");
19
20
  const PolicyEngineMode_1 = require("./PolicyEngineMode");
20
21
  const UserMatchingModeEnum_1 = require("./UserMatchingModeEnum");
21
22
  /**
@@ -48,6 +49,7 @@ function PatchedKerberosSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'groupMatchingMode': !(0, runtime_1.exists)(json, 'group_matching_mode') ? undefined : (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumFromJSON)(json['group_matching_mode']),
49
50
  'realm': !(0, runtime_1.exists)(json, 'realm') ? undefined : json['realm'],
50
51
  'krb5Conf': !(0, runtime_1.exists)(json, 'krb5_conf') ? undefined : json['krb5_conf'],
52
+ 'kadminType': !(0, runtime_1.exists)(json, 'kadmin_type') ? undefined : (0, KadminTypeEnum_1.KadminTypeEnumFromJSON)(json['kadmin_type']),
51
53
  'syncUsers': !(0, runtime_1.exists)(json, 'sync_users') ? undefined : json['sync_users'],
52
54
  'syncUsersPassword': !(0, runtime_1.exists)(json, 'sync_users_password') ? undefined : json['sync_users_password'],
53
55
  'syncPrincipal': !(0, runtime_1.exists)(json, 'sync_principal') ? undefined : json['sync_principal'],
@@ -82,6 +84,7 @@ function PatchedKerberosSourceRequestToJSON(value) {
82
84
  'group_matching_mode': (0, GroupMatchingModeEnum_1.GroupMatchingModeEnumToJSON)(value.groupMatchingMode),
83
85
  'realm': value.realm,
84
86
  'krb5_conf': value.krb5Conf,
87
+ 'kadmin_type': (0, KadminTypeEnum_1.KadminTypeEnumToJSON)(value.kadminType),
85
88
  'sync_users': value.syncUsers,
86
89
  'sync_users_password': value.syncUsersPassword,
87
90
  '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,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;