@goauthentik/api 2024.12.3-1739449824 → 2024.12.3-1739814462

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/dist/apis/AuthenticatorsApi.d.ts +145 -1
  3. package/dist/apis/AuthenticatorsApi.js +458 -0
  4. package/dist/apis/RbacApi.d.ts +4 -0
  5. package/dist/apis/RbacApi.js +4 -0
  6. package/dist/apis/StagesApi.d.ts +99 -1
  7. package/dist/apis/StagesApi.js +310 -0
  8. package/dist/esm/apis/AuthenticatorsApi.d.ts +145 -1
  9. package/dist/esm/apis/AuthenticatorsApi.js +459 -1
  10. package/dist/esm/apis/RbacApi.d.ts +4 -0
  11. package/dist/esm/apis/RbacApi.js +4 -0
  12. package/dist/esm/apis/StagesApi.d.ts +99 -1
  13. package/dist/esm/apis/StagesApi.js +311 -1
  14. package/dist/esm/models/AppEnum.d.ts +1 -0
  15. package/dist/esm/models/AppEnum.js +1 -0
  16. package/dist/esm/models/AuthenticatorEmailChallenge.d.ts +72 -0
  17. package/dist/esm/models/AuthenticatorEmailChallenge.js +58 -0
  18. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  19. package/dist/esm/models/AuthenticatorEmailChallengeResponseRequest.js +45 -0
  20. package/dist/esm/models/AuthenticatorEmailStage.d.ts +153 -0
  21. package/dist/esm/models/AuthenticatorEmailStage.js +89 -0
  22. package/dist/esm/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  23. package/dist/esm/models/AuthenticatorEmailStageRequest.js +74 -0
  24. package/dist/esm/models/ChallengeTypes.d.ts +3 -0
  25. package/dist/esm/models/ChallengeTypes.js +5 -0
  26. package/dist/esm/models/DeviceClassesEnum.d.ts +1 -0
  27. package/dist/esm/models/DeviceClassesEnum.js +1 -0
  28. package/dist/esm/models/EmailDevice.d.ts +51 -0
  29. package/dist/esm/models/EmailDevice.js +53 -0
  30. package/dist/esm/models/EmailDeviceRequest.d.ts +32 -0
  31. package/dist/esm/models/EmailDeviceRequest.js +43 -0
  32. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +3 -0
  33. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  34. package/dist/esm/models/GeoIPPolicy.d.ts +36 -0
  35. package/dist/esm/models/GeoIPPolicy.js +12 -0
  36. package/dist/esm/models/GeoIPPolicyRequest.d.ts +36 -0
  37. package/dist/esm/models/GeoIPPolicyRequest.js +12 -0
  38. package/dist/esm/models/ModelEnum.d.ts +2 -0
  39. package/dist/esm/models/ModelEnum.js +2 -0
  40. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  41. package/dist/esm/models/PaginatedAuthenticatorEmailStageList.js +49 -0
  42. package/dist/esm/models/PaginatedEmailDeviceList.d.ts +40 -0
  43. package/dist/esm/models/PaginatedEmailDeviceList.js +49 -0
  44. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  45. package/dist/esm/models/PatchedAuthenticatorEmailStageRequest.js +72 -0
  46. package/dist/esm/models/PatchedEmailDeviceRequest.d.ts +32 -0
  47. package/dist/esm/models/PatchedEmailDeviceRequest.js +41 -0
  48. package/dist/esm/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  49. package/dist/esm/models/PatchedGeoIPPolicyRequest.js +12 -0
  50. package/dist/esm/models/index.d.ts +10 -0
  51. package/dist/esm/models/index.js +10 -0
  52. package/dist/models/AppEnum.d.ts +1 -0
  53. package/dist/models/AppEnum.js +1 -0
  54. package/dist/models/AuthenticatorEmailChallenge.d.ts +72 -0
  55. package/dist/models/AuthenticatorEmailChallenge.js +65 -0
  56. package/dist/models/AuthenticatorEmailChallengeResponseRequest.d.ts +44 -0
  57. package/dist/models/AuthenticatorEmailChallengeResponseRequest.js +52 -0
  58. package/dist/models/AuthenticatorEmailStage.d.ts +153 -0
  59. package/dist/models/AuthenticatorEmailStage.js +96 -0
  60. package/dist/models/AuthenticatorEmailStageRequest.d.ts +123 -0
  61. package/dist/models/AuthenticatorEmailStageRequest.js +81 -0
  62. package/dist/models/ChallengeTypes.d.ts +3 -0
  63. package/dist/models/ChallengeTypes.js +5 -0
  64. package/dist/models/DeviceClassesEnum.d.ts +1 -0
  65. package/dist/models/DeviceClassesEnum.js +1 -0
  66. package/dist/models/EmailDevice.d.ts +51 -0
  67. package/dist/models/EmailDevice.js +60 -0
  68. package/dist/models/EmailDeviceRequest.d.ts +32 -0
  69. package/dist/models/EmailDeviceRequest.js +50 -0
  70. package/dist/models/FlowChallengeResponseRequest.d.ts +3 -0
  71. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  72. package/dist/models/GeoIPPolicy.d.ts +36 -0
  73. package/dist/models/GeoIPPolicy.js +12 -0
  74. package/dist/models/GeoIPPolicyRequest.d.ts +36 -0
  75. package/dist/models/GeoIPPolicyRequest.js +12 -0
  76. package/dist/models/ModelEnum.d.ts +2 -0
  77. package/dist/models/ModelEnum.js +2 -0
  78. package/dist/models/PaginatedAuthenticatorEmailStageList.d.ts +40 -0
  79. package/dist/models/PaginatedAuthenticatorEmailStageList.js +56 -0
  80. package/dist/models/PaginatedEmailDeviceList.d.ts +40 -0
  81. package/dist/models/PaginatedEmailDeviceList.js +56 -0
  82. package/dist/models/PatchedAuthenticatorEmailStageRequest.d.ts +123 -0
  83. package/dist/models/PatchedAuthenticatorEmailStageRequest.js +79 -0
  84. package/dist/models/PatchedEmailDeviceRequest.d.ts +32 -0
  85. package/dist/models/PatchedEmailDeviceRequest.js +48 -0
  86. package/dist/models/PatchedGeoIPPolicyRequest.d.ts +36 -0
  87. package/dist/models/PatchedGeoIPPolicyRequest.js +12 -0
  88. package/dist/models/index.d.ts +10 -0
  89. package/dist/models/index.js +10 -0
  90. package/package.json +1 -1
  91. package/src/apis/AuthenticatorsApi.ts +617 -0
  92. package/src/apis/RbacApi.ts +4 -0
  93. package/src/apis/StagesApi.ts +436 -0
  94. package/src/models/AppEnum.ts +1 -0
  95. package/src/models/AuthenticatorEmailChallenge.ts +130 -0
  96. package/src/models/AuthenticatorEmailChallengeResponseRequest.ts +81 -0
  97. package/src/models/AuthenticatorEmailStage.ts +234 -0
  98. package/src/models/AuthenticatorEmailStageRequest.ts +194 -0
  99. package/src/models/ChallengeTypes.ts +12 -1
  100. package/src/models/DeviceClassesEnum.ts +1 -0
  101. package/src/models/EmailDevice.ts +98 -0
  102. package/src/models/EmailDeviceRequest.ts +66 -0
  103. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  104. package/src/models/GeoIPPolicy.ts +48 -0
  105. package/src/models/GeoIPPolicyRequest.ts +48 -0
  106. package/src/models/ModelEnum.ts +2 -0
  107. package/src/models/PaginatedAuthenticatorEmailStageList.ts +90 -0
  108. package/src/models/PaginatedEmailDeviceList.ts +90 -0
  109. package/src/models/PatchedAuthenticatorEmailStageRequest.ts +193 -0
  110. package/src/models/PatchedEmailDeviceRequest.ts +65 -0
  111. package/src/models/PatchedGeoIPPolicyRequest.ts +48 -0
  112. package/src/models/index.ts +10 -0
@@ -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':
@@ -83,6 +83,42 @@ export interface GeoIPPolicy {
83
83
  * @memberof GeoIPPolicy
84
84
  */
85
85
  readonly countriesObj: Array<DetailedCountryField>;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof GeoIPPolicy
90
+ */
91
+ checkHistoryDistance?: boolean;
92
+ /**
93
+ *
94
+ * @type {number}
95
+ * @memberof GeoIPPolicy
96
+ */
97
+ historyMaxDistanceKm?: number;
98
+ /**
99
+ *
100
+ * @type {number}
101
+ * @memberof GeoIPPolicy
102
+ */
103
+ distanceToleranceKm?: number;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof GeoIPPolicy
108
+ */
109
+ historyLoginCount?: number;
110
+ /**
111
+ *
112
+ * @type {boolean}
113
+ * @memberof GeoIPPolicy
114
+ */
115
+ checkImpossibleTravel?: boolean;
116
+ /**
117
+ *
118
+ * @type {number}
119
+ * @memberof GeoIPPolicy
120
+ */
121
+ impossibleToleranceKm?: number;
86
122
  }
87
123
  /**
88
124
  * Check if a given object implements the GeoIPPolicy interface.
@@ -56,6 +56,12 @@ export function GeoIPPolicyFromJSONTyped(json, ignoreDiscriminator) {
56
56
  'asns': json['asns'] == null ? undefined : json['asns'],
57
57
  'countries': (json['countries'].map(CountryCodeEnumFromJSON)),
58
58
  'countriesObj': (json['countries_obj'].map(DetailedCountryFieldFromJSON)),
59
+ 'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
60
+ 'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
61
+ 'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
62
+ 'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
63
+ 'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
64
+ 'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
59
65
  };
60
66
  }
61
67
  export function GeoIPPolicyToJSON(json) {
@@ -70,5 +76,11 @@ export function GeoIPPolicyToJSONTyped(value, ignoreDiscriminator = false) {
70
76
  'execution_logging': value['executionLogging'],
71
77
  'asns': value['asns'],
72
78
  'countries': (value['countries'].map(CountryCodeEnumToJSON)),
79
+ 'check_history_distance': value['checkHistoryDistance'],
80
+ 'history_max_distance_km': value['historyMaxDistanceKm'],
81
+ 'distance_tolerance_km': value['distanceToleranceKm'],
82
+ 'history_login_count': value['historyLoginCount'],
83
+ 'check_impossible_travel': value['checkImpossibleTravel'],
84
+ 'impossible_tolerance_km': value['impossibleToleranceKm'],
73
85
  };
74
86
  }
@@ -40,6 +40,42 @@ export interface GeoIPPolicyRequest {
40
40
  * @memberof GeoIPPolicyRequest
41
41
  */
42
42
  countries: Array<CountryCodeEnum>;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof GeoIPPolicyRequest
47
+ */
48
+ checkHistoryDistance?: boolean;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof GeoIPPolicyRequest
53
+ */
54
+ historyMaxDistanceKm?: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof GeoIPPolicyRequest
59
+ */
60
+ distanceToleranceKm?: number;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof GeoIPPolicyRequest
65
+ */
66
+ historyLoginCount?: number;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof GeoIPPolicyRequest
71
+ */
72
+ checkImpossibleTravel?: boolean;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof GeoIPPolicyRequest
77
+ */
78
+ impossibleToleranceKm?: number;
43
79
  }
44
80
  /**
45
81
  * Check if a given object implements the GeoIPPolicyRequest interface.
@@ -34,6 +34,12 @@ export function GeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
34
34
  'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
35
35
  'asns': json['asns'] == null ? undefined : json['asns'],
36
36
  'countries': (json['countries'].map(CountryCodeEnumFromJSON)),
37
+ 'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
38
+ 'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
39
+ 'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
40
+ 'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
41
+ 'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
42
+ 'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
37
43
  };
38
44
  }
39
45
  export function GeoIPPolicyRequestToJSON(json) {
@@ -48,5 +54,11 @@ export function GeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false
48
54
  'execution_logging': value['executionLogging'],
49
55
  'asns': value['asns'],
50
56
  'countries': (value['countries'].map(CountryCodeEnumToJSON)),
57
+ 'check_history_distance': value['checkHistoryDistance'],
58
+ 'history_max_distance_km': value['historyMaxDistanceKm'],
59
+ 'distance_tolerance_km': value['distanceToleranceKm'],
60
+ 'history_login_count': value['historyLoginCount'],
61
+ 'check_impossible_travel': value['checkImpossibleTravel'],
62
+ 'impossible_tolerance_km': value['impossibleToleranceKm'],
51
63
  };
52
64
  }
@@ -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
+ }