@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
@@ -14,58 +14,64 @@ import type { FlowSetRequest } from './FlowSetRequest';
14
14
  import type { ResidentKeyRequirementEnum } from './ResidentKeyRequirementEnum';
15
15
  import type { UserVerificationEnum } from './UserVerificationEnum';
16
16
  /**
17
- * AuthenticateWebAuthnStage Serializer
17
+ * AuthenticatorWebAuthnStage Serializer
18
18
  * @export
19
- * @interface AuthenticateWebAuthnStageRequest
19
+ * @interface AuthenticatorWebAuthnStageRequest
20
20
  */
21
- export interface AuthenticateWebAuthnStageRequest {
21
+ export interface AuthenticatorWebAuthnStageRequest {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof AuthenticateWebAuthnStageRequest
25
+ * @memberof AuthenticatorWebAuthnStageRequest
26
26
  */
27
27
  name: string;
28
28
  /**
29
29
  *
30
30
  * @type {Array<FlowSetRequest>}
31
- * @memberof AuthenticateWebAuthnStageRequest
31
+ * @memberof AuthenticatorWebAuthnStageRequest
32
32
  */
33
33
  flowSet?: Array<FlowSetRequest>;
34
34
  /**
35
35
  * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
36
36
  * @type {string}
37
- * @memberof AuthenticateWebAuthnStageRequest
37
+ * @memberof AuthenticatorWebAuthnStageRequest
38
38
  */
39
39
  configureFlow?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
- * @memberof AuthenticateWebAuthnStageRequest
43
+ * @memberof AuthenticatorWebAuthnStageRequest
44
44
  */
45
45
  friendlyName?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {UserVerificationEnum}
49
- * @memberof AuthenticateWebAuthnStageRequest
49
+ * @memberof AuthenticatorWebAuthnStageRequest
50
50
  */
51
51
  userVerification?: UserVerificationEnum;
52
52
  /**
53
53
  *
54
54
  * @type {AuthenticatorAttachmentEnum}
55
- * @memberof AuthenticateWebAuthnStageRequest
55
+ * @memberof AuthenticatorWebAuthnStageRequest
56
56
  */
57
57
  authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
58
58
  /**
59
59
  *
60
60
  * @type {ResidentKeyRequirementEnum}
61
- * @memberof AuthenticateWebAuthnStageRequest
61
+ * @memberof AuthenticatorWebAuthnStageRequest
62
62
  */
63
63
  residentKeyRequirement?: ResidentKeyRequirementEnum;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof AuthenticatorWebAuthnStageRequest
68
+ */
69
+ deviceTypeRestrictions?: Array<string>;
64
70
  }
65
71
  /**
66
- * Check if a given object implements the AuthenticateWebAuthnStageRequest interface.
72
+ * Check if a given object implements the AuthenticatorWebAuthnStageRequest interface.
67
73
  */
68
- export declare function instanceOfAuthenticateWebAuthnStageRequest(value: object): boolean;
69
- export declare function AuthenticateWebAuthnStageRequestFromJSON(json: any): AuthenticateWebAuthnStageRequest;
70
- export declare function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStageRequest;
71
- export declare function AuthenticateWebAuthnStageRequestToJSON(value?: AuthenticateWebAuthnStageRequest | null): any;
74
+ export declare function instanceOfAuthenticatorWebAuthnStageRequest(value: object): boolean;
75
+ export declare function AuthenticatorWebAuthnStageRequestFromJSON(json: any): AuthenticatorWebAuthnStageRequest;
76
+ export declare function AuthenticatorWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnStageRequest;
77
+ export declare function AuthenticatorWebAuthnStageRequestToJSON(value?: AuthenticatorWebAuthnStageRequest | null): any;
@@ -17,17 +17,17 @@ import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest'
17
17
  import { ResidentKeyRequirementEnumFromJSON, ResidentKeyRequirementEnumToJSON, } from './ResidentKeyRequirementEnum';
18
18
  import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
19
19
  /**
20
- * Check if a given object implements the AuthenticateWebAuthnStageRequest interface.
20
+ * Check if a given object implements the AuthenticatorWebAuthnStageRequest interface.
21
21
  */
22
- export function instanceOfAuthenticateWebAuthnStageRequest(value) {
22
+ export function instanceOfAuthenticatorWebAuthnStageRequest(value) {
23
23
  let isInstance = true;
24
24
  isInstance = isInstance && "name" in value;
25
25
  return isInstance;
26
26
  }
27
- export function AuthenticateWebAuthnStageRequestFromJSON(json) {
28
- return AuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
27
+ export function AuthenticatorWebAuthnStageRequestFromJSON(json) {
28
+ return AuthenticatorWebAuthnStageRequestFromJSONTyped(json, false);
29
29
  }
30
- export function AuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator) {
30
+ export function AuthenticatorWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator) {
31
31
  if ((json === undefined) || (json === null)) {
32
32
  return json;
33
33
  }
@@ -39,9 +39,10 @@ export function AuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscri
39
39
  'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
40
40
  'authenticatorAttachment': !exists(json, 'authenticator_attachment') ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
41
41
  'residentKeyRequirement': !exists(json, 'resident_key_requirement') ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
42
+ 'deviceTypeRestrictions': !exists(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
42
43
  };
43
44
  }
44
- export function AuthenticateWebAuthnStageRequestToJSON(value) {
45
+ export function AuthenticatorWebAuthnStageRequestToJSON(value) {
45
46
  if (value === undefined) {
46
47
  return undefined;
47
48
  }
@@ -56,5 +57,6 @@ export function AuthenticateWebAuthnStageRequestToJSON(value) {
56
57
  'user_verification': UserVerificationEnumToJSON(value.userVerification),
57
58
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value.authenticatorAttachment),
58
59
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value.residentKeyRequirement),
60
+ 'device_type_restrictions': value.deviceTypeRestrictions,
59
61
  };
60
62
  }
@@ -55,7 +55,7 @@ export declare const ModelEnum: {
55
55
  readonly StagesAuthenticatorTotpAuthenticatortotpstage: "authentik_stages_authenticator_totp.authenticatortotpstage";
56
56
  readonly StagesAuthenticatorTotpTotpdevice: "authentik_stages_authenticator_totp.totpdevice";
57
57
  readonly StagesAuthenticatorValidateAuthenticatorvalidatestage: "authentik_stages_authenticator_validate.authenticatorvalidatestage";
58
- readonly StagesAuthenticatorWebauthnAuthenticatewebauthnstage: "authentik_stages_authenticator_webauthn.authenticatewebauthnstage";
58
+ readonly StagesAuthenticatorWebauthnAuthenticatorwebauthnstage: "authentik_stages_authenticator_webauthn.authenticatorwebauthnstage";
59
59
  readonly StagesAuthenticatorWebauthnWebauthndevice: "authentik_stages_authenticator_webauthn.webauthndevice";
60
60
  readonly StagesCaptchaCaptchastage: "authentik_stages_captcha.captchastage";
61
61
  readonly StagesConsentConsentstage: "authentik_stages_consent.consentstage";
@@ -57,7 +57,7 @@ export const ModelEnum = {
57
57
  StagesAuthenticatorTotpAuthenticatortotpstage: 'authentik_stages_authenticator_totp.authenticatortotpstage',
58
58
  StagesAuthenticatorTotpTotpdevice: 'authentik_stages_authenticator_totp.totpdevice',
59
59
  StagesAuthenticatorValidateAuthenticatorvalidatestage: 'authentik_stages_authenticator_validate.authenticatorvalidatestage',
60
- StagesAuthenticatorWebauthnAuthenticatewebauthnstage: 'authentik_stages_authenticator_webauthn.authenticatewebauthnstage',
60
+ StagesAuthenticatorWebauthnAuthenticatorwebauthnstage: 'authentik_stages_authenticator_webauthn.authenticatorwebauthnstage',
61
61
  StagesAuthenticatorWebauthnWebauthndevice: 'authentik_stages_authenticator_webauthn.webauthndevice',
62
62
  StagesCaptchaCaptchastage: 'authentik_stages_captcha.captchastage',
63
63
  StagesConsentConsentstage: 'authentik_stages_consent.consentstage',
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
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
+ import type { AuthenticatorWebAuthnStage } from './AuthenticatorWebAuthnStage';
13
+ import type { Pagination } from './Pagination';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedAuthenticatorWebAuthnStageList
18
+ */
19
+ export interface PaginatedAuthenticatorWebAuthnStageList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedAuthenticatorWebAuthnStageList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<AuthenticatorWebAuthnStage>}
29
+ * @memberof PaginatedAuthenticatorWebAuthnStageList
30
+ */
31
+ results: Array<AuthenticatorWebAuthnStage>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedAuthenticatorWebAuthnStageList interface.
35
+ */
36
+ export declare function instanceOfPaginatedAuthenticatorWebAuthnStageList(value: object): boolean;
37
+ export declare function PaginatedAuthenticatorWebAuthnStageListFromJSON(json: any): PaginatedAuthenticatorWebAuthnStageList;
38
+ export declare function PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAuthenticatorWebAuthnStageList;
39
+ export declare function PaginatedAuthenticatorWebAuthnStageListToJSON(value?: PaginatedAuthenticatorWebAuthnStageList | null): any;
@@ -0,0 +1,48 @@
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
+ import { AuthenticatorWebAuthnStageFromJSON, AuthenticatorWebAuthnStageToJSON, } from './AuthenticatorWebAuthnStage';
15
+ import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
16
+ /**
17
+ * Check if a given object implements the PaginatedAuthenticatorWebAuthnStageList interface.
18
+ */
19
+ export function instanceOfPaginatedAuthenticatorWebAuthnStageList(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pagination" in value;
22
+ isInstance = isInstance && "results" in value;
23
+ return isInstance;
24
+ }
25
+ export function PaginatedAuthenticatorWebAuthnStageListFromJSON(json) {
26
+ return PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'pagination': PaginationFromJSON(json['pagination']),
34
+ 'results': (json['results'].map(AuthenticatorWebAuthnStageFromJSON)),
35
+ };
36
+ }
37
+ export function PaginatedAuthenticatorWebAuthnStageListToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'pagination': PaginationToJSON(value.pagination),
46
+ 'results': (value.results.map(AuthenticatorWebAuthnStageToJSON)),
47
+ };
48
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
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
+ import type { Pagination } from './Pagination';
13
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedWebAuthnDeviceTypeList
18
+ */
19
+ export interface PaginatedWebAuthnDeviceTypeList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedWebAuthnDeviceTypeList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<WebAuthnDeviceType>}
29
+ * @memberof PaginatedWebAuthnDeviceTypeList
30
+ */
31
+ results: Array<WebAuthnDeviceType>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedWebAuthnDeviceTypeList interface.
35
+ */
36
+ export declare function instanceOfPaginatedWebAuthnDeviceTypeList(value: object): boolean;
37
+ export declare function PaginatedWebAuthnDeviceTypeListFromJSON(json: any): PaginatedWebAuthnDeviceTypeList;
38
+ export declare function PaginatedWebAuthnDeviceTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedWebAuthnDeviceTypeList;
39
+ export declare function PaginatedWebAuthnDeviceTypeListToJSON(value?: PaginatedWebAuthnDeviceTypeList | null): any;
@@ -11,30 +11,30 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageToJSON, } from './AuthenticateWebAuthnStage';
15
14
  import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
15
+ import { WebAuthnDeviceTypeFromJSON, WebAuthnDeviceTypeToJSON, } from './WebAuthnDeviceType';
16
16
  /**
17
- * Check if a given object implements the PaginatedAuthenticateWebAuthnStageList interface.
17
+ * Check if a given object implements the PaginatedWebAuthnDeviceTypeList interface.
18
18
  */
19
- export function instanceOfPaginatedAuthenticateWebAuthnStageList(value) {
19
+ export function instanceOfPaginatedWebAuthnDeviceTypeList(value) {
20
20
  let isInstance = true;
21
21
  isInstance = isInstance && "pagination" in value;
22
22
  isInstance = isInstance && "results" in value;
23
23
  return isInstance;
24
24
  }
25
- export function PaginatedAuthenticateWebAuthnStageListFromJSON(json) {
26
- return PaginatedAuthenticateWebAuthnStageListFromJSONTyped(json, false);
25
+ export function PaginatedWebAuthnDeviceTypeListFromJSON(json) {
26
+ return PaginatedWebAuthnDeviceTypeListFromJSONTyped(json, false);
27
27
  }
28
- export function PaginatedAuthenticateWebAuthnStageListFromJSONTyped(json, ignoreDiscriminator) {
28
+ export function PaginatedWebAuthnDeviceTypeListFromJSONTyped(json, ignoreDiscriminator) {
29
29
  if ((json === undefined) || (json === null)) {
30
30
  return json;
31
31
  }
32
32
  return {
33
33
  'pagination': PaginationFromJSON(json['pagination']),
34
- 'results': (json['results'].map(AuthenticateWebAuthnStageFromJSON)),
34
+ 'results': (json['results'].map(WebAuthnDeviceTypeFromJSON)),
35
35
  };
36
36
  }
37
- export function PaginatedAuthenticateWebAuthnStageListToJSON(value) {
37
+ export function PaginatedWebAuthnDeviceTypeListToJSON(value) {
38
38
  if (value === undefined) {
39
39
  return undefined;
40
40
  }
@@ -43,6 +43,6 @@ export function PaginatedAuthenticateWebAuthnStageListToJSON(value) {
43
43
  }
44
44
  return {
45
45
  'pagination': PaginationToJSON(value.pagination),
46
- 'results': (value.results.map(AuthenticateWebAuthnStageToJSON)),
46
+ 'results': (value.results.map(WebAuthnDeviceTypeToJSON)),
47
47
  };
48
48
  }
@@ -14,58 +14,64 @@ import type { FlowSetRequest } from './FlowSetRequest';
14
14
  import type { ResidentKeyRequirementEnum } from './ResidentKeyRequirementEnum';
15
15
  import type { UserVerificationEnum } from './UserVerificationEnum';
16
16
  /**
17
- * AuthenticateWebAuthnStage Serializer
17
+ * AuthenticatorWebAuthnStage Serializer
18
18
  * @export
19
- * @interface PatchedAuthenticateWebAuthnStageRequest
19
+ * @interface PatchedAuthenticatorWebAuthnStageRequest
20
20
  */
21
- export interface PatchedAuthenticateWebAuthnStageRequest {
21
+ export interface PatchedAuthenticatorWebAuthnStageRequest {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof PatchedAuthenticateWebAuthnStageRequest
25
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
26
26
  */
27
27
  name?: string;
28
28
  /**
29
29
  *
30
30
  * @type {Array<FlowSetRequest>}
31
- * @memberof PatchedAuthenticateWebAuthnStageRequest
31
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
32
32
  */
33
33
  flowSet?: Array<FlowSetRequest>;
34
34
  /**
35
35
  * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
36
36
  * @type {string}
37
- * @memberof PatchedAuthenticateWebAuthnStageRequest
37
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
38
38
  */
39
39
  configureFlow?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
43
- * @memberof PatchedAuthenticateWebAuthnStageRequest
43
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
44
44
  */
45
45
  friendlyName?: string | null;
46
46
  /**
47
47
  *
48
48
  * @type {UserVerificationEnum}
49
- * @memberof PatchedAuthenticateWebAuthnStageRequest
49
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
50
50
  */
51
51
  userVerification?: UserVerificationEnum;
52
52
  /**
53
53
  *
54
54
  * @type {AuthenticatorAttachmentEnum}
55
- * @memberof PatchedAuthenticateWebAuthnStageRequest
55
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
56
56
  */
57
57
  authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
58
58
  /**
59
59
  *
60
60
  * @type {ResidentKeyRequirementEnum}
61
- * @memberof PatchedAuthenticateWebAuthnStageRequest
61
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
62
62
  */
63
63
  residentKeyRequirement?: ResidentKeyRequirementEnum;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof PatchedAuthenticatorWebAuthnStageRequest
68
+ */
69
+ deviceTypeRestrictions?: Array<string>;
64
70
  }
65
71
  /**
66
- * Check if a given object implements the PatchedAuthenticateWebAuthnStageRequest interface.
72
+ * Check if a given object implements the PatchedAuthenticatorWebAuthnStageRequest interface.
67
73
  */
68
- export declare function instanceOfPatchedAuthenticateWebAuthnStageRequest(value: object): boolean;
69
- export declare function PatchedAuthenticateWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticateWebAuthnStageRequest;
70
- export declare function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticateWebAuthnStageRequest;
71
- export declare function PatchedAuthenticateWebAuthnStageRequestToJSON(value?: PatchedAuthenticateWebAuthnStageRequest | null): any;
74
+ export declare function instanceOfPatchedAuthenticatorWebAuthnStageRequest(value: object): boolean;
75
+ export declare function PatchedAuthenticatorWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticatorWebAuthnStageRequest;
76
+ export declare function PatchedAuthenticatorWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticatorWebAuthnStageRequest;
77
+ export declare function PatchedAuthenticatorWebAuthnStageRequestToJSON(value?: PatchedAuthenticatorWebAuthnStageRequest | null): any;
@@ -17,16 +17,16 @@ import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest'
17
17
  import { ResidentKeyRequirementEnumFromJSON, ResidentKeyRequirementEnumToJSON, } from './ResidentKeyRequirementEnum';
18
18
  import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
19
19
  /**
20
- * Check if a given object implements the PatchedAuthenticateWebAuthnStageRequest interface.
20
+ * Check if a given object implements the PatchedAuthenticatorWebAuthnStageRequest interface.
21
21
  */
22
- export function instanceOfPatchedAuthenticateWebAuthnStageRequest(value) {
22
+ export function instanceOfPatchedAuthenticatorWebAuthnStageRequest(value) {
23
23
  let isInstance = true;
24
24
  return isInstance;
25
25
  }
26
- export function PatchedAuthenticateWebAuthnStageRequestFromJSON(json) {
27
- return PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
26
+ export function PatchedAuthenticatorWebAuthnStageRequestFromJSON(json) {
27
+ return PatchedAuthenticatorWebAuthnStageRequestFromJSONTyped(json, false);
28
28
  }
29
- export function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ export function PatchedAuthenticatorWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator) {
30
30
  if ((json === undefined) || (json === null)) {
31
31
  return json;
32
32
  }
@@ -38,9 +38,10 @@ export function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, ignor
38
38
  'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
39
39
  'authenticatorAttachment': !exists(json, 'authenticator_attachment') ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
40
40
  'residentKeyRequirement': !exists(json, 'resident_key_requirement') ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
41
+ 'deviceTypeRestrictions': !exists(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
41
42
  };
42
43
  }
43
- export function PatchedAuthenticateWebAuthnStageRequestToJSON(value) {
44
+ export function PatchedAuthenticatorWebAuthnStageRequestToJSON(value) {
44
45
  if (value === undefined) {
45
46
  return undefined;
46
47
  }
@@ -55,5 +56,6 @@ export function PatchedAuthenticateWebAuthnStageRequestToJSON(value) {
55
56
  'user_verification': UserVerificationEnumToJSON(value.userVerification),
56
57
  'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value.authenticatorAttachment),
57
58
  'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value.residentKeyRequirement),
59
+ 'device_type_restrictions': value.deviceTypeRestrictions,
58
60
  };
59
61
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
12
13
  /**
13
14
  * Serializer for WebAuthn authenticator devices
14
15
  * @export
@@ -33,6 +34,12 @@ export interface WebAuthnDevice {
33
34
  * @memberof WebAuthnDevice
34
35
  */
35
36
  readonly createdOn: Date;
37
+ /**
38
+ *
39
+ * @type {WebAuthnDeviceType}
40
+ * @memberof WebAuthnDevice
41
+ */
42
+ readonly deviceType: WebAuthnDeviceType | null;
36
43
  }
37
44
  /**
38
45
  * Check if a given object implements the WebAuthnDevice interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { WebAuthnDeviceTypeFromJSON, } from './WebAuthnDeviceType';
14
15
  /**
15
16
  * Check if a given object implements the WebAuthnDevice interface.
16
17
  */
@@ -19,6 +20,7 @@ export function instanceOfWebAuthnDevice(value) {
19
20
  isInstance = isInstance && "pk" in value;
20
21
  isInstance = isInstance && "name" in value;
21
22
  isInstance = isInstance && "createdOn" in value;
23
+ isInstance = isInstance && "deviceType" in value;
22
24
  return isInstance;
23
25
  }
24
26
  export function WebAuthnDeviceFromJSON(json) {
@@ -32,6 +34,7 @@ export function WebAuthnDeviceFromJSONTyped(json, ignoreDiscriminator) {
32
34
  'pk': json['pk'],
33
35
  'name': json['name'],
34
36
  'createdOn': (new Date(json['created_on'])),
37
+ 'deviceType': WebAuthnDeviceTypeFromJSON(json['device_type']),
35
38
  };
36
39
  }
37
40
  export function WebAuthnDeviceToJSON(value) {
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
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
+ * WebAuthnDeviceType Serializer
14
+ * @export
15
+ * @interface WebAuthnDeviceType
16
+ */
17
+ export interface WebAuthnDeviceType {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebAuthnDeviceType
22
+ */
23
+ aaguid: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WebAuthnDeviceType
28
+ */
29
+ description: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the WebAuthnDeviceType interface.
33
+ */
34
+ export declare function instanceOfWebAuthnDeviceType(value: object): boolean;
35
+ export declare function WebAuthnDeviceTypeFromJSON(json: any): WebAuthnDeviceType;
36
+ export declare function WebAuthnDeviceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAuthnDeviceType;
37
+ export declare function WebAuthnDeviceTypeToJSON(value?: WebAuthnDeviceType | null): any;
@@ -0,0 +1,46 @@
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
+ * Check if a given object implements the WebAuthnDeviceType interface.
16
+ */
17
+ export function instanceOfWebAuthnDeviceType(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "aaguid" in value;
20
+ isInstance = isInstance && "description" in value;
21
+ return isInstance;
22
+ }
23
+ export function WebAuthnDeviceTypeFromJSON(json) {
24
+ return WebAuthnDeviceTypeFromJSONTyped(json, false);
25
+ }
26
+ export function WebAuthnDeviceTypeFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'aaguid': json['aaguid'],
32
+ 'description': json['description'],
33
+ };
34
+ }
35
+ export function WebAuthnDeviceTypeToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'aaguid': value.aaguid,
44
+ 'description': value.description,
45
+ };
46
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
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
+ * WebAuthnDeviceType Serializer
14
+ * @export
15
+ * @interface WebAuthnDeviceTypeRequest
16
+ */
17
+ export interface WebAuthnDeviceTypeRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WebAuthnDeviceTypeRequest
22
+ */
23
+ aaguid: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WebAuthnDeviceTypeRequest
28
+ */
29
+ description: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the WebAuthnDeviceTypeRequest interface.
33
+ */
34
+ export declare function instanceOfWebAuthnDeviceTypeRequest(value: object): boolean;
35
+ export declare function WebAuthnDeviceTypeRequestFromJSON(json: any): WebAuthnDeviceTypeRequest;
36
+ export declare function WebAuthnDeviceTypeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebAuthnDeviceTypeRequest;
37
+ export declare function WebAuthnDeviceTypeRequestToJSON(value?: WebAuthnDeviceTypeRequest | null): any;
@@ -0,0 +1,46 @@
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
+ * Check if a given object implements the WebAuthnDeviceTypeRequest interface.
16
+ */
17
+ export function instanceOfWebAuthnDeviceTypeRequest(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "aaguid" in value;
20
+ isInstance = isInstance && "description" in value;
21
+ return isInstance;
22
+ }
23
+ export function WebAuthnDeviceTypeRequestFromJSON(json) {
24
+ return WebAuthnDeviceTypeRequestFromJSONTyped(json, false);
25
+ }
26
+ export function WebAuthnDeviceTypeRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'aaguid': json['aaguid'],
32
+ 'description': json['description'],
33
+ };
34
+ }
35
+ export function WebAuthnDeviceTypeRequestToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'aaguid': value.aaguid,
44
+ 'description': value.description,
45
+ };
46
+ }