@goauthentik/api 2024.2.2-1712238004 → 2024.2.2-1712571709

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 (65) hide show
  1. package/.openapi-generator/FILES +7 -4
  2. package/dist/apis/RbacApi.d.ts +2 -2
  3. package/dist/apis/RbacApi.js +2 -2
  4. package/dist/apis/StagesApi.d.ts +55 -26
  5. package/dist/apis/StagesApi.js +107 -24
  6. package/dist/esm/apis/RbacApi.d.ts +2 -2
  7. package/dist/esm/apis/RbacApi.js +2 -2
  8. package/dist/esm/apis/StagesApi.d.ts +55 -26
  9. package/dist/esm/apis/StagesApi.js +108 -25
  10. package/dist/esm/models/{AuthenticateWebAuthnStage.d.ts → AuthenticatorWebAuthnStage.d.ts} +33 -20
  11. package/dist/esm/models/{AuthenticateWebAuthnStage.js → AuthenticatorWebAuthnStage.js} +11 -6
  12. package/dist/{models/AuthenticateWebAuthnStageRequest.d.ts → esm/models/AuthenticatorWebAuthnStageRequest.d.ts} +21 -15
  13. package/dist/esm/models/{AuthenticateWebAuthnStageRequest.js → AuthenticatorWebAuthnStageRequest.js} +8 -6
  14. package/dist/esm/models/ModelEnum.d.ts +1 -1
  15. package/dist/esm/models/ModelEnum.js +1 -1
  16. package/dist/esm/models/PaginatedAuthenticatorWebAuthnStageList.d.ts +39 -0
  17. package/dist/esm/models/PaginatedAuthenticatorWebAuthnStageList.js +48 -0
  18. package/dist/esm/models/PaginatedWebAuthnDeviceTypeList.d.ts +39 -0
  19. package/dist/esm/models/{PaginatedAuthenticateWebAuthnStageList.js → PaginatedWebAuthnDeviceTypeList.js} +9 -9
  20. package/dist/{models/PatchedAuthenticateWebAuthnStageRequest.d.ts → esm/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts} +21 -15
  21. package/dist/esm/models/{PatchedAuthenticateWebAuthnStageRequest.js → PatchedAuthenticatorWebAuthnStageRequest.js} +8 -6
  22. package/dist/esm/models/WebAuthnDevice.d.ts +7 -0
  23. package/dist/esm/models/WebAuthnDevice.js +3 -0
  24. package/dist/esm/models/WebAuthnDeviceType.d.ts +37 -0
  25. package/dist/esm/models/WebAuthnDeviceType.js +46 -0
  26. package/dist/esm/models/WebAuthnDeviceTypeRequest.d.ts +37 -0
  27. package/dist/esm/models/WebAuthnDeviceTypeRequest.js +46 -0
  28. package/dist/esm/models/index.d.ts +7 -4
  29. package/dist/esm/models/index.js +7 -4
  30. package/dist/models/{AuthenticateWebAuthnStage.d.ts → AuthenticatorWebAuthnStage.d.ts} +33 -20
  31. package/dist/models/{AuthenticateWebAuthnStage.js → AuthenticatorWebAuthnStage.js} +16 -11
  32. package/dist/{esm/models/AuthenticateWebAuthnStageRequest.d.ts → models/AuthenticatorWebAuthnStageRequest.d.ts} +21 -15
  33. package/dist/models/{AuthenticateWebAuthnStageRequest.js → AuthenticatorWebAuthnStageRequest.js} +13 -11
  34. package/dist/models/ModelEnum.d.ts +1 -1
  35. package/dist/models/ModelEnum.js +1 -1
  36. package/dist/models/PaginatedAuthenticatorWebAuthnStageList.d.ts +39 -0
  37. package/dist/models/PaginatedAuthenticatorWebAuthnStageList.js +55 -0
  38. package/dist/models/PaginatedWebAuthnDeviceTypeList.d.ts +39 -0
  39. package/dist/models/PaginatedWebAuthnDeviceTypeList.js +55 -0
  40. package/dist/{esm/models/PatchedAuthenticateWebAuthnStageRequest.d.ts → models/PatchedAuthenticatorWebAuthnStageRequest.d.ts} +21 -15
  41. package/dist/models/{PatchedAuthenticateWebAuthnStageRequest.js → PatchedAuthenticatorWebAuthnStageRequest.js} +13 -11
  42. package/dist/models/WebAuthnDevice.d.ts +7 -0
  43. package/dist/models/WebAuthnDevice.js +3 -0
  44. package/dist/models/WebAuthnDeviceType.d.ts +37 -0
  45. package/dist/models/WebAuthnDeviceType.js +53 -0
  46. package/dist/models/WebAuthnDeviceTypeRequest.d.ts +37 -0
  47. package/dist/models/WebAuthnDeviceTypeRequest.js +53 -0
  48. package/dist/models/index.d.ts +7 -4
  49. package/dist/models/index.js +7 -4
  50. package/package.json +1 -1
  51. package/src/apis/RbacApi.ts +2 -2
  52. package/src/apis/StagesApi.ts +166 -49
  53. package/src/models/{AuthenticateWebAuthnStage.ts → AuthenticatorWebAuthnStage.ts} +43 -21
  54. package/src/models/{AuthenticateWebAuthnStageRequest.ts → AuthenticatorWebAuthnStageRequest.ts} +24 -16
  55. package/src/models/ModelEnum.ts +1 -1
  56. package/src/models/{PaginatedAuthenticateWebAuthnStageList.ts → PaginatedAuthenticatorWebAuthnStageList.ts} +19 -19
  57. package/src/models/PaginatedWebAuthnDeviceTypeList.ts +88 -0
  58. package/src/models/{PatchedAuthenticateWebAuthnStageRequest.ts → PatchedAuthenticatorWebAuthnStageRequest.ts} +24 -16
  59. package/src/models/WebAuthnDevice.ts +15 -0
  60. package/src/models/WebAuthnDeviceType.ts +75 -0
  61. package/src/models/WebAuthnDeviceTypeRequest.ts +75 -0
  62. package/src/models/index.ts +7 -4
  63. package/dist/esm/models/PaginatedAuthenticateWebAuthnStageList.d.ts +0 -39
  64. package/dist/models/PaginatedAuthenticateWebAuthnStageList.d.ts +0 -39
  65. package/dist/models/PaginatedAuthenticateWebAuthnStageList.js +0 -55
@@ -39,70 +39,76 @@ import {
39
39
  } from './UserVerificationEnum';
40
40
 
41
41
  /**
42
- * AuthenticateWebAuthnStage Serializer
42
+ * AuthenticatorWebAuthnStage Serializer
43
43
  * @export
44
- * @interface AuthenticateWebAuthnStageRequest
44
+ * @interface AuthenticatorWebAuthnStageRequest
45
45
  */
46
- export interface AuthenticateWebAuthnStageRequest {
46
+ export interface AuthenticatorWebAuthnStageRequest {
47
47
  /**
48
48
  *
49
49
  * @type {string}
50
- * @memberof AuthenticateWebAuthnStageRequest
50
+ * @memberof AuthenticatorWebAuthnStageRequest
51
51
  */
52
52
  name: string;
53
53
  /**
54
54
  *
55
55
  * @type {Array<FlowSetRequest>}
56
- * @memberof AuthenticateWebAuthnStageRequest
56
+ * @memberof AuthenticatorWebAuthnStageRequest
57
57
  */
58
58
  flowSet?: Array<FlowSetRequest>;
59
59
  /**
60
60
  * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
61
61
  * @type {string}
62
- * @memberof AuthenticateWebAuthnStageRequest
62
+ * @memberof AuthenticatorWebAuthnStageRequest
63
63
  */
64
64
  configureFlow?: string | null;
65
65
  /**
66
66
  *
67
67
  * @type {string}
68
- * @memberof AuthenticateWebAuthnStageRequest
68
+ * @memberof AuthenticatorWebAuthnStageRequest
69
69
  */
70
70
  friendlyName?: string | null;
71
71
  /**
72
72
  *
73
73
  * @type {UserVerificationEnum}
74
- * @memberof AuthenticateWebAuthnStageRequest
74
+ * @memberof AuthenticatorWebAuthnStageRequest
75
75
  */
76
76
  userVerification?: UserVerificationEnum;
77
77
  /**
78
78
  *
79
79
  * @type {AuthenticatorAttachmentEnum}
80
- * @memberof AuthenticateWebAuthnStageRequest
80
+ * @memberof AuthenticatorWebAuthnStageRequest
81
81
  */
82
82
  authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
83
83
  /**
84
84
  *
85
85
  * @type {ResidentKeyRequirementEnum}
86
- * @memberof AuthenticateWebAuthnStageRequest
86
+ * @memberof AuthenticatorWebAuthnStageRequest
87
87
  */
88
88
  residentKeyRequirement?: ResidentKeyRequirementEnum;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof AuthenticatorWebAuthnStageRequest
93
+ */
94
+ deviceTypeRestrictions?: Array<string>;
89
95
  }
90
96
 
91
97
  /**
92
- * Check if a given object implements the AuthenticateWebAuthnStageRequest interface.
98
+ * Check if a given object implements the AuthenticatorWebAuthnStageRequest interface.
93
99
  */
94
- export function instanceOfAuthenticateWebAuthnStageRequest(value: object): boolean {
100
+ export function instanceOfAuthenticatorWebAuthnStageRequest(value: object): boolean {
95
101
  let isInstance = true;
96
102
  isInstance = isInstance && "name" in value;
97
103
 
98
104
  return isInstance;
99
105
  }
100
106
 
101
- export function AuthenticateWebAuthnStageRequestFromJSON(json: any): AuthenticateWebAuthnStageRequest {
102
- return AuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
107
+ export function AuthenticatorWebAuthnStageRequestFromJSON(json: any): AuthenticatorWebAuthnStageRequest {
108
+ return AuthenticatorWebAuthnStageRequestFromJSONTyped(json, false);
103
109
  }
104
110
 
105
- export function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStageRequest {
111
+ export function AuthenticatorWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnStageRequest {
106
112
  if ((json === undefined) || (json === null)) {
107
113
  return json;
108
114
  }
@@ -115,10 +121,11 @@ export function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreD
115
121
  'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
116
122
  'authenticatorAttachment': !exists(json, 'authenticator_attachment') ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
117
123
  'residentKeyRequirement': !exists(json, 'resident_key_requirement') ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
124
+ 'deviceTypeRestrictions': !exists(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
118
125
  };
119
126
  }
120
127
 
121
- export function AuthenticateWebAuthnStageRequestToJSON(value?: AuthenticateWebAuthnStageRequest | null): any {
128
+ export function AuthenticatorWebAuthnStageRequestToJSON(value?: AuthenticatorWebAuthnStageRequest | null): any {
122
129
  if (value === undefined) {
123
130
  return undefined;
124
131
  }
@@ -134,6 +141,7 @@ export function AuthenticateWebAuthnStageRequestToJSON(value?: AuthenticateWebAu
134
141
  'user_verification': UserVerificationEnumToJSON(value.userVerification),
135
142
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value.authenticatorAttachment),
136
143
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value.residentKeyRequirement),
144
+ 'device_type_restrictions': value.deviceTypeRestrictions,
137
145
  };
138
146
  }
139
147
 
@@ -59,7 +59,7 @@ export const ModelEnum = {
59
59
  StagesAuthenticatorTotpAuthenticatortotpstage: 'authentik_stages_authenticator_totp.authenticatortotpstage',
60
60
  StagesAuthenticatorTotpTotpdevice: 'authentik_stages_authenticator_totp.totpdevice',
61
61
  StagesAuthenticatorValidateAuthenticatorvalidatestage: 'authentik_stages_authenticator_validate.authenticatorvalidatestage',
62
- StagesAuthenticatorWebauthnAuthenticatewebauthnstage: 'authentik_stages_authenticator_webauthn.authenticatewebauthnstage',
62
+ StagesAuthenticatorWebauthnAuthenticatorwebauthnstage: 'authentik_stages_authenticator_webauthn.authenticatorwebauthnstage',
63
63
  StagesAuthenticatorWebauthnWebauthndevice: 'authentik_stages_authenticator_webauthn.webauthndevice',
64
64
  StagesCaptchaCaptchastage: 'authentik_stages_captcha.captchastage',
65
65
  StagesConsentConsentstage: 'authentik_stages_consent.consentstage',
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { AuthenticateWebAuthnStage } from './AuthenticateWebAuthnStage';
16
+ import type { AuthenticatorWebAuthnStage } from './AuthenticatorWebAuthnStage';
17
17
  import {
18
- AuthenticateWebAuthnStageFromJSON,
19
- AuthenticateWebAuthnStageFromJSONTyped,
20
- AuthenticateWebAuthnStageToJSON,
21
- } from './AuthenticateWebAuthnStage';
18
+ AuthenticatorWebAuthnStageFromJSON,
19
+ AuthenticatorWebAuthnStageFromJSONTyped,
20
+ AuthenticatorWebAuthnStageToJSON,
21
+ } from './AuthenticatorWebAuthnStage';
22
22
  import type { Pagination } from './Pagination';
23
23
  import {
24
24
  PaginationFromJSON,
@@ -29,27 +29,27 @@ import {
29
29
  /**
30
30
  *
31
31
  * @export
32
- * @interface PaginatedAuthenticateWebAuthnStageList
32
+ * @interface PaginatedAuthenticatorWebAuthnStageList
33
33
  */
34
- export interface PaginatedAuthenticateWebAuthnStageList {
34
+ export interface PaginatedAuthenticatorWebAuthnStageList {
35
35
  /**
36
36
  *
37
37
  * @type {Pagination}
38
- * @memberof PaginatedAuthenticateWebAuthnStageList
38
+ * @memberof PaginatedAuthenticatorWebAuthnStageList
39
39
  */
40
40
  pagination: Pagination;
41
41
  /**
42
42
  *
43
- * @type {Array<AuthenticateWebAuthnStage>}
44
- * @memberof PaginatedAuthenticateWebAuthnStageList
43
+ * @type {Array<AuthenticatorWebAuthnStage>}
44
+ * @memberof PaginatedAuthenticatorWebAuthnStageList
45
45
  */
46
- results: Array<AuthenticateWebAuthnStage>;
46
+ results: Array<AuthenticatorWebAuthnStage>;
47
47
  }
48
48
 
49
49
  /**
50
- * Check if a given object implements the PaginatedAuthenticateWebAuthnStageList interface.
50
+ * Check if a given object implements the PaginatedAuthenticatorWebAuthnStageList interface.
51
51
  */
52
- export function instanceOfPaginatedAuthenticateWebAuthnStageList(value: object): boolean {
52
+ export function instanceOfPaginatedAuthenticatorWebAuthnStageList(value: object): boolean {
53
53
  let isInstance = true;
54
54
  isInstance = isInstance && "pagination" in value;
55
55
  isInstance = isInstance && "results" in value;
@@ -57,22 +57,22 @@ export function instanceOfPaginatedAuthenticateWebAuthnStageList(value: object):
57
57
  return isInstance;
58
58
  }
59
59
 
60
- export function PaginatedAuthenticateWebAuthnStageListFromJSON(json: any): PaginatedAuthenticateWebAuthnStageList {
61
- return PaginatedAuthenticateWebAuthnStageListFromJSONTyped(json, false);
60
+ export function PaginatedAuthenticatorWebAuthnStageListFromJSON(json: any): PaginatedAuthenticatorWebAuthnStageList {
61
+ return PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json, false);
62
62
  }
63
63
 
64
- export function PaginatedAuthenticateWebAuthnStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticateWebAuthnStageList {
64
+ export function PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticatorWebAuthnStageList {
65
65
  if ((json === undefined) || (json === null)) {
66
66
  return json;
67
67
  }
68
68
  return {
69
69
 
70
70
  'pagination': PaginationFromJSON(json['pagination']),
71
- 'results': ((json['results'] as Array<any>).map(AuthenticateWebAuthnStageFromJSON)),
71
+ 'results': ((json['results'] as Array<any>).map(AuthenticatorWebAuthnStageFromJSON)),
72
72
  };
73
73
  }
74
74
 
75
- export function PaginatedAuthenticateWebAuthnStageListToJSON(value?: PaginatedAuthenticateWebAuthnStageList | null): any {
75
+ export function PaginatedAuthenticatorWebAuthnStageListToJSON(value?: PaginatedAuthenticatorWebAuthnStageList | null): any {
76
76
  if (value === undefined) {
77
77
  return undefined;
78
78
  }
@@ -82,7 +82,7 @@ export function PaginatedAuthenticateWebAuthnStageListToJSON(value?: PaginatedAu
82
82
  return {
83
83
 
84
84
  'pagination': PaginationToJSON(value.pagination),
85
- 'results': ((value.results as Array<any>).map(AuthenticateWebAuthnStageToJSON)),
85
+ 'results': ((value.results as Array<any>).map(AuthenticatorWebAuthnStageToJSON)),
86
86
  };
87
87
  }
88
88
 
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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
+ import { exists, mapValues } from '../runtime';
16
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
23
+ import {
24
+ WebAuthnDeviceTypeFromJSON,
25
+ WebAuthnDeviceTypeFromJSONTyped,
26
+ WebAuthnDeviceTypeToJSON,
27
+ } from './WebAuthnDeviceType';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedWebAuthnDeviceTypeList
33
+ */
34
+ export interface PaginatedWebAuthnDeviceTypeList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedWebAuthnDeviceTypeList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<WebAuthnDeviceType>}
44
+ * @memberof PaginatedWebAuthnDeviceTypeList
45
+ */
46
+ results: Array<WebAuthnDeviceType>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedWebAuthnDeviceTypeList interface.
51
+ */
52
+ export function instanceOfPaginatedWebAuthnDeviceTypeList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedWebAuthnDeviceTypeListFromJSON(json: any): PaginatedWebAuthnDeviceTypeList {
61
+ return PaginatedWebAuthnDeviceTypeListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedWebAuthnDeviceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWebAuthnDeviceTypeList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(WebAuthnDeviceTypeFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedWebAuthnDeviceTypeListToJSON(value?: PaginatedWebAuthnDeviceTypeList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(WebAuthnDeviceTypeToJSON)),
86
+ };
87
+ }
88
+
@@ -39,69 +39,75 @@ import {
39
39
  } from './UserVerificationEnum';
40
40
 
41
41
  /**
42
- * AuthenticateWebAuthnStage Serializer
42
+ * AuthenticatorWebAuthnStage Serializer
43
43
  * @export
44
- * @interface PatchedAuthenticateWebAuthnStageRequest
44
+ * @interface PatchedAuthenticatorWebAuthnStageRequest
45
45
  */
46
- export interface PatchedAuthenticateWebAuthnStageRequest {
46
+ export interface PatchedAuthenticatorWebAuthnStageRequest {
47
47
  /**
48
48
  *
49
49
  * @type {string}
50
- * @memberof PatchedAuthenticateWebAuthnStageRequest
50
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
51
51
  */
52
52
  name?: string;
53
53
  /**
54
54
  *
55
55
  * @type {Array<FlowSetRequest>}
56
- * @memberof PatchedAuthenticateWebAuthnStageRequest
56
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
57
57
  */
58
58
  flowSet?: Array<FlowSetRequest>;
59
59
  /**
60
60
  * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
61
61
  * @type {string}
62
- * @memberof PatchedAuthenticateWebAuthnStageRequest
62
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
63
63
  */
64
64
  configureFlow?: string | null;
65
65
  /**
66
66
  *
67
67
  * @type {string}
68
- * @memberof PatchedAuthenticateWebAuthnStageRequest
68
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
69
69
  */
70
70
  friendlyName?: string | null;
71
71
  /**
72
72
  *
73
73
  * @type {UserVerificationEnum}
74
- * @memberof PatchedAuthenticateWebAuthnStageRequest
74
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
75
75
  */
76
76
  userVerification?: UserVerificationEnum;
77
77
  /**
78
78
  *
79
79
  * @type {AuthenticatorAttachmentEnum}
80
- * @memberof PatchedAuthenticateWebAuthnStageRequest
80
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
81
81
  */
82
82
  authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
83
83
  /**
84
84
  *
85
85
  * @type {ResidentKeyRequirementEnum}
86
- * @memberof PatchedAuthenticateWebAuthnStageRequest
86
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
87
87
  */
88
88
  residentKeyRequirement?: ResidentKeyRequirementEnum;
89
+ /**
90
+ *
91
+ * @type {Array<string>}
92
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
93
+ */
94
+ deviceTypeRestrictions?: Array<string>;
89
95
  }
90
96
 
91
97
  /**
92
- * Check if a given object implements the PatchedAuthenticateWebAuthnStageRequest interface.
98
+ * Check if a given object implements the PatchedAuthenticatorWebAuthnStageRequest interface.
93
99
  */
94
- export function instanceOfPatchedAuthenticateWebAuthnStageRequest(value: object): boolean {
100
+ export function instanceOfPatchedAuthenticatorWebAuthnStageRequest(value: object): boolean {
95
101
  let isInstance = true;
96
102
 
97
103
  return isInstance;
98
104
  }
99
105
 
100
- export function PatchedAuthenticateWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticateWebAuthnStageRequest {
101
- return PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
106
+ export function PatchedAuthenticatorWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticatorWebAuthnStageRequest {
107
+ return PatchedAuthenticatorWebAuthnStageRequestFromJSONTyped(json, false);
102
108
  }
103
109
 
104
- export function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticateWebAuthnStageRequest {
110
+ export function PatchedAuthenticatorWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorWebAuthnStageRequest {
105
111
  if ((json === undefined) || (json === null)) {
106
112
  return json;
107
113
  }
@@ -114,10 +120,11 @@ export function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json: any,
114
120
  'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
115
121
  'authenticatorAttachment': !exists(json, 'authenticator_attachment') ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
116
122
  'residentKeyRequirement': !exists(json, 'resident_key_requirement') ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
123
+ 'deviceTypeRestrictions': !exists(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
117
124
  };
118
125
  }
119
126
 
120
- export function PatchedAuthenticateWebAuthnStageRequestToJSON(value?: PatchedAuthenticateWebAuthnStageRequest | null): any {
127
+ export function PatchedAuthenticatorWebAuthnStageRequestToJSON(value?: PatchedAuthenticatorWebAuthnStageRequest | null): any {
121
128
  if (value === undefined) {
122
129
  return undefined;
123
130
  }
@@ -133,6 +140,7 @@ export function PatchedAuthenticateWebAuthnStageRequestToJSON(value?: PatchedAut
133
140
  'user_verification': UserVerificationEnumToJSON(value.userVerification),
134
141
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value.authenticatorAttachment),
135
142
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value.residentKeyRequirement),
143
+ 'device_type_restrictions': value.deviceTypeRestrictions,
136
144
  };
137
145
  }
138
146
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
17
+ import {
18
+ WebAuthnDeviceTypeFromJSON,
19
+ WebAuthnDeviceTypeFromJSONTyped,
20
+ WebAuthnDeviceTypeToJSON,
21
+ } from './WebAuthnDeviceType';
22
+
16
23
  /**
17
24
  * Serializer for WebAuthn authenticator devices
18
25
  * @export
@@ -37,6 +44,12 @@ export interface WebAuthnDevice {
37
44
  * @memberof WebAuthnDevice
38
45
  */
39
46
  readonly createdOn: Date;
47
+ /**
48
+ *
49
+ * @type {WebAuthnDeviceType}
50
+ * @memberof WebAuthnDevice
51
+ */
52
+ readonly deviceType: WebAuthnDeviceType | null;
40
53
  }
41
54
 
42
55
  /**
@@ -47,6 +60,7 @@ export function instanceOfWebAuthnDevice(value: object): boolean {
47
60
  isInstance = isInstance && "pk" in value;
48
61
  isInstance = isInstance && "name" in value;
49
62
  isInstance = isInstance && "createdOn" in value;
63
+ isInstance = isInstance && "deviceType" in value;
50
64
 
51
65
  return isInstance;
52
66
  }
@@ -64,6 +78,7 @@ export function WebAuthnDeviceFromJSONTyped(json: any, ignoreDiscriminator: bool
64
78
  'pk': json['pk'],
65
79
  'name': json['name'],
66
80
  'createdOn': (new Date(json['created_on'])),
81
+ 'deviceType': WebAuthnDeviceTypeFromJSON(json['device_type']),
67
82
  };
68
83
  }
69
84
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * WebAuthnDeviceType Serializer
18
+ * @export
19
+ * @interface WebAuthnDeviceType
20
+ */
21
+ export interface WebAuthnDeviceType {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof WebAuthnDeviceType
26
+ */
27
+ aaguid: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof WebAuthnDeviceType
32
+ */
33
+ description: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the WebAuthnDeviceType interface.
38
+ */
39
+ export function instanceOfWebAuthnDeviceType(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "aaguid" in value;
42
+ isInstance = isInstance && "description" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function WebAuthnDeviceTypeFromJSON(json: any): WebAuthnDeviceType {
48
+ return WebAuthnDeviceTypeFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function WebAuthnDeviceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAuthnDeviceType {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'aaguid': json['aaguid'],
58
+ 'description': json['description'],
59
+ };
60
+ }
61
+
62
+ export function WebAuthnDeviceTypeToJSON(value?: WebAuthnDeviceType | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'aaguid': value.aaguid,
72
+ 'description': value.description,
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.2
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
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ * WebAuthnDeviceType Serializer
18
+ * @export
19
+ * @interface WebAuthnDeviceTypeRequest
20
+ */
21
+ export interface WebAuthnDeviceTypeRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof WebAuthnDeviceTypeRequest
26
+ */
27
+ aaguid: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof WebAuthnDeviceTypeRequest
32
+ */
33
+ description: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the WebAuthnDeviceTypeRequest interface.
38
+ */
39
+ export function instanceOfWebAuthnDeviceTypeRequest(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "aaguid" in value;
42
+ isInstance = isInstance && "description" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function WebAuthnDeviceTypeRequestFromJSON(json: any): WebAuthnDeviceTypeRequest {
48
+ return WebAuthnDeviceTypeRequestFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function WebAuthnDeviceTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAuthnDeviceTypeRequest {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'aaguid': json['aaguid'],
58
+ 'description': json['description'],
59
+ };
60
+ }
61
+
62
+ export function WebAuthnDeviceTypeRequestToJSON(value?: WebAuthnDeviceTypeRequest | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'aaguid': value.aaguid,
72
+ 'description': value.description,
73
+ };
74
+ }
75
+
@@ -9,8 +9,6 @@ export * from './Application';
9
9
  export * from './ApplicationRequest';
10
10
  export * from './AuthModeEnum';
11
11
  export * from './AuthTypeEnum';
12
- export * from './AuthenticateWebAuthnStage';
13
- export * from './AuthenticateWebAuthnStageRequest';
14
12
  export * from './AuthenticatedSession';
15
13
  export * from './AuthenticatedSessionAsn';
16
14
  export * from './AuthenticatedSessionGeoIp';
@@ -44,6 +42,8 @@ export * from './AuthenticatorValidationChallenge';
44
42
  export * from './AuthenticatorValidationChallengeResponseRequest';
45
43
  export * from './AuthenticatorWebAuthnChallenge';
46
44
  export * from './AuthenticatorWebAuthnChallengeResponseRequest';
45
+ export * from './AuthenticatorWebAuthnStage';
46
+ export * from './AuthenticatorWebAuthnStageRequest';
47
47
  export * from './AutoSubmitChallengeResponseRequest';
48
48
  export * from './AutosubmitChallenge';
49
49
  export * from './BackendsEnum';
@@ -210,13 +210,13 @@ export * from './OutpostHealth';
210
210
  export * from './OutpostRequest';
211
211
  export * from './OutpostTypeEnum';
212
212
  export * from './PaginatedApplicationList';
213
- export * from './PaginatedAuthenticateWebAuthnStageList';
214
213
  export * from './PaginatedAuthenticatedSessionList';
215
214
  export * from './PaginatedAuthenticatorDuoStageList';
216
215
  export * from './PaginatedAuthenticatorSMSStageList';
217
216
  export * from './PaginatedAuthenticatorStaticStageList';
218
217
  export * from './PaginatedAuthenticatorTOTPStageList';
219
218
  export * from './PaginatedAuthenticatorValidateStageList';
219
+ export * from './PaginatedAuthenticatorWebAuthnStageList';
220
220
  export * from './PaginatedBlueprintInstanceList';
221
221
  export * from './PaginatedBrandList';
222
222
  export * from './PaginatedCaptchaStageList';
@@ -306,6 +306,7 @@ export * from './PaginatedUserSAMLSourceConnectionList';
306
306
  export * from './PaginatedUserSourceConnectionList';
307
307
  export * from './PaginatedUserWriteStageList';
308
308
  export * from './PaginatedWebAuthnDeviceList';
309
+ export * from './PaginatedWebAuthnDeviceTypeList';
309
310
  export * from './Pagination';
310
311
  export * from './PasswordChallenge';
311
312
  export * from './PasswordChallengeResponseRequest';
@@ -316,12 +317,12 @@ export * from './PasswordPolicyRequest';
316
317
  export * from './PasswordStage';
317
318
  export * from './PasswordStageRequest';
318
319
  export * from './PatchedApplicationRequest';
319
- export * from './PatchedAuthenticateWebAuthnStageRequest';
320
320
  export * from './PatchedAuthenticatorDuoStageRequest';
321
321
  export * from './PatchedAuthenticatorSMSStageRequest';
322
322
  export * from './PatchedAuthenticatorStaticStageRequest';
323
323
  export * from './PatchedAuthenticatorTOTPStageRequest';
324
324
  export * from './PatchedAuthenticatorValidateStageRequest';
325
+ export * from './PatchedAuthenticatorWebAuthnStageRequest';
325
326
  export * from './PatchedBlueprintInstanceRequest';
326
327
  export * from './PatchedBrandRequest';
327
328
  export * from './PatchedCaptchaStageRequest';
@@ -547,4 +548,6 @@ export * from './ValidationError';
547
548
  export * from './Version';
548
549
  export * from './WebAuthnDevice';
549
550
  export * from './WebAuthnDeviceRequest';
551
+ export * from './WebAuthnDeviceType';
552
+ export * from './WebAuthnDeviceTypeRequest';
550
553
  export * from './Workers';