@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/.openapi-generator/FILES
CHANGED
|
@@ -42,6 +42,8 @@ src/models/AuthenticatorAttachmentEnum.ts
|
|
|
42
42
|
src/models/AuthenticatorDuoChallenge.ts
|
|
43
43
|
src/models/AuthenticatorDuoChallengeResponseRequest.ts
|
|
44
44
|
src/models/AuthenticatorDuoStage.ts
|
|
45
|
+
src/models/AuthenticatorDuoStageDeviceImportResponse.ts
|
|
46
|
+
src/models/AuthenticatorDuoStageManualDeviceImportRequest.ts
|
|
45
47
|
src/models/AuthenticatorDuoStageRequest.ts
|
|
46
48
|
src/models/AuthenticatorSMSChallenge.ts
|
|
47
49
|
src/models/AuthenticatorSMSChallengeResponseRequest.ts
|
package/dist/apis/StagesApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
|
|
13
|
+
import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
|
|
14
14
|
export interface StagesAllDestroyRequest {
|
|
15
15
|
stageUuid: string;
|
|
16
16
|
}
|
|
@@ -36,10 +36,12 @@ export interface StagesAuthenticatorDuoDestroyRequest {
|
|
|
36
36
|
export interface StagesAuthenticatorDuoEnrollmentStatusCreateRequest {
|
|
37
37
|
stageUuid: string;
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface StagesAuthenticatorDuoImportDeviceManualCreateRequest {
|
|
40
|
+
stageUuid: string;
|
|
41
|
+
authenticatorDuoStageManualDeviceImportRequest: AuthenticatorDuoStageManualDeviceImportRequest;
|
|
42
|
+
}
|
|
43
|
+
export interface StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest {
|
|
40
44
|
stageUuid: string;
|
|
41
|
-
duoUserId?: string;
|
|
42
|
-
username?: string;
|
|
43
45
|
}
|
|
44
46
|
export interface StagesAuthenticatorDuoListRequest {
|
|
45
47
|
apiHostname?: string;
|
|
@@ -752,11 +754,19 @@ export declare class StagesApi extends runtime.BaseAPI {
|
|
|
752
754
|
/**
|
|
753
755
|
* Import duo devices into authentik
|
|
754
756
|
*/
|
|
755
|
-
|
|
757
|
+
stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
758
|
+
/**
|
|
759
|
+
* Import duo devices into authentik
|
|
760
|
+
*/
|
|
761
|
+
stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
762
|
+
/**
|
|
763
|
+
* Import duo devices into authentik
|
|
764
|
+
*/
|
|
765
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticatorDuoStageDeviceImportResponse>>;
|
|
756
766
|
/**
|
|
757
767
|
* Import duo devices into authentik
|
|
758
768
|
*/
|
|
759
|
-
|
|
769
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticatorDuoStageDeviceImportResponse>;
|
|
760
770
|
/**
|
|
761
771
|
* AuthenticatorDuoStage Viewset
|
|
762
772
|
*/
|
package/dist/apis/StagesApi.js
CHANGED
|
@@ -317,37 +317,67 @@ class StagesApi extends runtime.BaseAPI {
|
|
|
317
317
|
/**
|
|
318
318
|
* Import duo devices into authentik
|
|
319
319
|
*/
|
|
320
|
-
|
|
320
|
+
stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides) {
|
|
321
321
|
return __awaiter(this, void 0, void 0, function* () {
|
|
322
322
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
323
|
-
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling
|
|
323
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
|
|
324
|
+
}
|
|
325
|
+
if (requestParameters.authenticatorDuoStageManualDeviceImportRequest === null || requestParameters.authenticatorDuoStageManualDeviceImportRequest === undefined) {
|
|
326
|
+
throw new runtime.RequiredError('authenticatorDuoStageManualDeviceImportRequest', 'Required parameter requestParameters.authenticatorDuoStageManualDeviceImportRequest was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
|
|
324
327
|
}
|
|
325
328
|
const queryParameters = {};
|
|
326
|
-
|
|
327
|
-
|
|
329
|
+
const headerParameters = {};
|
|
330
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
331
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
332
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
328
333
|
}
|
|
329
|
-
|
|
330
|
-
|
|
334
|
+
const response = yield this.request({
|
|
335
|
+
path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
336
|
+
method: 'POST',
|
|
337
|
+
headers: headerParameters,
|
|
338
|
+
query: queryParameters,
|
|
339
|
+
body: (0, models_1.AuthenticatorDuoStageManualDeviceImportRequestToJSON)(requestParameters.authenticatorDuoStageManualDeviceImportRequest),
|
|
340
|
+
}, initOverrides);
|
|
341
|
+
return new runtime.VoidApiResponse(response);
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Import duo devices into authentik
|
|
346
|
+
*/
|
|
347
|
+
stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters, initOverrides) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
349
|
+
yield this.stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides);
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Import duo devices into authentik
|
|
354
|
+
*/
|
|
355
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides) {
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
358
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesAutomaticCreate.');
|
|
331
359
|
}
|
|
360
|
+
const queryParameters = {};
|
|
332
361
|
const headerParameters = {};
|
|
333
362
|
if (this.configuration && this.configuration.apiKey) {
|
|
334
363
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
335
364
|
}
|
|
336
365
|
const response = yield this.request({
|
|
337
|
-
path: `/stages/authenticator/duo/{stage_uuid}/
|
|
366
|
+
path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
338
367
|
method: 'POST',
|
|
339
368
|
headers: headerParameters,
|
|
340
369
|
query: queryParameters,
|
|
341
370
|
}, initOverrides);
|
|
342
|
-
return new runtime.
|
|
371
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.AuthenticatorDuoStageDeviceImportResponseFromJSON)(jsonValue));
|
|
343
372
|
});
|
|
344
373
|
}
|
|
345
374
|
/**
|
|
346
375
|
* Import duo devices into authentik
|
|
347
376
|
*/
|
|
348
|
-
|
|
377
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters, initOverrides) {
|
|
349
378
|
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
-
yield this.
|
|
379
|
+
const response = yield this.stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides);
|
|
380
|
+
return yield response.value();
|
|
351
381
|
});
|
|
352
382
|
}
|
|
353
383
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
|
|
13
|
+
import { AuthenticateWebAuthnStage, AuthenticateWebAuthnStageRequest, AuthenticatorDuoStage, AuthenticatorDuoStageDeviceImportResponse, AuthenticatorDuoStageManualDeviceImportRequest, AuthenticatorDuoStageRequest, AuthenticatorSMSStage, AuthenticatorSMSStageRequest, AuthenticatorStaticStage, AuthenticatorStaticStageRequest, AuthenticatorTOTPStage, AuthenticatorTOTPStageRequest, AuthenticatorValidateStage, AuthenticatorValidateStageRequest, CaptchaStage, CaptchaStageRequest, ConsentStage, ConsentStageRequest, DenyStage, DenyStageRequest, DummyStage, DummyStageRequest, DuoDeviceEnrollmentStatus, EmailStage, EmailStageRequest, IdentificationStage, IdentificationStageRequest, Invitation, InvitationRequest, InvitationStage, InvitationStageRequest, PaginatedAuthenticateWebAuthnStageList, PaginatedAuthenticatorDuoStageList, PaginatedAuthenticatorSMSStageList, PaginatedAuthenticatorStaticStageList, PaginatedAuthenticatorTOTPStageList, PaginatedAuthenticatorValidateStageList, PaginatedCaptchaStageList, PaginatedConsentStageList, PaginatedDenyStageList, PaginatedDummyStageList, PaginatedEmailStageList, PaginatedIdentificationStageList, PaginatedInvitationList, PaginatedInvitationStageList, PaginatedPasswordStageList, PaginatedPromptList, PaginatedPromptStageList, PaginatedStageList, PaginatedUserDeleteStageList, PaginatedUserLoginStageList, PaginatedUserLogoutStageList, PaginatedUserWriteStageList, PasswordStage, PasswordStageRequest, PatchedAuthenticateWebAuthnStageRequest, PatchedAuthenticatorDuoStageRequest, PatchedAuthenticatorSMSStageRequest, PatchedAuthenticatorStaticStageRequest, PatchedAuthenticatorTOTPStageRequest, PatchedAuthenticatorValidateStageRequest, PatchedCaptchaStageRequest, PatchedConsentStageRequest, PatchedDenyStageRequest, PatchedDummyStageRequest, PatchedEmailStageRequest, PatchedIdentificationStageRequest, PatchedInvitationRequest, PatchedInvitationStageRequest, PatchedPasswordStageRequest, PatchedPromptRequest, PatchedPromptStageRequest, PatchedUserDeleteStageRequest, PatchedUserLoginStageRequest, PatchedUserLogoutStageRequest, PatchedUserWriteStageRequest, Prompt, PromptRequest, PromptStage, PromptStageRequest, Stage, TypeCreate, UsedBy, UserDeleteStage, UserDeleteStageRequest, UserLoginStage, UserLoginStageRequest, UserLogoutStage, UserLogoutStageRequest, UserSetting, UserWriteStage, UserWriteStageRequest } from '../models';
|
|
14
14
|
export interface StagesAllDestroyRequest {
|
|
15
15
|
stageUuid: string;
|
|
16
16
|
}
|
|
@@ -36,10 +36,12 @@ export interface StagesAuthenticatorDuoDestroyRequest {
|
|
|
36
36
|
export interface StagesAuthenticatorDuoEnrollmentStatusCreateRequest {
|
|
37
37
|
stageUuid: string;
|
|
38
38
|
}
|
|
39
|
-
export interface
|
|
39
|
+
export interface StagesAuthenticatorDuoImportDeviceManualCreateRequest {
|
|
40
|
+
stageUuid: string;
|
|
41
|
+
authenticatorDuoStageManualDeviceImportRequest: AuthenticatorDuoStageManualDeviceImportRequest;
|
|
42
|
+
}
|
|
43
|
+
export interface StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest {
|
|
40
44
|
stageUuid: string;
|
|
41
|
-
duoUserId?: string;
|
|
42
|
-
username?: string;
|
|
43
45
|
}
|
|
44
46
|
export interface StagesAuthenticatorDuoListRequest {
|
|
45
47
|
apiHostname?: string;
|
|
@@ -752,11 +754,19 @@ export declare class StagesApi extends runtime.BaseAPI {
|
|
|
752
754
|
/**
|
|
753
755
|
* Import duo devices into authentik
|
|
754
756
|
*/
|
|
755
|
-
|
|
757
|
+
stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
758
|
+
/**
|
|
759
|
+
* Import duo devices into authentik
|
|
760
|
+
*/
|
|
761
|
+
stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters: StagesAuthenticatorDuoImportDeviceManualCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
762
|
+
/**
|
|
763
|
+
* Import duo devices into authentik
|
|
764
|
+
*/
|
|
765
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<AuthenticatorDuoStageDeviceImportResponse>>;
|
|
756
766
|
/**
|
|
757
767
|
* Import duo devices into authentik
|
|
758
768
|
*/
|
|
759
|
-
|
|
769
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters: StagesAuthenticatorDuoImportDevicesAutomaticCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<AuthenticatorDuoStageDeviceImportResponse>;
|
|
760
770
|
/**
|
|
761
771
|
* AuthenticatorDuoStage Viewset
|
|
762
772
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
|
|
24
|
+
import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -314,37 +314,67 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
314
314
|
/**
|
|
315
315
|
* Import duo devices into authentik
|
|
316
316
|
*/
|
|
317
|
-
|
|
317
|
+
stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides) {
|
|
318
318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
319
319
|
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
320
|
-
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling
|
|
320
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
|
|
321
|
+
}
|
|
322
|
+
if (requestParameters.authenticatorDuoStageManualDeviceImportRequest === null || requestParameters.authenticatorDuoStageManualDeviceImportRequest === undefined) {
|
|
323
|
+
throw new runtime.RequiredError('authenticatorDuoStageManualDeviceImportRequest', 'Required parameter requestParameters.authenticatorDuoStageManualDeviceImportRequest was null or undefined when calling stagesAuthenticatorDuoImportDeviceManualCreate.');
|
|
321
324
|
}
|
|
322
325
|
const queryParameters = {};
|
|
323
|
-
|
|
324
|
-
|
|
326
|
+
const headerParameters = {};
|
|
327
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
328
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
329
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
325
330
|
}
|
|
326
|
-
|
|
327
|
-
|
|
331
|
+
const response = yield this.request({
|
|
332
|
+
path: `/stages/authenticator/duo/{stage_uuid}/import_device_manual/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
333
|
+
method: 'POST',
|
|
334
|
+
headers: headerParameters,
|
|
335
|
+
query: queryParameters,
|
|
336
|
+
body: AuthenticatorDuoStageManualDeviceImportRequestToJSON(requestParameters.authenticatorDuoStageManualDeviceImportRequest),
|
|
337
|
+
}, initOverrides);
|
|
338
|
+
return new runtime.VoidApiResponse(response);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Import duo devices into authentik
|
|
343
|
+
*/
|
|
344
|
+
stagesAuthenticatorDuoImportDeviceManualCreate(requestParameters, initOverrides) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
yield this.stagesAuthenticatorDuoImportDeviceManualCreateRaw(requestParameters, initOverrides);
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Import duo devices into authentik
|
|
351
|
+
*/
|
|
352
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
355
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesAuthenticatorDuoImportDevicesAutomaticCreate.');
|
|
328
356
|
}
|
|
357
|
+
const queryParameters = {};
|
|
329
358
|
const headerParameters = {};
|
|
330
359
|
if (this.configuration && this.configuration.apiKey) {
|
|
331
360
|
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
332
361
|
}
|
|
333
362
|
const response = yield this.request({
|
|
334
|
-
path: `/stages/authenticator/duo/{stage_uuid}/
|
|
363
|
+
path: `/stages/authenticator/duo/{stage_uuid}/import_devices_automatic/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
335
364
|
method: 'POST',
|
|
336
365
|
headers: headerParameters,
|
|
337
366
|
query: queryParameters,
|
|
338
367
|
}, initOverrides);
|
|
339
|
-
return new runtime.
|
|
368
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AuthenticatorDuoStageDeviceImportResponseFromJSON(jsonValue));
|
|
340
369
|
});
|
|
341
370
|
}
|
|
342
371
|
/**
|
|
343
372
|
* Import duo devices into authentik
|
|
344
373
|
*/
|
|
345
|
-
|
|
374
|
+
stagesAuthenticatorDuoImportDevicesAutomaticCreate(requestParameters, initOverrides) {
|
|
346
375
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
-
yield this.
|
|
376
|
+
const response = yield this.stagesAuthenticatorDuoImportDevicesAutomaticCreateRaw(requestParameters, initOverrides);
|
|
377
|
+
return yield response.value();
|
|
348
378
|
});
|
|
349
379
|
}
|
|
350
380
|
/**
|
|
@@ -24,7 +24,7 @@ export function AccessDeniedChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return {
|
|
25
25
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
26
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
-
'component': json['component'],
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
28
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
29
|
'pendingUser': json['pending_user'],
|
|
30
30
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -20,7 +20,7 @@ export interface AppleChallengeResponseRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AppleChallengeResponseRequest
|
|
22
22
|
*/
|
|
23
|
-
component
|
|
23
|
+
component?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function AppleChallengeResponseRequestFromJSON(json: any): AppleChallengeResponseRequest;
|
|
26
26
|
export declare function AppleChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppleChallengeResponseRequest;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
14
15
|
export function AppleChallengeResponseRequestFromJSON(json) {
|
|
15
16
|
return AppleChallengeResponseRequestFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -19,7 +20,7 @@ export function AppleChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimin
|
|
|
19
20
|
return json;
|
|
20
21
|
}
|
|
21
22
|
return {
|
|
22
|
-
'component': json['component'],
|
|
23
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export function AppleChallengeResponseRequestToJSON(value) {
|
|
@@ -24,7 +24,7 @@ export function AppleLoginChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
return {
|
|
25
25
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
26
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
-
'component': json['component'],
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
28
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
29
|
'clientId': json['client_id'],
|
|
30
30
|
'scope': json['scope'],
|
|
@@ -24,7 +24,7 @@ export function AuthenticatorDuoChallengeFromJSONTyped(json, ignoreDiscriminator
|
|
|
24
24
|
return {
|
|
25
25
|
'type': ChallengeChoicesFromJSON(json['type']),
|
|
26
26
|
'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
|
|
27
|
-
'component': json['component'],
|
|
27
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
28
28
|
'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
|
|
29
29
|
'pendingUser': json['pending_user'],
|
|
30
30
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
@@ -20,7 +20,7 @@ export interface AuthenticatorDuoChallengeResponseRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof AuthenticatorDuoChallengeResponseRequest
|
|
22
22
|
*/
|
|
23
|
-
component
|
|
23
|
+
component?: string;
|
|
24
24
|
}
|
|
25
25
|
export declare function AuthenticatorDuoChallengeResponseRequestFromJSON(json: any): AuthenticatorDuoChallengeResponseRequest;
|
|
26
26
|
export declare function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoChallengeResponseRequest;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { exists } from '../runtime';
|
|
14
15
|
export function AuthenticatorDuoChallengeResponseRequestFromJSON(json) {
|
|
15
16
|
return AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, false);
|
|
16
17
|
}
|
|
@@ -19,7 +20,7 @@ export function AuthenticatorDuoChallengeResponseRequestFromJSONTyped(json, igno
|
|
|
19
20
|
return json;
|
|
20
21
|
}
|
|
21
22
|
return {
|
|
22
|
-
'component': json['component'],
|
|
23
|
+
'component': !exists(json, 'component') ? undefined : json['component'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export function AuthenticatorDuoChallengeResponseRequestToJSON(value) {
|
|
@@ -76,6 +76,12 @@ export interface AuthenticatorDuoStage {
|
|
|
76
76
|
* @memberof AuthenticatorDuoStage
|
|
77
77
|
*/
|
|
78
78
|
apiHostname: string;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof AuthenticatorDuoStage
|
|
83
|
+
*/
|
|
84
|
+
adminIntegrationKey?: string;
|
|
79
85
|
}
|
|
80
86
|
export declare function AuthenticatorDuoStageFromJSON(json: any): AuthenticatorDuoStage;
|
|
81
87
|
export declare function AuthenticatorDuoStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStage;
|
|
@@ -31,6 +31,7 @@ export function AuthenticatorDuoStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
'configureFlow': !exists(json, 'configure_flow') ? undefined : json['configure_flow'],
|
|
32
32
|
'clientId': json['client_id'],
|
|
33
33
|
'apiHostname': json['api_hostname'],
|
|
34
|
+
'adminIntegrationKey': !exists(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
37
|
export function AuthenticatorDuoStageToJSON(value) {
|
|
@@ -46,5 +47,6 @@ export function AuthenticatorDuoStageToJSON(value) {
|
|
|
46
47
|
'configure_flow': value.configureFlow,
|
|
47
48
|
'client_id': value.clientId,
|
|
48
49
|
'api_hostname': value.apiHostname,
|
|
50
|
+
'admin_integration_key': value.adminIntegrationKey,
|
|
49
51
|
};
|
|
50
52
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorDuoStageDeviceImportResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorDuoStageDeviceImportResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuthenticatorDuoStageDeviceImportResponse
|
|
22
|
+
*/
|
|
23
|
+
readonly count: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatorDuoStageDeviceImportResponse
|
|
28
|
+
*/
|
|
29
|
+
readonly error: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AuthenticatorDuoStageDeviceImportResponseFromJSON(json: any): AuthenticatorDuoStageDeviceImportResponse;
|
|
32
|
+
export declare function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageDeviceImportResponse;
|
|
33
|
+
export declare function AuthenticatorDuoStageDeviceImportResponseToJSON(value?: AuthenticatorDuoStageDeviceImportResponse | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
export function AuthenticatorDuoStageDeviceImportResponseFromJSON(json) {
|
|
15
|
+
return AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function AuthenticatorDuoStageDeviceImportResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'count': json['count'],
|
|
23
|
+
'error': json['error'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function AuthenticatorDuoStageDeviceImportResponseToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.8.2
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuthenticatorDuoStageManualDeviceImportRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthenticatorDuoStageManualDeviceImportRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
|
|
22
|
+
*/
|
|
23
|
+
duoUserId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthenticatorDuoStageManualDeviceImportRequest
|
|
28
|
+
*/
|
|
29
|
+
username: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json: any): AuthenticatorDuoStageManualDeviceImportRequest;
|
|
32
|
+
export declare function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageManualDeviceImportRequest;
|
|
33
|
+
export declare function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value?: AuthenticatorDuoStageManualDeviceImportRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 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
|
+
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSON(json) {
|
|
15
|
+
return AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function AuthenticatorDuoStageManualDeviceImportRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'duoUserId': json['duo_user_id'],
|
|
23
|
+
'username': json['username'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function AuthenticatorDuoStageManualDeviceImportRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'duo_user_id': value.duoUserId,
|
|
35
|
+
'username': value.username,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
@@ -52,6 +52,18 @@ export interface AuthenticatorDuoStageRequest {
|
|
|
52
52
|
* @memberof AuthenticatorDuoStageRequest
|
|
53
53
|
*/
|
|
54
54
|
apiHostname: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AuthenticatorDuoStageRequest
|
|
59
|
+
*/
|
|
60
|
+
adminIntegrationKey?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AuthenticatorDuoStageRequest
|
|
65
|
+
*/
|
|
66
|
+
adminSecretKey?: string;
|
|
55
67
|
}
|
|
56
68
|
export declare function AuthenticatorDuoStageRequestFromJSON(json: any): AuthenticatorDuoStageRequest;
|
|
57
69
|
export declare function AuthenticatorDuoStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorDuoStageRequest;
|
|
@@ -27,6 +27,8 @@ export function AuthenticatorDuoStageRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
27
27
|
'clientId': json['client_id'],
|
|
28
28
|
'clientSecret': json['client_secret'],
|
|
29
29
|
'apiHostname': json['api_hostname'],
|
|
30
|
+
'adminIntegrationKey': !exists(json, 'admin_integration_key') ? undefined : json['admin_integration_key'],
|
|
31
|
+
'adminSecretKey': !exists(json, 'admin_secret_key') ? undefined : json['admin_secret_key'],
|
|
30
32
|
};
|
|
31
33
|
}
|
|
32
34
|
export function AuthenticatorDuoStageRequestToJSON(value) {
|
|
@@ -43,5 +45,7 @@ export function AuthenticatorDuoStageRequestToJSON(value) {
|
|
|
43
45
|
'client_id': value.clientId,
|
|
44
46
|
'client_secret': value.clientSecret,
|
|
45
47
|
'api_hostname': value.apiHostname,
|
|
48
|
+
'admin_integration_key': value.adminIntegrationKey,
|
|
49
|
+
'admin_secret_key': value.adminSecretKey,
|
|
46
50
|
};
|
|
47
51
|
}
|