@goauthentik/api 2024.10.5-1734006367 → 2024.10.5-1734022840
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 +6 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/StagesApi.d.ts +84 -1
- package/dist/apis/StagesApi.js +265 -0
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/StagesApi.d.ts +84 -1
- package/dist/esm/apis/StagesApi.js +266 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AuthenticationEnum.d.ts +1 -0
- package/dist/esm/models/AuthenticationEnum.js +1 -0
- package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/PaginatedRedirectStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedRedirectStageList.js +48 -0
- package/dist/esm/models/PatchedRedirectStageRequest.d.ts +63 -0
- package/dist/esm/models/PatchedRedirectStageRequest.js +55 -0
- package/dist/esm/models/RedirectChallengeResponseRequest.d.ts +37 -0
- package/dist/esm/models/RedirectChallengeResponseRequest.js +46 -0
- package/dist/esm/models/RedirectStage.d.ts +93 -0
- package/dist/esm/models/RedirectStage.js +67 -0
- package/dist/esm/models/RedirectStageModeEnum.d.ts +24 -0
- package/dist/esm/models/RedirectStageModeEnum.js +31 -0
- package/dist/esm/models/RedirectStageRequest.d.ts +63 -0
- package/dist/esm/models/RedirectStageRequest.js +57 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AuthenticationEnum.d.ts +1 -0
- package/dist/models/AuthenticationEnum.js +1 -0
- package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
- package/dist/models/FlowChallengeResponseRequest.js +5 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/PaginatedRedirectStageList.d.ts +39 -0
- package/dist/models/PaginatedRedirectStageList.js +55 -0
- package/dist/models/PatchedRedirectStageRequest.d.ts +63 -0
- package/dist/models/PatchedRedirectStageRequest.js +62 -0
- package/dist/models/RedirectChallengeResponseRequest.d.ts +37 -0
- package/dist/models/RedirectChallengeResponseRequest.js +53 -0
- package/dist/models/RedirectStage.d.ts +93 -0
- package/dist/models/RedirectStage.js +74 -0
- package/dist/models/RedirectStageModeEnum.d.ts +24 -0
- package/dist/models/RedirectStageModeEnum.js +37 -0
- package/dist/models/RedirectStageRequest.d.ts +63 -0
- package/dist/models/RedirectStageRequest.js +64 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/StagesApi.ts +340 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/AuthenticationEnum.ts +1 -0
- package/src/models/FlowChallengeResponseRequest.ts +12 -1
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/PaginatedRedirectStageList.ts +88 -0
- package/src/models/PatchedRedirectStageRequest.ts +118 -0
- package/src/models/RedirectChallengeResponseRequest.ts +74 -0
- package/src/models/RedirectStage.ts +160 -0
- package/src/models/RedirectStageModeEnum.ts +39 -0
- package/src/models/RedirectStageRequest.ts +120 -0
- package/src/models/index.ts +6 -0
|
@@ -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 { AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorEndpointGDTCStageFromJSON, AuthenticatorEndpointGDTCStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, AuthenticatorWebAuthnStageFromJSON, AuthenticatorWebAuthnStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorEndpointGDTCStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedAuthenticatorWebAuthnStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedSourceStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PaginatedWebAuthnDeviceTypeListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorEndpointGDTCStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedAuthenticatorWebAuthnStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, WebAuthnDeviceTypeFromJSON, } from '../models';
|
|
24
|
+
import { AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorEndpointGDTCStageFromJSON, AuthenticatorEndpointGDTCStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, AuthenticatorWebAuthnStageFromJSON, AuthenticatorWebAuthnStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorEndpointGDTCStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedAuthenticatorWebAuthnStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedRedirectStageListFromJSON, PaginatedSourceStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PaginatedWebAuthnDeviceTypeListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorEndpointGDTCStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedAuthenticatorWebAuthnStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedRedirectStageRequestToJSON, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, RedirectStageFromJSON, RedirectStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, WebAuthnDeviceTypeFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -5508,6 +5508,271 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
5508
5508
|
return yield response.value();
|
|
5509
5509
|
});
|
|
5510
5510
|
}
|
|
5511
|
+
/**
|
|
5512
|
+
* RedirectStage Viewset
|
|
5513
|
+
*/
|
|
5514
|
+
stagesRedirectCreateRaw(requestParameters, initOverrides) {
|
|
5515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5516
|
+
if (requestParameters.redirectStageRequest === null || requestParameters.redirectStageRequest === undefined) {
|
|
5517
|
+
throw new runtime.RequiredError('redirectStageRequest', 'Required parameter requestParameters.redirectStageRequest was null or undefined when calling stagesRedirectCreate.');
|
|
5518
|
+
}
|
|
5519
|
+
const queryParameters = {};
|
|
5520
|
+
const headerParameters = {};
|
|
5521
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5522
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5523
|
+
const token = this.configuration.accessToken;
|
|
5524
|
+
const tokenString = yield token("authentik", []);
|
|
5525
|
+
if (tokenString) {
|
|
5526
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5527
|
+
}
|
|
5528
|
+
}
|
|
5529
|
+
const response = yield this.request({
|
|
5530
|
+
path: `/stages/redirect/`,
|
|
5531
|
+
method: 'POST',
|
|
5532
|
+
headers: headerParameters,
|
|
5533
|
+
query: queryParameters,
|
|
5534
|
+
body: RedirectStageRequestToJSON(requestParameters.redirectStageRequest),
|
|
5535
|
+
}, initOverrides);
|
|
5536
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RedirectStageFromJSON(jsonValue));
|
|
5537
|
+
});
|
|
5538
|
+
}
|
|
5539
|
+
/**
|
|
5540
|
+
* RedirectStage Viewset
|
|
5541
|
+
*/
|
|
5542
|
+
stagesRedirectCreate(requestParameters, initOverrides) {
|
|
5543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5544
|
+
const response = yield this.stagesRedirectCreateRaw(requestParameters, initOverrides);
|
|
5545
|
+
return yield response.value();
|
|
5546
|
+
});
|
|
5547
|
+
}
|
|
5548
|
+
/**
|
|
5549
|
+
* RedirectStage Viewset
|
|
5550
|
+
*/
|
|
5551
|
+
stagesRedirectDestroyRaw(requestParameters, initOverrides) {
|
|
5552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5553
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
5554
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesRedirectDestroy.');
|
|
5555
|
+
}
|
|
5556
|
+
const queryParameters = {};
|
|
5557
|
+
const headerParameters = {};
|
|
5558
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5559
|
+
const token = this.configuration.accessToken;
|
|
5560
|
+
const tokenString = yield token("authentik", []);
|
|
5561
|
+
if (tokenString) {
|
|
5562
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5563
|
+
}
|
|
5564
|
+
}
|
|
5565
|
+
const response = yield this.request({
|
|
5566
|
+
path: `/stages/redirect/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
5567
|
+
method: 'DELETE',
|
|
5568
|
+
headers: headerParameters,
|
|
5569
|
+
query: queryParameters,
|
|
5570
|
+
}, initOverrides);
|
|
5571
|
+
return new runtime.VoidApiResponse(response);
|
|
5572
|
+
});
|
|
5573
|
+
}
|
|
5574
|
+
/**
|
|
5575
|
+
* RedirectStage Viewset
|
|
5576
|
+
*/
|
|
5577
|
+
stagesRedirectDestroy(requestParameters, initOverrides) {
|
|
5578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5579
|
+
yield this.stagesRedirectDestroyRaw(requestParameters, initOverrides);
|
|
5580
|
+
});
|
|
5581
|
+
}
|
|
5582
|
+
/**
|
|
5583
|
+
* RedirectStage Viewset
|
|
5584
|
+
*/
|
|
5585
|
+
stagesRedirectListRaw(requestParameters, initOverrides) {
|
|
5586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5587
|
+
const queryParameters = {};
|
|
5588
|
+
if (requestParameters.name !== undefined) {
|
|
5589
|
+
queryParameters['name'] = requestParameters.name;
|
|
5590
|
+
}
|
|
5591
|
+
if (requestParameters.ordering !== undefined) {
|
|
5592
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
5593
|
+
}
|
|
5594
|
+
if (requestParameters.page !== undefined) {
|
|
5595
|
+
queryParameters['page'] = requestParameters.page;
|
|
5596
|
+
}
|
|
5597
|
+
if (requestParameters.pageSize !== undefined) {
|
|
5598
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
5599
|
+
}
|
|
5600
|
+
if (requestParameters.search !== undefined) {
|
|
5601
|
+
queryParameters['search'] = requestParameters.search;
|
|
5602
|
+
}
|
|
5603
|
+
const headerParameters = {};
|
|
5604
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5605
|
+
const token = this.configuration.accessToken;
|
|
5606
|
+
const tokenString = yield token("authentik", []);
|
|
5607
|
+
if (tokenString) {
|
|
5608
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5609
|
+
}
|
|
5610
|
+
}
|
|
5611
|
+
const response = yield this.request({
|
|
5612
|
+
path: `/stages/redirect/`,
|
|
5613
|
+
method: 'GET',
|
|
5614
|
+
headers: headerParameters,
|
|
5615
|
+
query: queryParameters,
|
|
5616
|
+
}, initOverrides);
|
|
5617
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRedirectStageListFromJSON(jsonValue));
|
|
5618
|
+
});
|
|
5619
|
+
}
|
|
5620
|
+
/**
|
|
5621
|
+
* RedirectStage Viewset
|
|
5622
|
+
*/
|
|
5623
|
+
stagesRedirectList(requestParameters = {}, initOverrides) {
|
|
5624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5625
|
+
const response = yield this.stagesRedirectListRaw(requestParameters, initOverrides);
|
|
5626
|
+
return yield response.value();
|
|
5627
|
+
});
|
|
5628
|
+
}
|
|
5629
|
+
/**
|
|
5630
|
+
* RedirectStage Viewset
|
|
5631
|
+
*/
|
|
5632
|
+
stagesRedirectPartialUpdateRaw(requestParameters, initOverrides) {
|
|
5633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5634
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
5635
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesRedirectPartialUpdate.');
|
|
5636
|
+
}
|
|
5637
|
+
const queryParameters = {};
|
|
5638
|
+
const headerParameters = {};
|
|
5639
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5640
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5641
|
+
const token = this.configuration.accessToken;
|
|
5642
|
+
const tokenString = yield token("authentik", []);
|
|
5643
|
+
if (tokenString) {
|
|
5644
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5645
|
+
}
|
|
5646
|
+
}
|
|
5647
|
+
const response = yield this.request({
|
|
5648
|
+
path: `/stages/redirect/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
5649
|
+
method: 'PATCH',
|
|
5650
|
+
headers: headerParameters,
|
|
5651
|
+
query: queryParameters,
|
|
5652
|
+
body: PatchedRedirectStageRequestToJSON(requestParameters.patchedRedirectStageRequest),
|
|
5653
|
+
}, initOverrides);
|
|
5654
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RedirectStageFromJSON(jsonValue));
|
|
5655
|
+
});
|
|
5656
|
+
}
|
|
5657
|
+
/**
|
|
5658
|
+
* RedirectStage Viewset
|
|
5659
|
+
*/
|
|
5660
|
+
stagesRedirectPartialUpdate(requestParameters, initOverrides) {
|
|
5661
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5662
|
+
const response = yield this.stagesRedirectPartialUpdateRaw(requestParameters, initOverrides);
|
|
5663
|
+
return yield response.value();
|
|
5664
|
+
});
|
|
5665
|
+
}
|
|
5666
|
+
/**
|
|
5667
|
+
* RedirectStage Viewset
|
|
5668
|
+
*/
|
|
5669
|
+
stagesRedirectRetrieveRaw(requestParameters, initOverrides) {
|
|
5670
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5671
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
5672
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesRedirectRetrieve.');
|
|
5673
|
+
}
|
|
5674
|
+
const queryParameters = {};
|
|
5675
|
+
const headerParameters = {};
|
|
5676
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5677
|
+
const token = this.configuration.accessToken;
|
|
5678
|
+
const tokenString = yield token("authentik", []);
|
|
5679
|
+
if (tokenString) {
|
|
5680
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5681
|
+
}
|
|
5682
|
+
}
|
|
5683
|
+
const response = yield this.request({
|
|
5684
|
+
path: `/stages/redirect/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
5685
|
+
method: 'GET',
|
|
5686
|
+
headers: headerParameters,
|
|
5687
|
+
query: queryParameters,
|
|
5688
|
+
}, initOverrides);
|
|
5689
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RedirectStageFromJSON(jsonValue));
|
|
5690
|
+
});
|
|
5691
|
+
}
|
|
5692
|
+
/**
|
|
5693
|
+
* RedirectStage Viewset
|
|
5694
|
+
*/
|
|
5695
|
+
stagesRedirectRetrieve(requestParameters, initOverrides) {
|
|
5696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5697
|
+
const response = yield this.stagesRedirectRetrieveRaw(requestParameters, initOverrides);
|
|
5698
|
+
return yield response.value();
|
|
5699
|
+
});
|
|
5700
|
+
}
|
|
5701
|
+
/**
|
|
5702
|
+
* RedirectStage Viewset
|
|
5703
|
+
*/
|
|
5704
|
+
stagesRedirectUpdateRaw(requestParameters, initOverrides) {
|
|
5705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5706
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
5707
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesRedirectUpdate.');
|
|
5708
|
+
}
|
|
5709
|
+
if (requestParameters.redirectStageRequest === null || requestParameters.redirectStageRequest === undefined) {
|
|
5710
|
+
throw new runtime.RequiredError('redirectStageRequest', 'Required parameter requestParameters.redirectStageRequest was null or undefined when calling stagesRedirectUpdate.');
|
|
5711
|
+
}
|
|
5712
|
+
const queryParameters = {};
|
|
5713
|
+
const headerParameters = {};
|
|
5714
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5715
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5716
|
+
const token = this.configuration.accessToken;
|
|
5717
|
+
const tokenString = yield token("authentik", []);
|
|
5718
|
+
if (tokenString) {
|
|
5719
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5720
|
+
}
|
|
5721
|
+
}
|
|
5722
|
+
const response = yield this.request({
|
|
5723
|
+
path: `/stages/redirect/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
5724
|
+
method: 'PUT',
|
|
5725
|
+
headers: headerParameters,
|
|
5726
|
+
query: queryParameters,
|
|
5727
|
+
body: RedirectStageRequestToJSON(requestParameters.redirectStageRequest),
|
|
5728
|
+
}, initOverrides);
|
|
5729
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RedirectStageFromJSON(jsonValue));
|
|
5730
|
+
});
|
|
5731
|
+
}
|
|
5732
|
+
/**
|
|
5733
|
+
* RedirectStage Viewset
|
|
5734
|
+
*/
|
|
5735
|
+
stagesRedirectUpdate(requestParameters, initOverrides) {
|
|
5736
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5737
|
+
const response = yield this.stagesRedirectUpdateRaw(requestParameters, initOverrides);
|
|
5738
|
+
return yield response.value();
|
|
5739
|
+
});
|
|
5740
|
+
}
|
|
5741
|
+
/**
|
|
5742
|
+
* Get a list of all objects that use this object
|
|
5743
|
+
*/
|
|
5744
|
+
stagesRedirectUsedByListRaw(requestParameters, initOverrides) {
|
|
5745
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5746
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
5747
|
+
throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesRedirectUsedByList.');
|
|
5748
|
+
}
|
|
5749
|
+
const queryParameters = {};
|
|
5750
|
+
const headerParameters = {};
|
|
5751
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5752
|
+
const token = this.configuration.accessToken;
|
|
5753
|
+
const tokenString = yield token("authentik", []);
|
|
5754
|
+
if (tokenString) {
|
|
5755
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5756
|
+
}
|
|
5757
|
+
}
|
|
5758
|
+
const response = yield this.request({
|
|
5759
|
+
path: `/stages/redirect/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
5760
|
+
method: 'GET',
|
|
5761
|
+
headers: headerParameters,
|
|
5762
|
+
query: queryParameters,
|
|
5763
|
+
}, initOverrides);
|
|
5764
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
5765
|
+
});
|
|
5766
|
+
}
|
|
5767
|
+
/**
|
|
5768
|
+
* Get a list of all objects that use this object
|
|
5769
|
+
*/
|
|
5770
|
+
stagesRedirectUsedByList(requestParameters, initOverrides) {
|
|
5771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5772
|
+
const response = yield this.stagesRedirectUsedByListRaw(requestParameters, initOverrides);
|
|
5773
|
+
return yield response.value();
|
|
5774
|
+
});
|
|
5775
|
+
}
|
|
5511
5776
|
/**
|
|
5512
5777
|
* SourceStage Viewset
|
|
5513
5778
|
*/
|
|
@@ -58,6 +58,7 @@ export declare const AppEnum: {
|
|
|
58
58
|
readonly StagesInvitation: "authentik.stages.invitation";
|
|
59
59
|
readonly StagesPassword: "authentik.stages.password";
|
|
60
60
|
readonly StagesPrompt: "authentik.stages.prompt";
|
|
61
|
+
readonly StagesRedirect: "authentik.stages.redirect";
|
|
61
62
|
readonly StagesUserDelete: "authentik.stages.user_delete";
|
|
62
63
|
readonly StagesUserLogin: "authentik.stages.user_login";
|
|
63
64
|
readonly StagesUserLogout: "authentik.stages.user_logout";
|
|
@@ -60,6 +60,7 @@ export const AppEnum = {
|
|
|
60
60
|
StagesInvitation: 'authentik.stages.invitation',
|
|
61
61
|
StagesPassword: 'authentik.stages.password',
|
|
62
62
|
StagesPrompt: 'authentik.stages.prompt',
|
|
63
|
+
StagesRedirect: 'authentik.stages.redirect',
|
|
63
64
|
StagesUserDelete: 'authentik.stages.user_delete',
|
|
64
65
|
StagesUserLogin: 'authentik.stages.user_login',
|
|
65
66
|
StagesUserLogout: 'authentik.stages.user_logout',
|
|
@@ -18,6 +18,7 @@ export declare const AuthenticationEnum: {
|
|
|
18
18
|
readonly RequireAuthenticated: "require_authenticated";
|
|
19
19
|
readonly RequireUnauthenticated: "require_unauthenticated";
|
|
20
20
|
readonly RequireSuperuser: "require_superuser";
|
|
21
|
+
readonly RequireRedirect: "require_redirect";
|
|
21
22
|
readonly RequireOutpost: "require_outpost";
|
|
22
23
|
readonly UnknownDefaultOpenApi: "11184809";
|
|
23
24
|
};
|
|
@@ -20,6 +20,7 @@ export const AuthenticationEnum = {
|
|
|
20
20
|
RequireAuthenticated: 'require_authenticated',
|
|
21
21
|
RequireUnauthenticated: 'require_unauthenticated',
|
|
22
22
|
RequireSuperuser: 'require_superuser',
|
|
23
|
+
RequireRedirect: 'require_redirect',
|
|
23
24
|
RequireOutpost: 'require_outpost',
|
|
24
25
|
UnknownDefaultOpenApi: '11184809'
|
|
25
26
|
};
|
|
@@ -28,6 +28,7 @@ import { OAuthDeviceCodeFinishChallengeResponseRequest } from './OAuthDeviceCode
|
|
|
28
28
|
import { PasswordChallengeResponseRequest } from './PasswordChallengeResponseRequest';
|
|
29
29
|
import { PlexAuthenticationChallengeResponseRequest } from './PlexAuthenticationChallengeResponseRequest';
|
|
30
30
|
import { PromptChallengeResponseRequest } from './PromptChallengeResponseRequest';
|
|
31
|
+
import { RedirectChallengeResponseRequest } from './RedirectChallengeResponseRequest';
|
|
31
32
|
import { UserLoginChallengeResponseRequest } from './UserLoginChallengeResponseRequest';
|
|
32
33
|
/**
|
|
33
34
|
* @type FlowChallengeResponseRequest
|
|
@@ -74,7 +75,9 @@ export type FlowChallengeResponseRequest = {
|
|
|
74
75
|
component: 'ak-stage-user-login';
|
|
75
76
|
} & UserLoginChallengeResponseRequest | {
|
|
76
77
|
component: 'xak-flow-frame';
|
|
77
|
-
} & FrameChallengeResponseRequest
|
|
78
|
+
} & FrameChallengeResponseRequest | {
|
|
79
|
+
component: 'xak-flow-redirect';
|
|
80
|
+
} & RedirectChallengeResponseRequest;
|
|
78
81
|
export declare function FlowChallengeResponseRequestFromJSON(json: any): FlowChallengeResponseRequest;
|
|
79
82
|
export declare function FlowChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowChallengeResponseRequest;
|
|
80
83
|
export declare function FlowChallengeResponseRequestToJSON(value?: FlowChallengeResponseRequest | null): any;
|
|
@@ -30,6 +30,7 @@ import { OAuthDeviceCodeFinishChallengeResponseRequestFromJSONTyped, OAuthDevice
|
|
|
30
30
|
import { PasswordChallengeResponseRequestFromJSONTyped, PasswordChallengeResponseRequestToJSON, } from './PasswordChallengeResponseRequest';
|
|
31
31
|
import { PlexAuthenticationChallengeResponseRequestFromJSONTyped, PlexAuthenticationChallengeResponseRequestToJSON, } from './PlexAuthenticationChallengeResponseRequest';
|
|
32
32
|
import { PromptChallengeResponseRequestFromJSONTyped, PromptChallengeResponseRequestToJSON, } from './PromptChallengeResponseRequest';
|
|
33
|
+
import { RedirectChallengeResponseRequestFromJSONTyped, RedirectChallengeResponseRequestToJSON, } from './RedirectChallengeResponseRequest';
|
|
33
34
|
import { UserLoginChallengeResponseRequestFromJSONTyped, UserLoginChallengeResponseRequestToJSON, } from './UserLoginChallengeResponseRequest';
|
|
34
35
|
export function FlowChallengeResponseRequestFromJSON(json) {
|
|
35
36
|
return FlowChallengeResponseRequestFromJSONTyped(json, false);
|
|
@@ -79,6 +80,8 @@ export function FlowChallengeResponseRequestFromJSONTyped(json, ignoreDiscrimina
|
|
|
79
80
|
return Object.assign(Object.assign({}, UserLoginChallengeResponseRequestFromJSONTyped(json, true)), { component: 'ak-stage-user-login' });
|
|
80
81
|
case 'xak-flow-frame':
|
|
81
82
|
return Object.assign(Object.assign({}, FrameChallengeResponseRequestFromJSONTyped(json, true)), { component: 'xak-flow-frame' });
|
|
83
|
+
case 'xak-flow-redirect':
|
|
84
|
+
return Object.assign(Object.assign({}, RedirectChallengeResponseRequestFromJSONTyped(json, true)), { component: 'xak-flow-redirect' });
|
|
82
85
|
default:
|
|
83
86
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${json['component']}'`);
|
|
84
87
|
}
|
|
@@ -131,6 +134,8 @@ export function FlowChallengeResponseRequestToJSON(value) {
|
|
|
131
134
|
return UserLoginChallengeResponseRequestToJSON(value);
|
|
132
135
|
case 'xak-flow-frame':
|
|
133
136
|
return FrameChallengeResponseRequestToJSON(value);
|
|
137
|
+
case 'xak-flow-redirect':
|
|
138
|
+
return RedirectChallengeResponseRequestToJSON(value);
|
|
134
139
|
default:
|
|
135
140
|
throw new Error(`No variant of FlowChallengeResponseRequest exists with 'component=${value['component']}'`);
|
|
136
141
|
}
|
|
@@ -83,6 +83,7 @@ export declare const ModelEnum: {
|
|
|
83
83
|
readonly StagesPasswordPasswordstage: "authentik_stages_password.passwordstage";
|
|
84
84
|
readonly StagesPromptPrompt: "authentik_stages_prompt.prompt";
|
|
85
85
|
readonly StagesPromptPromptstage: "authentik_stages_prompt.promptstage";
|
|
86
|
+
readonly StagesRedirectRedirectstage: "authentik_stages_redirect.redirectstage";
|
|
86
87
|
readonly StagesUserDeleteUserdeletestage: "authentik_stages_user_delete.userdeletestage";
|
|
87
88
|
readonly StagesUserLoginUserloginstage: "authentik_stages_user_login.userloginstage";
|
|
88
89
|
readonly StagesUserLogoutUserlogoutstage: "authentik_stages_user_logout.userlogoutstage";
|
|
@@ -85,6 +85,7 @@ export const ModelEnum = {
|
|
|
85
85
|
StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
|
|
86
86
|
StagesPromptPrompt: 'authentik_stages_prompt.prompt',
|
|
87
87
|
StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
|
|
88
|
+
StagesRedirectRedirectstage: 'authentik_stages_redirect.redirectstage',
|
|
88
89
|
StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
|
|
89
90
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|
|
90
91
|
StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Pagination } from './Pagination';
|
|
13
|
+
import type { RedirectStage } from './RedirectStage';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedRedirectStageList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedRedirectStageList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedRedirectStageList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<RedirectStage>}
|
|
29
|
+
* @memberof PaginatedRedirectStageList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<RedirectStage>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedRedirectStageList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedRedirectStageList(value: object): boolean;
|
|
37
|
+
export declare function PaginatedRedirectStageListFromJSON(json: any): PaginatedRedirectStageList;
|
|
38
|
+
export declare function PaginatedRedirectStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRedirectStageList;
|
|
39
|
+
export declare function PaginatedRedirectStageListToJSON(value?: PaginatedRedirectStageList | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
|
15
|
+
import { RedirectStageFromJSON, RedirectStageToJSON, } from './RedirectStage';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PaginatedRedirectStageList interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPaginatedRedirectStageList(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "pagination" in value;
|
|
22
|
+
isInstance = isInstance && "results" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function PaginatedRedirectStageListFromJSON(json) {
|
|
26
|
+
return PaginatedRedirectStageListFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PaginatedRedirectStageListFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
34
|
+
'results': (json['results'].map(RedirectStageFromJSON)),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PaginatedRedirectStageListToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'pagination': PaginationToJSON(value.pagination),
|
|
46
|
+
'results': (value.results.map(RedirectStageToJSON)),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { FlowSetRequest } from './FlowSetRequest';
|
|
13
|
+
import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
|
|
14
|
+
/**
|
|
15
|
+
* RedirectStage Serializer
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PatchedRedirectStageRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface PatchedRedirectStageRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PatchedRedirectStageRequest
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<FlowSetRequest>}
|
|
29
|
+
* @memberof PatchedRedirectStageRequest
|
|
30
|
+
*/
|
|
31
|
+
flowSet?: Array<FlowSetRequest>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
* @memberof PatchedRedirectStageRequest
|
|
36
|
+
*/
|
|
37
|
+
keepContext?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {RedirectStageModeEnum}
|
|
41
|
+
* @memberof PatchedRedirectStageRequest
|
|
42
|
+
*/
|
|
43
|
+
mode?: RedirectStageModeEnum;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PatchedRedirectStageRequest
|
|
48
|
+
*/
|
|
49
|
+
targetStatic?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PatchedRedirectStageRequest
|
|
54
|
+
*/
|
|
55
|
+
targetFlow?: string | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the PatchedRedirectStageRequest interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfPatchedRedirectStageRequest(value: object): boolean;
|
|
61
|
+
export declare function PatchedRedirectStageRequestFromJSON(json: any): PatchedRedirectStageRequest;
|
|
62
|
+
export declare function PatchedRedirectStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRedirectStageRequest;
|
|
63
|
+
export declare function PatchedRedirectStageRequestToJSON(value?: PatchedRedirectStageRequest | null): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
|
|
16
|
+
import { RedirectStageModeEnumFromJSON, RedirectStageModeEnumToJSON, } from './RedirectStageModeEnum';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the PatchedRedirectStageRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfPatchedRedirectStageRequest(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function PatchedRedirectStageRequestFromJSON(json) {
|
|
25
|
+
return PatchedRedirectStageRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PatchedRedirectStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
33
|
+
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
|
34
|
+
'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
|
|
35
|
+
'mode': !exists(json, 'mode') ? undefined : RedirectStageModeEnumFromJSON(json['mode']),
|
|
36
|
+
'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
|
|
37
|
+
'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function PatchedRedirectStageRequestToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value.name,
|
|
49
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
|
|
50
|
+
'keep_context': value.keepContext,
|
|
51
|
+
'mode': RedirectStageModeEnumToJSON(value.mode),
|
|
52
|
+
'target_static': value.targetStatic,
|
|
53
|
+
'target_flow': value.targetFlow,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.10.5
|
|
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
|
+
* Redirect challenge response
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RedirectChallengeResponseRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RedirectChallengeResponseRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RedirectChallengeResponseRequest
|
|
22
|
+
*/
|
|
23
|
+
component?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RedirectChallengeResponseRequest
|
|
28
|
+
*/
|
|
29
|
+
to: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RedirectChallengeResponseRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRedirectChallengeResponseRequest(value: object): boolean;
|
|
35
|
+
export declare function RedirectChallengeResponseRequestFromJSON(json: any): RedirectChallengeResponseRequest;
|
|
36
|
+
export declare function RedirectChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectChallengeResponseRequest;
|
|
37
|
+
export declare function RedirectChallengeResponseRequestToJSON(value?: RedirectChallengeResponseRequest | null): any;
|