@goauthentik/api 2023.2.2-1677068362 → 2023.2.2-1677071401

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.
@@ -605,6 +605,7 @@ export interface StagesUserLoginListRequest {
605
605
  search?: string;
606
606
  sessionDuration?: string;
607
607
  stageUuid?: string;
608
+ terminateOtherSessions?: boolean;
608
609
  }
609
610
  export interface StagesUserLoginPartialUpdateRequest {
610
611
  stageUuid: string;
@@ -4905,6 +4905,9 @@ class StagesApi extends runtime.BaseAPI {
4905
4905
  if (requestParameters.stageUuid !== undefined) {
4906
4906
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
4907
4907
  }
4908
+ if (requestParameters.terminateOtherSessions !== undefined) {
4909
+ queryParameters['terminate_other_sessions'] = requestParameters.terminateOtherSessions;
4910
+ }
4908
4911
  const headerParameters = {};
4909
4912
  if (this.configuration && this.configuration.apiKey) {
4910
4913
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -605,6 +605,7 @@ export interface StagesUserLoginListRequest {
605
605
  search?: string;
606
606
  sessionDuration?: string;
607
607
  stageUuid?: string;
608
+ terminateOtherSessions?: boolean;
608
609
  }
609
610
  export interface StagesUserLoginPartialUpdateRequest {
610
611
  stageUuid: string;
@@ -4902,6 +4902,9 @@ export class StagesApi extends runtime.BaseAPI {
4902
4902
  if (requestParameters.stageUuid !== undefined) {
4903
4903
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
4904
4904
  }
4905
+ if (requestParameters.terminateOtherSessions !== undefined) {
4906
+ queryParameters['terminate_other_sessions'] = requestParameters.terminateOtherSessions;
4907
+ }
4905
4908
  const headerParameters = {};
4906
4909
  if (this.configuration && this.configuration.apiKey) {
4907
4910
  headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
@@ -34,6 +34,12 @@ export interface PatchedUserLoginStageRequest {
34
34
  * @memberof PatchedUserLoginStageRequest
35
35
  */
36
36
  sessionDuration?: string;
37
+ /**
38
+ * Terminate all other sessions of the user logging in.
39
+ * @type {boolean}
40
+ * @memberof PatchedUserLoginStageRequest
41
+ */
42
+ terminateOtherSessions?: boolean;
37
43
  }
38
44
  export declare function PatchedUserLoginStageRequestFromJSON(json: any): PatchedUserLoginStageRequest;
39
45
  export declare function PatchedUserLoginStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserLoginStageRequest;
@@ -24,6 +24,7 @@ export function PatchedUserLoginStageRequestFromJSONTyped(json, ignoreDiscrimina
24
24
  'name': !exists(json, 'name') ? undefined : json['name'],
25
25
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
26
26
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
27
+ 'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
27
28
  };
28
29
  }
29
30
  export function PatchedUserLoginStageRequestToJSON(value) {
@@ -37,5 +38,6 @@ export function PatchedUserLoginStageRequestToJSON(value) {
37
38
  'name': value.name,
38
39
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
39
40
  'session_duration': value.sessionDuration,
41
+ 'terminate_other_sessions': value.terminateOtherSessions,
40
42
  };
41
43
  }
@@ -64,6 +64,12 @@ export interface UserLoginStage {
64
64
  * @memberof UserLoginStage
65
65
  */
66
66
  sessionDuration?: string;
67
+ /**
68
+ * Terminate all other sessions of the user logging in.
69
+ * @type {boolean}
70
+ * @memberof UserLoginStage
71
+ */
72
+ terminateOtherSessions?: boolean;
67
73
  }
68
74
  export declare function UserLoginStageFromJSON(json: any): UserLoginStage;
69
75
  export declare function UserLoginStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginStage;
@@ -29,6 +29,7 @@ export function UserLoginStageFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'metaModelName': json['meta_model_name'],
30
30
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
31
31
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
32
+ 'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
32
33
  };
33
34
  }
34
35
  export function UserLoginStageToJSON(value) {
@@ -42,5 +43,6 @@ export function UserLoginStageToJSON(value) {
42
43
  'name': value.name,
43
44
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
44
45
  'session_duration': value.sessionDuration,
46
+ 'terminate_other_sessions': value.terminateOtherSessions,
45
47
  };
46
48
  }
@@ -34,6 +34,12 @@ export interface UserLoginStageRequest {
34
34
  * @memberof UserLoginStageRequest
35
35
  */
36
36
  sessionDuration?: string;
37
+ /**
38
+ * Terminate all other sessions of the user logging in.
39
+ * @type {boolean}
40
+ * @memberof UserLoginStageRequest
41
+ */
42
+ terminateOtherSessions?: boolean;
37
43
  }
38
44
  export declare function UserLoginStageRequestFromJSON(json: any): UserLoginStageRequest;
39
45
  export declare function UserLoginStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginStageRequest;
@@ -24,6 +24,7 @@ export function UserLoginStageRequestFromJSONTyped(json, ignoreDiscriminator) {
24
24
  'name': json['name'],
25
25
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
26
26
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
27
+ 'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
27
28
  };
28
29
  }
29
30
  export function UserLoginStageRequestToJSON(value) {
@@ -37,5 +38,6 @@ export function UserLoginStageRequestToJSON(value) {
37
38
  'name': value.name,
38
39
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
39
40
  'session_duration': value.sessionDuration,
41
+ 'terminate_other_sessions': value.terminateOtherSessions,
40
42
  };
41
43
  }
@@ -34,6 +34,12 @@ export interface PatchedUserLoginStageRequest {
34
34
  * @memberof PatchedUserLoginStageRequest
35
35
  */
36
36
  sessionDuration?: string;
37
+ /**
38
+ * Terminate all other sessions of the user logging in.
39
+ * @type {boolean}
40
+ * @memberof PatchedUserLoginStageRequest
41
+ */
42
+ terminateOtherSessions?: boolean;
37
43
  }
38
44
  export declare function PatchedUserLoginStageRequestFromJSON(json: any): PatchedUserLoginStageRequest;
39
45
  export declare function PatchedUserLoginStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedUserLoginStageRequest;
@@ -28,6 +28,7 @@ function PatchedUserLoginStageRequestFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
29
  'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
30
30
  'sessionDuration': !(0, runtime_1.exists)(json, 'session_duration') ? undefined : json['session_duration'],
31
+ 'terminateOtherSessions': !(0, runtime_1.exists)(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
31
32
  };
32
33
  }
33
34
  exports.PatchedUserLoginStageRequestFromJSONTyped = PatchedUserLoginStageRequestFromJSONTyped;
@@ -42,6 +43,7 @@ function PatchedUserLoginStageRequestToJSON(value) {
42
43
  'name': value.name,
43
44
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
44
45
  'session_duration': value.sessionDuration,
46
+ 'terminate_other_sessions': value.terminateOtherSessions,
45
47
  };
46
48
  }
47
49
  exports.PatchedUserLoginStageRequestToJSON = PatchedUserLoginStageRequestToJSON;
@@ -64,6 +64,12 @@ export interface UserLoginStage {
64
64
  * @memberof UserLoginStage
65
65
  */
66
66
  sessionDuration?: string;
67
+ /**
68
+ * Terminate all other sessions of the user logging in.
69
+ * @type {boolean}
70
+ * @memberof UserLoginStage
71
+ */
72
+ terminateOtherSessions?: boolean;
67
73
  }
68
74
  export declare function UserLoginStageFromJSON(json: any): UserLoginStage;
69
75
  export declare function UserLoginStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginStage;
@@ -33,6 +33,7 @@ function UserLoginStageFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'metaModelName': json['meta_model_name'],
34
34
  'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
35
35
  'sessionDuration': !(0, runtime_1.exists)(json, 'session_duration') ? undefined : json['session_duration'],
36
+ 'terminateOtherSessions': !(0, runtime_1.exists)(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
36
37
  };
37
38
  }
38
39
  exports.UserLoginStageFromJSONTyped = UserLoginStageFromJSONTyped;
@@ -47,6 +48,7 @@ function UserLoginStageToJSON(value) {
47
48
  'name': value.name,
48
49
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSet_1.FlowSetToJSON)),
49
50
  'session_duration': value.sessionDuration,
51
+ 'terminate_other_sessions': value.terminateOtherSessions,
50
52
  };
51
53
  }
52
54
  exports.UserLoginStageToJSON = UserLoginStageToJSON;
@@ -34,6 +34,12 @@ export interface UserLoginStageRequest {
34
34
  * @memberof UserLoginStageRequest
35
35
  */
36
36
  sessionDuration?: string;
37
+ /**
38
+ * Terminate all other sessions of the user logging in.
39
+ * @type {boolean}
40
+ * @memberof UserLoginStageRequest
41
+ */
42
+ terminateOtherSessions?: boolean;
37
43
  }
38
44
  export declare function UserLoginStageRequestFromJSON(json: any): UserLoginStageRequest;
39
45
  export declare function UserLoginStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLoginStageRequest;
@@ -28,6 +28,7 @@ function UserLoginStageRequestFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'name': json['name'],
29
29
  'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
30
30
  'sessionDuration': !(0, runtime_1.exists)(json, 'session_duration') ? undefined : json['session_duration'],
31
+ 'terminateOtherSessions': !(0, runtime_1.exists)(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
31
32
  };
32
33
  }
33
34
  exports.UserLoginStageRequestFromJSONTyped = UserLoginStageRequestFromJSONTyped;
@@ -42,6 +43,7 @@ function UserLoginStageRequestToJSON(value) {
42
43
  'name': value.name,
43
44
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
44
45
  'session_duration': value.sessionDuration,
46
+ 'terminate_other_sessions': value.terminateOtherSessions,
45
47
  };
46
48
  }
47
49
  exports.UserLoginStageRequestToJSON = UserLoginStageRequestToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.2.2-1677068362",
3
+ "version": "2023.2.2-1677071401",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -1028,6 +1028,7 @@ export interface StagesUserLoginListRequest {
1028
1028
  search?: string;
1029
1029
  sessionDuration?: string;
1030
1030
  stageUuid?: string;
1031
+ terminateOtherSessions?: boolean;
1031
1032
  }
1032
1033
 
1033
1034
  export interface StagesUserLoginPartialUpdateRequest {
@@ -6640,6 +6641,10 @@ export class StagesApi extends runtime.BaseAPI {
6640
6641
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
6641
6642
  }
6642
6643
 
6644
+ if (requestParameters.terminateOtherSessions !== undefined) {
6645
+ queryParameters['terminate_other_sessions'] = requestParameters.terminateOtherSessions;
6646
+ }
6647
+
6643
6648
  const headerParameters: runtime.HTTPHeaders = {};
6644
6649
 
6645
6650
  if (this.configuration && this.configuration.apiKey) {
@@ -44,6 +44,12 @@ export interface PatchedUserLoginStageRequest {
44
44
  * @memberof PatchedUserLoginStageRequest
45
45
  */
46
46
  sessionDuration?: string;
47
+ /**
48
+ * Terminate all other sessions of the user logging in.
49
+ * @type {boolean}
50
+ * @memberof PatchedUserLoginStageRequest
51
+ */
52
+ terminateOtherSessions?: boolean;
47
53
  }
48
54
 
49
55
  export function PatchedUserLoginStageRequestFromJSON(json: any): PatchedUserLoginStageRequest {
@@ -59,6 +65,7 @@ export function PatchedUserLoginStageRequestFromJSONTyped(json: any, ignoreDiscr
59
65
  'name': !exists(json, 'name') ? undefined : json['name'],
60
66
  'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
61
67
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
68
+ 'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
62
69
  };
63
70
  }
64
71
 
@@ -74,6 +81,7 @@ export function PatchedUserLoginStageRequestToJSON(value?: PatchedUserLoginStage
74
81
  'name': value.name,
75
82
  'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
76
83
  'session_duration': value.sessionDuration,
84
+ 'terminate_other_sessions': value.terminateOtherSessions,
77
85
  };
78
86
  }
79
87
 
@@ -74,6 +74,12 @@ export interface UserLoginStage {
74
74
  * @memberof UserLoginStage
75
75
  */
76
76
  sessionDuration?: string;
77
+ /**
78
+ * Terminate all other sessions of the user logging in.
79
+ * @type {boolean}
80
+ * @memberof UserLoginStage
81
+ */
82
+ terminateOtherSessions?: boolean;
77
83
  }
78
84
 
79
85
  export function UserLoginStageFromJSON(json: any): UserLoginStage {
@@ -94,6 +100,7 @@ export function UserLoginStageFromJSONTyped(json: any, ignoreDiscriminator: bool
94
100
  'metaModelName': json['meta_model_name'],
95
101
  'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
96
102
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
103
+ 'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
97
104
  };
98
105
  }
99
106
 
@@ -109,6 +116,7 @@ export function UserLoginStageToJSON(value?: UserLoginStage | null): any {
109
116
  'name': value.name,
110
117
  'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
111
118
  'session_duration': value.sessionDuration,
119
+ 'terminate_other_sessions': value.terminateOtherSessions,
112
120
  };
113
121
  }
114
122
 
@@ -44,6 +44,12 @@ export interface UserLoginStageRequest {
44
44
  * @memberof UserLoginStageRequest
45
45
  */
46
46
  sessionDuration?: string;
47
+ /**
48
+ * Terminate all other sessions of the user logging in.
49
+ * @type {boolean}
50
+ * @memberof UserLoginStageRequest
51
+ */
52
+ terminateOtherSessions?: boolean;
47
53
  }
48
54
 
49
55
  export function UserLoginStageRequestFromJSON(json: any): UserLoginStageRequest {
@@ -59,6 +65,7 @@ export function UserLoginStageRequestFromJSONTyped(json: any, ignoreDiscriminato
59
65
  'name': json['name'],
60
66
  'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
61
67
  'sessionDuration': !exists(json, 'session_duration') ? undefined : json['session_duration'],
68
+ 'terminateOtherSessions': !exists(json, 'terminate_other_sessions') ? undefined : json['terminate_other_sessions'],
62
69
  };
63
70
  }
64
71
 
@@ -74,6 +81,7 @@ export function UserLoginStageRequestToJSON(value?: UserLoginStageRequest | null
74
81
  'name': value.name,
75
82
  'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
76
83
  'session_duration': value.sessionDuration,
84
+ 'terminate_other_sessions': value.terminateOtherSessions,
77
85
  };
78
86
  }
79
87