@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739814462

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 (112) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/dist/apis/AuthenticatorsApi.d.ts +145 -1
  3. package/dist/apis/AuthenticatorsApi.js +458 -0
  4. package/dist/apis/RbacApi.d.ts +4 -0
  5. package/dist/apis/RbacApi.js +4 -0
  6. package/dist/apis/StagesApi.d.ts +99 -1
  7. package/dist/apis/StagesApi.js +310 -0
  8. package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
  9. package/dist/esm/apis/AuthenticatorsApi.js +459 -1
  10. package/dist/esm/apis/RbacApi.d.ts +4 -0
  11. package/dist/esm/apis/RbacApi.js +4 -0
  12. package/dist/esm/apis/StagesApi.d.ts +99 -1
  13. package/dist/esm/apis/StagesApi.js +311 -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/AuthenticatorEmailChallenge.d.ts +72 -0
  17. package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
  18. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  19. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
  20. package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
  21. package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
  22. package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  23. package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
  24. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  25. package/dist/esm/models/ChallengeTypes.js +5 -0
  26. package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
  27. package/dist/esm/models/DeviceClassesEnum.js +1 -0
  28. package/dist/esm/models/EmailDevice.d.ts +51 -0
  29. package/dist/esm/models/EmailDevice.js +53 -0
  30. package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
  31. package/dist/esm/models/EmailDeviceRequest.js +43 -0
  32. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
  33. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  34. package/dist/esm/models/GeoIPPolicy.d.ts +36 -0
  35. package/dist/esm/models/GeoIPPolicy.js +12 -0
  36. package/dist/esm/models/GeoIPPolicyRequest.d.ts +36 -0
  37. package/dist/esm/models/GeoIPPolicyRequest.js +12 -0
  38. package/dist/esm/models/ModelEnum.d.ts +2 -0
  39. package/dist/esm/models/ModelEnum.js +2 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  41. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
  42. package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
  43. package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
  44. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  45. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
  46. package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
  47. package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
  48. package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  49. package/dist/esm/models/PatchedGeoIPPolicyRequest.js +12 -0
  50. package/dist/esm/models/index.d.ts +10 -0
  51. package/dist/esm/models/index.js +10 -0
  52. package/dist/models/AppEnum.d.ts +1 -0
  53. package/dist/models/AppEnum.js +1 -0
  54. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  55. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  56. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  57. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  58. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  59. package/dist/models/AuthenticatorEmailStage.js +96 -0
  60. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  61. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  62. package/dist/models/ChallengeTypes.d.ts +3 -0
  63. package/dist/models/ChallengeTypes.js +5 -0
  64. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  65. package/dist/models/DeviceClassesEnum.js +1 -0
  66. package/dist/models/EmailDevice.d.ts +51 -0
  67. package/dist/models/EmailDevice.js +60 -0
  68. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  69. package/dist/models/EmailDeviceRequest.js +50 -0
  70. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  71. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  72. package/dist/models/GeoIPPolicy.d.ts +36 -0
  73. package/dist/models/GeoIPPolicy.js +12 -0
  74. package/dist/models/GeoIPPolicyRequest.d.ts +36 -0
  75. package/dist/models/GeoIPPolicyRequest.js +12 -0
  76. package/dist/models/ModelEnum.d.ts +2 -0
  77. package/dist/models/ModelEnum.js +2 -0
  78. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  79. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  80. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  81. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  82. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  83. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  84. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  85. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  86. package/dist/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  87. package/dist/models/PatchedGeoIPPolicyRequest.js +12 -0
  88. package/dist/models/index.d.ts +10 -0
  89. package/dist/models/index.js +10 -0
  90. package/package.json +1 -1
  91. package/src/apis/AuthenticatorsApi.ts +617 -0
  92. package/src/apis/RbacApi.ts +4 -0
  93. package/src/apis/StagesApi.ts +436 -0
  94. package/src/models/AppEnum.ts +1 -0
  95. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  96. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  97. package/src/models/AuthenticatorEmailStage.ts +234 -0
  98. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  99. package/src/models/ChallengeTypes.ts +12 -1
  100. package/src/models/DeviceClassesEnum.ts +1 -0
  101. package/src/models/EmailDevice.ts +98 -0
  102. package/src/models/EmailDeviceRequest.ts +66 -0
  103. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  104. package/src/models/GeoIPPolicy.ts +48 -0
  105. package/src/models/GeoIPPolicyRequest.ts +48 -0
  106. package/src/models/ModelEnum.ts +2 -0
  107. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  108. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  109. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  110. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  111. package/src/models/PatchedGeoIPPolicyRequest.ts +48 -0
  112. package/src/models/index.ts +10 -0
@@ -0,0 +1,123 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
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
+ /**
14
+ * AuthenticatorEmailStage Serializer
15
+ * @export
16
+ * @interface AuthenticatorEmailStageRequest
17
+ */
18
+ export interface AuthenticatorEmailStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AuthenticatorEmailStageRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof AuthenticatorEmailStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
33
+ * @type {string}
34
+ * @memberof AuthenticatorEmailStageRequest
35
+ */
36
+ configureFlow?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AuthenticatorEmailStageRequest
41
+ */
42
+ friendlyName?: string | null;
43
+ /**
44
+ * When enabled, global Email connection settings will be used and connection settings below will be ignored.
45
+ * @type {boolean}
46
+ * @memberof AuthenticatorEmailStageRequest
47
+ */
48
+ useGlobalSettings?: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof AuthenticatorEmailStageRequest
53
+ */
54
+ host?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof AuthenticatorEmailStageRequest
59
+ */
60
+ port?: number;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AuthenticatorEmailStageRequest
65
+ */
66
+ username?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AuthenticatorEmailStageRequest
71
+ */
72
+ password?: string;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof AuthenticatorEmailStageRequest
77
+ */
78
+ useTls?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof AuthenticatorEmailStageRequest
83
+ */
84
+ useSsl?: boolean;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof AuthenticatorEmailStageRequest
89
+ */
90
+ timeout?: number;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof AuthenticatorEmailStageRequest
95
+ */
96
+ fromAddress?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof AuthenticatorEmailStageRequest
101
+ */
102
+ subject?: string;
103
+ /**
104
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
105
+ * @type {string}
106
+ * @memberof AuthenticatorEmailStageRequest
107
+ */
108
+ tokenExpiry?: string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof AuthenticatorEmailStageRequest
113
+ */
114
+ template?: string;
115
+ }
116
+ /**
117
+ * Check if a given object implements the AuthenticatorEmailStageRequest interface.
118
+ */
119
+ export declare function instanceOfAuthenticatorEmailStageRequest(value: object): value is AuthenticatorEmailStageRequest;
120
+ export declare function AuthenticatorEmailStageRequestFromJSON(json: any): AuthenticatorEmailStageRequest;
121
+ export declare function AuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStageRequest;
122
+ export declare function AuthenticatorEmailStageRequestToJSON(json: any): AuthenticatorEmailStageRequest;
123
+ export declare function AuthenticatorEmailStageRequestToJSONTyped(value?: AuthenticatorEmailStageRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
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.12.3
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.instanceOfAuthenticatorEmailStageRequest = instanceOfAuthenticatorEmailStageRequest;
17
+ exports.AuthenticatorEmailStageRequestFromJSON = AuthenticatorEmailStageRequestFromJSON;
18
+ exports.AuthenticatorEmailStageRequestFromJSONTyped = AuthenticatorEmailStageRequestFromJSONTyped;
19
+ exports.AuthenticatorEmailStageRequestToJSON = AuthenticatorEmailStageRequestToJSON;
20
+ exports.AuthenticatorEmailStageRequestToJSONTyped = AuthenticatorEmailStageRequestToJSONTyped;
21
+ const FlowSetRequest_1 = require("./FlowSetRequest");
22
+ /**
23
+ * Check if a given object implements the AuthenticatorEmailStageRequest interface.
24
+ */
25
+ function instanceOfAuthenticatorEmailStageRequest(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AuthenticatorEmailStageRequestFromJSON(json) {
31
+ return AuthenticatorEmailStageRequestFromJSONTyped(json, false);
32
+ }
33
+ function AuthenticatorEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
40
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
41
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
42
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
43
+ 'host': json['host'] == null ? undefined : json['host'],
44
+ 'port': json['port'] == null ? undefined : json['port'],
45
+ 'username': json['username'] == null ? undefined : json['username'],
46
+ 'password': json['password'] == null ? undefined : json['password'],
47
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
48
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
49
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
50
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
51
+ 'subject': json['subject'] == null ? undefined : json['subject'],
52
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
53
+ 'template': json['template'] == null ? undefined : json['template'],
54
+ };
55
+ }
56
+ function AuthenticatorEmailStageRequestToJSON(json) {
57
+ return AuthenticatorEmailStageRequestToJSONTyped(json, false);
58
+ }
59
+ function AuthenticatorEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'name': value['name'],
65
+ 'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
66
+ 'configure_flow': value['configureFlow'],
67
+ 'friendly_name': value['friendlyName'],
68
+ 'use_global_settings': value['useGlobalSettings'],
69
+ 'host': value['host'],
70
+ 'port': value['port'],
71
+ 'username': value['username'],
72
+ 'password': value['password'],
73
+ 'use_tls': value['useTls'],
74
+ 'use_ssl': value['useSsl'],
75
+ 'timeout': value['timeout'],
76
+ 'from_address': value['fromAddress'],
77
+ 'subject': value['subject'],
78
+ 'token_expiry': value['tokenExpiry'],
79
+ 'template': value['template'],
80
+ };
81
+ }
@@ -12,6 +12,7 @@
12
12
  import type { AccessDeniedChallenge } from './AccessDeniedChallenge';
13
13
  import type { AppleLoginChallenge } from './AppleLoginChallenge';
14
14
  import type { AuthenticatorDuoChallenge } from './AuthenticatorDuoChallenge';
15
+ import type { AuthenticatorEmailChallenge } from './AuthenticatorEmailChallenge';
15
16
  import type { AuthenticatorSMSChallenge } from './AuthenticatorSMSChallenge';
16
17
  import type { AuthenticatorStaticChallenge } from './AuthenticatorStaticChallenge';
17
18
  import type { AuthenticatorTOTPChallenge } from './AuthenticatorTOTPChallenge';
@@ -52,6 +53,8 @@ export type ChallengeTypes = {
52
53
  } & AccessDeniedChallenge | {
53
54
  component: 'ak-stage-authenticator-duo';
54
55
  } & AuthenticatorDuoChallenge | {
56
+ component: 'ak-stage-authenticator-email';
57
+ } & AuthenticatorEmailChallenge | {
55
58
  component: 'ak-stage-authenticator-sms';
56
59
  } & AuthenticatorSMSChallenge | {
57
60
  component: 'ak-stage-authenticator-static';
@@ -20,6 +20,7 @@ exports.ChallengeTypesToJSONTyped = ChallengeTypesToJSONTyped;
20
20
  const AccessDeniedChallenge_1 = require("./AccessDeniedChallenge");
21
21
  const AppleLoginChallenge_1 = require("./AppleLoginChallenge");
22
22
  const AuthenticatorDuoChallenge_1 = require("./AuthenticatorDuoChallenge");
23
+ const AuthenticatorEmailChallenge_1 = require("./AuthenticatorEmailChallenge");
23
24
  const AuthenticatorSMSChallenge_1 = require("./AuthenticatorSMSChallenge");
24
25
  const AuthenticatorStaticChallenge_1 = require("./AuthenticatorStaticChallenge");
25
26
  const AuthenticatorTOTPChallenge_1 = require("./AuthenticatorTOTPChallenge");
@@ -62,6 +63,8 @@ function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
62
63
  return Object.assign({}, (0, AccessDeniedChallenge_1.AccessDeniedChallengeFromJSONTyped)(json, true), { component: 'ak-stage-access-denied' });
63
64
  case 'ak-stage-authenticator-duo':
64
65
  return Object.assign({}, (0, AuthenticatorDuoChallenge_1.AuthenticatorDuoChallengeFromJSONTyped)(json, true), { component: 'ak-stage-authenticator-duo' });
66
+ case 'ak-stage-authenticator-email':
67
+ return Object.assign({}, (0, AuthenticatorEmailChallenge_1.AuthenticatorEmailChallengeFromJSONTyped)(json, true), { component: 'ak-stage-authenticator-email' });
65
68
  case 'ak-stage-authenticator-sms':
66
69
  return Object.assign({}, (0, AuthenticatorSMSChallenge_1.AuthenticatorSMSChallengeFromJSONTyped)(json, true), { component: 'ak-stage-authenticator-sms' });
67
70
  case 'ak-stage-authenticator-static':
@@ -124,6 +127,8 @@ function ChallengeTypesToJSONTyped(value, ignoreDiscriminator = false) {
124
127
  return Object.assign({}, (0, AccessDeniedChallenge_1.AccessDeniedChallengeToJSON)(value), { component: 'ak-stage-access-denied' });
125
128
  case 'ak-stage-authenticator-duo':
126
129
  return Object.assign({}, (0, AuthenticatorDuoChallenge_1.AuthenticatorDuoChallengeToJSON)(value), { component: 'ak-stage-authenticator-duo' });
130
+ case 'ak-stage-authenticator-email':
131
+ return Object.assign({}, (0, AuthenticatorEmailChallenge_1.AuthenticatorEmailChallengeToJSON)(value), { component: 'ak-stage-authenticator-email' });
127
132
  case 'ak-stage-authenticator-sms':
128
133
  return Object.assign({}, (0, AuthenticatorSMSChallenge_1.AuthenticatorSMSChallengeToJSON)(value), { component: 'ak-stage-authenticator-sms' });
129
134
  case 'ak-stage-authenticator-static':
@@ -19,6 +19,7 @@ export declare const DeviceClassesEnum: {
19
19
  readonly Webauthn: "webauthn";
20
20
  readonly Duo: "duo";
21
21
  readonly Sms: "sms";
22
+ readonly Email: "email";
22
23
  readonly UnknownDefaultOpenApi: "11184809";
23
24
  };
24
25
  export type DeviceClassesEnum = typeof DeviceClassesEnum[keyof typeof DeviceClassesEnum];
@@ -29,6 +29,7 @@ exports.DeviceClassesEnum = {
29
29
  Webauthn: 'webauthn',
30
30
  Duo: 'duo',
31
31
  Sms: 'sms',
32
+ Email: 'email',
32
33
  UnknownDefaultOpenApi: '11184809'
33
34
  };
34
35
  function instanceOfDeviceClassesEnum(value) {
@@ -0,0 +1,51 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
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 { GroupMember } from './GroupMember';
13
+ /**
14
+ * Serializer for email authenticator devices
15
+ * @export
16
+ * @interface EmailDevice
17
+ */
18
+ export interface EmailDevice {
19
+ /**
20
+ * The human-readable name of this device.
21
+ * @type {string}
22
+ * @memberof EmailDevice
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof EmailDevice
29
+ */
30
+ readonly pk: number;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof EmailDevice
35
+ */
36
+ readonly email: string;
37
+ /**
38
+ *
39
+ * @type {GroupMember}
40
+ * @memberof EmailDevice
41
+ */
42
+ readonly user: GroupMember;
43
+ }
44
+ /**
45
+ * Check if a given object implements the EmailDevice interface.
46
+ */
47
+ export declare function instanceOfEmailDevice(value: object): value is EmailDevice;
48
+ export declare function EmailDeviceFromJSON(json: any): EmailDevice;
49
+ export declare function EmailDeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDevice;
50
+ export declare function EmailDeviceToJSON(json: any): EmailDevice;
51
+ export declare function EmailDeviceToJSONTyped(value?: Omit<EmailDevice, 'pk' | 'email' | 'user'> | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.12.3
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.instanceOfEmailDevice = instanceOfEmailDevice;
17
+ exports.EmailDeviceFromJSON = EmailDeviceFromJSON;
18
+ exports.EmailDeviceFromJSONTyped = EmailDeviceFromJSONTyped;
19
+ exports.EmailDeviceToJSON = EmailDeviceToJSON;
20
+ exports.EmailDeviceToJSONTyped = EmailDeviceToJSONTyped;
21
+ const GroupMember_1 = require("./GroupMember");
22
+ /**
23
+ * Check if a given object implements the EmailDevice interface.
24
+ */
25
+ function instanceOfEmailDevice(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('pk' in value) || value['pk'] === undefined)
29
+ return false;
30
+ if (!('email' in value) || value['email'] === undefined)
31
+ return false;
32
+ if (!('user' in value) || value['user'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function EmailDeviceFromJSON(json) {
37
+ return EmailDeviceFromJSONTyped(json, false);
38
+ }
39
+ function EmailDeviceFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'pk': json['pk'],
46
+ 'email': json['email'],
47
+ 'user': (0, GroupMember_1.GroupMemberFromJSON)(json['user']),
48
+ };
49
+ }
50
+ function EmailDeviceToJSON(json) {
51
+ return EmailDeviceToJSONTyped(json, false);
52
+ }
53
+ function EmailDeviceToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'name': value['name'],
59
+ };
60
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
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
+ * Serializer for email authenticator devices
14
+ * @export
15
+ * @interface EmailDeviceRequest
16
+ */
17
+ export interface EmailDeviceRequest {
18
+ /**
19
+ * The human-readable name of this device.
20
+ * @type {string}
21
+ * @memberof EmailDeviceRequest
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the EmailDeviceRequest interface.
27
+ */
28
+ export declare function instanceOfEmailDeviceRequest(value: object): value is EmailDeviceRequest;
29
+ export declare function EmailDeviceRequestFromJSON(json: any): EmailDeviceRequest;
30
+ export declare function EmailDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDeviceRequest;
31
+ export declare function EmailDeviceRequestToJSON(json: any): EmailDeviceRequest;
32
+ export declare function EmailDeviceRequestToJSONTyped(value?: EmailDeviceRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.12.3
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.instanceOfEmailDeviceRequest = instanceOfEmailDeviceRequest;
17
+ exports.EmailDeviceRequestFromJSON = EmailDeviceRequestFromJSON;
18
+ exports.EmailDeviceRequestFromJSONTyped = EmailDeviceRequestFromJSONTyped;
19
+ exports.EmailDeviceRequestToJSON = EmailDeviceRequestToJSON;
20
+ exports.EmailDeviceRequestToJSONTyped = EmailDeviceRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the EmailDeviceRequest interface.
23
+ */
24
+ function instanceOfEmailDeviceRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function EmailDeviceRequestFromJSON(json) {
30
+ return EmailDeviceRequestFromJSONTyped(json, false);
31
+ }
32
+ function EmailDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ function EmailDeviceRequestToJSON(json) {
41
+ return EmailDeviceRequestToJSONTyped(json, false);
42
+ }
43
+ function EmailDeviceRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { AppleChallengeResponseRequest } from './AppleChallengeResponseRequest';
13
13
  import type { AuthenticatorDuoChallengeResponseRequest } from './AuthenticatorDuoChallengeResponseRequest';
14
+ import type { AuthenticatorEmailChallengeResponseRequest } from './AuthenticatorEmailChallengeResponseRequest';
14
15
  import type { AuthenticatorSMSChallengeResponseRequest } from './AuthenticatorSMSChallengeResponseRequest';
15
16
  import type { AuthenticatorStaticChallengeResponseRequest } from './AuthenticatorStaticChallengeResponseRequest';
16
17
  import type { AuthenticatorTOTPChallengeResponseRequest } from './AuthenticatorTOTPChallengeResponseRequest';
@@ -46,6 +47,8 @@ export type FlowChallengeResponseRequest = {
46
47
  } & PlexAuthenticationChallengeResponseRequest | {
47
48
  component: 'ak-stage-authenticator-duo';
48
49
  } & AuthenticatorDuoChallengeResponseRequest | {
50
+ component: 'ak-stage-authenticator-email';
51
+ } & AuthenticatorEmailChallengeResponseRequest | {
49
52
  component: 'ak-stage-authenticator-sms';
50
53
  } & AuthenticatorSMSChallengeResponseRequest | {
51
54
  component: 'ak-stage-authenticator-static';
@@ -19,6 +19,7 @@ exports.FlowChallengeResponseRequestToJSON = FlowChallengeResponseRequestToJSON;
19
19
  exports.FlowChallengeResponseRequestToJSONTyped = FlowChallengeResponseRequestToJSONTyped;
20
20
  const AppleChallengeResponseRequest_1 = require("./AppleChallengeResponseRequest");
21
21
  const AuthenticatorDuoChallengeResponseRequest_1 = require("./AuthenticatorDuoChallengeResponseRequest");
22
+ const AuthenticatorEmailChallengeResponseRequest_1 = require("./AuthenticatorEmailChallengeResponseRequest");
22
23
  const AuthenticatorSMSChallengeResponseRequest_1 = require("./AuthenticatorSMSChallengeResponseRequest");
23
24
  const AuthenticatorStaticChallengeResponseRequest_1 = require("./AuthenticatorStaticChallengeResponseRequest");
24
25
  const AuthenticatorTOTPChallengeResponseRequest_1 = require("./AuthenticatorTOTPChallengeResponseRequest");
@@ -56,6 +57,8 @@ function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
56
57
  return Object.assign({}, (0, PlexAuthenticationChallengeResponseRequest_1.PlexAuthenticationChallengeResponseRequestFromJSONTyped)(json, true), { component: 'ak-source-plex' });
57
58
  case 'ak-stage-authenticator-duo':
58
59
  return Object.assign({}, (0, AuthenticatorDuoChallengeResponseRequest_1.AuthenticatorDuoChallengeResponseRequestFromJSONTyped)(json, true), { component: 'ak-stage-authenticator-duo' });
60
+ case 'ak-stage-authenticator-email':
61
+ return Object.assign({}, (0, AuthenticatorEmailChallengeResponseRequest_1.AuthenticatorEmailChallengeResponseRequestFromJSONTyped)(json, true), { component: 'ak-stage-authenticator-email' });
59
62
  case 'ak-stage-authenticator-sms':
60
63
  return Object.assign({}, (0, AuthenticatorSMSChallengeResponseRequest_1.AuthenticatorSMSChallengeResponseRequestFromJSONTyped)(json, true), { component: 'ak-stage-authenticator-sms' });
61
64
  case 'ak-stage-authenticator-static':
@@ -110,6 +113,8 @@ function FlowChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = fa
110
113
  return Object.assign({}, (0, PlexAuthenticationChallengeResponseRequest_1.PlexAuthenticationChallengeResponseRequestToJSON)(value), { component: 'ak-source-plex' });
111
114
  case 'ak-stage-authenticator-duo':
112
115
  return Object.assign({}, (0, AuthenticatorDuoChallengeResponseRequest_1.AuthenticatorDuoChallengeResponseRequestToJSON)(value), { component: 'ak-stage-authenticator-duo' });
116
+ case 'ak-stage-authenticator-email':
117
+ return Object.assign({}, (0, AuthenticatorEmailChallengeResponseRequest_1.AuthenticatorEmailChallengeResponseRequestToJSON)(value), { component: 'ak-stage-authenticator-email' });
113
118
  case 'ak-stage-authenticator-sms':
114
119
  return Object.assign({}, (0, AuthenticatorSMSChallengeResponseRequest_1.AuthenticatorSMSChallengeResponseRequestToJSON)(value), { component: 'ak-stage-authenticator-sms' });
115
120
  case 'ak-stage-authenticator-static':
@@ -83,6 +83,42 @@ export interface GeoIPPolicy {
83
83
  * @memberof GeoIPPolicy
84
84
  */
85
85
  readonly countriesObj: Array<DetailedCountryField>;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof GeoIPPolicy
90
+ */
91
+ checkHistoryDistance?: boolean;
92
+ /**
93
+ *
94
+ * @type {number}
95
+ * @memberof GeoIPPolicy
96
+ */
97
+ historyMaxDistanceKm?: number;
98
+ /**
99
+ *
100
+ * @type {number}
101
+ * @memberof GeoIPPolicy
102
+ */
103
+ distanceToleranceKm?: number;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof GeoIPPolicy
108
+ */
109
+ historyLoginCount?: number;
110
+ /**
111
+ *
112
+ * @type {boolean}
113
+ * @memberof GeoIPPolicy
114
+ */
115
+ checkImpossibleTravel?: boolean;
116
+ /**
117
+ *
118
+ * @type {number}
119
+ * @memberof GeoIPPolicy
120
+ */
121
+ impossibleToleranceKm?: number;
86
122
  }
87
123
  /**
88
124
  * Check if a given object implements the GeoIPPolicy interface.
@@ -63,6 +63,12 @@ function GeoIPPolicyFromJSONTyped(json, ignoreDiscriminator) {
63
63
  'asns': json['asns'] == null ? undefined : json['asns'],
64
64
  'countries': (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
65
65
  'countriesObj': (json['countries_obj'].map(DetailedCountryField_1.DetailedCountryFieldFromJSON)),
66
+ 'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
67
+ 'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
68
+ 'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
69
+ 'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
70
+ 'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
71
+ 'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
66
72
  };
67
73
  }
68
74
  function GeoIPPolicyToJSON(json) {
@@ -77,5 +83,11 @@ function GeoIPPolicyToJSONTyped(value, ignoreDiscriminator = false) {
77
83
  'execution_logging': value['executionLogging'],
78
84
  'asns': value['asns'],
79
85
  'countries': (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
86
+ 'check_history_distance': value['checkHistoryDistance'],
87
+ 'history_max_distance_km': value['historyMaxDistanceKm'],
88
+ 'distance_tolerance_km': value['distanceToleranceKm'],
89
+ 'history_login_count': value['historyLoginCount'],
90
+ 'check_impossible_travel': value['checkImpossibleTravel'],
91
+ 'impossible_tolerance_km': value['impossibleToleranceKm'],
80
92
  };
81
93
  }
@@ -40,6 +40,42 @@ export interface GeoIPPolicyRequest {
40
40
  * @memberof GeoIPPolicyRequest
41
41
  */
42
42
  countries: Array<CountryCodeEnum>;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof GeoIPPolicyRequest
47
+ */
48
+ checkHistoryDistance?: boolean;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof GeoIPPolicyRequest
53
+ */
54
+ historyMaxDistanceKm?: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof GeoIPPolicyRequest
59
+ */
60
+ distanceToleranceKm?: number;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof GeoIPPolicyRequest
65
+ */
66
+ historyLoginCount?: number;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof GeoIPPolicyRequest
71
+ */
72
+ checkImpossibleTravel?: boolean;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof GeoIPPolicyRequest
77
+ */
78
+ impossibleToleranceKm?: number;
43
79
  }
44
80
  /**
45
81
  * Check if a given object implements the GeoIPPolicyRequest interface.
@@ -41,6 +41,12 @@ function GeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
42
42
  'asns': json['asns'] == null ? undefined : json['asns'],
43
43
  'countries': (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
44
+ 'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
45
+ 'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
46
+ 'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
47
+ 'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
48
+ 'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
49
+ 'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
44
50
  };
45
51
  }
46
52
  function GeoIPPolicyRequestToJSON(json) {
@@ -55,5 +61,11 @@ function GeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false) {
55
61
  'execution_logging': value['executionLogging'],
56
62
  'asns': value['asns'],
57
63
  'countries': (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
64
+ 'check_history_distance': value['checkHistoryDistance'],
65
+ 'history_max_distance_km': value['historyMaxDistanceKm'],
66
+ 'distance_tolerance_km': value['distanceToleranceKm'],
67
+ 'history_login_count': value['historyLoginCount'],
68
+ 'check_impossible_travel': value['checkImpossibleTravel'],
69
+ 'impossible_tolerance_km': value['impossibleToleranceKm'],
58
70
  };
59
71
  }
@@ -62,6 +62,8 @@ export declare const ModelEnum: {
62
62
  readonly AuthentikSourcesScimScimsourcepropertymapping: "authentik_sources_scim.scimsourcepropertymapping";
63
63
  readonly AuthentikStagesAuthenticatorDuoAuthenticatorduostage: "authentik_stages_authenticator_duo.authenticatorduostage";
64
64
  readonly AuthentikStagesAuthenticatorDuoDuodevice: "authentik_stages_authenticator_duo.duodevice";
65
+ readonly AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: "authentik_stages_authenticator_email.authenticatoremailstage";
66
+ readonly AuthentikStagesAuthenticatorEmailEmaildevice: "authentik_stages_authenticator_email.emaildevice";
65
67
  readonly AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: "authentik_stages_authenticator_sms.authenticatorsmsstage";
66
68
  readonly AuthentikStagesAuthenticatorSmsSmsdevice: "authentik_stages_authenticator_sms.smsdevice";
67
69
  readonly AuthentikStagesAuthenticatorStaticAuthenticatorstaticstage: "authentik_stages_authenticator_static.authenticatorstaticstage";
@@ -72,6 +72,8 @@ exports.ModelEnum = {
72
72
  AuthentikSourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
73
73
  AuthentikStagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
74
74
  AuthentikStagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
75
+ AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: 'authentik_stages_authenticator_email.authenticatoremailstage',
76
+ AuthentikStagesAuthenticatorEmailEmaildevice: 'authentik_stages_authenticator_email.emaildevice',
75
77
  AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
76
78
  AuthentikStagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
77
79
  AuthentikStagesAuthenticatorStaticAuthenticatorstaticstage: 'authentik_stages_authenticator_static.authenticatorstaticstage',