@goauthentik/api 2024.2.2-1712238004 → 2024.2.2-1712571709
Sign up to get free protection for your applications and to get access to all the features.
- 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
package/src/apis/StagesApi.ts
CHANGED
@@ -15,8 +15,6 @@
|
|
15
15
|
|
16
16
|
import * as runtime from '../runtime';
|
17
17
|
import type {
|
18
|
-
AuthenticateWebAuthnStage,
|
19
|
-
AuthenticateWebAuthnStageRequest,
|
20
18
|
AuthenticatorDuoStage,
|
21
19
|
AuthenticatorDuoStageDeviceImportResponse,
|
22
20
|
AuthenticatorDuoStageManualDeviceImportRequest,
|
@@ -29,6 +27,8 @@ import type {
|
|
29
27
|
AuthenticatorTOTPStageRequest,
|
30
28
|
AuthenticatorValidateStage,
|
31
29
|
AuthenticatorValidateStageRequest,
|
30
|
+
AuthenticatorWebAuthnStage,
|
31
|
+
AuthenticatorWebAuthnStageRequest,
|
32
32
|
CaptchaStage,
|
33
33
|
CaptchaStageRequest,
|
34
34
|
ConsentStage,
|
@@ -47,12 +47,12 @@ import type {
|
|
47
47
|
InvitationRequest,
|
48
48
|
InvitationStage,
|
49
49
|
InvitationStageRequest,
|
50
|
-
PaginatedAuthenticateWebAuthnStageList,
|
51
50
|
PaginatedAuthenticatorDuoStageList,
|
52
51
|
PaginatedAuthenticatorSMSStageList,
|
53
52
|
PaginatedAuthenticatorStaticStageList,
|
54
53
|
PaginatedAuthenticatorTOTPStageList,
|
55
54
|
PaginatedAuthenticatorValidateStageList,
|
55
|
+
PaginatedAuthenticatorWebAuthnStageList,
|
56
56
|
PaginatedCaptchaStageList,
|
57
57
|
PaginatedConsentStageList,
|
58
58
|
PaginatedDenyStageList,
|
@@ -70,14 +70,15 @@ import type {
|
|
70
70
|
PaginatedUserLoginStageList,
|
71
71
|
PaginatedUserLogoutStageList,
|
72
72
|
PaginatedUserWriteStageList,
|
73
|
+
PaginatedWebAuthnDeviceTypeList,
|
73
74
|
PasswordStage,
|
74
75
|
PasswordStageRequest,
|
75
|
-
PatchedAuthenticateWebAuthnStageRequest,
|
76
76
|
PatchedAuthenticatorDuoStageRequest,
|
77
77
|
PatchedAuthenticatorSMSStageRequest,
|
78
78
|
PatchedAuthenticatorStaticStageRequest,
|
79
79
|
PatchedAuthenticatorTOTPStageRequest,
|
80
80
|
PatchedAuthenticatorValidateStageRequest,
|
81
|
+
PatchedAuthenticatorWebAuthnStageRequest,
|
81
82
|
PatchedCaptchaStageRequest,
|
82
83
|
PatchedConsentStageRequest,
|
83
84
|
PatchedDenyStageRequest,
|
@@ -114,12 +115,9 @@ import type {
|
|
114
115
|
UserWriteStage,
|
115
116
|
UserWriteStageRequest,
|
116
117
|
ValidationError,
|
118
|
+
WebAuthnDeviceType,
|
117
119
|
} from '../models';
|
118
120
|
import {
|
119
|
-
AuthenticateWebAuthnStageFromJSON,
|
120
|
-
AuthenticateWebAuthnStageToJSON,
|
121
|
-
AuthenticateWebAuthnStageRequestFromJSON,
|
122
|
-
AuthenticateWebAuthnStageRequestToJSON,
|
123
121
|
AuthenticatorDuoStageFromJSON,
|
124
122
|
AuthenticatorDuoStageToJSON,
|
125
123
|
AuthenticatorDuoStageDeviceImportResponseFromJSON,
|
@@ -144,6 +142,10 @@ import {
|
|
144
142
|
AuthenticatorValidateStageToJSON,
|
145
143
|
AuthenticatorValidateStageRequestFromJSON,
|
146
144
|
AuthenticatorValidateStageRequestToJSON,
|
145
|
+
AuthenticatorWebAuthnStageFromJSON,
|
146
|
+
AuthenticatorWebAuthnStageToJSON,
|
147
|
+
AuthenticatorWebAuthnStageRequestFromJSON,
|
148
|
+
AuthenticatorWebAuthnStageRequestToJSON,
|
147
149
|
CaptchaStageFromJSON,
|
148
150
|
CaptchaStageToJSON,
|
149
151
|
CaptchaStageRequestFromJSON,
|
@@ -180,8 +182,6 @@ import {
|
|
180
182
|
InvitationStageToJSON,
|
181
183
|
InvitationStageRequestFromJSON,
|
182
184
|
InvitationStageRequestToJSON,
|
183
|
-
PaginatedAuthenticateWebAuthnStageListFromJSON,
|
184
|
-
PaginatedAuthenticateWebAuthnStageListToJSON,
|
185
185
|
PaginatedAuthenticatorDuoStageListFromJSON,
|
186
186
|
PaginatedAuthenticatorDuoStageListToJSON,
|
187
187
|
PaginatedAuthenticatorSMSStageListFromJSON,
|
@@ -192,6 +192,8 @@ import {
|
|
192
192
|
PaginatedAuthenticatorTOTPStageListToJSON,
|
193
193
|
PaginatedAuthenticatorValidateStageListFromJSON,
|
194
194
|
PaginatedAuthenticatorValidateStageListToJSON,
|
195
|
+
PaginatedAuthenticatorWebAuthnStageListFromJSON,
|
196
|
+
PaginatedAuthenticatorWebAuthnStageListToJSON,
|
195
197
|
PaginatedCaptchaStageListFromJSON,
|
196
198
|
PaginatedCaptchaStageListToJSON,
|
197
199
|
PaginatedConsentStageListFromJSON,
|
@@ -226,12 +228,12 @@ import {
|
|
226
228
|
PaginatedUserLogoutStageListToJSON,
|
227
229
|
PaginatedUserWriteStageListFromJSON,
|
228
230
|
PaginatedUserWriteStageListToJSON,
|
231
|
+
PaginatedWebAuthnDeviceTypeListFromJSON,
|
232
|
+
PaginatedWebAuthnDeviceTypeListToJSON,
|
229
233
|
PasswordStageFromJSON,
|
230
234
|
PasswordStageToJSON,
|
231
235
|
PasswordStageRequestFromJSON,
|
232
236
|
PasswordStageRequestToJSON,
|
233
|
-
PatchedAuthenticateWebAuthnStageRequestFromJSON,
|
234
|
-
PatchedAuthenticateWebAuthnStageRequestToJSON,
|
235
237
|
PatchedAuthenticatorDuoStageRequestFromJSON,
|
236
238
|
PatchedAuthenticatorDuoStageRequestToJSON,
|
237
239
|
PatchedAuthenticatorSMSStageRequestFromJSON,
|
@@ -242,6 +244,8 @@ import {
|
|
242
244
|
PatchedAuthenticatorTOTPStageRequestToJSON,
|
243
245
|
PatchedAuthenticatorValidateStageRequestFromJSON,
|
244
246
|
PatchedAuthenticatorValidateStageRequestToJSON,
|
247
|
+
PatchedAuthenticatorWebAuthnStageRequestFromJSON,
|
248
|
+
PatchedAuthenticatorWebAuthnStageRequestToJSON,
|
245
249
|
PatchedCaptchaStageRequestFromJSON,
|
246
250
|
PatchedCaptchaStageRequestToJSON,
|
247
251
|
PatchedConsentStageRequestFromJSON,
|
@@ -314,6 +318,8 @@ import {
|
|
314
318
|
UserWriteStageRequestToJSON,
|
315
319
|
ValidationErrorFromJSON,
|
316
320
|
ValidationErrorToJSON,
|
321
|
+
WebAuthnDeviceTypeFromJSON,
|
322
|
+
WebAuthnDeviceTypeToJSON,
|
317
323
|
} from '../models';
|
318
324
|
|
319
325
|
export interface StagesAllDestroyRequest {
|
@@ -545,16 +551,31 @@ export interface StagesAuthenticatorValidateUsedByListRequest {
|
|
545
551
|
}
|
546
552
|
|
547
553
|
export interface StagesAuthenticatorWebauthnCreateRequest {
|
548
|
-
|
554
|
+
authenticatorWebAuthnStageRequest: AuthenticatorWebAuthnStageRequest;
|
549
555
|
}
|
550
556
|
|
551
557
|
export interface StagesAuthenticatorWebauthnDestroyRequest {
|
552
558
|
stageUuid: string;
|
553
559
|
}
|
554
560
|
|
561
|
+
export interface StagesAuthenticatorWebauthnDeviceTypesListRequest {
|
562
|
+
aaguid?: string;
|
563
|
+
description?: string;
|
564
|
+
icon?: string;
|
565
|
+
ordering?: string;
|
566
|
+
page?: number;
|
567
|
+
pageSize?: number;
|
568
|
+
search?: string;
|
569
|
+
}
|
570
|
+
|
571
|
+
export interface StagesAuthenticatorWebauthnDeviceTypesRetrieveRequest {
|
572
|
+
aaguid: string;
|
573
|
+
}
|
574
|
+
|
555
575
|
export interface StagesAuthenticatorWebauthnListRequest {
|
556
576
|
authenticatorAttachment?: StagesAuthenticatorWebauthnListAuthenticatorAttachmentEnum;
|
557
577
|
configureFlow?: string;
|
578
|
+
deviceTypeRestrictions?: Array<string>;
|
558
579
|
friendlyName?: string;
|
559
580
|
name?: string;
|
560
581
|
ordering?: string;
|
@@ -568,7 +589,7 @@ export interface StagesAuthenticatorWebauthnListRequest {
|
|
568
589
|
|
569
590
|
export interface StagesAuthenticatorWebauthnPartialUpdateRequest {
|
570
591
|
stageUuid: string;
|
571
|
-
|
592
|
+
patchedAuthenticatorWebAuthnStageRequest?: PatchedAuthenticatorWebAuthnStageRequest;
|
572
593
|
}
|
573
594
|
|
574
595
|
export interface StagesAuthenticatorWebauthnRetrieveRequest {
|
@@ -577,7 +598,7 @@ export interface StagesAuthenticatorWebauthnRetrieveRequest {
|
|
577
598
|
|
578
599
|
export interface StagesAuthenticatorWebauthnUpdateRequest {
|
579
600
|
stageUuid: string;
|
580
|
-
|
601
|
+
authenticatorWebAuthnStageRequest: AuthenticatorWebAuthnStageRequest;
|
581
602
|
}
|
582
603
|
|
583
604
|
export interface StagesAuthenticatorWebauthnUsedByListRequest {
|
@@ -2946,11 +2967,11 @@ export class StagesApi extends runtime.BaseAPI {
|
|
2946
2967
|
}
|
2947
2968
|
|
2948
2969
|
/**
|
2949
|
-
*
|
2970
|
+
* AuthenticatorWebAuthnStage Viewset
|
2950
2971
|
*/
|
2951
|
-
async stagesAuthenticatorWebauthnCreateRaw(requestParameters: StagesAuthenticatorWebauthnCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
2952
|
-
if (requestParameters.
|
2953
|
-
throw new runtime.RequiredError('
|
2972
|
+
async stagesAuthenticatorWebauthnCreateRaw(requestParameters: StagesAuthenticatorWebauthnCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorWebAuthnStage>> {
|
2973
|
+
if (requestParameters.authenticatorWebAuthnStageRequest === null || requestParameters.authenticatorWebAuthnStageRequest === undefined) {
|
2974
|
+
throw new runtime.RequiredError('authenticatorWebAuthnStageRequest','Required parameter requestParameters.authenticatorWebAuthnStageRequest was null or undefined when calling stagesAuthenticatorWebauthnCreate.');
|
2954
2975
|
}
|
2955
2976
|
|
2956
2977
|
const queryParameters: any = {};
|
@@ -2968,22 +2989,22 @@ export class StagesApi extends runtime.BaseAPI {
|
|
2968
2989
|
method: 'POST',
|
2969
2990
|
headers: headerParameters,
|
2970
2991
|
query: queryParameters,
|
2971
|
-
body:
|
2992
|
+
body: AuthenticatorWebAuthnStageRequestToJSON(requestParameters.authenticatorWebAuthnStageRequest),
|
2972
2993
|
}, initOverrides);
|
2973
2994
|
|
2974
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
2995
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorWebAuthnStageFromJSON(jsonValue));
|
2975
2996
|
}
|
2976
2997
|
|
2977
2998
|
/**
|
2978
|
-
*
|
2999
|
+
* AuthenticatorWebAuthnStage Viewset
|
2979
3000
|
*/
|
2980
|
-
async stagesAuthenticatorWebauthnCreate(requestParameters: StagesAuthenticatorWebauthnCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
3001
|
+
async stagesAuthenticatorWebauthnCreate(requestParameters: StagesAuthenticatorWebauthnCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorWebAuthnStage> {
|
2981
3002
|
const response = await this.stagesAuthenticatorWebauthnCreateRaw(requestParameters, initOverrides);
|
2982
3003
|
return await response.value();
|
2983
3004
|
}
|
2984
3005
|
|
2985
3006
|
/**
|
2986
|
-
*
|
3007
|
+
* AuthenticatorWebAuthnStage Viewset
|
2987
3008
|
*/
|
2988
3009
|
async stagesAuthenticatorWebauthnDestroyRaw(requestParameters: StagesAuthenticatorWebauthnDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
2989
3010
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
@@ -3009,16 +3030,108 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3009
3030
|
}
|
3010
3031
|
|
3011
3032
|
/**
|
3012
|
-
*
|
3033
|
+
* AuthenticatorWebAuthnStage Viewset
|
3013
3034
|
*/
|
3014
3035
|
async stagesAuthenticatorWebauthnDestroy(requestParameters: StagesAuthenticatorWebauthnDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
3015
3036
|
await this.stagesAuthenticatorWebauthnDestroyRaw(requestParameters, initOverrides);
|
3016
3037
|
}
|
3017
3038
|
|
3018
3039
|
/**
|
3019
|
-
*
|
3040
|
+
* WebAuthnDeviceType Viewset
|
3041
|
+
*/
|
3042
|
+
async stagesAuthenticatorWebauthnDeviceTypesListRaw(requestParameters: StagesAuthenticatorWebauthnDeviceTypesListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedWebAuthnDeviceTypeList>> {
|
3043
|
+
const queryParameters: any = {};
|
3044
|
+
|
3045
|
+
if (requestParameters.aaguid !== undefined) {
|
3046
|
+
queryParameters['aaguid'] = requestParameters.aaguid;
|
3047
|
+
}
|
3048
|
+
|
3049
|
+
if (requestParameters.description !== undefined) {
|
3050
|
+
queryParameters['description'] = requestParameters.description;
|
3051
|
+
}
|
3052
|
+
|
3053
|
+
if (requestParameters.icon !== undefined) {
|
3054
|
+
queryParameters['icon'] = requestParameters.icon;
|
3055
|
+
}
|
3056
|
+
|
3057
|
+
if (requestParameters.ordering !== undefined) {
|
3058
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
3059
|
+
}
|
3060
|
+
|
3061
|
+
if (requestParameters.page !== undefined) {
|
3062
|
+
queryParameters['page'] = requestParameters.page;
|
3063
|
+
}
|
3064
|
+
|
3065
|
+
if (requestParameters.pageSize !== undefined) {
|
3066
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
3067
|
+
}
|
3068
|
+
|
3069
|
+
if (requestParameters.search !== undefined) {
|
3070
|
+
queryParameters['search'] = requestParameters.search;
|
3071
|
+
}
|
3072
|
+
|
3073
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3074
|
+
|
3075
|
+
if (this.configuration && this.configuration.apiKey) {
|
3076
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
3077
|
+
}
|
3078
|
+
|
3079
|
+
const response = await this.request({
|
3080
|
+
path: `/stages/authenticator/webauthn_device_types/`,
|
3081
|
+
method: 'GET',
|
3082
|
+
headers: headerParameters,
|
3083
|
+
query: queryParameters,
|
3084
|
+
}, initOverrides);
|
3085
|
+
|
3086
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedWebAuthnDeviceTypeListFromJSON(jsonValue));
|
3087
|
+
}
|
3088
|
+
|
3089
|
+
/**
|
3090
|
+
* WebAuthnDeviceType Viewset
|
3091
|
+
*/
|
3092
|
+
async stagesAuthenticatorWebauthnDeviceTypesList(requestParameters: StagesAuthenticatorWebauthnDeviceTypesListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedWebAuthnDeviceTypeList> {
|
3093
|
+
const response = await this.stagesAuthenticatorWebauthnDeviceTypesListRaw(requestParameters, initOverrides);
|
3094
|
+
return await response.value();
|
3095
|
+
}
|
3096
|
+
|
3097
|
+
/**
|
3098
|
+
* WebAuthnDeviceType Viewset
|
3099
|
+
*/
|
3100
|
+
async stagesAuthenticatorWebauthnDeviceTypesRetrieveRaw(requestParameters: StagesAuthenticatorWebauthnDeviceTypesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebAuthnDeviceType>> {
|
3101
|
+
if (requestParameters.aaguid === null || requestParameters.aaguid === undefined) {
|
3102
|
+
throw new runtime.RequiredError('aaguid','Required parameter requestParameters.aaguid was null or undefined when calling stagesAuthenticatorWebauthnDeviceTypesRetrieve.');
|
3103
|
+
}
|
3104
|
+
|
3105
|
+
const queryParameters: any = {};
|
3106
|
+
|
3107
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
3108
|
+
|
3109
|
+
if (this.configuration && this.configuration.apiKey) {
|
3110
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
3111
|
+
}
|
3112
|
+
|
3113
|
+
const response = await this.request({
|
3114
|
+
path: `/stages/authenticator/webauthn_device_types/{aaguid}/`.replace(`{${"aaguid"}}`, encodeURIComponent(String(requestParameters.aaguid))),
|
3115
|
+
method: 'GET',
|
3116
|
+
headers: headerParameters,
|
3117
|
+
query: queryParameters,
|
3118
|
+
}, initOverrides);
|
3119
|
+
|
3120
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => WebAuthnDeviceTypeFromJSON(jsonValue));
|
3121
|
+
}
|
3122
|
+
|
3123
|
+
/**
|
3124
|
+
* WebAuthnDeviceType Viewset
|
3125
|
+
*/
|
3126
|
+
async stagesAuthenticatorWebauthnDeviceTypesRetrieve(requestParameters: StagesAuthenticatorWebauthnDeviceTypesRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebAuthnDeviceType> {
|
3127
|
+
const response = await this.stagesAuthenticatorWebauthnDeviceTypesRetrieveRaw(requestParameters, initOverrides);
|
3128
|
+
return await response.value();
|
3129
|
+
}
|
3130
|
+
|
3131
|
+
/**
|
3132
|
+
* AuthenticatorWebAuthnStage Viewset
|
3020
3133
|
*/
|
3021
|
-
async stagesAuthenticatorWebauthnListRaw(requestParameters: StagesAuthenticatorWebauthnListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
3134
|
+
async stagesAuthenticatorWebauthnListRaw(requestParameters: StagesAuthenticatorWebauthnListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAuthenticatorWebAuthnStageList>> {
|
3022
3135
|
const queryParameters: any = {};
|
3023
3136
|
|
3024
3137
|
if (requestParameters.authenticatorAttachment !== undefined) {
|
@@ -3029,6 +3142,10 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3029
3142
|
queryParameters['configure_flow'] = requestParameters.configureFlow;
|
3030
3143
|
}
|
3031
3144
|
|
3145
|
+
if (requestParameters.deviceTypeRestrictions) {
|
3146
|
+
queryParameters['device_type_restrictions'] = requestParameters.deviceTypeRestrictions;
|
3147
|
+
}
|
3148
|
+
|
3032
3149
|
if (requestParameters.friendlyName !== undefined) {
|
3033
3150
|
queryParameters['friendly_name'] = requestParameters.friendlyName;
|
3034
3151
|
}
|
@@ -3078,21 +3195,21 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3078
3195
|
query: queryParameters,
|
3079
3196
|
}, initOverrides);
|
3080
3197
|
|
3081
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
3198
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAuthenticatorWebAuthnStageListFromJSON(jsonValue));
|
3082
3199
|
}
|
3083
3200
|
|
3084
3201
|
/**
|
3085
|
-
*
|
3202
|
+
* AuthenticatorWebAuthnStage Viewset
|
3086
3203
|
*/
|
3087
|
-
async stagesAuthenticatorWebauthnList(requestParameters: StagesAuthenticatorWebauthnListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
3204
|
+
async stagesAuthenticatorWebauthnList(requestParameters: StagesAuthenticatorWebauthnListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAuthenticatorWebAuthnStageList> {
|
3088
3205
|
const response = await this.stagesAuthenticatorWebauthnListRaw(requestParameters, initOverrides);
|
3089
3206
|
return await response.value();
|
3090
3207
|
}
|
3091
3208
|
|
3092
3209
|
/**
|
3093
|
-
*
|
3210
|
+
* AuthenticatorWebAuthnStage Viewset
|
3094
3211
|
*/
|
3095
|
-
async stagesAuthenticatorWebauthnPartialUpdateRaw(requestParameters: StagesAuthenticatorWebauthnPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
3212
|
+
async stagesAuthenticatorWebauthnPartialUpdateRaw(requestParameters: StagesAuthenticatorWebauthnPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorWebAuthnStage>> {
|
3096
3213
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
3097
3214
|
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorWebauthnPartialUpdate.');
|
3098
3215
|
}
|
@@ -3112,24 +3229,24 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3112
3229
|
method: 'PATCH',
|
3113
3230
|
headers: headerParameters,
|
3114
3231
|
query: queryParameters,
|
3115
|
-
body:
|
3232
|
+
body: PatchedAuthenticatorWebAuthnStageRequestToJSON(requestParameters.patchedAuthenticatorWebAuthnStageRequest),
|
3116
3233
|
}, initOverrides);
|
3117
3234
|
|
3118
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
3235
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorWebAuthnStageFromJSON(jsonValue));
|
3119
3236
|
}
|
3120
3237
|
|
3121
3238
|
/**
|
3122
|
-
*
|
3239
|
+
* AuthenticatorWebAuthnStage Viewset
|
3123
3240
|
*/
|
3124
|
-
async stagesAuthenticatorWebauthnPartialUpdate(requestParameters: StagesAuthenticatorWebauthnPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
3241
|
+
async stagesAuthenticatorWebauthnPartialUpdate(requestParameters: StagesAuthenticatorWebauthnPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorWebAuthnStage> {
|
3125
3242
|
const response = await this.stagesAuthenticatorWebauthnPartialUpdateRaw(requestParameters, initOverrides);
|
3126
3243
|
return await response.value();
|
3127
3244
|
}
|
3128
3245
|
|
3129
3246
|
/**
|
3130
|
-
*
|
3247
|
+
* AuthenticatorWebAuthnStage Viewset
|
3131
3248
|
*/
|
3132
|
-
async stagesAuthenticatorWebauthnRetrieveRaw(requestParameters: StagesAuthenticatorWebauthnRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
3249
|
+
async stagesAuthenticatorWebauthnRetrieveRaw(requestParameters: StagesAuthenticatorWebauthnRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorWebAuthnStage>> {
|
3133
3250
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
3134
3251
|
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorWebauthnRetrieve.');
|
3135
3252
|
}
|
@@ -3149,27 +3266,27 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3149
3266
|
query: queryParameters,
|
3150
3267
|
}, initOverrides);
|
3151
3268
|
|
3152
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
3269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorWebAuthnStageFromJSON(jsonValue));
|
3153
3270
|
}
|
3154
3271
|
|
3155
3272
|
/**
|
3156
|
-
*
|
3273
|
+
* AuthenticatorWebAuthnStage Viewset
|
3157
3274
|
*/
|
3158
|
-
async stagesAuthenticatorWebauthnRetrieve(requestParameters: StagesAuthenticatorWebauthnRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
3275
|
+
async stagesAuthenticatorWebauthnRetrieve(requestParameters: StagesAuthenticatorWebauthnRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorWebAuthnStage> {
|
3159
3276
|
const response = await this.stagesAuthenticatorWebauthnRetrieveRaw(requestParameters, initOverrides);
|
3160
3277
|
return await response.value();
|
3161
3278
|
}
|
3162
3279
|
|
3163
3280
|
/**
|
3164
|
-
*
|
3281
|
+
* AuthenticatorWebAuthnStage Viewset
|
3165
3282
|
*/
|
3166
|
-
async stagesAuthenticatorWebauthnUpdateRaw(requestParameters: StagesAuthenticatorWebauthnUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
3283
|
+
async stagesAuthenticatorWebauthnUpdateRaw(requestParameters: StagesAuthenticatorWebauthnUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuthenticatorWebAuthnStage>> {
|
3167
3284
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
3168
3285
|
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorWebauthnUpdate.');
|
3169
3286
|
}
|
3170
3287
|
|
3171
|
-
if (requestParameters.
|
3172
|
-
throw new runtime.RequiredError('
|
3288
|
+
if (requestParameters.authenticatorWebAuthnStageRequest === null || requestParameters.authenticatorWebAuthnStageRequest === undefined) {
|
3289
|
+
throw new runtime.RequiredError('authenticatorWebAuthnStageRequest','Required parameter requestParameters.authenticatorWebAuthnStageRequest was null or undefined when calling stagesAuthenticatorWebauthnUpdate.');
|
3173
3290
|
}
|
3174
3291
|
|
3175
3292
|
const queryParameters: any = {};
|
@@ -3187,16 +3304,16 @@ export class StagesApi extends runtime.BaseAPI {
|
|
3187
3304
|
method: 'PUT',
|
3188
3305
|
headers: headerParameters,
|
3189
3306
|
query: queryParameters,
|
3190
|
-
body:
|
3307
|
+
body: AuthenticatorWebAuthnStageRequestToJSON(requestParameters.authenticatorWebAuthnStageRequest),
|
3191
3308
|
}, initOverrides);
|
3192
3309
|
|
3193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
3310
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorWebAuthnStageFromJSON(jsonValue));
|
3194
3311
|
}
|
3195
3312
|
|
3196
3313
|
/**
|
3197
|
-
*
|
3314
|
+
* AuthenticatorWebAuthnStage Viewset
|
3198
3315
|
*/
|
3199
|
-
async stagesAuthenticatorWebauthnUpdate(requestParameters: StagesAuthenticatorWebauthnUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
3316
|
+
async stagesAuthenticatorWebauthnUpdate(requestParameters: StagesAuthenticatorWebauthnUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuthenticatorWebAuthnStage> {
|
3200
3317
|
const response = await this.stagesAuthenticatorWebauthnUpdateRaw(requestParameters, initOverrides);
|
3201
3318
|
return await response.value();
|
3202
3319
|
}
|
@@ -37,91 +37,109 @@ import {
|
|
37
37
|
UserVerificationEnumFromJSONTyped,
|
38
38
|
UserVerificationEnumToJSON,
|
39
39
|
} from './UserVerificationEnum';
|
40
|
+
import type { WebAuthnDeviceType } from './WebAuthnDeviceType';
|
41
|
+
import {
|
42
|
+
WebAuthnDeviceTypeFromJSON,
|
43
|
+
WebAuthnDeviceTypeFromJSONTyped,
|
44
|
+
WebAuthnDeviceTypeToJSON,
|
45
|
+
} from './WebAuthnDeviceType';
|
40
46
|
|
41
47
|
/**
|
42
|
-
*
|
48
|
+
* AuthenticatorWebAuthnStage Serializer
|
43
49
|
* @export
|
44
|
-
* @interface
|
50
|
+
* @interface AuthenticatorWebAuthnStage
|
45
51
|
*/
|
46
|
-
export interface
|
52
|
+
export interface AuthenticatorWebAuthnStage {
|
47
53
|
/**
|
48
54
|
*
|
49
55
|
* @type {string}
|
50
|
-
* @memberof
|
56
|
+
* @memberof AuthenticatorWebAuthnStage
|
51
57
|
*/
|
52
58
|
readonly pk: string;
|
53
59
|
/**
|
54
60
|
*
|
55
61
|
* @type {string}
|
56
|
-
* @memberof
|
62
|
+
* @memberof AuthenticatorWebAuthnStage
|
57
63
|
*/
|
58
64
|
name: string;
|
59
65
|
/**
|
60
66
|
* Get object type so that we know how to edit the object
|
61
67
|
* @type {string}
|
62
|
-
* @memberof
|
68
|
+
* @memberof AuthenticatorWebAuthnStage
|
63
69
|
*/
|
64
70
|
readonly component: string;
|
65
71
|
/**
|
66
72
|
* Return object's verbose_name
|
67
73
|
* @type {string}
|
68
|
-
* @memberof
|
74
|
+
* @memberof AuthenticatorWebAuthnStage
|
69
75
|
*/
|
70
76
|
readonly verboseName: string;
|
71
77
|
/**
|
72
78
|
* Return object's plural verbose_name
|
73
79
|
* @type {string}
|
74
|
-
* @memberof
|
80
|
+
* @memberof AuthenticatorWebAuthnStage
|
75
81
|
*/
|
76
82
|
readonly verboseNamePlural: string;
|
77
83
|
/**
|
78
84
|
* Return internal model name
|
79
85
|
* @type {string}
|
80
|
-
* @memberof
|
86
|
+
* @memberof AuthenticatorWebAuthnStage
|
81
87
|
*/
|
82
88
|
readonly metaModelName: string;
|
83
89
|
/**
|
84
90
|
*
|
85
91
|
* @type {Array<FlowSet>}
|
86
|
-
* @memberof
|
92
|
+
* @memberof AuthenticatorWebAuthnStage
|
87
93
|
*/
|
88
94
|
flowSet?: Array<FlowSet>;
|
89
95
|
/**
|
90
96
|
* Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage.
|
91
97
|
* @type {string}
|
92
|
-
* @memberof
|
98
|
+
* @memberof AuthenticatorWebAuthnStage
|
93
99
|
*/
|
94
100
|
configureFlow?: string | null;
|
95
101
|
/**
|
96
102
|
*
|
97
103
|
* @type {string}
|
98
|
-
* @memberof
|
104
|
+
* @memberof AuthenticatorWebAuthnStage
|
99
105
|
*/
|
100
106
|
friendlyName?: string | null;
|
101
107
|
/**
|
102
108
|
*
|
103
109
|
* @type {UserVerificationEnum}
|
104
|
-
* @memberof
|
110
|
+
* @memberof AuthenticatorWebAuthnStage
|
105
111
|
*/
|
106
112
|
userVerification?: UserVerificationEnum;
|
107
113
|
/**
|
108
114
|
*
|
109
115
|
* @type {AuthenticatorAttachmentEnum}
|
110
|
-
* @memberof
|
116
|
+
* @memberof AuthenticatorWebAuthnStage
|
111
117
|
*/
|
112
118
|
authenticatorAttachment?: AuthenticatorAttachmentEnum | null;
|
113
119
|
/**
|
114
120
|
*
|
115
121
|
* @type {ResidentKeyRequirementEnum}
|
116
|
-
* @memberof
|
122
|
+
* @memberof AuthenticatorWebAuthnStage
|
117
123
|
*/
|
118
124
|
residentKeyRequirement?: ResidentKeyRequirementEnum;
|
125
|
+
/**
|
126
|
+
*
|
127
|
+
* @type {Array<string>}
|
128
|
+
* @memberof AuthenticatorWebAuthnStage
|
129
|
+
*/
|
130
|
+
deviceTypeRestrictions?: Array<string>;
|
131
|
+
/**
|
132
|
+
*
|
133
|
+
* @type {Array<WebAuthnDeviceType>}
|
134
|
+
* @memberof AuthenticatorWebAuthnStage
|
135
|
+
*/
|
136
|
+
readonly deviceTypeRestrictionsObj: Array<WebAuthnDeviceType>;
|
119
137
|
}
|
120
138
|
|
121
139
|
/**
|
122
|
-
* Check if a given object implements the
|
140
|
+
* Check if a given object implements the AuthenticatorWebAuthnStage interface.
|
123
141
|
*/
|
124
|
-
export function
|
142
|
+
export function instanceOfAuthenticatorWebAuthnStage(value: object): boolean {
|
125
143
|
let isInstance = true;
|
126
144
|
isInstance = isInstance && "pk" in value;
|
127
145
|
isInstance = isInstance && "name" in value;
|
@@ -129,15 +147,16 @@ export function instanceOfAuthenticateWebAuthnStage(value: object): boolean {
|
|
129
147
|
isInstance = isInstance && "verboseName" in value;
|
130
148
|
isInstance = isInstance && "verboseNamePlural" in value;
|
131
149
|
isInstance = isInstance && "metaModelName" in value;
|
150
|
+
isInstance = isInstance && "deviceTypeRestrictionsObj" in value;
|
132
151
|
|
133
152
|
return isInstance;
|
134
153
|
}
|
135
154
|
|
136
|
-
export function
|
137
|
-
return
|
155
|
+
export function AuthenticatorWebAuthnStageFromJSON(json: any): AuthenticatorWebAuthnStage {
|
156
|
+
return AuthenticatorWebAuthnStageFromJSONTyped(json, false);
|
138
157
|
}
|
139
158
|
|
140
|
-
export function
|
159
|
+
export function AuthenticatorWebAuthnStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorWebAuthnStage {
|
141
160
|
if ((json === undefined) || (json === null)) {
|
142
161
|
return json;
|
143
162
|
}
|
@@ -155,10 +174,12 @@ export function AuthenticateWebAuthnStageFromJSONTyped(json: any, ignoreDiscrimi
|
|
155
174
|
'userVerification': !exists(json, 'user_verification') ? undefined : UserVerificationEnumFromJSON(json['user_verification']),
|
156
175
|
'authenticatorAttachment': !exists(json, 'authenticator_attachment') ? undefined : AuthenticatorAttachmentEnumFromJSON(json['authenticator_attachment']),
|
157
176
|
'residentKeyRequirement': !exists(json, 'resident_key_requirement') ? undefined : ResidentKeyRequirementEnumFromJSON(json['resident_key_requirement']),
|
177
|
+
'deviceTypeRestrictions': !exists(json, 'device_type_restrictions') ? undefined : json['device_type_restrictions'],
|
178
|
+
'deviceTypeRestrictionsObj': ((json['device_type_restrictions_obj'] as Array<any>).map(WebAuthnDeviceTypeFromJSON)),
|
158
179
|
};
|
159
180
|
}
|
160
181
|
|
161
|
-
export function
|
182
|
+
export function AuthenticatorWebAuthnStageToJSON(value?: AuthenticatorWebAuthnStage | null): any {
|
162
183
|
if (value === undefined) {
|
163
184
|
return undefined;
|
164
185
|
}
|
@@ -174,6 +195,7 @@ export function AuthenticateWebAuthnStageToJSON(value?: AuthenticateWebAuthnStag
|
|
174
195
|
'user_verification': UserVerificationEnumToJSON(value.userVerification),
|
175
196
|
'authenticator_attachment': AuthenticatorAttachmentEnumToJSON(value.authenticatorAttachment),
|
176
197
|
'resident_key_requirement': ResidentKeyRequirementEnumToJSON(value.residentKeyRequirement),
|
198
|
+
'device_type_restrictions': value.deviceTypeRestrictions,
|
177
199
|
};
|
178
200
|
}
|
179
201
|
|