@goauthentik/api 2021.10.4-1639438851 → 2021.10.4-1639472385
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.
- package/.openapi-generator/FILES +1 -0
- package/dist/apis/StagesApi.d.ts +10 -0
- package/dist/apis/StagesApi.js +14 -1
- package/dist/esm/apis/StagesApi.d.ts +10 -0
- package/dist/esm/apis/StagesApi.js +13 -0
- package/dist/esm/models/AuthenticateWebAuthnStage.d.ts +7 -0
- package/dist/esm/models/AuthenticateWebAuthnStage.js +3 -0
- package/dist/esm/models/AuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/esm/models/AuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/esm/models/PatchedAuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/esm/models/PatchedAuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/esm/models/UserVerificationEnum.d.ts +24 -0
- package/dist/esm/models/UserVerificationEnum.js +33 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/AuthenticateWebAuthnStage.d.ts +7 -0
- package/dist/models/AuthenticateWebAuthnStage.js +3 -0
- package/dist/models/AuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/models/AuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/models/PatchedAuthenticateWebAuthnStageRequest.d.ts +7 -0
- package/dist/models/PatchedAuthenticateWebAuthnStageRequest.js +3 -0
- package/dist/models/UserVerificationEnum.d.ts +24 -0
- package/dist/models/UserVerificationEnum.js +39 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/StagesApi.ts +14 -0
- package/src/models/AuthenticateWebAuthnStage.ts +14 -0
- package/src/models/AuthenticateWebAuthnStageRequest.ts +14 -0
- package/src/models/PatchedAuthenticateWebAuthnStageRequest.ts +14 -0
- package/src/models/UserVerificationEnum.ts +37 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -437,6 +437,7 @@ src/models/UserServiceAccountRequest.ts
|
|
|
437
437
|
src/models/UserServiceAccountResponse.ts
|
|
438
438
|
src/models/UserSetting.ts
|
|
439
439
|
src/models/UserSourceConnection.ts
|
|
440
|
+
src/models/UserVerificationEnum.ts
|
|
440
441
|
src/models/UserWriteStage.ts
|
|
441
442
|
src/models/UserWriteStageRequest.ts
|
|
442
443
|
src/models/ValidationError.ts
|
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
|
|
|
204
204
|
pageSize?: number;
|
|
205
205
|
search?: string;
|
|
206
206
|
stageUuid?: string;
|
|
207
|
+
userVerification?: StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
207
208
|
}
|
|
208
209
|
export interface StagesAuthenticatorWebauthnPartialUpdateRequest {
|
|
209
210
|
stageUuid: string;
|
|
@@ -1953,6 +1954,15 @@ export declare enum StagesAuthenticatorValidateListNotConfiguredActionEnum {
|
|
|
1953
1954
|
Deny = "deny",
|
|
1954
1955
|
Skip = "skip"
|
|
1955
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* @export
|
|
1959
|
+
* @enum {string}
|
|
1960
|
+
*/
|
|
1961
|
+
export declare enum StagesAuthenticatorWebauthnListUserVerificationEnum {
|
|
1962
|
+
Discouraged = "discouraged",
|
|
1963
|
+
Preferred = "preferred",
|
|
1964
|
+
Required = "required"
|
|
1965
|
+
}
|
|
1956
1966
|
/**
|
|
1957
1967
|
* @export
|
|
1958
1968
|
* @enum {string}
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.StagesPromptPromptsListTypeEnum = exports.StagesConsentListModeEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorTotpListDigitsEnum = exports.StagesAuthenticatorSmsListProviderEnum = exports.StagesAuthenticatorSmsListAuthTypeEnum = exports.StagesApi = void 0;
|
|
25
|
+
exports.StagesPromptPromptsListTypeEnum = exports.StagesConsentListModeEnum = exports.StagesAuthenticatorWebauthnListUserVerificationEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorTotpListDigitsEnum = exports.StagesAuthenticatorSmsListProviderEnum = exports.StagesAuthenticatorSmsListAuthTypeEnum = exports.StagesApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const models_1 = require("../models");
|
|
28
28
|
/**
|
|
@@ -1623,6 +1623,9 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
1623
1623
|
if (requestParameters.stageUuid !== undefined) {
|
|
1624
1624
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
1625
1625
|
}
|
|
1626
|
+
if (requestParameters.userVerification !== undefined) {
|
|
1627
|
+
queryParameters['user_verification'] = requestParameters.userVerification;
|
|
1628
|
+
}
|
|
1626
1629
|
const headerParameters = {};
|
|
1627
1630
|
if (this.configuration && this.configuration.apiKey) {
|
|
1628
1631
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
@@ -5521,6 +5524,16 @@ var StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
|
5521
5524
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Deny"] = "deny";
|
|
5522
5525
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Skip"] = "skip";
|
|
5523
5526
|
})(StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum || (exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = {}));
|
|
5527
|
+
/**
|
|
5528
|
+
* @export
|
|
5529
|
+
* @enum {string}
|
|
5530
|
+
*/
|
|
5531
|
+
var StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
5532
|
+
(function (StagesAuthenticatorWebauthnListUserVerificationEnum) {
|
|
5533
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Discouraged"] = "discouraged";
|
|
5534
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Preferred"] = "preferred";
|
|
5535
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Required"] = "required";
|
|
5536
|
+
})(StagesAuthenticatorWebauthnListUserVerificationEnum = exports.StagesAuthenticatorWebauthnListUserVerificationEnum || (exports.StagesAuthenticatorWebauthnListUserVerificationEnum = {}));
|
|
5524
5537
|
/**
|
|
5525
5538
|
* @export
|
|
5526
5539
|
* @enum {string}
|
|
@@ -204,6 +204,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
|
|
|
204
204
|
pageSize?: number;
|
|
205
205
|
search?: string;
|
|
206
206
|
stageUuid?: string;
|
|
207
|
+
userVerification?: StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
207
208
|
}
|
|
208
209
|
export interface StagesAuthenticatorWebauthnPartialUpdateRequest {
|
|
209
210
|
stageUuid: string;
|
|
@@ -1953,6 +1954,15 @@ export declare enum StagesAuthenticatorValidateListNotConfiguredActionEnum {
|
|
|
1953
1954
|
Deny = "deny",
|
|
1954
1955
|
Skip = "skip"
|
|
1955
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* @export
|
|
1959
|
+
* @enum {string}
|
|
1960
|
+
*/
|
|
1961
|
+
export declare enum StagesAuthenticatorWebauthnListUserVerificationEnum {
|
|
1962
|
+
Discouraged = "discouraged",
|
|
1963
|
+
Preferred = "preferred",
|
|
1964
|
+
Required = "required"
|
|
1965
|
+
}
|
|
1956
1966
|
/**
|
|
1957
1967
|
* @export
|
|
1958
1968
|
* @enum {string}
|
|
@@ -1620,6 +1620,9 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
1620
1620
|
if (requestParameters.stageUuid !== undefined) {
|
|
1621
1621
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
1622
1622
|
}
|
|
1623
|
+
if (requestParameters.userVerification !== undefined) {
|
|
1624
|
+
queryParameters['user_verification'] = requestParameters.userVerification;
|
|
1625
|
+
}
|
|
1623
1626
|
const headerParameters = {};
|
|
1624
1627
|
if (this.configuration && this.configuration.apiKey) {
|
|
1625
1628
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
@@ -5517,6 +5520,16 @@ export var StagesAuthenticatorValidateListNotConfiguredActionEnum;
|
|
|
5517
5520
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Deny"] = "deny";
|
|
5518
5521
|
StagesAuthenticatorValidateListNotConfiguredActionEnum["Skip"] = "skip";
|
|
5519
5522
|
})(StagesAuthenticatorValidateListNotConfiguredActionEnum || (StagesAuthenticatorValidateListNotConfiguredActionEnum = {}));
|
|
5523
|
+
/**
|
|
5524
|
+
* @export
|
|
5525
|
+
* @enum {string}
|
|
5526
|
+
*/
|
|
5527
|
+
export var StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
5528
|
+
(function (StagesAuthenticatorWebauthnListUserVerificationEnum) {
|
|
5529
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Discouraged"] = "discouraged";
|
|
5530
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Preferred"] = "preferred";
|
|
5531
|
+
StagesAuthenticatorWebauthnListUserVerificationEnum["Required"] = "required";
|
|
5532
|
+
})(StagesAuthenticatorWebauthnListUserVerificationEnum || (StagesAuthenticatorWebauthnListUserVerificationEnum = {}));
|
|
5520
5533
|
/**
|
|
5521
5534
|
* @export
|
|
5522
5535
|
* @enum {string}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Flow } from './Flow';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -64,6 +65,12 @@ export interface AuthenticateWebAuthnStage {
|
|
|
64
65
|
* @memberof AuthenticateWebAuthnStage
|
|
65
66
|
*/
|
|
66
67
|
configureFlow?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {UserVerificationEnum}
|
|
71
|
+
* @memberof AuthenticateWebAuthnStage
|
|
72
|
+
*/
|
|
73
|
+
userVerification?: UserVerificationEnum;
|
|
67
74
|
}
|
|
68
75
|
export declare function AuthenticateWebAuthnStageFromJSON(json: any): AuthenticateWebAuthnStage;
|
|
69
76
|
export declare function AuthenticateWebAuthnStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStage;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { FlowFromJSON, FlowToJSON, } from './Flow';
|
|
16
|
+
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
|
16
17
|
export function AuthenticateWebAuthnStageFromJSON(json) {
|
|
17
18
|
return AuthenticateWebAuthnStageFromJSONTyped(json, false);
|
|
18
19
|
}
|
|
@@ -29,6 +30,7 @@ export function AuthenticateWebAuthnStageFromJSONTyped(json, ignoreDiscriminator
|
|
|
29
30
|
'metaModelName': json['meta_model_name'],
|
|
30
31
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowFromJSON)),
|
|
31
32
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
33
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export function AuthenticateWebAuthnStageToJSON(value) {
|
|
@@ -42,5 +44,6 @@ export function AuthenticateWebAuthnStageToJSON(value) {
|
|
|
42
44
|
'name': value.name,
|
|
43
45
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowToJSON)),
|
|
44
46
|
'configure_flow': value.configureFlow,
|
|
47
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { FlowRequest } from './FlowRequest';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface AuthenticateWebAuthnStageRequest {
|
|
|
34
35
|
* @memberof AuthenticateWebAuthnStageRequest
|
|
35
36
|
*/
|
|
36
37
|
configureFlow?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UserVerificationEnum}
|
|
41
|
+
* @memberof AuthenticateWebAuthnStageRequest
|
|
42
|
+
*/
|
|
43
|
+
userVerification?: UserVerificationEnum;
|
|
37
44
|
}
|
|
38
45
|
export declare function AuthenticateWebAuthnStageRequestFromJSON(json: any): AuthenticateWebAuthnStageRequest;
|
|
39
46
|
export declare function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStageRequest;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { FlowRequestFromJSON, FlowRequestToJSON, } from './FlowRequest';
|
|
16
|
+
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
|
16
17
|
export function AuthenticateWebAuthnStageRequestFromJSON(json) {
|
|
17
18
|
return AuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
|
|
18
19
|
}
|
|
@@ -24,6 +25,7 @@ export function AuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscri
|
|
|
24
25
|
'name': json['name'],
|
|
25
26
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
|
|
26
27
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
28
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
export function AuthenticateWebAuthnStageRequestToJSON(value) {
|
|
@@ -37,5 +39,6 @@ export function AuthenticateWebAuthnStageRequestToJSON(value) {
|
|
|
37
39
|
'name': value.name,
|
|
38
40
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
|
|
39
41
|
'configure_flow': value.configureFlow,
|
|
42
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { FlowRequest } from './FlowRequest';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface PatchedAuthenticateWebAuthnStageRequest {
|
|
|
34
35
|
* @memberof PatchedAuthenticateWebAuthnStageRequest
|
|
35
36
|
*/
|
|
36
37
|
configureFlow?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UserVerificationEnum}
|
|
41
|
+
* @memberof PatchedAuthenticateWebAuthnStageRequest
|
|
42
|
+
*/
|
|
43
|
+
userVerification?: UserVerificationEnum;
|
|
37
44
|
}
|
|
38
45
|
export declare function PatchedAuthenticateWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticateWebAuthnStageRequest;
|
|
39
46
|
export declare function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticateWebAuthnStageRequest;
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { exists } from '../runtime';
|
|
15
15
|
import { FlowRequestFromJSON, FlowRequestToJSON, } from './FlowRequest';
|
|
16
|
+
import { UserVerificationEnumFromJSON, UserVerificationEnumToJSON, } from './UserVerificationEnum';
|
|
16
17
|
export function PatchedAuthenticateWebAuthnStageRequestFromJSON(json) {
|
|
17
18
|
return PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
|
|
18
19
|
}
|
|
@@ -24,6 +25,7 @@ export function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, ignor
|
|
|
24
25
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
25
26
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequestFromJSON)),
|
|
26
27
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
28
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
export function PatchedAuthenticateWebAuthnStageRequestToJSON(value) {
|
|
@@ -37,5 +39,6 @@ export function PatchedAuthenticateWebAuthnStageRequestToJSON(value) {
|
|
|
37
39
|
'name': value.name,
|
|
38
40
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequestToJSON)),
|
|
39
41
|
'configure_flow': value.configureFlow,
|
|
42
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
40
43
|
};
|
|
41
44
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
6
|
+
* Contact: hello@beryju.org
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum UserVerificationEnum {
|
|
18
|
+
Required = "required",
|
|
19
|
+
Preferred = "preferred",
|
|
20
|
+
Discouraged = "discouraged"
|
|
21
|
+
}
|
|
22
|
+
export declare function UserVerificationEnumFromJSON(json: any): UserVerificationEnum;
|
|
23
|
+
export declare function UserVerificationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserVerificationEnum;
|
|
24
|
+
export declare function UserVerificationEnumToJSON(value?: UserVerificationEnum | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
8
|
+
* Contact: hello@beryju.org
|
|
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
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
export var UserVerificationEnum;
|
|
20
|
+
(function (UserVerificationEnum) {
|
|
21
|
+
UserVerificationEnum["Required"] = "required";
|
|
22
|
+
UserVerificationEnum["Preferred"] = "preferred";
|
|
23
|
+
UserVerificationEnum["Discouraged"] = "discouraged";
|
|
24
|
+
})(UserVerificationEnum || (UserVerificationEnum = {}));
|
|
25
|
+
export function UserVerificationEnumFromJSON(json) {
|
|
26
|
+
return UserVerificationEnumFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function UserVerificationEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
export function UserVerificationEnumToJSON(value) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
@@ -415,6 +415,7 @@ export * from './UserServiceAccountRequest';
|
|
|
415
415
|
export * from './UserServiceAccountResponse';
|
|
416
416
|
export * from './UserSetting';
|
|
417
417
|
export * from './UserSourceConnection';
|
|
418
|
+
export * from './UserVerificationEnum';
|
|
418
419
|
export * from './UserWriteStage';
|
|
419
420
|
export * from './UserWriteStageRequest';
|
|
420
421
|
export * from './ValidationError';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -417,6 +417,7 @@ export * from './UserServiceAccountRequest';
|
|
|
417
417
|
export * from './UserServiceAccountResponse';
|
|
418
418
|
export * from './UserSetting';
|
|
419
419
|
export * from './UserSourceConnection';
|
|
420
|
+
export * from './UserVerificationEnum';
|
|
420
421
|
export * from './UserWriteStage';
|
|
421
422
|
export * from './UserWriteStageRequest';
|
|
422
423
|
export * from './ValidationError';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Flow } from './Flow';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -64,6 +65,12 @@ export interface AuthenticateWebAuthnStage {
|
|
|
64
65
|
* @memberof AuthenticateWebAuthnStage
|
|
65
66
|
*/
|
|
66
67
|
configureFlow?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {UserVerificationEnum}
|
|
71
|
+
* @memberof AuthenticateWebAuthnStage
|
|
72
|
+
*/
|
|
73
|
+
userVerification?: UserVerificationEnum;
|
|
67
74
|
}
|
|
68
75
|
export declare function AuthenticateWebAuthnStageFromJSON(json: any): AuthenticateWebAuthnStage;
|
|
69
76
|
export declare function AuthenticateWebAuthnStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStage;
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.AuthenticateWebAuthnStageToJSON = exports.AuthenticateWebAuthnStageFromJSONTyped = exports.AuthenticateWebAuthnStageFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const Flow_1 = require("./Flow");
|
|
19
|
+
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
|
19
20
|
function AuthenticateWebAuthnStageFromJSON(json) {
|
|
20
21
|
return AuthenticateWebAuthnStageFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -33,6 +34,7 @@ function AuthenticateWebAuthnStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
34
|
'metaModelName': json['meta_model_name'],
|
|
34
35
|
'flowSet': !runtime_1.exists(json, 'flow_set') ? undefined : (json['flow_set'].map(Flow_1.FlowFromJSON)),
|
|
35
36
|
'configureFlow': !runtime_1.exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
37
|
+
'userVerification': !runtime_1.exists(json, 'user_verification') ? undefined : UserVerificationEnum_1.UserVerificationEnumFromJSON(json['user_verification']),
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
exports.AuthenticateWebAuthnStageFromJSONTyped = AuthenticateWebAuthnStageFromJSONTyped;
|
|
@@ -47,6 +49,7 @@ function AuthenticateWebAuthnStageToJSON(value) {
|
|
|
47
49
|
'name': value.name,
|
|
48
50
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(Flow_1.FlowToJSON)),
|
|
49
51
|
'configure_flow': value.configureFlow,
|
|
52
|
+
'user_verification': UserVerificationEnum_1.UserVerificationEnumToJSON(value.userVerification),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
exports.AuthenticateWebAuthnStageToJSON = AuthenticateWebAuthnStageToJSON;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { FlowRequest } from './FlowRequest';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface AuthenticateWebAuthnStageRequest {
|
|
|
34
35
|
* @memberof AuthenticateWebAuthnStageRequest
|
|
35
36
|
*/
|
|
36
37
|
configureFlow?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UserVerificationEnum}
|
|
41
|
+
* @memberof AuthenticateWebAuthnStageRequest
|
|
42
|
+
*/
|
|
43
|
+
userVerification?: UserVerificationEnum;
|
|
37
44
|
}
|
|
38
45
|
export declare function AuthenticateWebAuthnStageRequestFromJSON(json: any): AuthenticateWebAuthnStageRequest;
|
|
39
46
|
export declare function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticateWebAuthnStageRequest;
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.AuthenticateWebAuthnStageRequestToJSON = exports.AuthenticateWebAuthnStageRequestFromJSONTyped = exports.AuthenticateWebAuthnStageRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const FlowRequest_1 = require("./FlowRequest");
|
|
19
|
+
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
|
19
20
|
function AuthenticateWebAuthnStageRequestFromJSON(json) {
|
|
20
21
|
return AuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -28,6 +29,7 @@ function AuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
28
29
|
'name': json['name'],
|
|
29
30
|
'flowSet': !runtime_1.exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequest_1.FlowRequestFromJSON)),
|
|
30
31
|
'configureFlow': !runtime_1.exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
32
|
+
'userVerification': !runtime_1.exists(json, 'user_verification') ? undefined : UserVerificationEnum_1.UserVerificationEnumFromJSON(json['user_verification']),
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.AuthenticateWebAuthnStageRequestFromJSONTyped = AuthenticateWebAuthnStageRequestFromJSONTyped;
|
|
@@ -42,6 +44,7 @@ function AuthenticateWebAuthnStageRequestToJSON(value) {
|
|
|
42
44
|
'name': value.name,
|
|
43
45
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequest_1.FlowRequestToJSON)),
|
|
44
46
|
'configure_flow': value.configureFlow,
|
|
47
|
+
'user_verification': UserVerificationEnum_1.UserVerificationEnumToJSON(value.userVerification),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
exports.AuthenticateWebAuthnStageRequestToJSON = AuthenticateWebAuthnStageRequestToJSON;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { FlowRequest } from './FlowRequest';
|
|
13
|
+
import { UserVerificationEnum } from './UserVerificationEnum';
|
|
13
14
|
/**
|
|
14
15
|
* AuthenticateWebAuthnStage Serializer
|
|
15
16
|
* @export
|
|
@@ -34,6 +35,12 @@ export interface PatchedAuthenticateWebAuthnStageRequest {
|
|
|
34
35
|
* @memberof PatchedAuthenticateWebAuthnStageRequest
|
|
35
36
|
*/
|
|
36
37
|
configureFlow?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {UserVerificationEnum}
|
|
41
|
+
* @memberof PatchedAuthenticateWebAuthnStageRequest
|
|
42
|
+
*/
|
|
43
|
+
userVerification?: UserVerificationEnum;
|
|
37
44
|
}
|
|
38
45
|
export declare function PatchedAuthenticateWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticateWebAuthnStageRequest;
|
|
39
46
|
export declare function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAuthenticateWebAuthnStageRequest;
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.PatchedAuthenticateWebAuthnStageRequestToJSON = exports.PatchedAuthenticateWebAuthnStageRequestFromJSONTyped = exports.PatchedAuthenticateWebAuthnStageRequestFromJSON = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const FlowRequest_1 = require("./FlowRequest");
|
|
19
|
+
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
|
19
20
|
function PatchedAuthenticateWebAuthnStageRequestFromJSON(json) {
|
|
20
21
|
return PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, false);
|
|
21
22
|
}
|
|
@@ -28,6 +29,7 @@ function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscri
|
|
|
28
29
|
'name': !runtime_1.exists(json, 'name') ? undefined : json['name'],
|
|
29
30
|
'flowSet': !runtime_1.exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowRequest_1.FlowRequestFromJSON)),
|
|
30
31
|
'configureFlow': !runtime_1.exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
32
|
+
'userVerification': !runtime_1.exists(json, 'user_verification') ? undefined : UserVerificationEnum_1.UserVerificationEnumFromJSON(json['user_verification']),
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
exports.PatchedAuthenticateWebAuthnStageRequestFromJSONTyped = PatchedAuthenticateWebAuthnStageRequestFromJSONTyped;
|
|
@@ -42,6 +44,7 @@ function PatchedAuthenticateWebAuthnStageRequestToJSON(value) {
|
|
|
42
44
|
'name': value.name,
|
|
43
45
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowRequest_1.FlowRequestToJSON)),
|
|
44
46
|
'configure_flow': value.configureFlow,
|
|
47
|
+
'user_verification': UserVerificationEnum_1.UserVerificationEnumToJSON(value.userVerification),
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
exports.PatchedAuthenticateWebAuthnStageRequestToJSON = PatchedAuthenticateWebAuthnStageRequestToJSON;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
6
|
+
* Contact: hello@beryju.org
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum UserVerificationEnum {
|
|
18
|
+
Required = "required",
|
|
19
|
+
Preferred = "preferred",
|
|
20
|
+
Discouraged = "discouraged"
|
|
21
|
+
}
|
|
22
|
+
export declare function UserVerificationEnumFromJSON(json: any): UserVerificationEnum;
|
|
23
|
+
export declare function UserVerificationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserVerificationEnum;
|
|
24
|
+
export declare function UserVerificationEnumToJSON(value?: UserVerificationEnum | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
9
|
+
* Contact: hello@beryju.org
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UserVerificationEnumToJSON = exports.UserVerificationEnumFromJSONTyped = exports.UserVerificationEnumFromJSON = exports.UserVerificationEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
var UserVerificationEnum;
|
|
23
|
+
(function (UserVerificationEnum) {
|
|
24
|
+
UserVerificationEnum["Required"] = "required";
|
|
25
|
+
UserVerificationEnum["Preferred"] = "preferred";
|
|
26
|
+
UserVerificationEnum["Discouraged"] = "discouraged";
|
|
27
|
+
})(UserVerificationEnum = exports.UserVerificationEnum || (exports.UserVerificationEnum = {}));
|
|
28
|
+
function UserVerificationEnumFromJSON(json) {
|
|
29
|
+
return UserVerificationEnumFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.UserVerificationEnumFromJSON = UserVerificationEnumFromJSON;
|
|
32
|
+
function UserVerificationEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
exports.UserVerificationEnumFromJSONTyped = UserVerificationEnumFromJSONTyped;
|
|
36
|
+
function UserVerificationEnumToJSON(value) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
exports.UserVerificationEnumToJSON = UserVerificationEnumToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -415,6 +415,7 @@ export * from './UserServiceAccountRequest';
|
|
|
415
415
|
export * from './UserServiceAccountResponse';
|
|
416
416
|
export * from './UserSetting';
|
|
417
417
|
export * from './UserSourceConnection';
|
|
418
|
+
export * from './UserVerificationEnum';
|
|
418
419
|
export * from './UserWriteStage';
|
|
419
420
|
export * from './UserWriteStageRequest';
|
|
420
421
|
export * from './ValidationError';
|
package/dist/models/index.js
CHANGED
|
@@ -429,6 +429,7 @@ __exportStar(require("./UserServiceAccountRequest"), exports);
|
|
|
429
429
|
__exportStar(require("./UserServiceAccountResponse"), exports);
|
|
430
430
|
__exportStar(require("./UserSetting"), exports);
|
|
431
431
|
__exportStar(require("./UserSourceConnection"), exports);
|
|
432
|
+
__exportStar(require("./UserVerificationEnum"), exports);
|
|
432
433
|
__exportStar(require("./UserWriteStage"), exports);
|
|
433
434
|
__exportStar(require("./UserWriteStageRequest"), exports);
|
|
434
435
|
__exportStar(require("./ValidationError"), exports);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@goauthentik/api", "version": "2021.10.4-
|
|
1
|
+
{"name": "@goauthentik/api", "version": "2021.10.4-1639472385", "description": "OpenAPI client for @goauthentik/api", "author": "OpenAPI-Generator", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "scripts": {"build": "tsc && tsc --project tsconfig.esm.json", "prepare": "npm run build"}, "devDependencies": {"typescript": "^3.9.5"}, "license": "GPL-3.0-only", "module": "./dist/esm/index.js", "sideEffects": false}
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -520,6 +520,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
|
|
|
520
520
|
pageSize?: number;
|
|
521
521
|
search?: string;
|
|
522
522
|
stageUuid?: string;
|
|
523
|
+
userVerification?: StagesAuthenticatorWebauthnListUserVerificationEnum;
|
|
523
524
|
}
|
|
524
525
|
|
|
525
526
|
export interface StagesAuthenticatorWebauthnPartialUpdateRequest {
|
|
@@ -2900,6 +2901,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
2900
2901
|
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
2901
2902
|
}
|
|
2902
2903
|
|
|
2904
|
+
if (requestParameters.userVerification !== undefined) {
|
|
2905
|
+
queryParameters['user_verification'] = requestParameters.userVerification;
|
|
2906
|
+
}
|
|
2907
|
+
|
|
2903
2908
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
2904
2909
|
|
|
2905
2910
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -7289,6 +7294,15 @@ export enum StagesAuthenticatorValidateListNotConfiguredActionEnum {
|
|
|
7289
7294
|
Deny = 'deny',
|
|
7290
7295
|
Skip = 'skip'
|
|
7291
7296
|
}
|
|
7297
|
+
/**
|
|
7298
|
+
* @export
|
|
7299
|
+
* @enum {string}
|
|
7300
|
+
*/
|
|
7301
|
+
export enum StagesAuthenticatorWebauthnListUserVerificationEnum {
|
|
7302
|
+
Discouraged = 'discouraged',
|
|
7303
|
+
Preferred = 'preferred',
|
|
7304
|
+
Required = 'required'
|
|
7305
|
+
}
|
|
7292
7306
|
/**
|
|
7293
7307
|
* @export
|
|
7294
7308
|
* @enum {string}
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
FlowFromJSONTyped,
|
|
20
20
|
FlowToJSON,
|
|
21
21
|
} from './Flow';
|
|
22
|
+
import {
|
|
23
|
+
UserVerificationEnum,
|
|
24
|
+
UserVerificationEnumFromJSON,
|
|
25
|
+
UserVerificationEnumFromJSONTyped,
|
|
26
|
+
UserVerificationEnumToJSON,
|
|
27
|
+
} from './UserVerificationEnum';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* AuthenticateWebAuthnStage Serializer
|
|
@@ -74,6 +80,12 @@ export interface AuthenticateWebAuthnStage {
|
|
|
74
80
|
* @memberof AuthenticateWebAuthnStage
|
|
75
81
|
*/
|
|
76
82
|
configureFlow?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {UserVerificationEnum}
|
|
86
|
+
* @memberof AuthenticateWebAuthnStage
|
|
87
|
+
*/
|
|
88
|
+
userVerification?: UserVerificationEnum;
|
|
77
89
|
}
|
|
78
90
|
|
|
79
91
|
export function AuthenticateWebAuthnStageFromJSON(json: any): AuthenticateWebAuthnStage {
|
|
@@ -94,6 +106,7 @@ export function AuthenticateWebAuthnStageFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
94
106
|
'metaModelName': json['meta_model_name'],
|
|
95
107
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowFromJSON)),
|
|
96
108
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
109
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
97
110
|
};
|
|
98
111
|
}
|
|
99
112
|
|
|
@@ -109,6 +122,7 @@ export function AuthenticateWebAuthnStageToJSON(value?: AuthenticateWebAuthnStag
|
|
|
109
122
|
'name': value.name,
|
|
110
123
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowToJSON)),
|
|
111
124
|
'configure_flow': value.configureFlow,
|
|
125
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
112
126
|
};
|
|
113
127
|
}
|
|
114
128
|
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
FlowRequestFromJSONTyped,
|
|
20
20
|
FlowRequestToJSON,
|
|
21
21
|
} from './FlowRequest';
|
|
22
|
+
import {
|
|
23
|
+
UserVerificationEnum,
|
|
24
|
+
UserVerificationEnumFromJSON,
|
|
25
|
+
UserVerificationEnumFromJSONTyped,
|
|
26
|
+
UserVerificationEnumToJSON,
|
|
27
|
+
} from './UserVerificationEnum';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* AuthenticateWebAuthnStage Serializer
|
|
@@ -44,6 +50,12 @@ export interface AuthenticateWebAuthnStageRequest {
|
|
|
44
50
|
* @memberof AuthenticateWebAuthnStageRequest
|
|
45
51
|
*/
|
|
46
52
|
configureFlow?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {UserVerificationEnum}
|
|
56
|
+
* @memberof AuthenticateWebAuthnStageRequest
|
|
57
|
+
*/
|
|
58
|
+
userVerification?: UserVerificationEnum;
|
|
47
59
|
}
|
|
48
60
|
|
|
49
61
|
export function AuthenticateWebAuthnStageRequestFromJSON(json: any): AuthenticateWebAuthnStageRequest {
|
|
@@ -59,6 +71,7 @@ export function AuthenticateWebAuthnStageRequestFromJSONTyped(json: any, ignoreD
|
|
|
59
71
|
'name': json['name'],
|
|
60
72
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowRequestFromJSON)),
|
|
61
73
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
74
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
62
75
|
};
|
|
63
76
|
}
|
|
64
77
|
|
|
@@ -74,6 +87,7 @@ export function AuthenticateWebAuthnStageRequestToJSON(value?: AuthenticateWebAu
|
|
|
74
87
|
'name': value.name,
|
|
75
88
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowRequestToJSON)),
|
|
76
89
|
'configure_flow': value.configureFlow,
|
|
90
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
77
91
|
};
|
|
78
92
|
}
|
|
79
93
|
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
FlowRequestFromJSONTyped,
|
|
20
20
|
FlowRequestToJSON,
|
|
21
21
|
} from './FlowRequest';
|
|
22
|
+
import {
|
|
23
|
+
UserVerificationEnum,
|
|
24
|
+
UserVerificationEnumFromJSON,
|
|
25
|
+
UserVerificationEnumFromJSONTyped,
|
|
26
|
+
UserVerificationEnumToJSON,
|
|
27
|
+
} from './UserVerificationEnum';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
* AuthenticateWebAuthnStage Serializer
|
|
@@ -44,6 +50,12 @@ export interface PatchedAuthenticateWebAuthnStageRequest {
|
|
|
44
50
|
* @memberof PatchedAuthenticateWebAuthnStageRequest
|
|
45
51
|
*/
|
|
46
52
|
configureFlow?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {UserVerificationEnum}
|
|
56
|
+
* @memberof PatchedAuthenticateWebAuthnStageRequest
|
|
57
|
+
*/
|
|
58
|
+
userVerification?: UserVerificationEnum;
|
|
47
59
|
}
|
|
48
60
|
|
|
49
61
|
export function PatchedAuthenticateWebAuthnStageRequestFromJSON(json: any): PatchedAuthenticateWebAuthnStageRequest {
|
|
@@ -59,6 +71,7 @@ export function PatchedAuthenticateWebAuthnStageRequestFromJSONTyped(json: any,
|
|
|
59
71
|
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
60
72
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowRequestFromJSON)),
|
|
61
73
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
74
|
+
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
|
62
75
|
};
|
|
63
76
|
}
|
|
64
77
|
|
|
@@ -74,6 +87,7 @@ export function PatchedAuthenticateWebAuthnStageRequestToJSON(value?: PatchedAut
|
|
|
74
87
|
'name': value.name,
|
|
75
88
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowRequestToJSON)),
|
|
76
89
|
'configure_flow': value.configureFlow,
|
|
90
|
+
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
|
77
91
|
};
|
|
78
92
|
}
|
|
79
93
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2021.10.4
|
|
8
|
+
* Contact: hello@beryju.org
|
|
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
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @enum {string}
|
|
19
|
+
*/
|
|
20
|
+
export enum UserVerificationEnum {
|
|
21
|
+
Required = 'required',
|
|
22
|
+
Preferred = 'preferred',
|
|
23
|
+
Discouraged = 'discouraged'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function UserVerificationEnumFromJSON(json: any): UserVerificationEnum {
|
|
27
|
+
return UserVerificationEnumFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function UserVerificationEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserVerificationEnum {
|
|
31
|
+
return json as UserVerificationEnum;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function UserVerificationEnumToJSON(value?: UserVerificationEnum | null): any {
|
|
35
|
+
return value as any;
|
|
36
|
+
}
|
|
37
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -417,6 +417,7 @@ export * from './UserServiceAccountRequest';
|
|
|
417
417
|
export * from './UserServiceAccountResponse';
|
|
418
418
|
export * from './UserSetting';
|
|
419
419
|
export * from './UserSourceConnection';
|
|
420
|
+
export * from './UserVerificationEnum';
|
|
420
421
|
export * from './UserWriteStage';
|
|
421
422
|
export * from './UserWriteStageRequest';
|
|
422
423
|
export * from './ValidationError';
|