@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
@@ -0,0 +1,40 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Pagination } from './Pagination';
13
+ import type { AuthenticatorEmailStage } from './AuthenticatorEmailStage';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedAuthenticatorEmailStageList
18
+ */
19
+ export interface PaginatedAuthenticatorEmailStageList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedAuthenticatorEmailStageList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<AuthenticatorEmailStage>}
29
+ * @memberof PaginatedAuthenticatorEmailStageList
30
+ */
31
+ results: Array<AuthenticatorEmailStage>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedAuthenticatorEmailStageList interface.
35
+ */
36
+ export declare function instanceOfPaginatedAuthenticatorEmailStageList(value: object): value is PaginatedAuthenticatorEmailStageList;
37
+ export declare function PaginatedAuthenticatorEmailStageListFromJSON(json: any): PaginatedAuthenticatorEmailStageList;
38
+ export declare function PaginatedAuthenticatorEmailStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticatorEmailStageList;
39
+ export declare function PaginatedAuthenticatorEmailStageListToJSON(json: any): PaginatedAuthenticatorEmailStageList;
40
+ export declare function PaginatedAuthenticatorEmailStageListToJSONTyped(value?: PaginatedAuthenticatorEmailStageList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.12.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedAuthenticatorEmailStageList = instanceOfPaginatedAuthenticatorEmailStageList;
17
+ exports.PaginatedAuthenticatorEmailStageListFromJSON = PaginatedAuthenticatorEmailStageListFromJSON;
18
+ exports.PaginatedAuthenticatorEmailStageListFromJSONTyped = PaginatedAuthenticatorEmailStageListFromJSONTyped;
19
+ exports.PaginatedAuthenticatorEmailStageListToJSON = PaginatedAuthenticatorEmailStageListToJSON;
20
+ exports.PaginatedAuthenticatorEmailStageListToJSONTyped = PaginatedAuthenticatorEmailStageListToJSONTyped;
21
+ const Pagination_1 = require("./Pagination");
22
+ const AuthenticatorEmailStage_1 = require("./AuthenticatorEmailStage");
23
+ /**
24
+ * Check if a given object implements the PaginatedAuthenticatorEmailStageList interface.
25
+ */
26
+ function instanceOfPaginatedAuthenticatorEmailStageList(value) {
27
+ if (!('pagination' in value) || value['pagination'] === undefined)
28
+ return false;
29
+ if (!('results' in value) || value['results'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedAuthenticatorEmailStageListFromJSON(json) {
34
+ return PaginatedAuthenticatorEmailStageListFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedAuthenticatorEmailStageListFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
42
+ 'results': (json['results'].map(AuthenticatorEmailStage_1.AuthenticatorEmailStageFromJSON)),
43
+ };
44
+ }
45
+ function PaginatedAuthenticatorEmailStageListToJSON(json) {
46
+ return PaginatedAuthenticatorEmailStageListToJSONTyped(json, false);
47
+ }
48
+ function PaginatedAuthenticatorEmailStageListToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value['pagination']),
54
+ 'results': (value['results'].map(AuthenticatorEmailStage_1.AuthenticatorEmailStageToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { EmailDevice } from './EmailDevice';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedEmailDeviceList
18
+ */
19
+ export interface PaginatedEmailDeviceList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedEmailDeviceList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<EmailDevice>}
29
+ * @memberof PaginatedEmailDeviceList
30
+ */
31
+ results: Array<EmailDevice>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedEmailDeviceList interface.
35
+ */
36
+ export declare function instanceOfPaginatedEmailDeviceList(value: object): value is PaginatedEmailDeviceList;
37
+ export declare function PaginatedEmailDeviceListFromJSON(json: any): PaginatedEmailDeviceList;
38
+ export declare function PaginatedEmailDeviceListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEmailDeviceList;
39
+ export declare function PaginatedEmailDeviceListToJSON(json: any): PaginatedEmailDeviceList;
40
+ export declare function PaginatedEmailDeviceListToJSONTyped(value?: PaginatedEmailDeviceList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.12.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedEmailDeviceList = instanceOfPaginatedEmailDeviceList;
17
+ exports.PaginatedEmailDeviceListFromJSON = PaginatedEmailDeviceListFromJSON;
18
+ exports.PaginatedEmailDeviceListFromJSONTyped = PaginatedEmailDeviceListFromJSONTyped;
19
+ exports.PaginatedEmailDeviceListToJSON = PaginatedEmailDeviceListToJSON;
20
+ exports.PaginatedEmailDeviceListToJSONTyped = PaginatedEmailDeviceListToJSONTyped;
21
+ const EmailDevice_1 = require("./EmailDevice");
22
+ const Pagination_1 = require("./Pagination");
23
+ /**
24
+ * Check if a given object implements the PaginatedEmailDeviceList interface.
25
+ */
26
+ function instanceOfPaginatedEmailDeviceList(value) {
27
+ if (!('pagination' in value) || value['pagination'] === undefined)
28
+ return false;
29
+ if (!('results' in value) || value['results'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedEmailDeviceListFromJSON(json) {
34
+ return PaginatedEmailDeviceListFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedEmailDeviceListFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
42
+ 'results': (json['results'].map(EmailDevice_1.EmailDeviceFromJSON)),
43
+ };
44
+ }
45
+ function PaginatedEmailDeviceListToJSON(json) {
46
+ return PaginatedEmailDeviceListToJSONTyped(json, false);
47
+ }
48
+ function PaginatedEmailDeviceListToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value['pagination']),
54
+ 'results': (value['results'].map(EmailDevice_1.EmailDeviceToJSON)),
55
+ };
56
+ }
@@ -0,0 +1,123 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.12.3
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlowSetRequest } from './FlowSetRequest';
13
+ /**
14
+ * AuthenticatorEmailStage Serializer
15
+ * @export
16
+ * @interface PatchedAuthenticatorEmailStageRequest
17
+ */
18
+ export interface PatchedAuthenticatorEmailStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PatchedAuthenticatorEmailStageRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof PatchedAuthenticatorEmailStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
33
+ * @type {string}
34
+ * @memberof PatchedAuthenticatorEmailStageRequest
35
+ */
36
+ configureFlow?: string | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof PatchedAuthenticatorEmailStageRequest
41
+ */
42
+ friendlyName?: string | null;
43
+ /**
44
+ * When enabled, global Email connection settings will be used and connection settings below will be ignored.
45
+ * @type {boolean}
46
+ * @memberof PatchedAuthenticatorEmailStageRequest
47
+ */
48
+ useGlobalSettings?: boolean;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PatchedAuthenticatorEmailStageRequest
53
+ */
54
+ host?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof PatchedAuthenticatorEmailStageRequest
59
+ */
60
+ port?: number;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof PatchedAuthenticatorEmailStageRequest
65
+ */
66
+ username?: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof PatchedAuthenticatorEmailStageRequest
71
+ */
72
+ password?: string;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof PatchedAuthenticatorEmailStageRequest
77
+ */
78
+ useTls?: boolean;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof PatchedAuthenticatorEmailStageRequest
83
+ */
84
+ useSsl?: boolean;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof PatchedAuthenticatorEmailStageRequest
89
+ */
90
+ timeout?: number;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof PatchedAuthenticatorEmailStageRequest
95
+ */
96
+ fromAddress?: string;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof PatchedAuthenticatorEmailStageRequest
101
+ */
102
+ subject?: string;
103
+ /**
104
+ * Time the token sent is valid (Format: hours=3,minutes=17,seconds=300).
105
+ * @type {string}
106
+ * @memberof PatchedAuthenticatorEmailStageRequest
107
+ */
108
+ tokenExpiry?: string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof PatchedAuthenticatorEmailStageRequest
113
+ */
114
+ template?: string;
115
+ }
116
+ /**
117
+ * Check if a given object implements the PatchedAuthenticatorEmailStageRequest interface.
118
+ */
119
+ export declare function instanceOfPatchedAuthenticatorEmailStageRequest(value: object): value is PatchedAuthenticatorEmailStageRequest;
120
+ export declare function PatchedAuthenticatorEmailStageRequestFromJSON(json: any): PatchedAuthenticatorEmailStageRequest;
121
+ export declare function PatchedAuthenticatorEmailStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorEmailStageRequest;
122
+ export declare function PatchedAuthenticatorEmailStageRequestToJSON(json: any): PatchedAuthenticatorEmailStageRequest;
123
+ export declare function PatchedAuthenticatorEmailStageRequestToJSONTyped(value?: PatchedAuthenticatorEmailStageRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.12.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPatchedAuthenticatorEmailStageRequest = instanceOfPatchedAuthenticatorEmailStageRequest;
17
+ exports.PatchedAuthenticatorEmailStageRequestFromJSON = PatchedAuthenticatorEmailStageRequestFromJSON;
18
+ exports.PatchedAuthenticatorEmailStageRequestFromJSONTyped = PatchedAuthenticatorEmailStageRequestFromJSONTyped;
19
+ exports.PatchedAuthenticatorEmailStageRequestToJSON = PatchedAuthenticatorEmailStageRequestToJSON;
20
+ exports.PatchedAuthenticatorEmailStageRequestToJSONTyped = PatchedAuthenticatorEmailStageRequestToJSONTyped;
21
+ const FlowSetRequest_1 = require("./FlowSetRequest");
22
+ /**
23
+ * Check if a given object implements the PatchedAuthenticatorEmailStageRequest interface.
24
+ */
25
+ function instanceOfPatchedAuthenticatorEmailStageRequest(value) {
26
+ return true;
27
+ }
28
+ function PatchedAuthenticatorEmailStageRequestFromJSON(json) {
29
+ return PatchedAuthenticatorEmailStageRequestFromJSONTyped(json, false);
30
+ }
31
+ function PatchedAuthenticatorEmailStageRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'flowSet': json['flow_set'] == null ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
38
+ 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'],
39
+ 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'],
40
+ 'useGlobalSettings': json['use_global_settings'] == null ? undefined : json['use_global_settings'],
41
+ 'host': json['host'] == null ? undefined : json['host'],
42
+ 'port': json['port'] == null ? undefined : json['port'],
43
+ 'username': json['username'] == null ? undefined : json['username'],
44
+ 'password': json['password'] == null ? undefined : json['password'],
45
+ 'useTls': json['use_tls'] == null ? undefined : json['use_tls'],
46
+ 'useSsl': json['use_ssl'] == null ? undefined : json['use_ssl'],
47
+ 'timeout': json['timeout'] == null ? undefined : json['timeout'],
48
+ 'fromAddress': json['from_address'] == null ? undefined : json['from_address'],
49
+ 'subject': json['subject'] == null ? undefined : json['subject'],
50
+ 'tokenExpiry': json['token_expiry'] == null ? undefined : json['token_expiry'],
51
+ 'template': json['template'] == null ? undefined : json['template'],
52
+ };
53
+ }
54
+ function PatchedAuthenticatorEmailStageRequestToJSON(json) {
55
+ return PatchedAuthenticatorEmailStageRequestToJSONTyped(json, false);
56
+ }
57
+ function PatchedAuthenticatorEmailStageRequestToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'name': value['name'],
63
+ 'flow_set': value['flowSet'] == null ? undefined : (value['flowSet'].map(FlowSetRequest_1.FlowSetRequestToJSON)),
64
+ 'configure_flow': value['configureFlow'],
65
+ 'friendly_name': value['friendlyName'],
66
+ 'use_global_settings': value['useGlobalSettings'],
67
+ 'host': value['host'],
68
+ 'port': value['port'],
69
+ 'username': value['username'],
70
+ 'password': value['password'],
71
+ 'use_tls': value['useTls'],
72
+ 'use_ssl': value['useSsl'],
73
+ 'timeout': value['timeout'],
74
+ 'from_address': value['fromAddress'],
75
+ 'subject': value['subject'],
76
+ 'token_expiry': value['tokenExpiry'],
77
+ 'template': value['template'],
78
+ };
79
+ }
@@ -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,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.12.3
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPatchedEmailDeviceRequest = instanceOfPatchedEmailDeviceRequest;
17
+ exports.PatchedEmailDeviceRequestFromJSON = PatchedEmailDeviceRequestFromJSON;
18
+ exports.PatchedEmailDeviceRequestFromJSONTyped = PatchedEmailDeviceRequestFromJSONTyped;
19
+ exports.PatchedEmailDeviceRequestToJSON = PatchedEmailDeviceRequestToJSON;
20
+ exports.PatchedEmailDeviceRequestToJSONTyped = PatchedEmailDeviceRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PatchedEmailDeviceRequest interface.
23
+ */
24
+ function instanceOfPatchedEmailDeviceRequest(value) {
25
+ return true;
26
+ }
27
+ function PatchedEmailDeviceRequestFromJSON(json) {
28
+ return PatchedEmailDeviceRequestFromJSONTyped(json, false);
29
+ }
30
+ function PatchedEmailDeviceRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ };
37
+ }
38
+ function PatchedEmailDeviceRequestToJSON(json) {
39
+ return PatchedEmailDeviceRequestToJSONTyped(json, false);
40
+ }
41
+ function PatchedEmailDeviceRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ };
48
+ }
@@ -40,6 +40,42 @@ export interface PatchedGeoIPPolicyRequest {
40
40
  * @memberof PatchedGeoIPPolicyRequest
41
41
  */
42
42
  countries?: Array<CountryCodeEnum>;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof PatchedGeoIPPolicyRequest
47
+ */
48
+ checkHistoryDistance?: boolean;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof PatchedGeoIPPolicyRequest
53
+ */
54
+ historyMaxDistanceKm?: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof PatchedGeoIPPolicyRequest
59
+ */
60
+ distanceToleranceKm?: number;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof PatchedGeoIPPolicyRequest
65
+ */
66
+ historyLoginCount?: number;
67
+ /**
68
+ *
69
+ * @type {boolean}
70
+ * @memberof PatchedGeoIPPolicyRequest
71
+ */
72
+ checkImpossibleTravel?: boolean;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof PatchedGeoIPPolicyRequest
77
+ */
78
+ impossibleToleranceKm?: number;
43
79
  }
44
80
  /**
45
81
  * Check if a given object implements the PatchedGeoIPPolicyRequest interface.
@@ -37,6 +37,12 @@ function PatchedGeoIPPolicyRequestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'executionLogging': json['execution_logging'] == null ? undefined : json['execution_logging'],
38
38
  'asns': json['asns'] == null ? undefined : json['asns'],
39
39
  'countries': json['countries'] == null ? undefined : (json['countries'].map(CountryCodeEnum_1.CountryCodeEnumFromJSON)),
40
+ 'checkHistoryDistance': json['check_history_distance'] == null ? undefined : json['check_history_distance'],
41
+ 'historyMaxDistanceKm': json['history_max_distance_km'] == null ? undefined : json['history_max_distance_km'],
42
+ 'distanceToleranceKm': json['distance_tolerance_km'] == null ? undefined : json['distance_tolerance_km'],
43
+ 'historyLoginCount': json['history_login_count'] == null ? undefined : json['history_login_count'],
44
+ 'checkImpossibleTravel': json['check_impossible_travel'] == null ? undefined : json['check_impossible_travel'],
45
+ 'impossibleToleranceKm': json['impossible_tolerance_km'] == null ? undefined : json['impossible_tolerance_km'],
40
46
  };
41
47
  }
42
48
  function PatchedGeoIPPolicyRequestToJSON(json) {
@@ -51,5 +57,11 @@ function PatchedGeoIPPolicyRequestToJSONTyped(value, ignoreDiscriminator = false
51
57
  'execution_logging': value['executionLogging'],
52
58
  'asns': value['asns'],
53
59
  'countries': value['countries'] == null ? undefined : (value['countries'].map(CountryCodeEnum_1.CountryCodeEnumToJSON)),
60
+ 'check_history_distance': value['checkHistoryDistance'],
61
+ 'history_max_distance_km': value['historyMaxDistanceKm'],
62
+ 'distance_tolerance_km': value['distanceToleranceKm'],
63
+ 'history_login_count': value['historyLoginCount'],
64
+ 'check_impossible_travel': value['checkImpossibleTravel'],
65
+ 'impossible_tolerance_km': value['impossibleToleranceKm'],
54
66
  };
55
67
  }
@@ -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';
@@ -43,6 +43,10 @@ __exportStar(require("./AuthenticatorDuoStage"), exports);
43
43
  __exportStar(require("./AuthenticatorDuoStageDeviceImportResponse"), exports);
44
44
  __exportStar(require("./AuthenticatorDuoStageManualDeviceImportRequest"), exports);
45
45
  __exportStar(require("./AuthenticatorDuoStageRequest"), exports);
46
+ __exportStar(require("./AuthenticatorEmailChallenge"), exports);
47
+ __exportStar(require("./AuthenticatorEmailChallengeResponseRequest"), exports);
48
+ __exportStar(require("./AuthenticatorEmailStage"), exports);
49
+ __exportStar(require("./AuthenticatorEmailStageRequest"), exports);
46
50
  __exportStar(require("./AuthenticatorEndpointGDTCStage"), exports);
47
51
  __exportStar(require("./AuthenticatorEndpointGDTCStageRequest"), exports);
48
52
  __exportStar(require("./AuthenticatorSMSChallenge"), exports);
@@ -130,6 +134,8 @@ __exportStar(require("./DuoDeviceRequest"), exports);
130
134
  __exportStar(require("./DuoResponseEnum"), exports);
131
135
  __exportStar(require("./EmailChallenge"), exports);
132
136
  __exportStar(require("./EmailChallengeResponseRequest"), exports);
137
+ __exportStar(require("./EmailDevice"), exports);
138
+ __exportStar(require("./EmailDeviceRequest"), exports);
133
139
  __exportStar(require("./EmailStage"), exports);
134
140
  __exportStar(require("./EmailStageRequest"), exports);
135
141
  __exportStar(require("./Endpoint"), exports);
@@ -285,6 +291,7 @@ __exportStar(require("./PaginatedApplicationEntitlementList"), exports);
285
291
  __exportStar(require("./PaginatedApplicationList"), exports);
286
292
  __exportStar(require("./PaginatedAuthenticatedSessionList"), exports);
287
293
  __exportStar(require("./PaginatedAuthenticatorDuoStageList"), exports);
294
+ __exportStar(require("./PaginatedAuthenticatorEmailStageList"), exports);
288
295
  __exportStar(require("./PaginatedAuthenticatorEndpointGDTCStageList"), exports);
289
296
  __exportStar(require("./PaginatedAuthenticatorSMSStageList"), exports);
290
297
  __exportStar(require("./PaginatedAuthenticatorStaticStageList"), exports);
@@ -303,6 +310,7 @@ __exportStar(require("./PaginatedDomainList"), exports);
303
310
  __exportStar(require("./PaginatedDummyPolicyList"), exports);
304
311
  __exportStar(require("./PaginatedDummyStageList"), exports);
305
312
  __exportStar(require("./PaginatedDuoDeviceList"), exports);
313
+ __exportStar(require("./PaginatedEmailDeviceList"), exports);
306
314
  __exportStar(require("./PaginatedEmailStageList"), exports);
307
315
  __exportStar(require("./PaginatedEndpointDeviceList"), exports);
308
316
  __exportStar(require("./PaginatedEndpointList"), exports);
@@ -423,6 +431,7 @@ __exportStar(require("./PasswordStageRequest"), exports);
423
431
  __exportStar(require("./PatchedApplicationEntitlementRequest"), exports);
424
432
  __exportStar(require("./PatchedApplicationRequest"), exports);
425
433
  __exportStar(require("./PatchedAuthenticatorDuoStageRequest"), exports);
434
+ __exportStar(require("./PatchedAuthenticatorEmailStageRequest"), exports);
426
435
  __exportStar(require("./PatchedAuthenticatorEndpointGDTCStageRequest"), exports);
427
436
  __exportStar(require("./PatchedAuthenticatorSMSStageRequest"), exports);
428
437
  __exportStar(require("./PatchedAuthenticatorStaticStageRequest"), exports);
@@ -441,6 +450,7 @@ __exportStar(require("./PatchedDomainRequest"), exports);
441
450
  __exportStar(require("./PatchedDummyPolicyRequest"), exports);
442
451
  __exportStar(require("./PatchedDummyStageRequest"), exports);
443
452
  __exportStar(require("./PatchedDuoDeviceRequest"), exports);
453
+ __exportStar(require("./PatchedEmailDeviceRequest"), exports);
444
454
  __exportStar(require("./PatchedEmailStageRequest"), exports);
445
455
  __exportStar(require("./PatchedEndpointDeviceRequest"), exports);
446
456
  __exportStar(require("./PatchedEndpointRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.12.3-1739449824",
3
+ "version": "2024.12.3-1739814462",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {