@goauthentik/api 2022.8.2-1662930536 → 2022.8.2-1663409478
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 +2 -0
- package/dist/apis/StagesApi.d.ts +16 -6
- package/dist/apis/StagesApi.js +40 -10
- package/dist/esm/apis/StagesApi.d.ts +16 -6
- package/dist/esm/apis/StagesApi.js +41 -11
- package/dist/esm/models/AccessDeniedChallenge.d.ts +1 -1
- package/dist/esm/models/AccessDeniedChallenge.js +1 -1
- package/dist/esm/models/AppleChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AppleChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AppleLoginChallenge.d.ts +1 -1
- package/dist/esm/models/AppleLoginChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorDuoChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorDuoChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorDuoChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorDuoChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AuthenticatorDuoStage.d.ts +6 -0
- package/dist/esm/models/AuthenticatorDuoStage.js +2 -0
- package/dist/esm/models/AuthenticatorDuoStageDeviceImportResponse.d.ts +33 -0
- package/dist/esm/models/AuthenticatorDuoStageDeviceImportResponse.js +34 -0
- package/dist/esm/models/AuthenticatorDuoStageManualDeviceImportRequest.d.ts +33 -0
- package/dist/esm/models/AuthenticatorDuoStageManualDeviceImportRequest.js +37 -0
- package/dist/esm/models/AuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/esm/models/AuthenticatorDuoStageRequest.js +4 -0
- package/dist/esm/models/AuthenticatorSMSChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorSMSChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorSMSChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorSMSChallengeResponseRequest.js +1 -1
- package/dist/esm/models/AuthenticatorStaticChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorStaticChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorStaticChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorStaticChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AuthenticatorTOTPChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorTOTPChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorTOTPChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorTOTPChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AuthenticatorValidationChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorValidationChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorValidationChallengeResponseRequest.js +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.d.ts +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallenge.js +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AuthenticatorWebAuthnChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AutoSubmitChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/AutoSubmitChallengeResponseRequest.js +2 -1
- package/dist/esm/models/AutosubmitChallenge.d.ts +1 -1
- package/dist/esm/models/AutosubmitChallenge.js +1 -1
- package/dist/esm/models/CaptchaChallenge.d.ts +1 -1
- package/dist/esm/models/CaptchaChallenge.js +1 -1
- package/dist/esm/models/CaptchaChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/CaptchaChallengeResponseRequest.js +2 -1
- package/dist/esm/models/ConsentChallenge.d.ts +1 -1
- package/dist/esm/models/ConsentChallenge.js +1 -1
- package/dist/esm/models/ConsentChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/ConsentChallengeResponseRequest.js +2 -1
- package/dist/esm/models/DummyChallenge.d.ts +1 -1
- package/dist/esm/models/DummyChallenge.js +1 -1
- package/dist/esm/models/DummyChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/DummyChallengeResponseRequest.js +2 -1
- package/dist/esm/models/EmailChallenge.d.ts +1 -1
- package/dist/esm/models/EmailChallenge.js +1 -1
- package/dist/esm/models/EmailChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/EmailChallengeResponseRequest.js +2 -1
- package/dist/esm/models/FlowErrorChallenge.d.ts +1 -1
- package/dist/esm/models/FlowErrorChallenge.js +1 -1
- package/dist/esm/models/IdentificationChallenge.d.ts +1 -1
- package/dist/esm/models/IdentificationChallenge.js +1 -1
- package/dist/esm/models/IdentificationChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/IdentificationChallengeResponseRequest.js +1 -1
- package/dist/esm/models/PasswordChallenge.d.ts +1 -1
- package/dist/esm/models/PasswordChallenge.js +1 -1
- package/dist/esm/models/PasswordChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/PasswordChallengeResponseRequest.js +2 -1
- package/dist/esm/models/PatchedAuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/esm/models/PatchedAuthenticatorDuoStageRequest.js +4 -0
- package/dist/esm/models/PlexAuthenticationChallenge.d.ts +1 -1
- package/dist/esm/models/PlexAuthenticationChallenge.js +1 -1
- package/dist/esm/models/PlexAuthenticationChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/PlexAuthenticationChallengeResponseRequest.js +2 -1
- package/dist/esm/models/PromptChallenge.d.ts +1 -1
- package/dist/esm/models/PromptChallenge.js +1 -1
- package/dist/esm/models/PromptChallengeResponseRequest.d.ts +1 -1
- package/dist/esm/models/PromptChallengeResponseRequest.js +2 -1
- package/dist/esm/models/RedirectChallenge.d.ts +1 -1
- package/dist/esm/models/RedirectChallenge.js +1 -1
- package/dist/esm/models/ShellChallenge.d.ts +1 -1
- package/dist/esm/models/ShellChallenge.js +1 -1
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AccessDeniedChallenge.d.ts +1 -1
- package/dist/models/AccessDeniedChallenge.js +1 -1
- package/dist/models/AppleChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AppleChallengeResponseRequest.js +2 -1
- package/dist/models/AppleLoginChallenge.d.ts +1 -1
- package/dist/models/AppleLoginChallenge.js +1 -1
- package/dist/models/AuthenticatorDuoChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorDuoChallenge.js +1 -1
- package/dist/models/AuthenticatorDuoChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorDuoChallengeResponseRequest.js +2 -1
- package/dist/models/AuthenticatorDuoStage.d.ts +6 -0
- package/dist/models/AuthenticatorDuoStage.js +2 -0
- package/dist/models/AuthenticatorDuoStageDeviceImportResponse.d.ts +33 -0
- package/dist/models/AuthenticatorDuoStageDeviceImportResponse.js +40 -0
- package/dist/models/AuthenticatorDuoStageManualDeviceImportRequest.d.ts +33 -0
- package/dist/models/AuthenticatorDuoStageManualDeviceImportRequest.js +43 -0
- package/dist/models/AuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/models/AuthenticatorDuoStageRequest.js +4 -0
- package/dist/models/AuthenticatorSMSChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorSMSChallenge.js +1 -1
- package/dist/models/AuthenticatorSMSChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorSMSChallengeResponseRequest.js +1 -1
- package/dist/models/AuthenticatorStaticChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorStaticChallenge.js +1 -1
- package/dist/models/AuthenticatorStaticChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorStaticChallengeResponseRequest.js +2 -1
- package/dist/models/AuthenticatorTOTPChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorTOTPChallenge.js +1 -1
- package/dist/models/AuthenticatorTOTPChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorTOTPChallengeResponseRequest.js +2 -1
- package/dist/models/AuthenticatorValidationChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorValidationChallenge.js +1 -1
- package/dist/models/AuthenticatorValidationChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorValidationChallengeResponseRequest.js +1 -1
- package/dist/models/AuthenticatorWebAuthnChallenge.d.ts +1 -1
- package/dist/models/AuthenticatorWebAuthnChallenge.js +1 -1
- package/dist/models/AuthenticatorWebAuthnChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AuthenticatorWebAuthnChallengeResponseRequest.js +2 -1
- package/dist/models/AutoSubmitChallengeResponseRequest.d.ts +1 -1
- package/dist/models/AutoSubmitChallengeResponseRequest.js +2 -1
- package/dist/models/AutosubmitChallenge.d.ts +1 -1
- package/dist/models/AutosubmitChallenge.js +1 -1
- package/dist/models/CaptchaChallenge.d.ts +1 -1
- package/dist/models/CaptchaChallenge.js +1 -1
- package/dist/models/CaptchaChallengeResponseRequest.d.ts +1 -1
- package/dist/models/CaptchaChallengeResponseRequest.js +2 -1
- package/dist/models/ConsentChallenge.d.ts +1 -1
- package/dist/models/ConsentChallenge.js +1 -1
- package/dist/models/ConsentChallengeResponseRequest.d.ts +1 -1
- package/dist/models/ConsentChallengeResponseRequest.js +2 -1
- package/dist/models/DummyChallenge.d.ts +1 -1
- package/dist/models/DummyChallenge.js +1 -1
- package/dist/models/DummyChallengeResponseRequest.d.ts +1 -1
- package/dist/models/DummyChallengeResponseRequest.js +2 -1
- package/dist/models/EmailChallenge.d.ts +1 -1
- package/dist/models/EmailChallenge.js +1 -1
- package/dist/models/EmailChallengeResponseRequest.d.ts +1 -1
- package/dist/models/EmailChallengeResponseRequest.js +2 -1
- package/dist/models/FlowErrorChallenge.d.ts +1 -1
- package/dist/models/FlowErrorChallenge.js +1 -1
- package/dist/models/IdentificationChallenge.d.ts +1 -1
- package/dist/models/IdentificationChallenge.js +1 -1
- package/dist/models/IdentificationChallengeResponseRequest.d.ts +1 -1
- package/dist/models/IdentificationChallengeResponseRequest.js +1 -1
- package/dist/models/PasswordChallenge.d.ts +1 -1
- package/dist/models/PasswordChallenge.js +1 -1
- package/dist/models/PasswordChallengeResponseRequest.d.ts +1 -1
- package/dist/models/PasswordChallengeResponseRequest.js +2 -1
- package/dist/models/PatchedAuthenticatorDuoStageRequest.d.ts +12 -0
- package/dist/models/PatchedAuthenticatorDuoStageRequest.js +4 -0
- package/dist/models/PlexAuthenticationChallenge.d.ts +1 -1
- package/dist/models/PlexAuthenticationChallenge.js +1 -1
- package/dist/models/PlexAuthenticationChallengeResponseRequest.d.ts +1 -1
- package/dist/models/PlexAuthenticationChallengeResponseRequest.js +2 -1
- package/dist/models/PromptChallenge.d.ts +1 -1
- package/dist/models/PromptChallenge.js +1 -1
- package/dist/models/PromptChallengeResponseRequest.d.ts +1 -1
- package/dist/models/PromptChallengeResponseRequest.js +2 -1
- package/dist/models/RedirectChallenge.d.ts +1 -1
- package/dist/models/RedirectChallenge.js +1 -1
- package/dist/models/ShellChallenge.d.ts +1 -1
- package/dist/models/ShellChallenge.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +2 -2
- package/src/apis/StagesApi.ts +55 -13
- package/src/models/AccessDeniedChallenge.ts +2 -2
- package/src/models/AppleChallengeResponseRequest.ts +2 -2
- package/src/models/AppleLoginChallenge.ts +2 -2
- package/src/models/AuthenticatorDuoChallenge.ts +2 -2
- package/src/models/AuthenticatorDuoChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorDuoStage.ts +8 -0
- package/src/models/AuthenticatorDuoStageDeviceImportResponse.ts +62 -0
- package/src/models/AuthenticatorDuoStageManualDeviceImportRequest.ts +64 -0
- package/src/models/AuthenticatorDuoStageRequest.ts +16 -0
- package/src/models/AuthenticatorSMSChallenge.ts +2 -2
- package/src/models/AuthenticatorSMSChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorStaticChallenge.ts +2 -2
- package/src/models/AuthenticatorStaticChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorTOTPChallenge.ts +2 -2
- package/src/models/AuthenticatorTOTPChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorValidationChallenge.ts +2 -2
- package/src/models/AuthenticatorValidationChallengeResponseRequest.ts +2 -2
- package/src/models/AuthenticatorWebAuthnChallenge.ts +2 -2
- package/src/models/AuthenticatorWebAuthnChallengeResponseRequest.ts +2 -2
- package/src/models/AutoSubmitChallengeResponseRequest.ts +2 -2
- package/src/models/AutosubmitChallenge.ts +2 -2
- package/src/models/CaptchaChallenge.ts +2 -2
- package/src/models/CaptchaChallengeResponseRequest.ts +2 -2
- package/src/models/ConsentChallenge.ts +2 -2
- package/src/models/ConsentChallengeResponseRequest.ts +2 -2
- package/src/models/DummyChallenge.ts +2 -2
- package/src/models/DummyChallengeResponseRequest.ts +2 -2
- package/src/models/EmailChallenge.ts +2 -2
- package/src/models/EmailChallengeResponseRequest.ts +2 -2
- package/src/models/FlowErrorChallenge.ts +2 -2
- package/src/models/IdentificationChallenge.ts +2 -2
- package/src/models/IdentificationChallengeResponseRequest.ts +2 -2
- package/src/models/PasswordChallenge.ts +2 -2
- package/src/models/PasswordChallengeResponseRequest.ts +2 -2
- package/src/models/PatchedAuthenticatorDuoStageRequest.ts +16 -0
- package/src/models/PlexAuthenticationChallenge.ts +2 -2
- package/src/models/PlexAuthenticationChallengeResponseRequest.ts +2 -2
- package/src/models/PromptChallenge.ts +2 -2
- package/src/models/PromptChallengeResponseRequest.ts +2 -2
- package/src/models/RedirectChallenge.ts +2 -2
- package/src/models/ShellChallenge.ts +2 -2
- package/src/models/index.ts +2 -0
package/dist/models/index.js
CHANGED
|
@@ -37,6 +37,8 @@ __exportStar(require("./AuthenticatorAttachmentEnum"), exports);
|
|
|
37
37
|
__exportStar(require("./AuthenticatorDuoChallenge"), exports);
|
|
38
38
|
__exportStar(require("./AuthenticatorDuoChallengeResponseRequest"), exports);
|
|
39
39
|
__exportStar(require("./AuthenticatorDuoStage"), exports);
|
|
40
|
+
__exportStar(require("./AuthenticatorDuoStageDeviceImportResponse"), exports);
|
|
41
|
+
__exportStar(require("./AuthenticatorDuoStageManualDeviceImportRequest"), exports);
|
|
40
42
|
__exportStar(require("./AuthenticatorDuoStageRequest"), exports);
|
|
41
43
|
__exportStar(require("./AuthenticatorSMSChallenge"), exports);
|
|
42
44
|
__exportStar(require("./AuthenticatorSMSChallengeResponseRequest"), exports);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goauthentik/api",
|
|
3
|
-
"version": "2022.8.2-
|
|
3
|
+
"version": "2022.8.2-1663409478",
|
|
4
4
|
"description": "OpenAPI client for @goauthentik/api",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/goauthentik/authentik.git"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"typings": "./dist/index.d.ts",
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -24,6 +24,12 @@ import {
|
|
|
24
24
|
AuthenticatorDuoStage,
|
|
25
25
|
AuthenticatorDuoStageFromJSON,
|
|
26
26
|
AuthenticatorDuoStageToJSON,
|
|
27
|
+
AuthenticatorDuoStageDeviceImportResponse,
|
|
28
|
+
AuthenticatorDuoStageDeviceImportResponseFromJSON,
|
|
29
|
+
AuthenticatorDuoStageDeviceImportResponseToJSON,
|
|
30
|
+
AuthenticatorDuoStageManualDeviceImportRequest,
|
|
31
|
+
AuthenticatorDuoStageManualDeviceImportRequestFromJSON,
|
|
32
|
+
AuthenticatorDuoStageManualDeviceImportRequestToJSON,
|
|
27
33
|
AuthenticatorDuoStageRequest,
|
|
28
34
|
AuthenticatorDuoStageRequestFromJSON,
|
|
29
35
|
AuthenticatorDuoStageRequestToJSON,
|
|
@@ -325,10 +331,13 @@ export interface StagesAuthenticatorDuoEnrollmentStatusCreateRequest {
|
|
|
325
331
|
stageUuid: string;
|
|
326
332
|
}
|
|
327
333
|
|
|
328
|
-
export interface
|
|
334
|
+
export interface StagesAuthenticatorDuoImportDeviceManualCreateRequest {
|
|
335
|
+
stageUuid: string;
|
|
336
|
+
authenticatorDuoStageManualDeviceImportRequest: AuthenticatorDuoStageManualDeviceImportRequest;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export interface StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest {
|
|
329
340
|
stageUuid: string;
|
|
330
|
-
duoUserId?: string;
|
|
331
|
-
username?: string;
|
|
332
341
|
}
|
|
333
342
|
|
|
334
343
|
export interface StagesAuthenticatorDuoListRequest {
|
|
@@ -1431,21 +1440,53 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
1431
1440
|
/**
|
|
1432
1441
|
* Import duo devices into authentik
|
|
1433
1442
|
*/
|
|
1434
|
-
async
|
|
1443
|
+
async stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1435
1444
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
1436
|
-
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling
|
|
1445
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
if (requestParameters.authenticatorDuoStageManualDeviceImportRequest === null || requestParameters.authenticatorDuoStageManualDeviceImportRequest === undefined) {
|
|
1449
|
+
throw new runtime.RequiredError('authenticatorDuoStageManualDeviceImportRequest','Required parameter requestParameters.authenticatorDuoStageManualDeviceImportRequest was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
|
|
1437
1450
|
}
|
|
1438
1451
|
|
|
1439
1452
|
const queryParameters: any = {};
|
|
1440
1453
|
|
|
1441
|
-
|
|
1442
|
-
|
|
1454
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1455
|
+
|
|
1456
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1457
|
+
|
|
1458
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1459
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1443
1460
|
}
|
|
1444
1461
|
|
|
1445
|
-
|
|
1446
|
-
|
|
1462
|
+
const response = await this.request({
|
|
1463
|
+
path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
1464
|
+
method: 'POST',
|
|
1465
|
+
headers: headerParameters,
|
|
1466
|
+
query: queryParameters,
|
|
1467
|
+
body: AuthenticatorDuoStageManualDeviceImportRequestToJSON(requestParameters.authenticatorDuoStageManualDeviceImportRequest),
|
|
1468
|
+
}, initOverrides);
|
|
1469
|
+
|
|
1470
|
+
return new runtime.VoidApiResponse(response);
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Import duo devices into authentik
|
|
1475
|
+
*/
|
|
1476
|
+
async stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void> {
|
|
1477
|
+
await this.stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Import duo devices into authentik
|
|
1482
|
+
*/
|
|
1483
|
+
async stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticatorDuoStageDeviceImportResponse>> {
|
|
1484
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
1485
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesAutomaticCreate.');
|
|
1447
1486
|
}
|
|
1448
1487
|
|
|
1488
|
+
const queryParameters: any = {};
|
|
1489
|
+
|
|
1449
1490
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1450
1491
|
|
|
1451
1492
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -1453,20 +1494,21 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
1453
1494
|
}
|
|
1454
1495
|
|
|
1455
1496
|
const response = await this.request({
|
|
1456
|
-
path: `/stages/authenticator/duo/{stage_uuid}/
|
|
1497
|
+
path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
1457
1498
|
method: 'POST',
|
|
1458
1499
|
headers: headerParameters,
|
|
1459
1500
|
query: queryParameters,
|
|
1460
1501
|
}, initOverrides);
|
|
1461
1502
|
|
|
1462
|
-
return new runtime.
|
|
1503
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorDuoStageDeviceImportResponseFromJSON(jsonValue));
|
|
1463
1504
|
}
|
|
1464
1505
|
|
|
1465
1506
|
/**
|
|
1466
1507
|
* Import duo devices into authentik
|
|
1467
1508
|
*/
|
|
1468
|
-
async
|
|
1469
|
-
await this.
|
|
1509
|
+
async stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticatorDuoStageDeviceImportResponse> {
|
|
1510
|
+
const response = await this.stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides);
|
|
1511
|
+
return await response.value();
|
|
1470
1512
|
}
|
|
1471
1513
|
|
|
1472
1514
|
/**
|
|
@@ -55,7 +55,7 @@ export interface AccessDeniedChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AccessDeniedChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -94,7 +94,7 @@ export function AccessDeniedChallengeFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
94
94
|
|
|
95
95
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
96
96
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
97
|
-
'component': json['component'],
|
|
97
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
98
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
99
99
|
'pendingUser': json['pending_user'],
|
|
100
100
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ export interface AppleChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AppleChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function AppleChallengeResponseRequestFromJSON(json: any): AppleChallengeResponseRequest {
|
|
@@ -37,7 +37,7 @@ export function AppleChallengeResponseRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
|
|
40
|
-
'component': json['component'],
|
|
40
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -55,7 +55,7 @@ export interface AppleLoginChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AppleLoginChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -100,7 +100,7 @@ export function AppleLoginChallengeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
100
100
|
|
|
101
101
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
102
102
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
103
|
-
'component': json['component'],
|
|
103
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
104
104
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
105
105
|
'clientId': json['client_id'],
|
|
106
106
|
'scope': json['scope'],
|
|
@@ -55,7 +55,7 @@ export interface AuthenticatorDuoChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AuthenticatorDuoChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -106,7 +106,7 @@ export function AuthenticatorDuoChallengeFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
106
106
|
|
|
107
107
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
108
108
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
109
|
-
'component': json['component'],
|
|
109
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
110
110
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
111
111
|
'pendingUser': json['pending_user'],
|
|
112
112
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ export interface AuthenticatorDuoChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AuthenticatorDuoChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function AuthenticatorDuoChallengeResponseRequestFromJSON(json: any): AuthenticatorDuoChallengeResponseRequest {
|
|
@@ -37,7 +37,7 @@ export function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json: any,
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
|
|
40
|
-
'component': json['component'],
|
|
40
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -86,6 +86,12 @@ export interface AuthenticatorDuoStage {
|
|
|
86
86
|
* @memberof AuthenticatorDuoStage
|
|
87
87
|
*/
|
|
88
88
|
apiHostname: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof AuthenticatorDuoStage
|
|
93
|
+
*/
|
|
94
|
+
adminIntegrationKey?: string;
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
export function AuthenticatorDuoStageFromJSON(json: any): AuthenticatorDuoStage {
|
|
@@ -108,6 +114,7 @@ export function AuthenticatorDuoStageFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
108
114
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
109
115
|
'clientId': json['client_id'],
|
|
110
116
|
'apiHostname': json['api_hostname'],
|
|
117
|
+
'adminIntegrationKey': !exists(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
|
|
111
118
|
};
|
|
112
119
|
}
|
|
113
120
|
|
|
@@ -125,6 +132,7 @@ export function AuthenticatorDuoStageToJSON(value?: AuthenticatorDuoStage | null
|
|
|
125
132
|
'configure_flow': value.configureFlow,
|
|
126
133
|
'client_id': value.clientId,
|
|
127
134
|
'api_hostname': value.apiHostname,
|
|
135
|
+
'admin_integration_key': value.adminIntegrationKey,
|
|
128
136
|
};
|
|
129
137
|
}
|
|
130
138
|
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuthenticatorDuoStageDeviceImportResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthenticatorDuoStageDeviceImportResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AuthenticatorDuoStageDeviceImportResponse
|
|
26
|
+
*/
|
|
27
|
+
readonly count: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuthenticatorDuoStageDeviceImportResponse
|
|
32
|
+
*/
|
|
33
|
+
readonly error: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function AuthenticatorDuoStageDeviceImportResponseFromJSON(json: any): AuthenticatorDuoStageDeviceImportResponse {
|
|
37
|
+
return AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageDeviceImportResponse {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'count': json['count'],
|
|
47
|
+
'error': json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AuthenticatorDuoStageDeviceImportResponseToJSON(value?: AuthenticatorDuoStageDeviceImportResponse | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AuthenticatorDuoStageManualDeviceImportRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AuthenticatorDuoStageManualDeviceImportRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
|
|
26
|
+
*/
|
|
27
|
+
duoUserId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
|
|
32
|
+
*/
|
|
33
|
+
username: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json: any): AuthenticatorDuoStageManualDeviceImportRequest {
|
|
37
|
+
return AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageManualDeviceImportRequest {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'duoUserId': json['duo_user_id'],
|
|
47
|
+
'username': json['username'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value?: AuthenticatorDuoStageManualDeviceImportRequest | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'duo_user_id': value.duoUserId,
|
|
61
|
+
'username': value.username,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -62,6 +62,18 @@ export interface AuthenticatorDuoStageRequest {
|
|
|
62
62
|
* @memberof AuthenticatorDuoStageRequest
|
|
63
63
|
*/
|
|
64
64
|
apiHostname: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof AuthenticatorDuoStageRequest
|
|
69
|
+
*/
|
|
70
|
+
adminIntegrationKey?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AuthenticatorDuoStageRequest
|
|
75
|
+
*/
|
|
76
|
+
adminSecretKey?: string;
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
export function AuthenticatorDuoStageRequestFromJSON(json: any): AuthenticatorDuoStageRequest {
|
|
@@ -80,6 +92,8 @@ export function AuthenticatorDuoStageRequestFromJSONTyped(json: any, ignoreDiscr
|
|
|
80
92
|
'clientId': json['client_id'],
|
|
81
93
|
'clientSecret': json['client_secret'],
|
|
82
94
|
'apiHostname': json['api_hostname'],
|
|
95
|
+
'adminIntegrationKey': !exists(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
|
|
96
|
+
'adminSecretKey': !exists(json, 'admin_secret_key') ? undefined : json['admin_secret_key'],
|
|
83
97
|
};
|
|
84
98
|
}
|
|
85
99
|
|
|
@@ -98,6 +112,8 @@ export function AuthenticatorDuoStageRequestToJSON(value?: AuthenticatorDuoStage
|
|
|
98
112
|
'client_id': value.clientId,
|
|
99
113
|
'client_secret': value.clientSecret,
|
|
100
114
|
'api_hostname': value.apiHostname,
|
|
115
|
+
'admin_integration_key': value.adminIntegrationKey,
|
|
116
|
+
'admin_secret_key': value.adminSecretKey,
|
|
101
117
|
};
|
|
102
118
|
}
|
|
103
119
|
|
|
@@ -55,7 +55,7 @@ export interface AuthenticatorSMSChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AuthenticatorSMSChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -94,7 +94,7 @@ export function AuthenticatorSMSChallengeFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
94
94
|
|
|
95
95
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
96
96
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
97
|
-
'component': json['component'],
|
|
97
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
98
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
99
99
|
'pendingUser': json['pending_user'],
|
|
100
100
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ export interface AuthenticatorSMSChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AuthenticatorSMSChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -49,7 +49,7 @@ export function AuthenticatorSMSChallengeResponseRequestFromJSONTyped(json: any,
|
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
51
|
|
|
52
|
-
'component': json['component'],
|
|
52
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
53
53
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
54
54
|
'phoneNumber': !exists(json, 'phone_number') ? undefined : json['phone_number'],
|
|
55
55
|
};
|
|
@@ -55,7 +55,7 @@ export interface AuthenticatorStaticChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AuthenticatorStaticChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -94,7 +94,7 @@ export function AuthenticatorStaticChallengeFromJSONTyped(json: any, ignoreDiscr
|
|
|
94
94
|
|
|
95
95
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
96
96
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
97
|
-
'component': json['component'],
|
|
97
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
98
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
99
99
|
'pendingUser': json['pending_user'],
|
|
100
100
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ export interface AuthenticatorStaticChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AuthenticatorStaticChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function AuthenticatorStaticChallengeResponseRequestFromJSON(json: any): AuthenticatorStaticChallengeResponseRequest {
|
|
@@ -37,7 +37,7 @@ export function AuthenticatorStaticChallengeResponseRequestFromJSONTyped(json: a
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
|
|
40
|
-
'component': json['component'],
|
|
40
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -55,7 +55,7 @@ export interface AuthenticatorTOTPChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AuthenticatorTOTPChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -94,7 +94,7 @@ export function AuthenticatorTOTPChallengeFromJSONTyped(json: any, ignoreDiscrim
|
|
|
94
94
|
|
|
95
95
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
96
96
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
97
|
-
'component': json['component'],
|
|
97
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
98
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
99
99
|
'pendingUser': json['pending_user'],
|
|
100
100
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ export interface AuthenticatorTOTPChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AuthenticatorTOTPChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -43,7 +43,7 @@ export function AuthenticatorTOTPChallengeResponseRequestFromJSONTyped(json: any
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
|
|
46
|
-
'component': json['component'],
|
|
46
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
47
47
|
'code': json['code'],
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -67,7 +67,7 @@ export interface AuthenticatorValidationChallenge {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof AuthenticatorValidationChallenge
|
|
69
69
|
*/
|
|
70
|
-
component
|
|
70
|
+
component?: string;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -112,7 +112,7 @@ export function AuthenticatorValidationChallengeFromJSONTyped(json: any, ignoreD
|
|
|
112
112
|
|
|
113
113
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
114
114
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
115
|
-
'component': json['component'],
|
|
115
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
116
116
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
117
117
|
'pendingUser': json['pending_user'],
|
|
118
118
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -31,7 +31,7 @@ export interface AuthenticatorValidationChallengeResponseRequest {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof AuthenticatorValidationChallengeResponseRequest
|
|
33
33
|
*/
|
|
34
|
-
component
|
|
34
|
+
component?: string;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @type {DeviceChallengeRequest}
|
|
@@ -74,7 +74,7 @@ export function AuthenticatorValidationChallengeResponseRequestFromJSONTyped(jso
|
|
|
74
74
|
}
|
|
75
75
|
return {
|
|
76
76
|
|
|
77
|
-
'component': json['component'],
|
|
77
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
78
78
|
'selectedChallenge': !exists(json, 'selected_challenge') ? undefined : DeviceChallengeRequestFromJSON(json['selected_challenge']),
|
|
79
79
|
'selectedStage': !exists(json, 'selected_stage') ? undefined : json['selected_stage'],
|
|
80
80
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
@@ -55,7 +55,7 @@ export interface AuthenticatorWebAuthnChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AuthenticatorWebAuthnChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -94,7 +94,7 @@ export function AuthenticatorWebAuthnChallengeFromJSONTyped(json: any, ignoreDis
|
|
|
94
94
|
|
|
95
95
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
96
96
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
97
|
-
'component': json['component'],
|
|
97
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
98
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
99
99
|
'pendingUser': json['pending_user'],
|
|
100
100
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -24,7 +24,7 @@ export interface AuthenticatorWebAuthnChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AuthenticatorWebAuthnChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {{ [key: string]: any; }}
|
|
@@ -43,7 +43,7 @@ export function AuthenticatorWebAuthnChallengeResponseRequestFromJSONTyped(json:
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
|
|
46
|
-
'component': json['component'],
|
|
46
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
47
47
|
'response': json['response'],
|
|
48
48
|
};
|
|
49
49
|
}
|
|
@@ -24,7 +24,7 @@ export interface AutoSubmitChallengeResponseRequest {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AutoSubmitChallengeResponseRequest
|
|
26
26
|
*/
|
|
27
|
-
component
|
|
27
|
+
component?: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export function AutoSubmitChallengeResponseRequestFromJSON(json: any): AutoSubmitChallengeResponseRequest {
|
|
@@ -37,7 +37,7 @@ export function AutoSubmitChallengeResponseRequestFromJSONTyped(json: any, ignor
|
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
|
|
40
|
-
'component': json['component'],
|
|
40
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -55,7 +55,7 @@ export interface AutosubmitChallenge {
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof AutosubmitChallenge
|
|
57
57
|
*/
|
|
58
|
-
component
|
|
58
|
+
component?: string;
|
|
59
59
|
/**
|
|
60
60
|
*
|
|
61
61
|
* @type {{ [key: string]: Array<ErrorDetail>; }}
|
|
@@ -94,7 +94,7 @@ export function AutosubmitChallengeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
94
94
|
|
|
95
95
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
96
96
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
97
|
-
'component': json['component'],
|
|
97
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
98
98
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
99
99
|
'url': json['url'],
|
|
100
100
|
'attrs': json['attrs'],
|