@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,45 @@
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 AuthenticatorEmailChallengeResponseRequest interface.
16
+ */
17
+ export function instanceOfAuthenticatorEmailChallengeResponseRequest(value) {
18
+ return true;
19
+ }
20
+ export function AuthenticatorEmailChallengeResponseRequestFromJSON(json) {
21
+ return AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, false);
22
+ }
23
+ export function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'component': json['component'] == null ? undefined : json['component'],
29
+ 'code': json['code'] == null ? undefined : json['code'],
30
+ 'email': json['email'] == null ? undefined : json['email'],
31
+ };
32
+ }
33
+ export function AuthenticatorEmailChallengeResponseRequestToJSON(json) {
34
+ return AuthenticatorEmailChallengeResponseRequestToJSONTyped(json, false);
35
+ }
36
+ export function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'component': value['component'],
42
+ 'code': value['code'],
43
+ 'email': value['email'],
44
+ };
45
+ }
@@ -0,0 +1,153 @@
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 { FlowSet } from './FlowSet';
13
+ /**
14
+ * AuthenticatorEmailStage Serializer
15
+ * @export
16
+ * @interface AuthenticatorEmailStage
17
+ */
18
+ export interface AuthenticatorEmailStage {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AuthenticatorEmailStage
23
+ */
24
+ readonly pk: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AuthenticatorEmailStage
29
+ */
30
+ name: string;
31
+ /**
32
+ * Get object type so that we know how to edit the object
33
+ * @type {string}
34
+ * @memberof AuthenticatorEmailStage
35
+ */
36
+ readonly component: string;
37
+ /**
38
+ * Return object's verbose_name
39
+ * @type {string}
40
+ * @memberof AuthenticatorEmailStage
41
+ */
42
+ readonly verboseName: string;
43
+ /**
44
+ * Return object's plural verbose_name
45
+ * @type {string}
46
+ * @memberof AuthenticatorEmailStage
47
+ */
48
+ readonly verboseNamePlural: string;
49
+ /**
50
+ * Return internal model name
51
+ * @type {string}
52
+ * @memberof AuthenticatorEmailStage
53
+ */
54
+ readonly metaModelName: string;
55
+ /**
56
+ *
57
+ * @type {Array<FlowSet>}
58
+ * @memberof AuthenticatorEmailStage
59
+ */
60
+ flowSet?: Array<FlowSet>;
61
+ /**
62
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
63
+ * @type {string}
64
+ * @memberof AuthenticatorEmailStage
65
+ */
66
+ configureFlow?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AuthenticatorEmailStage
71
+ */
72
+ friendlyName?: string | null;
73
+ /**
74
+ * When enabled, global Email connection settings will be used and connection settings below will be ignored.
75
+ * @type {boolean}
76
+ * @memberof AuthenticatorEmailStage
77
+ */
78
+ useGlobalSettings?: boolean;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof AuthenticatorEmailStage
83
+ */
84
+ host?: string;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof AuthenticatorEmailStage
89
+ */
90
+ port?: number;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof AuthenticatorEmailStage
95
+ */
96
+ username?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof AuthenticatorEmailStage
101
+ */
102
+ password?: string;
103
+ /**
104
+ *
105
+ * @type {boolean}
106
+ * @memberof AuthenticatorEmailStage
107
+ */
108
+ useTls?: boolean;
109
+ /**
110
+ *
111
+ * @type {boolean}
112
+ * @memberof AuthenticatorEmailStage
113
+ */
114
+ useSsl?: boolean;
115
+ /**
116
+ *
117
+ * @type {number}
118
+ * @memberof AuthenticatorEmailStage
119
+ */
120
+ timeout?: number;
121
+ /**
122
+ *
123
+ * @type {string}
124
+ * @memberof AuthenticatorEmailStage
125
+ */
126
+ fromAddress?: string;
127
+ /**
128
+ *
129
+ * @type {string}
130
+ * @memberof AuthenticatorEmailStage
131
+ */
132
+ subject?: string;
133
+ /**
134
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
135
+ * @type {string}
136
+ * @memberof AuthenticatorEmailStage
137
+ */
138
+ tokenExpiry?: string;
139
+ /**
140
+ *
141
+ * @type {string}
142
+ * @memberof AuthenticatorEmailStage
143
+ */
144
+ template?: string;
145
+ }
146
+ /**
147
+ * Check if a given object implements the AuthenticatorEmailStage interface.
148
+ */
149
+ export declare function instanceOfAuthenticatorEmailStage(value: object): value is AuthenticatorEmailStage;
150
+ export declare function AuthenticatorEmailStageFromJSON(json: any): AuthenticatorEmailStage;
151
+ export declare function AuthenticatorEmailStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStage;
152
+ export declare function AuthenticatorEmailStageToJSON(json: any): AuthenticatorEmailStage;
153
+ export declare function AuthenticatorEmailStageToJSONTyped(value?: Omit<AuthenticatorEmailStage, 'pk' | 'component' | 'verbose_name' | 'verbose_name_plural' | 'meta_model_name'> | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,89 @@
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 { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
15
+ /**
16
+ * Check if a given object implements the AuthenticatorEmailStage interface.
17
+ */
18
+ export function instanceOfAuthenticatorEmailStage(value) {
19
+ if (!('pk' in value) || value['pk'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('component' in value) || value['component'] === undefined)
24
+ return false;
25
+ if (!('verboseName' in value) || value['verboseName'] === undefined)
26
+ return false;
27
+ if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined)
28
+ return false;
29
+ if (!('metaModelName' in value) || value['metaModelName'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function AuthenticatorEmailStageFromJSON(json) {
34
+ return AuthenticatorEmailStageFromJSONTyped(json, false);
35
+ }
36
+ export function AuthenticatorEmailStageFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'pk': json['pk'],
42
+ 'name': json['name'],
43
+ 'component': json['component'],
44
+ 'verboseName': json['verbose_name'],
45
+ 'verboseNamePlural': json['verbose_name_plural'],
46
+ 'metaModelName': json['meta_model_name'],
47
+ 'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
48
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
49
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
50
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
51
+ 'host': json['host'] == null ? undefined : json['host'],
52
+ 'port': json['port'] == null ? undefined : json['port'],
53
+ 'username': json['username'] == null ? undefined : json['username'],
54
+ 'password': json['password'] == null ? undefined : json['password'],
55
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
56
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
57
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
58
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
59
+ 'subject': json['subject'] == null ? undefined : json['subject'],
60
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
61
+ 'template': json['template'] == null ? undefined : json['template'],
62
+ };
63
+ }
64
+ export function AuthenticatorEmailStageToJSON(json) {
65
+ return AuthenticatorEmailStageToJSONTyped(json, false);
66
+ }
67
+ export function AuthenticatorEmailStageToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'name': value['name'],
73
+ 'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetToJSON)),
74
+ 'configure_flow': value['configureFlow'],
75
+ 'friendly_name': value['friendlyName'],
76
+ 'use_global_settings': value['useGlobalSettings'],
77
+ 'host': value['host'],
78
+ 'port': value['port'],
79
+ 'username': value['username'],
80
+ 'password': value['password'],
81
+ 'use_tls': value['useTls'],
82
+ 'use_ssl': value['useSsl'],
83
+ 'timeout': value['timeout'],
84
+ 'from_address': value['fromAddress'],
85
+ 'subject': value['subject'],
86
+ 'token_expiry': value['tokenExpiry'],
87
+ 'template': value['template'],
88
+ };
89
+ }
@@ -0,0 +1,123 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlowSetRequest } from './FlowSetRequest';
13
+ /**
14
+ * AuthenticatorEmailStage Serializer
15
+ * @export
16
+ * @interface AuthenticatorEmailStageRequest
17
+ */
18
+ export interface AuthenticatorEmailStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AuthenticatorEmailStageRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof AuthenticatorEmailStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
33
+ * @type {string}
34
+ * @memberof AuthenticatorEmailStageRequest
35
+ */
36
+ configureFlow?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AuthenticatorEmailStageRequest
41
+ */
42
+ friendlyName?: string | null;
43
+ /**
44
+ * When enabled, global Email connection settings will be used and connection settings below will be ignored.
45
+ * @type {boolean}
46
+ * @memberof AuthenticatorEmailStageRequest
47
+ */
48
+ useGlobalSettings?: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof AuthenticatorEmailStageRequest
53
+ */
54
+ host?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof AuthenticatorEmailStageRequest
59
+ */
60
+ port?: number;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof AuthenticatorEmailStageRequest
65
+ */
66
+ username?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AuthenticatorEmailStageRequest
71
+ */
72
+ password?: string;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof AuthenticatorEmailStageRequest
77
+ */
78
+ useTls?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof AuthenticatorEmailStageRequest
83
+ */
84
+ useSsl?: boolean;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof AuthenticatorEmailStageRequest
89
+ */
90
+ timeout?: number;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof AuthenticatorEmailStageRequest
95
+ */
96
+ fromAddress?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof AuthenticatorEmailStageRequest
101
+ */
102
+ subject?: string;
103
+ /**
104
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
105
+ * @type {string}
106
+ * @memberof AuthenticatorEmailStageRequest
107
+ */
108
+ tokenExpiry?: string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof AuthenticatorEmailStageRequest
113
+ */
114
+ template?: string;
115
+ }
116
+ /**
117
+ * Check if a given object implements the AuthenticatorEmailStageRequest interface.
118
+ */
119
+ export declare function instanceOfAuthenticatorEmailStageRequest(value: object): value is AuthenticatorEmailStageRequest;
120
+ export declare function AuthenticatorEmailStageRequestFromJSON(json: any): AuthenticatorEmailStageRequest;
121
+ export declare function AuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailStageRequest;
122
+ export declare function AuthenticatorEmailStageRequestToJSON(json: any): AuthenticatorEmailStageRequest;
123
+ export declare function AuthenticatorEmailStageRequestToJSONTyped(value?: AuthenticatorEmailStageRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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 AuthenticatorEmailStageRequest interface.
17
+ */
18
+ export function instanceOfAuthenticatorEmailStageRequest(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function AuthenticatorEmailStageRequestFromJSON(json) {
24
+ return AuthenticatorEmailStageRequestFromJSONTyped(json, false);
25
+ }
26
+ export function AuthenticatorEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
33
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
34
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
35
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
36
+ 'host': json['host'] == null ? undefined : json['host'],
37
+ 'port': json['port'] == null ? undefined : json['port'],
38
+ 'username': json['username'] == null ? undefined : json['username'],
39
+ 'password': json['password'] == null ? undefined : json['password'],
40
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
41
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
42
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
43
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
44
+ 'subject': json['subject'] == null ? undefined : json['subject'],
45
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
46
+ 'template': json['template'] == null ? undefined : json['template'],
47
+ };
48
+ }
49
+ export function AuthenticatorEmailStageRequestToJSON(json) {
50
+ return AuthenticatorEmailStageRequestToJSONTyped(json, false);
51
+ }
52
+ export function AuthenticatorEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'name': value['name'],
58
+ 'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequestToJSON)),
59
+ 'configure_flow': value['configureFlow'],
60
+ 'friendly_name': value['friendlyName'],
61
+ 'use_global_settings': value['useGlobalSettings'],
62
+ 'host': value['host'],
63
+ 'port': value['port'],
64
+ 'username': value['username'],
65
+ 'password': value['password'],
66
+ 'use_tls': value['useTls'],
67
+ 'use_ssl': value['useSsl'],
68
+ 'timeout': value['timeout'],
69
+ 'from_address': value['fromAddress'],
70
+ 'subject': value['subject'],
71
+ 'token_expiry': value['tokenExpiry'],
72
+ 'template': value['template'],
73
+ };
74
+ }
@@ -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';
@@ -14,6 +14,7 @@
14
14
  import { AccessDeniedChallengeFromJSONTyped, AccessDeniedChallengeToJSON, } from './AccessDeniedChallenge';
15
15
  import { AppleLoginChallengeFromJSONTyped, AppleLoginChallengeToJSON, } from './AppleLoginChallenge';
16
16
  import { AuthenticatorDuoChallengeFromJSONTyped, AuthenticatorDuoChallengeToJSON, } from './AuthenticatorDuoChallenge';
17
+ import { AuthenticatorEmailChallengeFromJSONTyped, AuthenticatorEmailChallengeToJSON, } from './AuthenticatorEmailChallenge';
17
18
  import { AuthenticatorSMSChallengeFromJSONTyped, AuthenticatorSMSChallengeToJSON, } from './AuthenticatorSMSChallenge';
18
19
  import { AuthenticatorStaticChallengeFromJSONTyped, AuthenticatorStaticChallengeToJSON, } from './AuthenticatorStaticChallenge';
19
20
  import { AuthenticatorTOTPChallengeFromJSONTyped, AuthenticatorTOTPChallengeToJSON, } from './AuthenticatorTOTPChallenge';
@@ -56,6 +57,8 @@ export function ChallengeTypesFromJSONTyped(json, ignoreDiscriminator) {
56
57
  return Object.assign({}, AccessDeniedChallengeFromJSONTyped(json, true), { component: 'ak-stage-access-denied' });
57
58
  case 'ak-stage-authenticator-duo':
58
59
  return Object.assign({}, AuthenticatorDuoChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-duo' });
60
+ case 'ak-stage-authenticator-email':
61
+ return Object.assign({}, AuthenticatorEmailChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-email' });
59
62
  case 'ak-stage-authenticator-sms':
60
63
  return Object.assign({}, AuthenticatorSMSChallengeFromJSONTyped(json, true), { component: 'ak-stage-authenticator-sms' });
61
64
  case 'ak-stage-authenticator-static':
@@ -118,6 +121,8 @@ export function ChallengeTypesToJSONTyped(value, ignoreDiscriminator = false) {
118
121
  return Object.assign({}, AccessDeniedChallengeToJSON(value), { component: 'ak-stage-access-denied' });
119
122
  case 'ak-stage-authenticator-duo':
120
123
  return Object.assign({}, AuthenticatorDuoChallengeToJSON(value), { component: 'ak-stage-authenticator-duo' });
124
+ case 'ak-stage-authenticator-email':
125
+ return Object.assign({}, AuthenticatorEmailChallengeToJSON(value), { component: 'ak-stage-authenticator-email' });
121
126
  case 'ak-stage-authenticator-sms':
122
127
  return Object.assign({}, AuthenticatorSMSChallengeToJSON(value), { component: 'ak-stage-authenticator-sms' });
123
128
  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];
@@ -21,6 +21,7 @@ export const DeviceClassesEnum = {
21
21
  Webauthn: 'webauthn',
22
22
  Duo: 'duo',
23
23
  Sms: 'sms',
24
+ Email: 'email',
24
25
  UnknownDefaultOpenApi: '11184809'
25
26
  };
26
27
  export 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,53 @@
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 { GroupMemberFromJSON, } from './GroupMember';
15
+ /**
16
+ * Check if a given object implements the EmailDevice interface.
17
+ */
18
+ export function instanceOfEmailDevice(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('pk' in value) || value['pk'] === undefined)
22
+ return false;
23
+ if (!('email' in value) || value['email'] === undefined)
24
+ return false;
25
+ if (!('user' in value) || value['user'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function EmailDeviceFromJSON(json) {
30
+ return EmailDeviceFromJSONTyped(json, false);
31
+ }
32
+ export function EmailDeviceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'pk': json['pk'],
39
+ 'email': json['email'],
40
+ 'user': GroupMemberFromJSON(json['user']),
41
+ };
42
+ }
43
+ export function EmailDeviceToJSON(json) {
44
+ return EmailDeviceToJSONTyped(json, false);
45
+ }
46
+ export function EmailDeviceToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ };
53
+ }
@@ -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;