@goauthentik/api 2024.12.3-1739200400 → 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 (102) 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/SourcesApi.d.ts +1 -0
  7. package/dist/apis/SourcesApi.js +3 -0
  8. package/dist/apis/StagesApi.d.ts +99 -1
  9. package/dist/apis/StagesApi.js +310 -0
  10. package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
  11. package/dist/esm/apis/AuthenticatorsApi.js +459 -1
  12. package/dist/esm/apis/RbacApi.d.ts +4 -0
  13. package/dist/esm/apis/RbacApi.js +4 -0
  14. package/dist/esm/apis/SourcesApi.d.ts +1 -0
  15. package/dist/esm/apis/SourcesApi.js +3 -0
  16. package/dist/esm/apis/StagesApi.d.ts +99 -1
  17. package/dist/esm/apis/StagesApi.js +311 -1
  18. package/dist/esm/models/AppEnum.d.ts +1 -0
  19. package/dist/esm/models/AppEnum.js +1 -0
  20. package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
  21. package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
  22. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  23. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
  24. package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
  25. package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
  26. package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  27. package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
  28. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  29. package/dist/esm/models/ChallengeTypes.js +5 -0
  30. package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
  31. package/dist/esm/models/DeviceClassesEnum.js +1 -0
  32. package/dist/esm/models/EmailDevice.d.ts +51 -0
  33. package/dist/esm/models/EmailDevice.js +53 -0
  34. package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
  35. package/dist/esm/models/EmailDeviceRequest.js +43 -0
  36. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
  37. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -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/index.d.ts +10 -0
  49. package/dist/esm/models/index.js +10 -0
  50. package/dist/models/AppEnum.d.ts +1 -0
  51. package/dist/models/AppEnum.js +1 -0
  52. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  53. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  54. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  55. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  56. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  57. package/dist/models/AuthenticatorEmailStage.js +96 -0
  58. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  59. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  60. package/dist/models/ChallengeTypes.d.ts +3 -0
  61. package/dist/models/ChallengeTypes.js +5 -0
  62. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  63. package/dist/models/DeviceClassesEnum.js +1 -0
  64. package/dist/models/EmailDevice.d.ts +51 -0
  65. package/dist/models/EmailDevice.js +60 -0
  66. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  67. package/dist/models/EmailDeviceRequest.js +50 -0
  68. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  69. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  70. package/dist/models/ModelEnum.d.ts +2 -0
  71. package/dist/models/ModelEnum.js +2 -0
  72. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  73. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  74. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  75. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  76. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  77. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  78. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  79. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  80. package/dist/models/index.d.ts +10 -0
  81. package/dist/models/index.js +10 -0
  82. package/package.json +1 -1
  83. package/src/apis/AuthenticatorsApi.ts +617 -0
  84. package/src/apis/RbacApi.ts +4 -0
  85. package/src/apis/SourcesApi.ts +5 -0
  86. package/src/apis/StagesApi.ts +436 -0
  87. package/src/models/AppEnum.ts +1 -0
  88. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  89. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  90. package/src/models/AuthenticatorEmailStage.ts +234 -0
  91. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  92. package/src/models/ChallengeTypes.ts +12 -1
  93. package/src/models/DeviceClassesEnum.ts +1 -0
  94. package/src/models/EmailDevice.ts +98 -0
  95. package/src/models/EmailDeviceRequest.ts +66 -0
  96. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  97. package/src/models/ModelEnum.ts +2 -0
  98. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  99. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  100. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  101. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  102. package/src/models/index.ts +10 -0
@@ -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':
@@ -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
+ }