@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739801838

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 (97) 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/ModelEnum.d.ts +2 -0
  35. package/dist/esm/models/ModelEnum.js +2 -0
  36. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  37. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
  38. package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
  39. package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
  40. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  41. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
  42. package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
  43. package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
  44. package/dist/esm/models/index.d.ts +10 -0
  45. package/dist/esm/models/index.js +10 -0
  46. package/dist/models/AppEnum.d.ts +1 -0
  47. package/dist/models/AppEnum.js +1 -0
  48. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  49. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  50. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  51. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  52. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  53. package/dist/models/AuthenticatorEmailStage.js +96 -0
  54. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  55. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  56. package/dist/models/ChallengeTypes.d.ts +3 -0
  57. package/dist/models/ChallengeTypes.js +5 -0
  58. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  59. package/dist/models/DeviceClassesEnum.js +1 -0
  60. package/dist/models/EmailDevice.d.ts +51 -0
  61. package/dist/models/EmailDevice.js +60 -0
  62. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  63. package/dist/models/EmailDeviceRequest.js +50 -0
  64. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  65. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  66. package/dist/models/ModelEnum.d.ts +2 -0
  67. package/dist/models/ModelEnum.js +2 -0
  68. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  69. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  70. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  71. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  72. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  73. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  74. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  75. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  76. package/dist/models/index.d.ts +10 -0
  77. package/dist/models/index.js +10 -0
  78. package/package.json +1 -1
  79. package/src/apis/AuthenticatorsApi.ts +617 -0
  80. package/src/apis/RbacApi.ts +4 -0
  81. package/src/apis/StagesApi.ts +436 -0
  82. package/src/models/AppEnum.ts +1 -0
  83. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  84. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  85. package/src/models/AuthenticatorEmailStage.ts +234 -0
  86. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  87. package/src/models/ChallengeTypes.ts +12 -1
  88. package/src/models/DeviceClassesEnum.ts +1 -0
  89. package/src/models/EmailDevice.ts +98 -0
  90. package/src/models/EmailDeviceRequest.ts +66 -0
  91. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  92. package/src/models/ModelEnum.ts +2 -0
  93. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  94. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  95. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  96. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  97. package/src/models/index.ts +10 -0
@@ -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':
@@ -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',
@@ -0,0 +1,40 @@
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 { Pagination } from './Pagination';
13
+ import type { AuthenticatorEmailStage } from './AuthenticatorEmailStage';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedAuthenticatorEmailStageList
18
+ */
19
+ export interface PaginatedAuthenticatorEmailStageList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedAuthenticatorEmailStageList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<AuthenticatorEmailStage>}
29
+ * @memberof PaginatedAuthenticatorEmailStageList
30
+ */
31
+ results: Array<AuthenticatorEmailStage>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedAuthenticatorEmailStageList interface.
35
+ */
36
+ export declare function instanceOfPaginatedAuthenticatorEmailStageList(value: object): value is PaginatedAuthenticatorEmailStageList;
37
+ export declare function PaginatedAuthenticatorEmailStageListFromJSON(json: any): PaginatedAuthenticatorEmailStageList;
38
+ export declare function PaginatedAuthenticatorEmailStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticatorEmailStageList;
39
+ export declare function PaginatedAuthenticatorEmailStageListToJSON(json: any): PaginatedAuthenticatorEmailStageList;
40
+ export declare function PaginatedAuthenticatorEmailStageListToJSONTyped(value?: PaginatedAuthenticatorEmailStageList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfPaginatedAuthenticatorEmailStageList = instanceOfPaginatedAuthenticatorEmailStageList;
17
+ exports.PaginatedAuthenticatorEmailStageListFromJSON = PaginatedAuthenticatorEmailStageListFromJSON;
18
+ exports.PaginatedAuthenticatorEmailStageListFromJSONTyped = PaginatedAuthenticatorEmailStageListFromJSONTyped;
19
+ exports.PaginatedAuthenticatorEmailStageListToJSON = PaginatedAuthenticatorEmailStageListToJSON;
20
+ exports.PaginatedAuthenticatorEmailStageListToJSONTyped = PaginatedAuthenticatorEmailStageListToJSONTyped;
21
+ const Pagination_1 = require("./Pagination");
22
+ const AuthenticatorEmailStage_1 = require("./AuthenticatorEmailStage");
23
+ /**
24
+ * Check if a given object implements the PaginatedAuthenticatorEmailStageList interface.
25
+ */
26
+ function instanceOfPaginatedAuthenticatorEmailStageList(value) {
27
+ if (!('pagination' in value) || value['pagination'] === undefined)
28
+ return false;
29
+ if (!('results' in value) || value['results'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedAuthenticatorEmailStageListFromJSON(json) {
34
+ return PaginatedAuthenticatorEmailStageListFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedAuthenticatorEmailStageListFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
42
+ 'results': (json['results'].map(AuthenticatorEmailStage_1.AuthenticatorEmailStageFromJSON)),
43
+ };
44
+ }
45
+ function PaginatedAuthenticatorEmailStageListToJSON(json) {
46
+ return PaginatedAuthenticatorEmailStageListToJSONTyped(json, false);
47
+ }
48
+ function PaginatedAuthenticatorEmailStageListToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value['pagination']),
54
+ 'results': (value['results'].map(AuthenticatorEmailStage_1.AuthenticatorEmailStageToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,40 @@
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 { EmailDevice } from './EmailDevice';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedEmailDeviceList
18
+ */
19
+ export interface PaginatedEmailDeviceList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedEmailDeviceList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<EmailDevice>}
29
+ * @memberof PaginatedEmailDeviceList
30
+ */
31
+ results: Array<EmailDevice>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedEmailDeviceList interface.
35
+ */
36
+ export declare function instanceOfPaginatedEmailDeviceList(value: object): value is PaginatedEmailDeviceList;
37
+ export declare function PaginatedEmailDeviceListFromJSON(json: any): PaginatedEmailDeviceList;
38
+ export declare function PaginatedEmailDeviceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEmailDeviceList;
39
+ export declare function PaginatedEmailDeviceListToJSON(json: any): PaginatedEmailDeviceList;
40
+ export declare function PaginatedEmailDeviceListToJSONTyped(value?: PaginatedEmailDeviceList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfPaginatedEmailDeviceList = instanceOfPaginatedEmailDeviceList;
17
+ exports.PaginatedEmailDeviceListFromJSON = PaginatedEmailDeviceListFromJSON;
18
+ exports.PaginatedEmailDeviceListFromJSONTyped = PaginatedEmailDeviceListFromJSONTyped;
19
+ exports.PaginatedEmailDeviceListToJSON = PaginatedEmailDeviceListToJSON;
20
+ exports.PaginatedEmailDeviceListToJSONTyped = PaginatedEmailDeviceListToJSONTyped;
21
+ const EmailDevice_1 = require("./EmailDevice");
22
+ const Pagination_1 = require("./Pagination");
23
+ /**
24
+ * Check if a given object implements the PaginatedEmailDeviceList interface.
25
+ */
26
+ function instanceOfPaginatedEmailDeviceList(value) {
27
+ if (!('pagination' in value) || value['pagination'] === undefined)
28
+ return false;
29
+ if (!('results' in value) || value['results'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedEmailDeviceListFromJSON(json) {
34
+ return PaginatedEmailDeviceListFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedEmailDeviceListFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
42
+ 'results': (json['results'].map(EmailDevice_1.EmailDeviceFromJSON)),
43
+ };
44
+ }
45
+ function PaginatedEmailDeviceListToJSON(json) {
46
+ return PaginatedEmailDeviceListToJSONTyped(json, false);
47
+ }
48
+ function PaginatedEmailDeviceListToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value['pagination']),
54
+ 'results': (value['results'].map(EmailDevice_1.EmailDeviceToJSON)),
55
+ };
56
+ }
@@ -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 PatchedAuthenticatorEmailStageRequest
17
+ */
18
+ export interface PatchedAuthenticatorEmailStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PatchedAuthenticatorEmailStageRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof PatchedAuthenticatorEmailStageRequest
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 PatchedAuthenticatorEmailStageRequest
35
+ */
36
+ configureFlow?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof PatchedAuthenticatorEmailStageRequest
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 PatchedAuthenticatorEmailStageRequest
47
+ */
48
+ useGlobalSettings?: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PatchedAuthenticatorEmailStageRequest
53
+ */
54
+ host?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof PatchedAuthenticatorEmailStageRequest
59
+ */
60
+ port?: number;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof PatchedAuthenticatorEmailStageRequest
65
+ */
66
+ username?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof PatchedAuthenticatorEmailStageRequest
71
+ */
72
+ password?: string;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof PatchedAuthenticatorEmailStageRequest
77
+ */
78
+ useTls?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof PatchedAuthenticatorEmailStageRequest
83
+ */
84
+ useSsl?: boolean;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof PatchedAuthenticatorEmailStageRequest
89
+ */
90
+ timeout?: number;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof PatchedAuthenticatorEmailStageRequest
95
+ */
96
+ fromAddress?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof PatchedAuthenticatorEmailStageRequest
101
+ */
102
+ subject?: string;
103
+ /**
104
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
105
+ * @type {string}
106
+ * @memberof PatchedAuthenticatorEmailStageRequest
107
+ */
108
+ tokenExpiry?: string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof PatchedAuthenticatorEmailStageRequest
113
+ */
114
+ template?: string;
115
+ }
116
+ /**
117
+ * Check if a given object implements the PatchedAuthenticatorEmailStageRequest interface.
118
+ */
119
+ export declare function instanceOfPatchedAuthenticatorEmailStageRequest(value: object): value is PatchedAuthenticatorEmailStageRequest;
120
+ export declare function PatchedAuthenticatorEmailStageRequestFromJSON(json: any): PatchedAuthenticatorEmailStageRequest;
121
+ export declare function PatchedAuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorEmailStageRequest;
122
+ export declare function PatchedAuthenticatorEmailStageRequestToJSON(json: any): PatchedAuthenticatorEmailStageRequest;
123
+ export declare function PatchedAuthenticatorEmailStageRequestToJSONTyped(value?: PatchedAuthenticatorEmailStageRequest | null, ignoreDiscriminator?: boolean): any;