@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,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the EmailDeviceRequest interface.
16
+ */
17
+ export function instanceOfEmailDeviceRequest(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function EmailDeviceRequestFromJSON(json) {
23
+ return EmailDeviceRequestFromJSONTyped(json, false);
24
+ }
25
+ export function EmailDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ };
32
+ }
33
+ export function EmailDeviceRequestToJSON(json) {
34
+ return EmailDeviceRequestToJSONTyped(json, false);
35
+ }
36
+ export function EmailDeviceRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ };
43
+ }
@@ -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';
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { AppleChallengeResponseRequestFromJSONTyped, AppleChallengeResponseRequestToJSON, } from './AppleChallengeResponseRequest';
15
15
  import { AuthenticatorDuoChallengeResponseRequestFromJSONTyped, AuthenticatorDuoChallengeResponseRequestToJSON, } from './AuthenticatorDuoChallengeResponseRequest';
16
+ import { AuthenticatorEmailChallengeResponseRequestFromJSONTyped, AuthenticatorEmailChallengeResponseRequestToJSON, } from './AuthenticatorEmailChallengeResponseRequest';
16
17
  import { AuthenticatorSMSChallengeResponseRequestFromJSONTyped, AuthenticatorSMSChallengeResponseRequestToJSON, } from './AuthenticatorSMSChallengeResponseRequest';
17
18
  import { AuthenticatorStaticChallengeResponseRequestFromJSONTyped, AuthenticatorStaticChallengeResponseRequestToJSON, } from './AuthenticatorStaticChallengeResponseRequest';
18
19
  import { AuthenticatorTOTPChallengeResponseRequestFromJSONTyped, AuthenticatorTOTPChallengeResponseRequestToJSON, } from './AuthenticatorTOTPChallengeResponseRequest';
@@ -50,6 +51,8 @@ export function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimina
50
51
  return Object.assign({}, PlexAuthenticationChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-source-plex' });
51
52
  case 'ak-stage-authenticator-duo':
52
53
  return Object.assign({}, AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-duo' });
54
+ case 'ak-stage-authenticator-email':
55
+ return Object.assign({}, AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-email' });
53
56
  case 'ak-stage-authenticator-sms':
54
57
  return Object.assign({}, AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json, true), { component: 'ak-stage-authenticator-sms' });
55
58
  case 'ak-stage-authenticator-static':
@@ -104,6 +107,8 @@ export function FlowChallengeResponseRequestToJSONTyped(value, ignoreDiscriminat
104
107
  return Object.assign({}, PlexAuthenticationChallengeResponseRequestToJSON(value), { component: 'ak-source-plex' });
105
108
  case 'ak-stage-authenticator-duo':
106
109
  return Object.assign({}, AuthenticatorDuoChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-duo' });
110
+ case 'ak-stage-authenticator-email':
111
+ return Object.assign({}, AuthenticatorEmailChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-email' });
107
112
  case 'ak-stage-authenticator-sms':
108
113
  return Object.assign({}, AuthenticatorSMSChallengeResponseRequestToJSON(value), { component: 'ak-stage-authenticator-sms' });
109
114
  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";
@@ -64,6 +64,8 @@ export const ModelEnum = {
64
64
  AuthentikSourcesScimScimsourcepropertymapping: 'authentik_sources_scim.scimsourcepropertymapping',
65
65
  AuthentikStagesAuthenticatorDuoAuthenticatorduostage: 'authentik_stages_authenticator_duo.authenticatorduostage',
66
66
  AuthentikStagesAuthenticatorDuoDuodevice: 'authentik_stages_authenticator_duo.duodevice',
67
+ AuthentikStagesAuthenticatorEmailAuthenticatoremailstage: 'authentik_stages_authenticator_email.authenticatoremailstage',
68
+ AuthentikStagesAuthenticatorEmailEmaildevice: 'authentik_stages_authenticator_email.emaildevice',
67
69
  AuthentikStagesAuthenticatorSmsAuthenticatorsmsstage: 'authentik_stages_authenticator_sms.authenticatorsmsstage',
68
70
  AuthentikStagesAuthenticatorSmsSmsdevice: 'authentik_stages_authenticator_sms.smsdevice',
69
71
  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,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
15
+ import { AuthenticatorEmailStageFromJSON, AuthenticatorEmailStageToJSON, } from './AuthenticatorEmailStage';
16
+ /**
17
+ * Check if a given object implements the PaginatedAuthenticatorEmailStageList interface.
18
+ */
19
+ export function instanceOfPaginatedAuthenticatorEmailStageList(value) {
20
+ if (!('pagination' in value) || value['pagination'] === undefined)
21
+ return false;
22
+ if (!('results' in value) || value['results'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function PaginatedAuthenticatorEmailStageListFromJSON(json) {
27
+ return PaginatedAuthenticatorEmailStageListFromJSONTyped(json, false);
28
+ }
29
+ export function PaginatedAuthenticatorEmailStageListFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'pagination': PaginationFromJSON(json['pagination']),
35
+ 'results': (json['results'].map(AuthenticatorEmailStageFromJSON)),
36
+ };
37
+ }
38
+ export function PaginatedAuthenticatorEmailStageListToJSON(json) {
39
+ return PaginatedAuthenticatorEmailStageListToJSONTyped(json, false);
40
+ }
41
+ export function PaginatedAuthenticatorEmailStageListToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'pagination': PaginationToJSON(value['pagination']),
47
+ 'results': (value['results'].map(AuthenticatorEmailStageToJSON)),
48
+ };
49
+ }
@@ -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,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { EmailDeviceFromJSON, EmailDeviceToJSON, } from './EmailDevice';
15
+ import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
16
+ /**
17
+ * Check if a given object implements the PaginatedEmailDeviceList interface.
18
+ */
19
+ export function instanceOfPaginatedEmailDeviceList(value) {
20
+ if (!('pagination' in value) || value['pagination'] === undefined)
21
+ return false;
22
+ if (!('results' in value) || value['results'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function PaginatedEmailDeviceListFromJSON(json) {
27
+ return PaginatedEmailDeviceListFromJSONTyped(json, false);
28
+ }
29
+ export function PaginatedEmailDeviceListFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'pagination': PaginationFromJSON(json['pagination']),
35
+ 'results': (json['results'].map(EmailDeviceFromJSON)),
36
+ };
37
+ }
38
+ export function PaginatedEmailDeviceListToJSON(json) {
39
+ return PaginatedEmailDeviceListToJSONTyped(json, false);
40
+ }
41
+ export function PaginatedEmailDeviceListToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'pagination': PaginationToJSON(value['pagination']),
47
+ 'results': (value['results'].map(EmailDeviceToJSON)),
48
+ };
49
+ }
@@ -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;
@@ -0,0 +1,72 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
15
+ /**
16
+ * Check if a given object implements the PatchedAuthenticatorEmailStageRequest interface.
17
+ */
18
+ export function instanceOfPatchedAuthenticatorEmailStageRequest(value) {
19
+ return true;
20
+ }
21
+ export function PatchedAuthenticatorEmailStageRequestFromJSON(json) {
22
+ return PatchedAuthenticatorEmailStageRequestFromJSONTyped(json, false);
23
+ }
24
+ export function PatchedAuthenticatorEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'name': json['name'] == null ? undefined : json['name'],
30
+ 'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
31
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
32
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
33
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
34
+ 'host': json['host'] == null ? undefined : json['host'],
35
+ 'port': json['port'] == null ? undefined : json['port'],
36
+ 'username': json['username'] == null ? undefined : json['username'],
37
+ 'password': json['password'] == null ? undefined : json['password'],
38
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
39
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
40
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
41
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
42
+ 'subject': json['subject'] == null ? undefined : json['subject'],
43
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
44
+ 'template': json['template'] == null ? undefined : json['template'],
45
+ };
46
+ }
47
+ export function PatchedAuthenticatorEmailStageRequestToJSON(json) {
48
+ return PatchedAuthenticatorEmailStageRequestToJSONTyped(json, false);
49
+ }
50
+ export function PatchedAuthenticatorEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'name': value['name'],
56
+ 'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequestToJSON)),
57
+ 'configure_flow': value['configureFlow'],
58
+ 'friendly_name': value['friendlyName'],
59
+ 'use_global_settings': value['useGlobalSettings'],
60
+ 'host': value['host'],
61
+ 'port': value['port'],
62
+ 'username': value['username'],
63
+ 'password': value['password'],
64
+ 'use_tls': value['useTls'],
65
+ 'use_ssl': value['useSsl'],
66
+ 'timeout': value['timeout'],
67
+ 'from_address': value['fromAddress'],
68
+ 'subject': value['subject'],
69
+ 'token_expiry': value['tokenExpiry'],
70
+ 'template': value['template'],
71
+ };
72
+ }
@@ -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 PatchedEmailDeviceRequest
16
+ */
17
+ export interface PatchedEmailDeviceRequest {
18
+ /**
19
+ * The human-readable name of this device.
20
+ * @type {string}
21
+ * @memberof PatchedEmailDeviceRequest
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PatchedEmailDeviceRequest interface.
27
+ */
28
+ export declare function instanceOfPatchedEmailDeviceRequest(value: object): value is PatchedEmailDeviceRequest;
29
+ export declare function PatchedEmailDeviceRequestFromJSON(json: any): PatchedEmailDeviceRequest;
30
+ export declare function PatchedEmailDeviceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEmailDeviceRequest;
31
+ export declare function PatchedEmailDeviceRequestToJSON(json: any): PatchedEmailDeviceRequest;
32
+ export declare function PatchedEmailDeviceRequestToJSONTyped(value?: PatchedEmailDeviceRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.12.3
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PatchedEmailDeviceRequest interface.
16
+ */
17
+ export function instanceOfPatchedEmailDeviceRequest(value) {
18
+ return true;
19
+ }
20
+ export function PatchedEmailDeviceRequestFromJSON(json) {
21
+ return PatchedEmailDeviceRequestFromJSONTyped(json, false);
22
+ }
23
+ export function PatchedEmailDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ };
30
+ }
31
+ export function PatchedEmailDeviceRequestToJSON(json) {
32
+ return PatchedEmailDeviceRequestToJSONTyped(json, false);
33
+ }
34
+ export function PatchedEmailDeviceRequestToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'name': value['name'],
40
+ };
41
+ }
@@ -25,6 +25,10 @@ export * from './AuthenticatorDuoStage';
25
25
  export * from './AuthenticatorDuoStageDeviceImportResponse';
26
26
  export * from './AuthenticatorDuoStageManualDeviceImportRequest';
27
27
  export * from './AuthenticatorDuoStageRequest';
28
+ export * from './AuthenticatorEmailChallenge';
29
+ export * from './AuthenticatorEmailChallengeResponseRequest';
30
+ export * from './AuthenticatorEmailStage';
31
+ export * from './AuthenticatorEmailStageRequest';
28
32
  export * from './AuthenticatorEndpointGDTCStage';
29
33
  export * from './AuthenticatorEndpointGDTCStageRequest';
30
34
  export * from './AuthenticatorSMSChallenge';
@@ -112,6 +116,8 @@ export * from './DuoDeviceRequest';
112
116
  export * from './DuoResponseEnum';
113
117
  export * from './EmailChallenge';
114
118
  export * from './EmailChallengeResponseRequest';
119
+ export * from './EmailDevice';
120
+ export * from './EmailDeviceRequest';
115
121
  export * from './EmailStage';
116
122
  export * from './EmailStageRequest';
117
123
  export * from './Endpoint';
@@ -267,6 +273,7 @@ export * from './PaginatedApplicationEntitlementList';
267
273
  export * from './PaginatedApplicationList';
268
274
  export * from './PaginatedAuthenticatedSessionList';
269
275
  export * from './PaginatedAuthenticatorDuoStageList';
276
+ export * from './PaginatedAuthenticatorEmailStageList';
270
277
  export * from './PaginatedAuthenticatorEndpointGDTCStageList';
271
278
  export * from './PaginatedAuthenticatorSMSStageList';
272
279
  export * from './PaginatedAuthenticatorStaticStageList';
@@ -285,6 +292,7 @@ export * from './PaginatedDomainList';
285
292
  export * from './PaginatedDummyPolicyList';
286
293
  export * from './PaginatedDummyStageList';
287
294
  export * from './PaginatedDuoDeviceList';
295
+ export * from './PaginatedEmailDeviceList';
288
296
  export * from './PaginatedEmailStageList';
289
297
  export * from './PaginatedEndpointDeviceList';
290
298
  export * from './PaginatedEndpointList';
@@ -405,6 +413,7 @@ export * from './PasswordStageRequest';
405
413
  export * from './PatchedApplicationEntitlementRequest';
406
414
  export * from './PatchedApplicationRequest';
407
415
  export * from './PatchedAuthenticatorDuoStageRequest';
416
+ export * from './PatchedAuthenticatorEmailStageRequest';
408
417
  export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
409
418
  export * from './PatchedAuthenticatorSMSStageRequest';
410
419
  export * from './PatchedAuthenticatorStaticStageRequest';
@@ -423,6 +432,7 @@ export * from './PatchedDomainRequest';
423
432
  export * from './PatchedDummyPolicyRequest';
424
433
  export * from './PatchedDummyStageRequest';
425
434
  export * from './PatchedDuoDeviceRequest';
435
+ export * from './PatchedEmailDeviceRequest';
426
436
  export * from './PatchedEmailStageRequest';
427
437
  export * from './PatchedEndpointDeviceRequest';
428
438
  export * from './PatchedEndpointRequest';
@@ -27,6 +27,10 @@ export * from './AuthenticatorDuoStage';
27
27
  export * from './AuthenticatorDuoStageDeviceImportResponse';
28
28
  export * from './AuthenticatorDuoStageManualDeviceImportRequest';
29
29
  export * from './AuthenticatorDuoStageRequest';
30
+ export * from './AuthenticatorEmailChallenge';
31
+ export * from './AuthenticatorEmailChallengeResponseRequest';
32
+ export * from './AuthenticatorEmailStage';
33
+ export * from './AuthenticatorEmailStageRequest';
30
34
  export * from './AuthenticatorEndpointGDTCStage';
31
35
  export * from './AuthenticatorEndpointGDTCStageRequest';
32
36
  export * from './AuthenticatorSMSChallenge';
@@ -114,6 +118,8 @@ export * from './DuoDeviceRequest';
114
118
  export * from './DuoResponseEnum';
115
119
  export * from './EmailChallenge';
116
120
  export * from './EmailChallengeResponseRequest';
121
+ export * from './EmailDevice';
122
+ export * from './EmailDeviceRequest';
117
123
  export * from './EmailStage';
118
124
  export * from './EmailStageRequest';
119
125
  export * from './Endpoint';
@@ -269,6 +275,7 @@ export * from './PaginatedApplicationEntitlementList';
269
275
  export * from './PaginatedApplicationList';
270
276
  export * from './PaginatedAuthenticatedSessionList';
271
277
  export * from './PaginatedAuthenticatorDuoStageList';
278
+ export * from './PaginatedAuthenticatorEmailStageList';
272
279
  export * from './PaginatedAuthenticatorEndpointGDTCStageList';
273
280
  export * from './PaginatedAuthenticatorSMSStageList';
274
281
  export * from './PaginatedAuthenticatorStaticStageList';
@@ -287,6 +294,7 @@ export * from './PaginatedDomainList';
287
294
  export * from './PaginatedDummyPolicyList';
288
295
  export * from './PaginatedDummyStageList';
289
296
  export * from './PaginatedDuoDeviceList';
297
+ export * from './PaginatedEmailDeviceList';
290
298
  export * from './PaginatedEmailStageList';
291
299
  export * from './PaginatedEndpointDeviceList';
292
300
  export * from './PaginatedEndpointList';
@@ -407,6 +415,7 @@ export * from './PasswordStageRequest';
407
415
  export * from './PatchedApplicationEntitlementRequest';
408
416
  export * from './PatchedApplicationRequest';
409
417
  export * from './PatchedAuthenticatorDuoStageRequest';
418
+ export * from './PatchedAuthenticatorEmailStageRequest';
410
419
  export * from './PatchedAuthenticatorEndpointGDTCStageRequest';
411
420
  export * from './PatchedAuthenticatorSMSStageRequest';
412
421
  export * from './PatchedAuthenticatorStaticStageRequest';
@@ -425,6 +434,7 @@ export * from './PatchedDomainRequest';
425
434
  export * from './PatchedDummyPolicyRequest';
426
435
  export * from './PatchedDummyStageRequest';
427
436
  export * from './PatchedDuoDeviceRequest';
437
+ export * from './PatchedEmailDeviceRequest';
428
438
  export * from './PatchedEmailStageRequest';
429
439
  export * from './PatchedEndpointDeviceRequest';
430
440
  export * from './PatchedEndpointRequest';