@goauthentik/api 2023.10.5-1703167718 → 2023.10.5-1703290840

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 (42) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/dist/apis/StagesApi.d.ts +24 -0
  3. package/dist/apis/StagesApi.js +27 -1
  4. package/dist/esm/apis/StagesApi.d.ts +24 -0
  5. package/dist/esm/apis/StagesApi.js +26 -0
  6. package/dist/esm/models/GeoipBindingEnum.d.ts +29 -0
  7. package/dist/esm/models/GeoipBindingEnum.js +36 -0
  8. package/dist/esm/models/NetworkBindingEnum.d.ts +29 -0
  9. package/dist/esm/models/NetworkBindingEnum.js +36 -0
  10. package/dist/esm/models/PatchedUserLoginStageRequest.d.ts +14 -0
  11. package/dist/esm/models/PatchedUserLoginStageRequest.js +6 -0
  12. package/dist/esm/models/ProviderTypeEnum.d.ts +2 -2
  13. package/dist/esm/models/ProviderTypeEnum.js +2 -2
  14. package/dist/esm/models/UserLoginStage.d.ts +14 -0
  15. package/dist/esm/models/UserLoginStage.js +6 -0
  16. package/dist/esm/models/UserLoginStageRequest.d.ts +14 -0
  17. package/dist/esm/models/UserLoginStageRequest.js +6 -0
  18. package/dist/esm/models/index.d.ts +2 -0
  19. package/dist/esm/models/index.js +2 -0
  20. package/dist/models/GeoipBindingEnum.d.ts +29 -0
  21. package/dist/models/GeoipBindingEnum.js +42 -0
  22. package/dist/models/NetworkBindingEnum.d.ts +29 -0
  23. package/dist/models/NetworkBindingEnum.js +42 -0
  24. package/dist/models/PatchedUserLoginStageRequest.d.ts +14 -0
  25. package/dist/models/PatchedUserLoginStageRequest.js +6 -0
  26. package/dist/models/ProviderTypeEnum.d.ts +2 -2
  27. package/dist/models/ProviderTypeEnum.js +2 -2
  28. package/dist/models/UserLoginStage.d.ts +14 -0
  29. package/dist/models/UserLoginStage.js +6 -0
  30. package/dist/models/UserLoginStageRequest.d.ts +14 -0
  31. package/dist/models/UserLoginStageRequest.js +6 -0
  32. package/dist/models/index.d.ts +2 -0
  33. package/dist/models/index.js +2 -0
  34. package/package.json +1 -1
  35. package/src/apis/StagesApi.ts +32 -0
  36. package/src/models/GeoipBindingEnum.ts +44 -0
  37. package/src/models/NetworkBindingEnum.ts +44 -0
  38. package/src/models/PatchedUserLoginStageRequest.ts +28 -0
  39. package/src/models/ProviderTypeEnum.ts +2 -2
  40. package/src/models/UserLoginStage.ts +28 -0
  41. package/src/models/UserLoginStageRequest.ts +28 -0
  42. package/src/models/index.ts +2 -0
@@ -0,0 +1,29 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2023.10.5
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
+ * * `no_binding` - No Binding
14
+ * * `bind_asn` - Bind Asn
15
+ * * `bind_asn_network` - Bind Asn Network
16
+ * * `bind_asn_network_ip` - Bind Asn Network Ip
17
+ * @export
18
+ */
19
+ export declare const NetworkBindingEnum: {
20
+ readonly NoBinding: "no_binding";
21
+ readonly BindAsn: "bind_asn";
22
+ readonly BindAsnNetwork: "bind_asn_network";
23
+ readonly BindAsnNetworkIp: "bind_asn_network_ip";
24
+ readonly UnknownDefaultOpenApi: "11184809";
25
+ };
26
+ export type NetworkBindingEnum = typeof NetworkBindingEnum[keyof typeof NetworkBindingEnum];
27
+ export declare function NetworkBindingEnumFromJSON(json: any): NetworkBindingEnum;
28
+ export declare function NetworkBindingEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkBindingEnum;
29
+ export declare function NetworkBindingEnumToJSON(value?: NetworkBindingEnum | null): any;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2023.10.5
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.NetworkBindingEnumToJSON = exports.NetworkBindingEnumFromJSONTyped = exports.NetworkBindingEnumFromJSON = exports.NetworkBindingEnum = void 0;
17
+ /**
18
+ * * `no_binding` - No Binding
19
+ * * `bind_asn` - Bind Asn
20
+ * * `bind_asn_network` - Bind Asn Network
21
+ * * `bind_asn_network_ip` - Bind Asn Network Ip
22
+ * @export
23
+ */
24
+ exports.NetworkBindingEnum = {
25
+ NoBinding: 'no_binding',
26
+ BindAsn: 'bind_asn',
27
+ BindAsnNetwork: 'bind_asn_network',
28
+ BindAsnNetworkIp: 'bind_asn_network_ip',
29
+ UnknownDefaultOpenApi: '11184809'
30
+ };
31
+ function NetworkBindingEnumFromJSON(json) {
32
+ return NetworkBindingEnumFromJSONTyped(json, false);
33
+ }
34
+ exports.NetworkBindingEnumFromJSON = NetworkBindingEnumFromJSON;
35
+ function NetworkBindingEnumFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ exports.NetworkBindingEnumFromJSONTyped = NetworkBindingEnumFromJSONTyped;
39
+ function NetworkBindingEnumToJSON(value) {
40
+ return value;
41
+ }
42
+ exports.NetworkBindingEnumToJSON = NetworkBindingEnumToJSON;
@@ -10,6 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { FlowSetRequest } from './FlowSetRequest';
13
+ import type { GeoipBindingEnum } from './GeoipBindingEnum';
14
+ import type { NetworkBindingEnum } from './NetworkBindingEnum';
13
15
  /**
14
16
  * UserLoginStage Serializer
15
17
  * @export
@@ -46,6 +48,18 @@ export interface PatchedUserLoginStageRequest {
46
48
  * @memberof PatchedUserLoginStageRequest
47
49
  */
48
50
  rememberMeOffset?: string;
51
+ /**
52
+ *
53
+ * @type {NetworkBindingEnum}
54
+ * @memberof PatchedUserLoginStageRequest
55
+ */
56
+ networkBinding?: NetworkBindingEnum;
57
+ /**
58
+ *
59
+ * @type {GeoipBindingEnum}
60
+ * @memberof PatchedUserLoginStageRequest
61
+ */
62
+ geoipBinding?: GeoipBindingEnum;
49
63
  }
50
64
  /**
51
65
  * Check if a given object implements the PatchedUserLoginStageRequest interface.
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.PatchedUserLoginStageRequestToJSON = exports.PatchedUserLoginStageRequestFromJSONTyped = exports.PatchedUserLoginStageRequestFromJSON = exports.instanceOfPatchedUserLoginStageRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const FlowSetRequest_1 = require("./FlowSetRequest");
19
+ const GeoipBindingEnum_1 = require("./GeoipBindingEnum");
20
+ const NetworkBindingEnum_1 = require("./NetworkBindingEnum");
19
21
  /**
20
22
  * Check if a given object implements the PatchedUserLoginStageRequest interface.
21
23
  */
@@ -38,6 +40,8 @@ function PatchedUserLoginStageRequestFromJSONTyped(json, ignoreDiscriminator) {
38
40
  'sessionDuration': !(0, runtime_1.exists)(json, 'session_duration') ? undefined : json['session_duration'],
39
41
  'terminateOtherSessions': !(0, runtime_1.exists)(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
40
42
  'rememberMeOffset': !(0, runtime_1.exists)(json, 'remember_me_offset') ? undefined : json['remember_me_offset'],
43
+ 'networkBinding': !(0, runtime_1.exists)(json, 'network_binding') ? undefined : (0, NetworkBindingEnum_1.NetworkBindingEnumFromJSON)(json['network_binding']),
44
+ 'geoipBinding': !(0, runtime_1.exists)(json, 'geoip_binding') ? undefined : (0, GeoipBindingEnum_1.GeoipBindingEnumFromJSON)(json['geoip_binding']),
41
45
  };
42
46
  }
43
47
  exports.PatchedUserLoginStageRequestFromJSONTyped = PatchedUserLoginStageRequestFromJSONTyped;
@@ -54,6 +58,8 @@ function PatchedUserLoginStageRequestToJSON(value) {
54
58
  'session_duration': value.sessionDuration,
55
59
  'terminate_other_sessions': value.terminateOtherSessions,
56
60
  'remember_me_offset': value.rememberMeOffset,
61
+ 'network_binding': (0, NetworkBindingEnum_1.NetworkBindingEnumToJSON)(value.networkBinding),
62
+ 'geoip_binding': (0, GeoipBindingEnum_1.GeoipBindingEnumToJSON)(value.geoipBinding),
57
63
  };
58
64
  }
59
65
  exports.PatchedUserLoginStageRequestToJSON = PatchedUserLoginStageRequestToJSON;
@@ -11,13 +11,13 @@
11
11
  */
12
12
  /**
13
13
  * * `apple` - Apple
14
+ * * `openidconnect` - OpenID Connect
14
15
  * * `azuread` - Azure AD
15
16
  * * `discord` - Discord
16
17
  * * `facebook` - Facebook
17
18
  * * `github` - GitHub
18
19
  * * `google` - Google
19
20
  * * `mailcow` - Mailcow
20
- * * `openidconnect` - OpenID Connect
21
21
  * * `okta` - Okta
22
22
  * * `patreon` - Patreon
23
23
  * * `reddit` - Reddit
@@ -27,13 +27,13 @@
27
27
  */
28
28
  export declare const ProviderTypeEnum: {
29
29
  readonly Apple: "apple";
30
+ readonly Openidconnect: "openidconnect";
30
31
  readonly Azuread: "azuread";
31
32
  readonly Discord: "discord";
32
33
  readonly Facebook: "facebook";
33
34
  readonly Github: "github";
34
35
  readonly Google: "google";
35
36
  readonly Mailcow: "mailcow";
36
- readonly Openidconnect: "openidconnect";
37
37
  readonly Okta: "okta";
38
38
  readonly Patreon: "patreon";
39
39
  readonly Reddit: "reddit";
@@ -16,13 +16,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProviderTypeEnumToJSON = exports.ProviderTypeEnumFromJSONTyped = exports.ProviderTypeEnumFromJSON = exports.ProviderTypeEnum = void 0;
17
17
  /**
18
18
  * * `apple` - Apple
19
+ * * `openidconnect` - OpenID Connect
19
20
  * * `azuread` - Azure AD
20
21
  * * `discord` - Discord
21
22
  * * `facebook` - Facebook
22
23
  * * `github` - GitHub
23
24
  * * `google` - Google
24
25
  * * `mailcow` - Mailcow
25
- * * `openidconnect` - OpenID Connect
26
26
  * * `okta` - Okta
27
27
  * * `patreon` - Patreon
28
28
  * * `reddit` - Reddit
@@ -32,13 +32,13 @@ exports.ProviderTypeEnumToJSON = exports.ProviderTypeEnumFromJSONTyped = exports
32
32
  */
33
33
  exports.ProviderTypeEnum = {
34
34
  Apple: 'apple',
35
+ Openidconnect: 'openidconnect',
35
36
  Azuread: 'azuread',
36
37
  Discord: 'discord',
37
38
  Facebook: 'facebook',
38
39
  Github: 'github',
39
40
  Google: 'google',
40
41
  Mailcow: 'mailcow',
41
- Openidconnect: 'openidconnect',
42
42
  Okta: 'okta',
43
43
  Patreon: 'patreon',
44
44
  Reddit: 'reddit',
@@ -10,6 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { FlowSet } from './FlowSet';
13
+ import type { GeoipBindingEnum } from './GeoipBindingEnum';
14
+ import type { NetworkBindingEnum } from './NetworkBindingEnum';
13
15
  /**
14
16
  * UserLoginStage Serializer
15
17
  * @export
@@ -76,6 +78,18 @@ export interface UserLoginStage {
76
78
  * @memberof UserLoginStage
77
79
  */
78
80
  rememberMeOffset?: string;
81
+ /**
82
+ *
83
+ * @type {NetworkBindingEnum}
84
+ * @memberof UserLoginStage
85
+ */
86
+ networkBinding?: NetworkBindingEnum;
87
+ /**
88
+ *
89
+ * @type {GeoipBindingEnum}
90
+ * @memberof UserLoginStage
91
+ */
92
+ geoipBinding?: GeoipBindingEnum;
79
93
  }
80
94
  /**
81
95
  * Check if a given object implements the UserLoginStage interface.
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserLoginStageToJSON = exports.UserLoginStageFromJSONTyped = exports.UserLoginStageFromJSON = exports.instanceOfUserLoginStage = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const FlowSet_1 = require("./FlowSet");
19
+ const GeoipBindingEnum_1 = require("./GeoipBindingEnum");
20
+ const NetworkBindingEnum_1 = require("./NetworkBindingEnum");
19
21
  /**
20
22
  * Check if a given object implements the UserLoginStage interface.
21
23
  */
@@ -49,6 +51,8 @@ function UserLoginStageFromJSONTyped(json, ignoreDiscriminator) {
49
51
  'sessionDuration': !(0, runtime_1.exists)(json, 'session_duration') ? undefined : json['session_duration'],
50
52
  'terminateOtherSessions': !(0, runtime_1.exists)(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
51
53
  'rememberMeOffset': !(0, runtime_1.exists)(json, 'remember_me_offset') ? undefined : json['remember_me_offset'],
54
+ 'networkBinding': !(0, runtime_1.exists)(json, 'network_binding') ? undefined : (0, NetworkBindingEnum_1.NetworkBindingEnumFromJSON)(json['network_binding']),
55
+ 'geoipBinding': !(0, runtime_1.exists)(json, 'geoip_binding') ? undefined : (0, GeoipBindingEnum_1.GeoipBindingEnumFromJSON)(json['geoip_binding']),
52
56
  };
53
57
  }
54
58
  exports.UserLoginStageFromJSONTyped = UserLoginStageFromJSONTyped;
@@ -65,6 +69,8 @@ function UserLoginStageToJSON(value) {
65
69
  'session_duration': value.sessionDuration,
66
70
  'terminate_other_sessions': value.terminateOtherSessions,
67
71
  'remember_me_offset': value.rememberMeOffset,
72
+ 'network_binding': (0, NetworkBindingEnum_1.NetworkBindingEnumToJSON)(value.networkBinding),
73
+ 'geoip_binding': (0, GeoipBindingEnum_1.GeoipBindingEnumToJSON)(value.geoipBinding),
68
74
  };
69
75
  }
70
76
  exports.UserLoginStageToJSON = UserLoginStageToJSON;
@@ -10,6 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { FlowSetRequest } from './FlowSetRequest';
13
+ import type { GeoipBindingEnum } from './GeoipBindingEnum';
14
+ import type { NetworkBindingEnum } from './NetworkBindingEnum';
13
15
  /**
14
16
  * UserLoginStage Serializer
15
17
  * @export
@@ -46,6 +48,18 @@ export interface UserLoginStageRequest {
46
48
  * @memberof UserLoginStageRequest
47
49
  */
48
50
  rememberMeOffset?: string;
51
+ /**
52
+ *
53
+ * @type {NetworkBindingEnum}
54
+ * @memberof UserLoginStageRequest
55
+ */
56
+ networkBinding?: NetworkBindingEnum;
57
+ /**
58
+ *
59
+ * @type {GeoipBindingEnum}
60
+ * @memberof UserLoginStageRequest
61
+ */
62
+ geoipBinding?: GeoipBindingEnum;
49
63
  }
50
64
  /**
51
65
  * Check if a given object implements the UserLoginStageRequest interface.
@@ -16,6 +16,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UserLoginStageRequestToJSON = exports.UserLoginStageRequestFromJSONTyped = exports.UserLoginStageRequestFromJSON = exports.instanceOfUserLoginStageRequest = void 0;
17
17
  const runtime_1 = require("../runtime");
18
18
  const FlowSetRequest_1 = require("./FlowSetRequest");
19
+ const GeoipBindingEnum_1 = require("./GeoipBindingEnum");
20
+ const NetworkBindingEnum_1 = require("./NetworkBindingEnum");
19
21
  /**
20
22
  * Check if a given object implements the UserLoginStageRequest interface.
21
23
  */
@@ -39,6 +41,8 @@ function UserLoginStageRequestFromJSONTyped(json, ignoreDiscriminator) {
39
41
  'sessionDuration': !(0, runtime_1.exists)(json, 'session_duration') ? undefined : json['session_duration'],
40
42
  'terminateOtherSessions': !(0, runtime_1.exists)(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
41
43
  'rememberMeOffset': !(0, runtime_1.exists)(json, 'remember_me_offset') ? undefined : json['remember_me_offset'],
44
+ 'networkBinding': !(0, runtime_1.exists)(json, 'network_binding') ? undefined : (0, NetworkBindingEnum_1.NetworkBindingEnumFromJSON)(json['network_binding']),
45
+ 'geoipBinding': !(0, runtime_1.exists)(json, 'geoip_binding') ? undefined : (0, GeoipBindingEnum_1.GeoipBindingEnumFromJSON)(json['geoip_binding']),
42
46
  };
43
47
  }
44
48
  exports.UserLoginStageRequestFromJSONTyped = UserLoginStageRequestFromJSONTyped;
@@ -55,6 +59,8 @@ function UserLoginStageRequestToJSON(value) {
55
59
  'session_duration': value.sessionDuration,
56
60
  'terminate_other_sessions': value.terminateOtherSessions,
57
61
  'remember_me_offset': value.rememberMeOffset,
62
+ 'network_binding': (0, NetworkBindingEnum_1.NetworkBindingEnumToJSON)(value.networkBinding),
63
+ 'geoip_binding': (0, GeoipBindingEnum_1.GeoipBindingEnumToJSON)(value.geoipBinding),
58
64
  };
59
65
  }
60
66
  exports.UserLoginStageRequestToJSON = UserLoginStageRequestToJSON;
@@ -128,6 +128,7 @@ export * from './FlowStageBinding';
128
128
  export * from './FlowStageBindingRequest';
129
129
  export * from './FooterLink';
130
130
  export * from './GenericError';
131
+ export * from './GeoipBindingEnum';
131
132
  export * from './Group';
132
133
  export * from './GroupMember';
133
134
  export * from './GroupMemberRequest';
@@ -168,6 +169,7 @@ export * from './Metadata';
168
169
  export * from './ModelEnum';
169
170
  export * from './ModelRequest';
170
171
  export * from './NameIdPolicyEnum';
172
+ export * from './NetworkBindingEnum';
171
173
  export * from './NotConfiguredActionEnum';
172
174
  export * from './Notification';
173
175
  export * from './NotificationRequest';
@@ -146,6 +146,7 @@ __exportStar(require("./FlowStageBinding"), exports);
146
146
  __exportStar(require("./FlowStageBindingRequest"), exports);
147
147
  __exportStar(require("./FooterLink"), exports);
148
148
  __exportStar(require("./GenericError"), exports);
149
+ __exportStar(require("./GeoipBindingEnum"), exports);
149
150
  __exportStar(require("./Group"), exports);
150
151
  __exportStar(require("./GroupMember"), exports);
151
152
  __exportStar(require("./GroupMemberRequest"), exports);
@@ -186,6 +187,7 @@ __exportStar(require("./Metadata"), exports);
186
187
  __exportStar(require("./ModelEnum"), exports);
187
188
  __exportStar(require("./ModelRequest"), exports);
188
189
  __exportStar(require("./NameIdPolicyEnum"), exports);
190
+ __exportStar(require("./NetworkBindingEnum"), exports);
189
191
  __exportStar(require("./NotConfiguredActionEnum"), exports);
190
192
  __exportStar(require("./Notification"), exports);
191
193
  __exportStar(require("./NotificationRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.10.5-1703167718",
3
+ "version": "2023.10.5-1703290840",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -1036,7 +1036,9 @@ export interface StagesUserLoginDestroyRequest {
1036
1036
  }
1037
1037
 
1038
1038
  export interface StagesUserLoginListRequest {
1039
+ geoipBinding?: StagesUserLoginListGeoipBindingEnum;
1039
1040
  name?: string;
1041
+ networkBinding?: StagesUserLoginListNetworkBindingEnum;
1040
1042
  ordering?: string;
1041
1043
  page?: number;
1042
1044
  pageSize?: number;
@@ -6691,10 +6693,18 @@ export class StagesApi extends runtime.BaseAPI {
6691
6693
  async stagesUserLoginListRaw(requestParameters: StagesUserLoginListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedUserLoginStageList>> {
6692
6694
  const queryParameters: any = {};
6693
6695
 
6696
+ if (requestParameters.geoipBinding !== undefined) {
6697
+ queryParameters['geoip_binding'] = requestParameters.geoipBinding;
6698
+ }
6699
+
6694
6700
  if (requestParameters.name !== undefined) {
6695
6701
  queryParameters['name'] = requestParameters.name;
6696
6702
  }
6697
6703
 
6704
+ if (requestParameters.networkBinding !== undefined) {
6705
+ queryParameters['network_binding'] = requestParameters.networkBinding;
6706
+ }
6707
+
6698
6708
  if (requestParameters.ordering !== undefined) {
6699
6709
  queryParameters['ordering'] = requestParameters.ordering;
6700
6710
  }
@@ -7560,6 +7570,28 @@ export const StagesPromptPromptsListTypeEnum = {
7560
7570
  UnknownDefaultOpenApi: '11184809'
7561
7571
  } as const;
7562
7572
  export type StagesPromptPromptsListTypeEnum = typeof StagesPromptPromptsListTypeEnum[keyof typeof StagesPromptPromptsListTypeEnum];
7573
+ /**
7574
+ * @export
7575
+ */
7576
+ export const StagesUserLoginListGeoipBindingEnum = {
7577
+ BindContinent: 'bind_continent',
7578
+ BindContinentCountry: 'bind_continent_country',
7579
+ BindContinentCountryCity: 'bind_continent_country_city',
7580
+ NoBinding: 'no_binding',
7581
+ UnknownDefaultOpenApi: '11184809'
7582
+ } as const;
7583
+ export type StagesUserLoginListGeoipBindingEnum = typeof StagesUserLoginListGeoipBindingEnum[keyof typeof StagesUserLoginListGeoipBindingEnum];
7584
+ /**
7585
+ * @export
7586
+ */
7587
+ export const StagesUserLoginListNetworkBindingEnum = {
7588
+ BindAsn: 'bind_asn',
7589
+ BindAsnNetwork: 'bind_asn_network',
7590
+ BindAsnNetworkIp: 'bind_asn_network_ip',
7591
+ NoBinding: 'no_binding',
7592
+ UnknownDefaultOpenApi: '11184809'
7593
+ } as const;
7594
+ export type StagesUserLoginListNetworkBindingEnum = typeof StagesUserLoginListNetworkBindingEnum[keyof typeof StagesUserLoginListNetworkBindingEnum];
7563
7595
  /**
7564
7596
  * @export
7565
7597
  */
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+
16
+ /**
17
+ * * `no_binding` - No Binding
18
+ * * `bind_continent` - Bind Continent
19
+ * * `bind_continent_country` - Bind Continent Country
20
+ * * `bind_continent_country_city` - Bind Continent Country City
21
+ * @export
22
+ */
23
+ export const GeoipBindingEnum = {
24
+ NoBinding: 'no_binding',
25
+ BindContinent: 'bind_continent',
26
+ BindContinentCountry: 'bind_continent_country',
27
+ BindContinentCountryCity: 'bind_continent_country_city',
28
+ UnknownDefaultOpenApi: '11184809'
29
+ } as const;
30
+ export type GeoipBindingEnum = typeof GeoipBindingEnum[keyof typeof GeoipBindingEnum];
31
+
32
+
33
+ export function GeoipBindingEnumFromJSON(json: any): GeoipBindingEnum {
34
+ return GeoipBindingEnumFromJSONTyped(json, false);
35
+ }
36
+
37
+ export function GeoipBindingEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GeoipBindingEnum {
38
+ return json as GeoipBindingEnum;
39
+ }
40
+
41
+ export function GeoipBindingEnumToJSON(value?: GeoipBindingEnum | null): any {
42
+ return value as any;
43
+ }
44
+
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2023.10.5
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
+
16
+ /**
17
+ * * `no_binding` - No Binding
18
+ * * `bind_asn` - Bind Asn
19
+ * * `bind_asn_network` - Bind Asn Network
20
+ * * `bind_asn_network_ip` - Bind Asn Network Ip
21
+ * @export
22
+ */
23
+ export const NetworkBindingEnum = {
24
+ NoBinding: 'no_binding',
25
+ BindAsn: 'bind_asn',
26
+ BindAsnNetwork: 'bind_asn_network',
27
+ BindAsnNetworkIp: 'bind_asn_network_ip',
28
+ UnknownDefaultOpenApi: '11184809'
29
+ } as const;
30
+ export type NetworkBindingEnum = typeof NetworkBindingEnum[keyof typeof NetworkBindingEnum];
31
+
32
+
33
+ export function NetworkBindingEnumFromJSON(json: any): NetworkBindingEnum {
34
+ return NetworkBindingEnumFromJSONTyped(json, false);
35
+ }
36
+
37
+ export function NetworkBindingEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NetworkBindingEnum {
38
+ return json as NetworkBindingEnum;
39
+ }
40
+
41
+ export function NetworkBindingEnumToJSON(value?: NetworkBindingEnum | null): any {
42
+ return value as any;
43
+ }
44
+
@@ -19,6 +19,18 @@ import {
19
19
  FlowSetRequestFromJSONTyped,
20
20
  FlowSetRequestToJSON,
21
21
  } from './FlowSetRequest';
22
+ import type { GeoipBindingEnum } from './GeoipBindingEnum';
23
+ import {
24
+ GeoipBindingEnumFromJSON,
25
+ GeoipBindingEnumFromJSONTyped,
26
+ GeoipBindingEnumToJSON,
27
+ } from './GeoipBindingEnum';
28
+ import type { NetworkBindingEnum } from './NetworkBindingEnum';
29
+ import {
30
+ NetworkBindingEnumFromJSON,
31
+ NetworkBindingEnumFromJSONTyped,
32
+ NetworkBindingEnumToJSON,
33
+ } from './NetworkBindingEnum';
22
34
 
23
35
  /**
24
36
  * UserLoginStage Serializer
@@ -56,6 +68,18 @@ export interface PatchedUserLoginStageRequest {
56
68
  * @memberof PatchedUserLoginStageRequest
57
69
  */
58
70
  rememberMeOffset?: string;
71
+ /**
72
+ *
73
+ * @type {NetworkBindingEnum}
74
+ * @memberof PatchedUserLoginStageRequest
75
+ */
76
+ networkBinding?: NetworkBindingEnum;
77
+ /**
78
+ *
79
+ * @type {GeoipBindingEnum}
80
+ * @memberof PatchedUserLoginStageRequest
81
+ */
82
+ geoipBinding?: GeoipBindingEnum;
59
83
  }
60
84
 
61
85
  /**
@@ -82,6 +106,8 @@ export function PatchedUserLoginStageRequestFromJSONTyped(json: any, ignoreDiscr
82
106
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
83
107
  'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
84
108
  'rememberMeOffset': !exists(json, 'remember_me_offset') ? undefined : json['remember_me_offset'],
109
+ 'networkBinding': !exists(json, 'network_binding') ? undefined : NetworkBindingEnumFromJSON(json['network_binding']),
110
+ 'geoipBinding': !exists(json, 'geoip_binding') ? undefined : GeoipBindingEnumFromJSON(json['geoip_binding']),
85
111
  };
86
112
  }
87
113
 
@@ -99,6 +125,8 @@ export function PatchedUserLoginStageRequestToJSON(value?: PatchedUserLoginStage
99
125
  'session_duration': value.sessionDuration,
100
126
  'terminate_other_sessions': value.terminateOtherSessions,
101
127
  'remember_me_offset': value.rememberMeOffset,
128
+ 'network_binding': NetworkBindingEnumToJSON(value.networkBinding),
129
+ 'geoip_binding': GeoipBindingEnumToJSON(value.geoipBinding),
102
130
  };
103
131
  }
104
132
 
@@ -15,13 +15,13 @@
15
15
 
16
16
  /**
17
17
  * * `apple` - Apple
18
+ * * `openidconnect` - OpenID Connect
18
19
  * * `azuread` - Azure AD
19
20
  * * `discord` - Discord
20
21
  * * `facebook` - Facebook
21
22
  * * `github` - GitHub
22
23
  * * `google` - Google
23
24
  * * `mailcow` - Mailcow
24
- * * `openidconnect` - OpenID Connect
25
25
  * * `okta` - Okta
26
26
  * * `patreon` - Patreon
27
27
  * * `reddit` - Reddit
@@ -31,13 +31,13 @@
31
31
  */
32
32
  export const ProviderTypeEnum = {
33
33
  Apple: 'apple',
34
+ Openidconnect: 'openidconnect',
34
35
  Azuread: 'azuread',
35
36
  Discord: 'discord',
36
37
  Facebook: 'facebook',
37
38
  Github: 'github',
38
39
  Google: 'google',
39
40
  Mailcow: 'mailcow',
40
- Openidconnect: 'openidconnect',
41
41
  Okta: 'okta',
42
42
  Patreon: 'patreon',
43
43
  Reddit: 'reddit',
@@ -19,6 +19,18 @@ import {
19
19
  FlowSetFromJSONTyped,
20
20
  FlowSetToJSON,
21
21
  } from './FlowSet';
22
+ import type { GeoipBindingEnum } from './GeoipBindingEnum';
23
+ import {
24
+ GeoipBindingEnumFromJSON,
25
+ GeoipBindingEnumFromJSONTyped,
26
+ GeoipBindingEnumToJSON,
27
+ } from './GeoipBindingEnum';
28
+ import type { NetworkBindingEnum } from './NetworkBindingEnum';
29
+ import {
30
+ NetworkBindingEnumFromJSON,
31
+ NetworkBindingEnumFromJSONTyped,
32
+ NetworkBindingEnumToJSON,
33
+ } from './NetworkBindingEnum';
22
34
 
23
35
  /**
24
36
  * UserLoginStage Serializer
@@ -86,6 +98,18 @@ export interface UserLoginStage {
86
98
  * @memberof UserLoginStage
87
99
  */
88
100
  rememberMeOffset?: string;
101
+ /**
102
+ *
103
+ * @type {NetworkBindingEnum}
104
+ * @memberof UserLoginStage
105
+ */
106
+ networkBinding?: NetworkBindingEnum;
107
+ /**
108
+ *
109
+ * @type {GeoipBindingEnum}
110
+ * @memberof UserLoginStage
111
+ */
112
+ geoipBinding?: GeoipBindingEnum;
89
113
  }
90
114
 
91
115
  /**
@@ -123,6 +147,8 @@ export function UserLoginStageFromJSONTyped(json: any, ignoreDiscriminator: bool
123
147
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
124
148
  'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
125
149
  'rememberMeOffset': !exists(json, 'remember_me_offset') ? undefined : json['remember_me_offset'],
150
+ 'networkBinding': !exists(json, 'network_binding') ? undefined : NetworkBindingEnumFromJSON(json['network_binding']),
151
+ 'geoipBinding': !exists(json, 'geoip_binding') ? undefined : GeoipBindingEnumFromJSON(json['geoip_binding']),
126
152
  };
127
153
  }
128
154
 
@@ -140,6 +166,8 @@ export function UserLoginStageToJSON(value?: UserLoginStage | null): any {
140
166
  'session_duration': value.sessionDuration,
141
167
  'terminate_other_sessions': value.terminateOtherSessions,
142
168
  'remember_me_offset': value.rememberMeOffset,
169
+ 'network_binding': NetworkBindingEnumToJSON(value.networkBinding),
170
+ 'geoip_binding': GeoipBindingEnumToJSON(value.geoipBinding),
143
171
  };
144
172
  }
145
173