@goauthentik/api 2024.2.2-1712833564 → 2024.2.2-1712833826

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ import type { DeviceClassesEnum } from './DeviceClassesEnum';
13
13
  import type { FlowSet } from './FlowSet';
14
14
  import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
15
15
  import type { UserVerificationEnum } from './UserVerificationEnum';
16
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
16
17
  /**
17
18
  * AuthenticatorValidateStage Serializer
18
19
  * @export
@@ -91,6 +92,18 @@ export interface AuthenticatorValidateStage {
91
92
  * @memberof AuthenticatorValidateStage
92
93
  */
93
94
  webauthnUserVerification?: UserVerificationEnum;
95
+ /**
96
+ *
97
+ * @type {Array<string>}
98
+ * @memberof AuthenticatorValidateStage
99
+ */
100
+ webauthnAllowedDeviceTypes?: Array<string>;
101
+ /**
102
+ *
103
+ * @type {Array<WebAuthnDeviceType>}
104
+ * @memberof AuthenticatorValidateStage
105
+ */
106
+ readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
94
107
  }
95
108
  /**
96
109
  * Check if a given object implements the AuthenticatorValidateStage interface.
@@ -16,6 +16,7 @@ import { DeviceClassesEnumFromJSON, DeviceClassesEnumToJSON, } from './DeviceCla
16
16
  import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
17
17
  import { NotConfiguredActionEnumFromJSON, NotConfiguredActionEnumToJSON, } from './NotConfiguredActionEnum';
18
18
  import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
19
+ import { WebAuthnDeviceTypeFromJSON, } from './WebAuthnDeviceType';
19
20
  /**
20
21
  * Check if a given object implements the AuthenticatorValidateStage interface.
21
22
  */
@@ -27,6 +28,7 @@ export function instanceOfAuthenticatorValidateStage(value) {
27
28
  isInstance = isInstance && "verboseName" in value;
28
29
  isInstance = isInstance && "verboseNamePlural" in value;
29
30
  isInstance = isInstance && "metaModelName" in value;
31
+ isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
30
32
  return isInstance;
31
33
  }
32
34
  export function AuthenticatorValidateStageFromJSON(json) {
@@ -49,6 +51,8 @@ export function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminato
49
51
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
50
52
  'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
51
53
  'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
54
+ 'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
55
+ 'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceTypeFromJSON)),
52
56
  };
53
57
  }
54
58
  export function AuthenticatorValidateStageToJSON(value) {
@@ -66,5 +70,6 @@ export function AuthenticatorValidateStageToJSON(value) {
66
70
  'configuration_stages': value.configurationStages,
67
71
  'last_auth_threshold': value.lastAuthThreshold,
68
72
  'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
73
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
69
74
  };
70
75
  }
@@ -61,6 +61,12 @@ export interface AuthenticatorValidateStageRequest {
61
61
  * @memberof AuthenticatorValidateStageRequest
62
62
  */
63
63
  webauthnUserVerification?: UserVerificationEnum;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof AuthenticatorValidateStageRequest
68
+ */
69
+ webauthnAllowedDeviceTypes?: Array<string>;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the AuthenticatorValidateStageRequest interface.
@@ -39,6 +39,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
39
39
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
40
40
  'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
41
41
  'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
42
+ 'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
42
43
  };
43
44
  }
44
45
  export function AuthenticatorValidateStageRequestToJSON(value) {
@@ -56,5 +57,6 @@ export function AuthenticatorValidateStageRequestToJSON(value) {
56
57
  'configuration_stages': value.configurationStages,
57
58
  'last_auth_threshold': value.lastAuthThreshold,
58
59
  'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
60
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
59
61
  };
60
62
  }
@@ -61,6 +61,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
61
61
  * @memberof PatchedAuthenticatorValidateStageRequest
62
62
  */
63
63
  webauthnUserVerification?: UserVerificationEnum;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof PatchedAuthenticatorValidateStageRequest
68
+ */
69
+ webauthnAllowedDeviceTypes?: Array<string>;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the PatchedAuthenticatorValidateStageRequest interface.
@@ -38,6 +38,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, igno
38
38
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
39
39
  'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
40
40
  'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
41
+ 'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
41
42
  };
42
43
  }
43
44
  export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
@@ -55,5 +56,6 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value) {
55
56
  'configuration_stages': value.configurationStages,
56
57
  'last_auth_threshold': value.lastAuthThreshold,
57
58
  'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
59
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
58
60
  };
59
61
  }
@@ -13,6 +13,7 @@ import type { DeviceClassesEnum } from './DeviceClassesEnum';
13
13
  import type { FlowSet } from './FlowSet';
14
14
  import type { NotConfiguredActionEnum } from './NotConfiguredActionEnum';
15
15
  import type { UserVerificationEnum } from './UserVerificationEnum';
16
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
16
17
  /**
17
18
  * AuthenticatorValidateStage Serializer
18
19
  * @export
@@ -91,6 +92,18 @@ export interface AuthenticatorValidateStage {
91
92
  * @memberof AuthenticatorValidateStage
92
93
  */
93
94
  webauthnUserVerification?: UserVerificationEnum;
95
+ /**
96
+ *
97
+ * @type {Array<string>}
98
+ * @memberof AuthenticatorValidateStage
99
+ */
100
+ webauthnAllowedDeviceTypes?: Array<string>;
101
+ /**
102
+ *
103
+ * @type {Array<WebAuthnDeviceType>}
104
+ * @memberof AuthenticatorValidateStage
105
+ */
106
+ readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
94
107
  }
95
108
  /**
96
109
  * Check if a given object implements the AuthenticatorValidateStage interface.
@@ -19,6 +19,7 @@ const DeviceClassesEnum_1 = require("./DeviceClassesEnum");
19
19
  const FlowSet_1 = require("./FlowSet");
20
20
  const NotConfiguredActionEnum_1 = require("./NotConfiguredActionEnum");
21
21
  const UserVerificationEnum_1 = require("./UserVerificationEnum");
22
+ const WebAuthnDeviceType_1 = require("./WebAuthnDeviceType");
22
23
  /**
23
24
  * Check if a given object implements the AuthenticatorValidateStage interface.
24
25
  */
@@ -30,6 +31,7 @@ function instanceOfAuthenticatorValidateStage(value) {
30
31
  isInstance = isInstance && "verboseName" in value;
31
32
  isInstance = isInstance && "verboseNamePlural" in value;
32
33
  isInstance = isInstance && "metaModelName" in value;
34
+ isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
33
35
  return isInstance;
34
36
  }
35
37
  exports.instanceOfAuthenticatorValidateStage = instanceOfAuthenticatorValidateStage;
@@ -54,6 +56,8 @@ function AuthenticatorValidateStageFromJSONTyped(json, ignoreDiscriminator) {
54
56
  'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
55
57
  'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
56
58
  'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
59
+ 'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
60
+ 'webauthnAllowedDeviceTypesObj': (json['webauthn_allowed_device_types_obj'].map(WebAuthnDeviceType_1.WebAuthnDeviceTypeFromJSON)),
57
61
  };
58
62
  }
59
63
  exports.AuthenticatorValidateStageFromJSONTyped = AuthenticatorValidateStageFromJSONTyped;
@@ -72,6 +76,7 @@ function AuthenticatorValidateStageToJSON(value) {
72
76
  'configuration_stages': value.configurationStages,
73
77
  'last_auth_threshold': value.lastAuthThreshold,
74
78
  'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
79
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
75
80
  };
76
81
  }
77
82
  exports.AuthenticatorValidateStageToJSON = AuthenticatorValidateStageToJSON;
@@ -61,6 +61,12 @@ export interface AuthenticatorValidateStageRequest {
61
61
  * @memberof AuthenticatorValidateStageRequest
62
62
  */
63
63
  webauthnUserVerification?: UserVerificationEnum;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof AuthenticatorValidateStageRequest
68
+ */
69
+ webauthnAllowedDeviceTypes?: Array<string>;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the AuthenticatorValidateStageRequest interface.
@@ -44,6 +44,7 @@ function AuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscriminato
44
44
  'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
45
45
  'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
46
46
  'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
47
+ 'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
47
48
  };
48
49
  }
49
50
  exports.AuthenticatorValidateStageRequestFromJSONTyped = AuthenticatorValidateStageRequestFromJSONTyped;
@@ -62,6 +63,7 @@ function AuthenticatorValidateStageRequestToJSON(value) {
62
63
  'configuration_stages': value.configurationStages,
63
64
  'last_auth_threshold': value.lastAuthThreshold,
64
65
  'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
66
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
65
67
  };
66
68
  }
67
69
  exports.AuthenticatorValidateStageRequestToJSON = AuthenticatorValidateStageRequestToJSON;
@@ -61,6 +61,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
61
61
  * @memberof PatchedAuthenticatorValidateStageRequest
62
62
  */
63
63
  webauthnUserVerification?: UserVerificationEnum;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof PatchedAuthenticatorValidateStageRequest
68
+ */
69
+ webauthnAllowedDeviceTypes?: Array<string>;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the PatchedAuthenticatorValidateStageRequest interface.
@@ -43,6 +43,7 @@ function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json, ignoreDiscr
43
43
  'configurationStages': !(0, runtime_1.exists)(json, 'configuration_stages') ? undefined : json['configuration_stages'],
44
44
  'lastAuthThreshold': !(0, runtime_1.exists)(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
45
45
  'webauthnUserVerification': !(0, runtime_1.exists)(json, 'webauthn_user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['webauthn_user_verification']),
46
+ 'webauthnAllowedDeviceTypes': !(0, runtime_1.exists)(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
46
47
  };
47
48
  }
48
49
  exports.PatchedAuthenticatorValidateStageRequestFromJSONTyped = PatchedAuthenticatorValidateStageRequestFromJSONTyped;
@@ -61,6 +62,7 @@ function PatchedAuthenticatorValidateStageRequestToJSON(value) {
61
62
  'configuration_stages': value.configurationStages,
62
63
  'last_auth_threshold': value.lastAuthThreshold,
63
64
  'webauthn_user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.webauthnUserVerification),
65
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
64
66
  };
65
67
  }
66
68
  exports.PatchedAuthenticatorValidateStageRequestToJSON = PatchedAuthenticatorValidateStageRequestToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2024.2.2-1712833564",
3
+ "version": "2024.2.2-1712833826",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -37,6 +37,12 @@ import {
37
37
  UserVerificationEnumFromJSONTyped,
38
38
  UserVerificationEnumToJSON,
39
39
  } from './UserVerificationEnum';
40
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
41
+ import {
42
+ WebAuthnDeviceTypeFromJSON,
43
+ WebAuthnDeviceTypeFromJSONTyped,
44
+ WebAuthnDeviceTypeToJSON,
45
+ } from './WebAuthnDeviceType';
40
46
 
41
47
  /**
42
48
  * AuthenticatorValidateStage Serializer
@@ -116,6 +122,18 @@ export interface AuthenticatorValidateStage {
116
122
  * @memberof AuthenticatorValidateStage
117
123
  */
118
124
  webauthnUserVerification?: UserVerificationEnum;
125
+ /**
126
+ *
127
+ * @type {Array<string>}
128
+ * @memberof AuthenticatorValidateStage
129
+ */
130
+ webauthnAllowedDeviceTypes?: Array<string>;
131
+ /**
132
+ *
133
+ * @type {Array<WebAuthnDeviceType>}
134
+ * @memberof AuthenticatorValidateStage
135
+ */
136
+ readonly webauthnAllowedDeviceTypesObj: Array<WebAuthnDeviceType>;
119
137
  }
120
138
 
121
139
  /**
@@ -129,6 +147,7 @@ export function instanceOfAuthenticatorValidateStage(value: object): boolean {
129
147
  isInstance = isInstance && "verboseName" in value;
130
148
  isInstance = isInstance && "verboseNamePlural" in value;
131
149
  isInstance = isInstance && "metaModelName" in value;
150
+ isInstance = isInstance && "webauthnAllowedDeviceTypesObj" in value;
132
151
 
133
152
  return isInstance;
134
153
  }
@@ -155,6 +174,8 @@ export function AuthenticatorValidateStageFromJSONTyped(json: any, ignoreDiscrim
155
174
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
156
175
  'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
157
176
  'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
177
+ 'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
178
+ 'webauthnAllowedDeviceTypesObj': ((json['webauthn_allowed_device_types_obj'] as Array<any>).map(WebAuthnDeviceTypeFromJSON)),
158
179
  };
159
180
  }
160
181
 
@@ -174,6 +195,7 @@ export function AuthenticatorValidateStageToJSON(value?: AuthenticatorValidateSt
174
195
  'configuration_stages': value.configurationStages,
175
196
  'last_auth_threshold': value.lastAuthThreshold,
176
197
  'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
198
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
177
199
  };
178
200
  }
179
201
 
@@ -86,6 +86,12 @@ export interface AuthenticatorValidateStageRequest {
86
86
  * @memberof AuthenticatorValidateStageRequest
87
87
  */
88
88
  webauthnUserVerification?: UserVerificationEnum;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof AuthenticatorValidateStageRequest
93
+ */
94
+ webauthnAllowedDeviceTypes?: Array<string>;
89
95
  }
90
96
 
91
97
  /**
@@ -115,6 +121,7 @@ export function AuthenticatorValidateStageRequestFromJSONTyped(json: any, ignore
115
121
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
116
122
  'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
117
123
  'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
124
+ 'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
118
125
  };
119
126
  }
120
127
 
@@ -134,6 +141,7 @@ export function AuthenticatorValidateStageRequestToJSON(value?: AuthenticatorVal
134
141
  'configuration_stages': value.configurationStages,
135
142
  'last_auth_threshold': value.lastAuthThreshold,
136
143
  'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
144
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
137
145
  };
138
146
  }
139
147
 
@@ -86,6 +86,12 @@ export interface PatchedAuthenticatorValidateStageRequest {
86
86
  * @memberof PatchedAuthenticatorValidateStageRequest
87
87
  */
88
88
  webauthnUserVerification?: UserVerificationEnum;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof PatchedAuthenticatorValidateStageRequest
93
+ */
94
+ webauthnAllowedDeviceTypes?: Array<string>;
89
95
  }
90
96
 
91
97
  /**
@@ -114,6 +120,7 @@ export function PatchedAuthenticatorValidateStageRequestFromJSONTyped(json: any,
114
120
  'configurationStages': !exists(json, 'configuration_stages') ? undefined : json['configuration_stages'],
115
121
  'lastAuthThreshold': !exists(json, 'last_auth_threshold') ? undefined : json['last_auth_threshold'],
116
122
  'webauthnUserVerification': !exists(json, 'webauthn_user_verification') ? undefined : UserVerificationEnumFromJSON(json['webauthn_user_verification']),
123
+ 'webauthnAllowedDeviceTypes': !exists(json, 'webauthn_allowed_device_types') ? undefined : json['webauthn_allowed_device_types'],
117
124
  };
118
125
  }
119
126
 
@@ -133,6 +140,7 @@ export function PatchedAuthenticatorValidateStageRequestToJSON(value?: PatchedAu
133
140
  'configuration_stages': value.configurationStages,
134
141
  'last_auth_threshold': value.lastAuthThreshold,
135
142
  'webauthn_user_verification': UserVerificationEnumToJSON(value.webauthnUserVerification),
143
+ 'webauthn_allowed_device_types': value.webauthnAllowedDeviceTypes,
136
144
  };
137
145
  }
138
146