@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.
- package/.openapi-generator/FILES +7 -4
- package/dist/apis/RbacApi.d.ts +2 -2
- package/dist/apis/RbacApi.js +2 -2
- package/dist/apis/StagesApi.d.ts +55 -26
- package/dist/apis/StagesApi.js +107 -24
- package/dist/esm/apis/RbacApi.d.ts +2 -2
- package/dist/esm/apis/RbacApi.js +2 -2
- package/dist/esm/apis/StagesApi.d.ts +55 -26
- package/dist/esm/apis/StagesApi.js +108 -25
- package/dist/esm/models/{AuthenticateWebAuthnStage.d.ts → AuthenticatorWebAuthnStage.d.ts} +33 -20
- package/dist/esm/models/{AuthenticateWebAuthnStage.js → AuthenticatorWebAuthnStage.js} +11 -6
- package/dist/{models/AuthenticateWebAuthnStageRequest.d.ts → esm/models/AuthenticatorWebAuthnStageRequest.d.ts} +21 -15
- package/dist/esm/models/{AuthenticateWebAuthnStageRequest.js → AuthenticatorWebAuthnStageRequest.js} +8 -6
- package/dist/esm/models/ModelEnum.d.ts +1 -1
- package/dist/esm/models/ModelEnum.js +1 -1
- package/dist/esm/models/PaginatedAuthenticatorWebAuthnStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedAuthenticatorWebAuthnStageList.js +48 -0
- package/dist/esm/models/PaginatedWebAuthnDeviceTypeList.d.ts +39 -0
- package/dist/esm/models/{PaginatedAuthenticateWebAuthnStageList.js → PaginatedWebAuthnDeviceTypeList.js} +9 -9
- package/dist/{models/PatchedAuthenticateWebAuthnStageRequest.d.ts → esm/models/PatchedAuthenticatorWebAuthnStageRequest.d.ts} +21 -15
- package/dist/esm/models/{PatchedAuthenticateWebAuthnStageRequest.js → PatchedAuthenticatorWebAuthnStageRequest.js} +8 -6
- package/dist/esm/models/WebAuthnDevice.d.ts +7 -0
- package/dist/esm/models/WebAuthnDevice.js +3 -0
- package/dist/esm/models/WebAuthnDeviceType.d.ts +37 -0
- package/dist/esm/models/WebAuthnDeviceType.js +46 -0
- package/dist/esm/models/WebAuthnDeviceTypeRequest.d.ts +37 -0
- package/dist/esm/models/WebAuthnDeviceTypeRequest.js +46 -0
- package/dist/esm/models/index.d.ts +7 -4
- package/dist/esm/models/index.js +7 -4
- package/dist/models/{AuthenticateWebAuthnStage.d.ts → AuthenticatorWebAuthnStage.d.ts} +33 -20
- package/dist/models/{AuthenticateWebAuthnStage.js → AuthenticatorWebAuthnStage.js} +16 -11
- package/dist/{esm/models/AuthenticateWebAuthnStageRequest.d.ts → models/AuthenticatorWebAuthnStageRequest.d.ts} +21 -15
- package/dist/models/{AuthenticateWebAuthnStageRequest.js → AuthenticatorWebAuthnStageRequest.js} +13 -11
- package/dist/models/ModelEnum.d.ts +1 -1
- package/dist/models/ModelEnum.js +1 -1
- package/dist/models/PaginatedAuthenticatorWebAuthnStageList.d.ts +39 -0
- package/dist/models/PaginatedAuthenticatorWebAuthnStageList.js +55 -0
- package/dist/models/PaginatedWebAuthnDeviceTypeList.d.ts +39 -0
- package/dist/models/PaginatedWebAuthnDeviceTypeList.js +55 -0
- package/dist/{esm/models/PatchedAuthenticateWebAuthnStageRequest.d.ts → models/PatchedAuthenticatorWebAuthnStageRequest.d.ts} +21 -15
- package/dist/models/{PatchedAuthenticateWebAuthnStageRequest.js → PatchedAuthenticatorWebAuthnStageRequest.js} +13 -11
- package/dist/models/WebAuthnDevice.d.ts +7 -0
- package/dist/models/WebAuthnDevice.js +3 -0
- package/dist/models/WebAuthnDeviceType.d.ts +37 -0
- package/dist/models/WebAuthnDeviceType.js +53 -0
- package/dist/models/WebAuthnDeviceTypeRequest.d.ts +37 -0
- package/dist/models/WebAuthnDeviceTypeRequest.js +53 -0
- package/dist/models/index.d.ts +7 -4
- package/dist/models/index.js +7 -4
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +2 -2
- package/src/apis/StagesApi.ts +166 -49
- package/src/models/{AuthenticateWebAuthnStage.ts → AuthenticatorWebAuthnStage.ts} +43 -21
- package/src/models/{AuthenticateWebAuthnStageRequest.ts → AuthenticatorWebAuthnStageRequest.ts} +24 -16
- package/src/models/ModelEnum.ts +1 -1
- package/src/models/{PaginatedAuthenticateWebAuthnStageList.ts → PaginatedAuthenticatorWebAuthnStageList.ts} +19 -19
- package/src/models/PaginatedWebAuthnDeviceTypeList.ts +88 -0
- package/src/models/{PatchedAuthenticateWebAuthnStageRequest.ts → PatchedAuthenticatorWebAuthnStageRequest.ts} +24 -16
- package/src/models/WebAuthnDevice.ts +15 -0
- package/src/models/WebAuthnDeviceType.ts +75 -0
- package/src/models/WebAuthnDeviceTypeRequest.ts +75 -0
- package/src/models/index.ts +7 -4
- package/dist/esm/models/PaginatedAuthenticateWebAuthnStageList.d.ts +0 -39
- package/dist/models/PaginatedAuthenticateWebAuthnStageList.d.ts +0 -39
- package/dist/models/PaginatedAuthenticateWebAuthnStageList.js +0 -55
|
@@ -7,8 +7,6 @@ export * from './Application';
|
|
|
7
7
|
export * from './ApplicationRequest';
|
|
8
8
|
export * from './AuthModeEnum';
|
|
9
9
|
export * from './AuthTypeEnum';
|
|
10
|
-
export * from './AuthenticateWebAuthnStage';
|
|
11
|
-
export * from './AuthenticateWebAuthnStageRequest';
|
|
12
10
|
export * from './AuthenticatedSession';
|
|
13
11
|
export * from './AuthenticatedSessionAsn';
|
|
14
12
|
export * from './AuthenticatedSessionGeoIp';
|
|
@@ -42,6 +40,8 @@ export * from './AuthenticatorValidationChallenge';
|
|
|
42
40
|
export * from './AuthenticatorValidationChallengeResponseRequest';
|
|
43
41
|
export * from './AuthenticatorWebAuthnChallenge';
|
|
44
42
|
export * from './AuthenticatorWebAuthnChallengeResponseRequest';
|
|
43
|
+
export * from './AuthenticatorWebAuthnStage';
|
|
44
|
+
export * from './AuthenticatorWebAuthnStageRequest';
|
|
45
45
|
export * from './AutoSubmitChallengeResponseRequest';
|
|
46
46
|
export * from './AutosubmitChallenge';
|
|
47
47
|
export * from './BackendsEnum';
|
|
@@ -208,13 +208,13 @@ export * from './OutpostHealth';
|
|
|
208
208
|
export * from './OutpostRequest';
|
|
209
209
|
export * from './OutpostTypeEnum';
|
|
210
210
|
export * from './PaginatedApplicationList';
|
|
211
|
-
export * from './PaginatedAuthenticateWebAuthnStageList';
|
|
212
211
|
export * from './PaginatedAuthenticatedSessionList';
|
|
213
212
|
export * from './PaginatedAuthenticatorDuoStageList';
|
|
214
213
|
export * from './PaginatedAuthenticatorSMSStageList';
|
|
215
214
|
export * from './PaginatedAuthenticatorStaticStageList';
|
|
216
215
|
export * from './PaginatedAuthenticatorTOTPStageList';
|
|
217
216
|
export * from './PaginatedAuthenticatorValidateStageList';
|
|
217
|
+
export * from './PaginatedAuthenticatorWebAuthnStageList';
|
|
218
218
|
export * from './PaginatedBlueprintInstanceList';
|
|
219
219
|
export * from './PaginatedBrandList';
|
|
220
220
|
export * from './PaginatedCaptchaStageList';
|
|
@@ -304,6 +304,7 @@ export * from './PaginatedUserSAMLSourceConnectionList';
|
|
|
304
304
|
export * from './PaginatedUserSourceConnectionList';
|
|
305
305
|
export * from './PaginatedUserWriteStageList';
|
|
306
306
|
export * from './PaginatedWebAuthnDeviceList';
|
|
307
|
+
export * from './PaginatedWebAuthnDeviceTypeList';
|
|
307
308
|
export * from './Pagination';
|
|
308
309
|
export * from './PasswordChallenge';
|
|
309
310
|
export * from './PasswordChallengeResponseRequest';
|
|
@@ -314,12 +315,12 @@ export * from './PasswordPolicyRequest';
|
|
|
314
315
|
export * from './PasswordStage';
|
|
315
316
|
export * from './PasswordStageRequest';
|
|
316
317
|
export * from './PatchedApplicationRequest';
|
|
317
|
-
export * from './PatchedAuthenticateWebAuthnStageRequest';
|
|
318
318
|
export * from './PatchedAuthenticatorDuoStageRequest';
|
|
319
319
|
export * from './PatchedAuthenticatorSMSStageRequest';
|
|
320
320
|
export * from './PatchedAuthenticatorStaticStageRequest';
|
|
321
321
|
export * from './PatchedAuthenticatorTOTPStageRequest';
|
|
322
322
|
export * from './PatchedAuthenticatorValidateStageRequest';
|
|
323
|
+
export * from './PatchedAuthenticatorWebAuthnStageRequest';
|
|
323
324
|
export * from './PatchedBlueprintInstanceRequest';
|
|
324
325
|
export * from './PatchedBrandRequest';
|
|
325
326
|
export * from './PatchedCaptchaStageRequest';
|
|
@@ -545,4 +546,6 @@ export * from './ValidationError';
|
|
|
545
546
|
export * from './Version';
|
|
546
547
|
export * from './WebAuthnDevice';
|
|
547
548
|
export * from './WebAuthnDeviceRequest';
|
|
549
|
+
export * from './WebAuthnDeviceType';
|
|
550
|
+
export * from './WebAuthnDeviceTypeRequest';
|
|
548
551
|
export * from './Workers';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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';
|
|
@@ -13,89 +13,102 @@ import type { AuthenticatorAttachmentEnum } from './AuthenticatorAttachmentEnum'
|
|
|
13
13
|
import type { FlowSet } from './FlowSet';
|
|
14
14
|
import type { ResidentKeyRequirementEnum } from './ResidentKeyRequirementEnum';
|
|
15
15
|
import type { UserVerificationEnum } from './UserVerificationEnum';
|
|
16
|
+
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
+
* AuthenticatorWebAuthnStage Serializer
|
|
18
19
|
* @export
|
|
19
|
-
* @interface
|
|
20
|
+
* @interface AuthenticatorWebAuthnStage
|
|
20
21
|
*/
|
|
21
|
-
export interface
|
|
22
|
+
export interface AuthenticatorWebAuthnStage {
|
|
22
23
|
/**
|
|
23
24
|
*
|
|
24
25
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
26
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
26
27
|
*/
|
|
27
28
|
readonly pk: string;
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
* @type {string}
|
|
31
|
-
* @memberof
|
|
32
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
32
33
|
*/
|
|
33
34
|
name: string;
|
|
34
35
|
/**
|
|
35
36
|
* Get object type so that we know how to edit the object
|
|
36
37
|
* @type {string}
|
|
37
|
-
* @memberof
|
|
38
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
38
39
|
*/
|
|
39
40
|
readonly component: string;
|
|
40
41
|
/**
|
|
41
42
|
* Return object's verbose_name
|
|
42
43
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
44
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
44
45
|
*/
|
|
45
46
|
readonly verboseName: string;
|
|
46
47
|
/**
|
|
47
48
|
* Return object's plural verbose_name
|
|
48
49
|
* @type {string}
|
|
49
|
-
* @memberof
|
|
50
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
50
51
|
*/
|
|
51
52
|
readonly verboseNamePlural: string;
|
|
52
53
|
/**
|
|
53
54
|
* Return internal model name
|
|
54
55
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
56
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
56
57
|
*/
|
|
57
58
|
readonly metaModelName: string;
|
|
58
59
|
/**
|
|
59
60
|
*
|
|
60
61
|
* @type {Array<FlowSet>}
|
|
61
|
-
* @memberof
|
|
62
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
62
63
|
*/
|
|
63
64
|
flowSet?: Array<FlowSet>;
|
|
64
65
|
/**
|
|
65
66
|
* Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
|
|
66
67
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
68
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
68
69
|
*/
|
|
69
70
|
configureFlow?: string | null;
|
|
70
71
|
/**
|
|
71
72
|
*
|
|
72
73
|
* @type {string}
|
|
73
|
-
* @memberof
|
|
74
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
74
75
|
*/
|
|
75
76
|
friendlyName?: string | null;
|
|
76
77
|
/**
|
|
77
78
|
*
|
|
78
79
|
* @type {UserVerificationEnum}
|
|
79
|
-
* @memberof
|
|
80
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
80
81
|
*/
|
|
81
82
|
userVerification?: UserVerificationEnum;
|
|
82
83
|
/**
|
|
83
84
|
*
|
|
84
85
|
* @type {AuthenticatorAttachmentEnum}
|
|
85
|
-
* @memberof
|
|
86
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
86
87
|
*/
|
|
87
88
|
authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
|
|
88
89
|
/**
|
|
89
90
|
*
|
|
90
91
|
* @type {ResidentKeyRequirementEnum}
|
|
91
|
-
* @memberof
|
|
92
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
92
93
|
*/
|
|
93
94
|
residentKeyRequirement?: ResidentKeyRequirementEnum;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Array<string>}
|
|
98
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
99
|
+
*/
|
|
100
|
+
deviceTypeRestrictions?: Array<string>;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Array<WebAuthnDeviceType>}
|
|
104
|
+
* @memberof AuthenticatorWebAuthnStage
|
|
105
|
+
*/
|
|
106
|
+
readonly deviceTypeRestrictionsObj: Array<WebAuthnDeviceType>;
|
|
94
107
|
}
|
|
95
108
|
/**
|
|
96
|
-
* Check if a given object implements the
|
|
109
|
+
* Check if a given object implements the AuthenticatorWebAuthnStage interface.
|
|
97
110
|
*/
|
|
98
|
-
export declare function
|
|
99
|
-
export declare function
|
|
100
|
-
export declare function
|
|
101
|
-
export declare function
|
|
111
|
+
export declare function instanceOfAuthenticatorWebAuthnStage(value: object): boolean;
|
|
112
|
+
export declare function AuthenticatorWebAuthnStageFromJSON(json: any): AuthenticatorWebAuthnStage;
|
|
113
|
+
export declare function AuthenticatorWebAuthnStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnStage;
|
|
114
|
+
export declare function AuthenticatorWebAuthnStageToJSON(value?: AuthenticatorWebAuthnStage | null): any;
|
|
@@ -13,16 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.AuthenticatorWebAuthnStageToJSON = exports.AuthenticatorWebAuthnStageFromJSONTyped = exports.AuthenticatorWebAuthnStageFromJSON = exports.instanceOfAuthenticatorWebAuthnStage = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const AuthenticatorAttachmentEnum_1 = require("./AuthenticatorAttachmentEnum");
|
|
19
19
|
const FlowSet_1 = require("./FlowSet");
|
|
20
20
|
const ResidentKeyRequirementEnum_1 = require("./ResidentKeyRequirementEnum");
|
|
21
21
|
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
|
22
|
+
const WebAuthnDeviceType_1 = require("./WebAuthnDeviceType");
|
|
22
23
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
24
|
+
* Check if a given object implements the AuthenticatorWebAuthnStage interface.
|
|
24
25
|
*/
|
|
25
|
-
function
|
|
26
|
+
function instanceOfAuthenticatorWebAuthnStage(value) {
|
|
26
27
|
let isInstance = true;
|
|
27
28
|
isInstance = isInstance && "pk" in value;
|
|
28
29
|
isInstance = isInstance && "name" in value;
|
|
@@ -30,14 +31,15 @@ function instanceOfAuthenticateWebAuthnStage(value) {
|
|
|
30
31
|
isInstance = isInstance && "verboseName" in value;
|
|
31
32
|
isInstance = isInstance && "verboseNamePlural" in value;
|
|
32
33
|
isInstance = isInstance && "metaModelName" in value;
|
|
34
|
+
isInstance = isInstance && "deviceTypeRestrictionsObj" in value;
|
|
33
35
|
return isInstance;
|
|
34
36
|
}
|
|
35
|
-
exports.
|
|
36
|
-
function
|
|
37
|
-
return
|
|
37
|
+
exports.instanceOfAuthenticatorWebAuthnStage = instanceOfAuthenticatorWebAuthnStage;
|
|
38
|
+
function AuthenticatorWebAuthnStageFromJSON(json) {
|
|
39
|
+
return AuthenticatorWebAuthnStageFromJSONTyped(json, false);
|
|
38
40
|
}
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
41
|
+
exports.AuthenticatorWebAuthnStageFromJSON = AuthenticatorWebAuthnStageFromJSON;
|
|
42
|
+
function AuthenticatorWebAuthnStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
43
|
if ((json === undefined) || (json === null)) {
|
|
42
44
|
return json;
|
|
43
45
|
}
|
|
@@ -54,10 +56,12 @@ function AuthenticateWebAuthnStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'userVerification': !(0, runtime_1.exists)(json, 'user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['user_verification']),
|
|
55
57
|
'authenticatorAttachment': !(0, runtime_1.exists)(json, 'authenticator_attachment') ? undefined : (0, AuthenticatorAttachmentEnum_1.AuthenticatorAttachmentEnumFromJSON)(json['authenticator_attachment']),
|
|
56
58
|
'residentKeyRequirement': !(0, runtime_1.exists)(json, 'resident_key_requirement') ? undefined : (0, ResidentKeyRequirementEnum_1.ResidentKeyRequirementEnumFromJSON)(json['resident_key_requirement']),
|
|
59
|
+
'deviceTypeRestrictions': !(0, runtime_1.exists)(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
|
|
60
|
+
'deviceTypeRestrictionsObj': (json['device_type_restrictions_obj'].map(WebAuthnDeviceType_1.WebAuthnDeviceTypeFromJSON)),
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
|
-
exports.
|
|
60
|
-
function
|
|
63
|
+
exports.AuthenticatorWebAuthnStageFromJSONTyped = AuthenticatorWebAuthnStageFromJSONTyped;
|
|
64
|
+
function AuthenticatorWebAuthnStageToJSON(value) {
|
|
61
65
|
if (value === undefined) {
|
|
62
66
|
return undefined;
|
|
63
67
|
}
|
|
@@ -72,6 +76,7 @@ function AuthenticateWebAuthnStageToJSON(value) {
|
|
|
72
76
|
'user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.userVerification),
|
|
73
77
|
'authenticator_attachment': (0, AuthenticatorAttachmentEnum_1.AuthenticatorAttachmentEnumToJSON)(value.authenticatorAttachment),
|
|
74
78
|
'resident_key_requirement': (0, ResidentKeyRequirementEnum_1.ResidentKeyRequirementEnumToJSON)(value.residentKeyRequirement),
|
|
79
|
+
'device_type_restrictions': value.deviceTypeRestrictions,
|
|
75
80
|
};
|
|
76
81
|
}
|
|
77
|
-
exports.
|
|
82
|
+
exports.AuthenticatorWebAuthnStageToJSON = AuthenticatorWebAuthnStageToJSON;
|
|
@@ -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
|
-
*
|
|
17
|
+
* AuthenticatorWebAuthnStage Serializer
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface AuthenticatorWebAuthnStageRequest
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface AuthenticatorWebAuthnStageRequest {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof AuthenticatorWebAuthnStageRequest
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {Array<FlowSetRequest>}
|
|
31
|
-
* @memberof
|
|
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
|
|
37
|
+
* @memberof AuthenticatorWebAuthnStageRequest
|
|
38
38
|
*/
|
|
39
39
|
configureFlow?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof AuthenticatorWebAuthnStageRequest
|
|
44
44
|
*/
|
|
45
45
|
friendlyName?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {UserVerificationEnum}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof AuthenticatorWebAuthnStageRequest
|
|
50
50
|
*/
|
|
51
51
|
userVerification?: UserVerificationEnum;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {AuthenticatorAttachmentEnum}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof AuthenticatorWebAuthnStageRequest
|
|
56
56
|
*/
|
|
57
57
|
authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {ResidentKeyRequirementEnum}
|
|
61
|
-
* @memberof
|
|
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
|
|
72
|
+
* Check if a given object implements the AuthenticatorWebAuthnStageRequest interface.
|
|
67
73
|
*/
|
|
68
|
-
export declare function
|
|
69
|
-
export declare function
|
|
70
|
-
export declare function
|
|
71
|
-
export declare function
|
|
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;
|
package/dist/models/{AuthenticateWebAuthnStageRequest.js → AuthenticatorWebAuthnStageRequest.js}
RENAMED
|
@@ -13,26 +13,26 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.AuthenticatorWebAuthnStageRequestToJSON = exports.AuthenticatorWebAuthnStageRequestFromJSONTyped = exports.AuthenticatorWebAuthnStageRequestFromJSON = exports.instanceOfAuthenticatorWebAuthnStageRequest = void 0;
|
|
17
17
|
const runtime_1 = require("../runtime");
|
|
18
18
|
const AuthenticatorAttachmentEnum_1 = require("./AuthenticatorAttachmentEnum");
|
|
19
19
|
const FlowSetRequest_1 = require("./FlowSetRequest");
|
|
20
20
|
const ResidentKeyRequirementEnum_1 = require("./ResidentKeyRequirementEnum");
|
|
21
21
|
const UserVerificationEnum_1 = require("./UserVerificationEnum");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the AuthenticatorWebAuthnStageRequest interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function instanceOfAuthenticatorWebAuthnStageRequest(value) {
|
|
26
26
|
let isInstance = true;
|
|
27
27
|
isInstance = isInstance && "name" in value;
|
|
28
28
|
return isInstance;
|
|
29
29
|
}
|
|
30
|
-
exports.
|
|
31
|
-
function
|
|
32
|
-
return
|
|
30
|
+
exports.instanceOfAuthenticatorWebAuthnStageRequest = instanceOfAuthenticatorWebAuthnStageRequest;
|
|
31
|
+
function AuthenticatorWebAuthnStageRequestFromJSON(json) {
|
|
32
|
+
return AuthenticatorWebAuthnStageRequestFromJSONTyped(json, false);
|
|
33
33
|
}
|
|
34
|
-
exports.
|
|
35
|
-
function
|
|
34
|
+
exports.AuthenticatorWebAuthnStageRequestFromJSON = AuthenticatorWebAuthnStageRequestFromJSON;
|
|
35
|
+
function AuthenticatorWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
36
|
if ((json === undefined) || (json === null)) {
|
|
37
37
|
return json;
|
|
38
38
|
}
|
|
@@ -44,10 +44,11 @@ function AuthenticateWebAuthnStageRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
44
44
|
'userVerification': !(0, runtime_1.exists)(json, 'user_verification') ? undefined : (0, UserVerificationEnum_1.UserVerificationEnumFromJSON)(json['user_verification']),
|
|
45
45
|
'authenticatorAttachment': !(0, runtime_1.exists)(json, 'authenticator_attachment') ? undefined : (0, AuthenticatorAttachmentEnum_1.AuthenticatorAttachmentEnumFromJSON)(json['authenticator_attachment']),
|
|
46
46
|
'residentKeyRequirement': !(0, runtime_1.exists)(json, 'resident_key_requirement') ? undefined : (0, ResidentKeyRequirementEnum_1.ResidentKeyRequirementEnumFromJSON)(json['resident_key_requirement']),
|
|
47
|
+
'deviceTypeRestrictions': !(0, runtime_1.exists)(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
exports.
|
|
50
|
-
function
|
|
50
|
+
exports.AuthenticatorWebAuthnStageRequestFromJSONTyped = AuthenticatorWebAuthnStageRequestFromJSONTyped;
|
|
51
|
+
function AuthenticatorWebAuthnStageRequestToJSON(value) {
|
|
51
52
|
if (value === undefined) {
|
|
52
53
|
return undefined;
|
|
53
54
|
}
|
|
@@ -62,6 +63,7 @@ function AuthenticateWebAuthnStageRequestToJSON(value) {
|
|
|
62
63
|
'user_verification': (0, UserVerificationEnum_1.UserVerificationEnumToJSON)(value.userVerification),
|
|
63
64
|
'authenticator_attachment': (0, AuthenticatorAttachmentEnum_1.AuthenticatorAttachmentEnumToJSON)(value.authenticatorAttachment),
|
|
64
65
|
'resident_key_requirement': (0, ResidentKeyRequirementEnum_1.ResidentKeyRequirementEnumToJSON)(value.residentKeyRequirement),
|
|
66
|
+
'device_type_restrictions': value.deviceTypeRestrictions,
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
|
-
exports.
|
|
69
|
+
exports.AuthenticatorWebAuthnStageRequestToJSON = AuthenticatorWebAuthnStageRequestToJSON;
|
|
@@ -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
|
|
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";
|
package/dist/models/ModelEnum.js
CHANGED
|
@@ -60,7 +60,7 @@ exports.ModelEnum = {
|
|
|
60
60
|
StagesAuthenticatorTotpAuthenticatortotpstage: 'authentik_stages_authenticator_totp.authenticatortotpstage',
|
|
61
61
|
StagesAuthenticatorTotpTotpdevice: 'authentik_stages_authenticator_totp.totpdevice',
|
|
62
62
|
StagesAuthenticatorValidateAuthenticatorvalidatestage: 'authentik_stages_authenticator_validate.authenticatorvalidatestage',
|
|
63
|
-
|
|
63
|
+
StagesAuthenticatorWebauthnAuthenticatorwebauthnstage: 'authentik_stages_authenticator_webauthn.authenticatorwebauthnstage',
|
|
64
64
|
StagesAuthenticatorWebauthnWebauthndevice: 'authentik_stages_authenticator_webauthn.webauthndevice',
|
|
65
65
|
StagesCaptchaCaptchastage: 'authentik_stages_captcha.captchastage',
|
|
66
66
|
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,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.2.2
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
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.PaginatedAuthenticatorWebAuthnStageListToJSON = exports.PaginatedAuthenticatorWebAuthnStageListFromJSONTyped = exports.PaginatedAuthenticatorWebAuthnStageListFromJSON = exports.instanceOfPaginatedAuthenticatorWebAuthnStageList = void 0;
|
|
17
|
+
const AuthenticatorWebAuthnStage_1 = require("./AuthenticatorWebAuthnStage");
|
|
18
|
+
const Pagination_1 = require("./Pagination");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the PaginatedAuthenticatorWebAuthnStageList interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfPaginatedAuthenticatorWebAuthnStageList(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "pagination" in value;
|
|
25
|
+
isInstance = isInstance && "results" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfPaginatedAuthenticatorWebAuthnStageList = instanceOfPaginatedAuthenticatorWebAuthnStageList;
|
|
29
|
+
function PaginatedAuthenticatorWebAuthnStageListFromJSON(json) {
|
|
30
|
+
return PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.PaginatedAuthenticatorWebAuthnStageListFromJSON = PaginatedAuthenticatorWebAuthnStageListFromJSON;
|
|
33
|
+
function PaginatedAuthenticatorWebAuthnStageListFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
|
|
39
|
+
'results': (json['results'].map(AuthenticatorWebAuthnStage_1.AuthenticatorWebAuthnStageFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.PaginatedAuthenticatorWebAuthnStageListFromJSONTyped = PaginatedAuthenticatorWebAuthnStageListFromJSONTyped;
|
|
43
|
+
function PaginatedAuthenticatorWebAuthnStageListToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
|
|
52
|
+
'results': (value.results.map(AuthenticatorWebAuthnStage_1.AuthenticatorWebAuthnStageToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.PaginatedAuthenticatorWebAuthnStageListToJSON = PaginatedAuthenticatorWebAuthnStageListToJSON;
|
|
@@ -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;
|