@goauthentik/api 2022.4.1-1652171189 → 2022.4.1-1652209547

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.
@@ -78,6 +78,12 @@ export interface AuthenticatorValidateStage {
78
78
  * @memberof AuthenticatorValidateStage
79
79
  */
80
80
  configurationStages?: Array<string>;
81
+ /**
82
+ * If any of the user's device has been used within this threshold, this stage will be skipped
83
+ * @type {string}
84
+ * @memberof AuthenticatorValidateStage
85
+ */
86
+ lastAuthThreshold?: string;
81
87
  }
82
88
  export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
83
89
  export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
@@ -33,6 +33,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
33
33
  'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
34
34
  'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
35
35
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
36
+ 'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
36
37
  };
37
38
  }
38
39
  export function AuthenticatorValidateStageToJSON(value) {
@@ -48,5 +49,6 @@ export function AuthenticatorValidateStageToJSON(value) {
48
49
  'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
49
50
  'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
50
51
  'configuration_stages': value.configurationStages,
52
+ 'last_auth_threshold': value.lastAuthThreshold,
51
53
  };
52
54
  }
@@ -48,6 +48,12 @@ export interface AuthenticatorValidateStageRequest {
48
48
  * @memberof AuthenticatorValidateStageRequest
49
49
  */
50
50
  configurationStages?: Array<string>;
51
+ /**
52
+ * If any of the user's device has been used within this threshold, this stage will be skipped
53
+ * @type {string}
54
+ * @memberof AuthenticatorValidateStageRequest
55
+ */
56
+ lastAuthThreshold?: string;
51
57
  }
52
58
  export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
53
59
  export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
@@ -28,6 +28,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
28
28
  'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
29
29
  'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
30
30
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
31
+ 'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
31
32
  };
32
33
  }
33
34
  export function AuthenticatorValidateStageRequestToJSON(value) {
@@ -43,5 +44,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
43
44
  'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
44
45
  'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
45
46
  'configuration_stages': value.configurationStages,
47
+ 'last_auth_threshold': value.lastAuthThreshold,
46
48
  };
47
49
  }
@@ -48,6 +48,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
48
48
  * @memberof PatchedAuthenticatorValidateStageRequest
49
49
  */
50
50
  configurationStages?: Array<string>;
51
+ /**
52
+ * If any of the user's device has been used within this threshold, this stage will be skipped
53
+ * @type {string}
54
+ * @memberof PatchedAuthenticatorValidateStageRequest
55
+ */
56
+ lastAuthThreshold?: string;
51
57
  }
52
58
  export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
53
59
  export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
@@ -28,6 +28,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
28
28
  'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
29
29
  'deviceClasses': !exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnumFromJSON)),
30
30
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
31
+ 'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
31
32
  };
32
33
  }
33
34
  export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
@@ -43,5 +44,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
43
44
  'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
44
45
  'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnumToJSON)),
45
46
  'configuration_stages': value.configurationStages,
47
+ 'last_auth_threshold': value.lastAuthThreshold,
46
48
  };
47
49
  }
@@ -78,6 +78,12 @@ export interface AuthenticatorValidateStage {
78
78
  * @memberof AuthenticatorValidateStage
79
79
  */
80
80
  configurationStages?: Array<string>;
81
+ /**
82
+ * If any of the user's device has been used within this threshold, this stage will be skipped
83
+ * @type {string}
84
+ * @memberof AuthenticatorValidateStage
85
+ */
86
+ lastAuthThreshold?: string;
81
87
  }
82
88
  export declare function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage;
83
89
  export declare function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStage;
@@ -37,6 +37,7 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
38
38
  'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
39
39
  'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
40
+ 'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
40
41
  };
41
42
  }
42
43
  exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
@@ -53,6 +54,7 @@ function AuthenticatorValidateStageToJSON(value) {
53
54
  'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
54
55
  'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
55
56
  'configuration_stages': value.configurationStages,
57
+ 'last_auth_threshold': value.lastAuthThreshold,
56
58
  };
57
59
  }
58
60
  exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
@@ -48,6 +48,12 @@ export interface AuthenticatorValidateStageRequest {
48
48
  * @memberof AuthenticatorValidateStageRequest
49
49
  */
50
50
  configurationStages?: Array<string>;
51
+ /**
52
+ * If any of the user's device has been used within this threshold, this stage will be skipped
53
+ * @type {string}
54
+ * @memberof AuthenticatorValidateStageRequest
55
+ */
56
+ lastAuthThreshold?: string;
51
57
  }
52
58
  export declare function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest;
53
59
  export declare function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorValidateStageRequest;
@@ -32,6 +32,7 @@ function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminato
32
32
  'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
33
33
  'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
34
34
  'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
35
+ 'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
35
36
  };
36
37
  }
37
38
  exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
@@ -48,6 +49,7 @@ function AuthenticatorValidateStageRequestToJSON(value) {
48
49
  'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
49
50
  'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
50
51
  'configuration_stages': value.configurationStages,
52
+ 'last_auth_threshold': value.lastAuthThreshold,
51
53
  };
52
54
  }
53
55
  exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
@@ -48,6 +48,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
48
48
  * @memberof PatchedAuthenticatorValidateStageRequest
49
49
  */
50
50
  configurationStages?: Array<string>;
51
+ /**
52
+ * If any of the user's device has been used within this threshold, this stage will be skipped
53
+ * @type {string}
54
+ * @memberof PatchedAuthenticatorValidateStageRequest
55
+ */
56
+ lastAuthThreshold?: string;
51
57
  }
52
58
  export declare function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest;
53
59
  export declare function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorValidateStageRequest;
@@ -32,6 +32,7 @@ function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
32
32
  'notConfiguredAction': !runtime_1.exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnum_1.NotConfiguredActionEnumFromJSON(json['not_configured_action']),
33
33
  'deviceClasses': !runtime_1.exists(json, 'device_classes') ? undefined : (json['device_classes'].map(DeviceClassesEnum_1.DeviceClassesEnumFromJSON)),
34
34
  'configurationStages': !runtime_1.exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
35
+ 'lastAuthThreshold': !runtime_1.exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
35
36
  };
36
37
  }
37
38
  exports.PatchedAuthenticatorValidateStageRequestFromJSONTyped = PatchedAuthenticatorValidateStageRequestFromJSONTyped;
@@ -48,6 +49,7 @@ function PatchedAuthenticatorValidateStageRequestToJSON(value) {
48
49
  'not_configured_action': NotConfiguredActionEnum_1.NotConfiguredActionEnumToJSON(value.notConfiguredAction),
49
50
  'device_classes': value.deviceClasses === undefined ? undefined : (value.deviceClasses.map(DeviceClassesEnum_1.DeviceClassesEnumToJSON)),
50
51
  'configuration_stages': value.configurationStages,
52
+ 'last_auth_threshold': value.lastAuthThreshold,
51
53
  };
52
54
  }
53
55
  exports.PatchedAuthenticatorValidateStageRequestToJSON = PatchedAuthenticatorValidateStageRequestToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2022.4.1-1652171189",
3
+ "version": "2022.4.1-1652209547",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -98,6 +98,12 @@ export interface AuthenticatorValidateStage {
98
98
  * @memberof AuthenticatorValidateStage
99
99
  */
100
100
  configurationStages?: Array<string>;
101
+ /**
102
+ * If any of the user's device has been used within this threshold, this stage will be skipped
103
+ * @type {string}
104
+ * @memberof AuthenticatorValidateStage
105
+ */
106
+ lastAuthThreshold?: string;
101
107
  }
102
108
 
103
109
  export function AuthenticatorValidateStageFromJSON(json: any): AuthenticatorValidateStage {
@@ -120,6 +126,7 @@ export function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscrim
120
126
  'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
121
127
  'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
122
128
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
129
+ 'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
123
130
  };
124
131
  }
125
132
 
@@ -137,6 +144,7 @@ export function AuthenticatorValidateStageToJSON(value?: AuthenticatorValidateSt
137
144
  'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
138
145
  'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
139
146
  'configuration_stages': value.configurationStages,
147
+ 'last_auth_threshold': value.lastAuthThreshold,
140
148
  };
141
149
  }
142
150
 
@@ -68,6 +68,12 @@ export interface AuthenticatorValidateStageRequest {
68
68
  * @memberof AuthenticatorValidateStageRequest
69
69
  */
70
70
  configurationStages?: Array<string>;
71
+ /**
72
+ * If any of the user's device has been used within this threshold, this stage will be skipped
73
+ * @type {string}
74
+ * @memberof AuthenticatorValidateStageRequest
75
+ */
76
+ lastAuthThreshold?: string;
71
77
  }
72
78
 
73
79
  export function AuthenticatorValidateStageRequestFromJSON(json: any): AuthenticatorValidateStageRequest {
@@ -85,6 +91,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignore
85
91
  'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
86
92
  'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
87
93
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
94
+ 'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
88
95
  };
89
96
  }
90
97
 
@@ -102,6 +109,7 @@ export function AuthenticatorValidateStageRequestToJSON(value?: AuthenticatorVal
102
109
  'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
103
110
  'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
104
111
  'configuration_stages': value.configurationStages,
112
+ 'last_auth_threshold': value.lastAuthThreshold,
105
113
  };
106
114
  }
107
115
 
@@ -68,6 +68,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
68
68
  * @memberof PatchedAuthenticatorValidateStageRequest
69
69
  */
70
70
  configurationStages?: Array<string>;
71
+ /**
72
+ * If any of the user's device has been used within this threshold, this stage will be skipped
73
+ * @type {string}
74
+ * @memberof PatchedAuthenticatorValidateStageRequest
75
+ */
76
+ lastAuthThreshold?: string;
71
77
  }
72
78
 
73
79
  export function PatchedAuthenticatorValidateStageRequestFromJSON(json: any): PatchedAuthenticatorValidateStageRequest {
@@ -85,6 +91,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any,
85
91
  'notConfiguredAction': !exists(json, 'not_configured_action') ? undefined : NotConfiguredActionEnumFromJSON(json['not_configured_action']),
86
92
  'deviceClasses': !exists(json, 'device_classes') ? undefined : ((json['device_classes'] as Array<any>).map(DeviceClassesEnumFromJSON)),
87
93
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
94
+ 'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
88
95
  };
89
96
  }
90
97
 
@@ -102,6 +109,7 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value?: PatchedAu
102
109
  'not_configured_action': NotConfiguredActionEnumToJSON(value.notConfiguredAction),
103
110
  'device_classes': value.deviceClasses === undefined ? undefined : ((value.deviceClasses as Array<any>).map(DeviceClassesEnumToJSON)),
104
111
  'configuration_stages': value.configurationStages,
112
+ 'last_auth_threshold': value.lastAuthThreshold,
105
113
  };
106
114
  }
107
115